OSDN Git Service

* gcc-interface/ada-tree.h: Minor reorganization.
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * gcc-interface/ada-tree.h: Minor reorganization.
4         * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
5         (gnat_print_type): Likewise.
6
7 2009-07-11  Thomas Quinot  <quinot@adacore.com>
8
9         * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
10         Lvalue -> lvalue
11
12         * exp_ch6.adb: Minor reformatting
13
14 2009-07-11  Ed Schonberg  <schonberg@adacore.com>
15
16         * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
17         account possible type qualification to determine whether aggregate
18         needs a target temporary to respect atomic type or object.
19
20         * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
21         Expand_Atomic_Aggregate.
22
23 2009-07-11  Emmanuel Briot  <briot@adacore.com>
24
25         * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
26         algorithm.
27         (Excluded_Sources_Htable): No longer a global table.
28         Change error message to indicate which files are illegal in the list
29         of excluded files, as opposed to only the location in the project
30         file.
31         (Find_Source): New subprogram.
32
33 2009-07-10  Thomas Quinot  <quinot@adacore.com>
34
35         * exp_ch7.adb: Update comments.
36
37 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
38
39         * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
40         clause if -gnatI is set instead of crashing.
41
42 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
43
44         * sem_ch11.adb (Same_Expression): Null is always equal to itself.
45         Additional work to remove redundant successive raise statements, in
46         this case access checks.
47
48 2009-07-10  Vincent Celier  <celier@adacore.com>
49
50         * make.adb (Compile): Always create a deep copy of the mapping file
51         argument (-gnatem=...) as it may be deallocate/reallocate by
52         Normalize_Arguments.
53
54 2009-07-10  Javier Miranda  <miranda@adacore.com>
55
56         * einfo.adb (Directly_Designated_Type): Add assertion.
57         
58         * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
59         access types before using attribute Directly_Designated_Type.
60
61 2009-07-10  Emmanuel Briot  <briot@adacore.com>
62
63         * prj.ads: Minor typo fix
64
65 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
66
67         * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
68         special treatment.
69
70         * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
71         subprogram is a function call, resolve properly, to ensure that extra
72         actuals are added as needed.
73
74 2009-07-10  Thomas Quinot  <quinot@adacore.com>
75
76         * sem_aggr.adb: Minor comments editing
77
78         * exp_tss.adb, exp_ch3.adb: Minor reformatting
79
80 2009-07-10  Robert Dewar  <dewar@adacore.com>
81
82         * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
83
84         * exp_ch4.adb: Add ??? comment for conditional expressions on limited
85         types.
86
87         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
88         replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
89         case of conditional expressions that may not be elaborated.
90
91         * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
92         conditional expression where we may not execute then then or else
93         branches.
94
95 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
96
97         * i-cexten.ads (bool): New type.
98
99 2009-07-10  Robert Dewar  <dewar@adacore.com>
100
101         * sinfo.ads (N_Short_Circuit): New definition
102         
103         * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
104         treepr.adb: Minor code reorganization (use N_Short_Circuit)
105
106 2009-07-10  Javier Miranda  <miranda@adacore.com>
107
108         * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
109         non-tagged record types.
110
111         * sem_prag.adb
112         (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
113         with non-tagged types. Required to import C++ classes that have no
114         virtual primitives.
115         (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
116         returning non-tagged types. For backward compatibility, if the
117         constructor returns a class wide type we internally change the
118         returned type to the corresponding non class-wide type.
119
120         * sem_aggr.adb
121         (Valid_Ancestor_Type): CPP_Constructors code cleanup.
122         (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
123         (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
124         (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
125
126         * sem_ch3.adb
127         (Analyze_Object_Declaration): CPP_Constructors code cleanup.
128
129         * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
130
131         * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
132
133         * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
134
135         * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
136         cleanup.
137         
138         * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
139
140         * gnat_rm.texi
141         (pragma CPP_Class): Document that it can be used now with non-tagged
142         record types.
143         (pragma CPP_Constructor): Document that it can be used now with
144         functions returning specific types. For backward compatibility
145         we also support functions returning class-wide types.
146
147         * gnat_ugn.texi
148         (Interfacing with C++ constructors): Update the examples to incorporate
149         the new syntax in which the functions used to import C++ constructors
150         return specific types.
151         (Interfacing with C++ at the Class Level): Update the examples to
152         incorporate the new syntax in which the functions used to import
153         C++ constructors return specific types.
154
155 2009-07-10  Thomas Quinot  <quinot@adacore.com>
156
157         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
158         Make_Disp_Conditional_Select_Body,
159         Make_Disp_Timed_Select_Body): For the case of a type that is neither an
160         interface nor a concurrent type, the primitive body is empty. Generate
161         a null statement so that it remains well formed.
162
163 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
164
165         * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
166         replace references to them in defaulted component expressions with
167         references to the values of the discriminants of the target object.
168
169 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
170
171         * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
172         pragma, to capture global references if the context is generic.
173
174         * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
175         appears within the initialization procedure for the corresponding
176         record, replace it with the proper discriminal.
177
178 2009-07-10  Vincent Celier  <celier@adacore.com>
179
180         * make.adb: Do not include object directories or library ALI
181         directories of library projects in the object path.
182
183 2009-07-10  Javier Miranda  <miranda@adacore.com>
184
185         * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
186         Typ argument to ensure proper management of access types.
187
188 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
189
190         * exp_ch7.adb (Build_Final_List): If the list is being built for a
191         Taft-Amendment type, place the finalization list in the package body,
192         to ensure that the tree for the spec is identical whenever it is
193         compiled.
194
195 2009-07-10  Javier Miranda  <miranda@adacore.com>
196
197         * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
198         inheriting attributes from a private Parent_Base.
199
200 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
201
202         * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
203         statements with the same condition.
204
205 2009-07-10  Robert Dewar  <dewar@adacore.com>
206
207         * exp_ch4.adb (Raise_Accessibility_Error): New procedure
208
209 2009-07-09  Tom Tromey  <tromey@redhat.com>
210
211         * raise-gcc.c: Include dwarf2h (unconditionally).
212
213 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
214
215         * sem_ch10.adb (Install_Context): If the unit is a package body,
216         install the private with_clauses of the corresponding package
217         declaration.
218
219 2009-07-09  Robert Dewar  <dewar@adacore.com>
220
221         * checks.adb: Minor reformatting
222
223 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
224
225         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
226         into ug_words.
227
228 2009-07-09  Thomas Quinot  <quinot@adacore.com>
229
230         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
231         Do not warn for a constant overlaying any constant object
232
233 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
234
235         * sem_ch10.adb (Install_Context): If the unit is a package body,
236         install the private with_clauses of the corresponding package
237         declaration.
238
239 2009-07-09  Robert Dewar  <dewar@adacore.com>
240
241         * checks.adb: Minor reformatting
242
243 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
244
245         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
246         into ug_words.
247
248 2009-07-09  Thomas Quinot  <quinot@adacore.com>
249
250         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
251         Do not warn for a constant overlaying any constant object
252
253 2009-06-25  Arnaud Charlet  <charlet@adacore.com>
254
255         * gcc-interface/Make-lang.in: Update dependencies
256
257 2009-07-09  Thomas Quinot  <quinot@adacore.com>
258
259         * g-socket.adb (Check_Selector): Do not create local copies of the
260         socket sets on the stack.
261
262 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
263
264         * gnat_ugn.texi: Add missing VMS translations.
265
266 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
267
268         * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
269         condition, to prevent generation of visible code during expansion,
270         when Check is not enabled.
271
272 2009-07-09  Gary Dismukes  <dismukes@adacore.com>
273
274         * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
275         the check gets registered for any available local handler
276         (Set_Local_Raise).
277
278         * sem_util.adb: Add with and use of Exp_Ch11.
279         (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
280         that the check gets registered for any available local handler.
281
282         * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
283         on slice ranges.
284
285 2009-07-09  Steve Baird  <baird@adacore.com>
286
287         * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
288         function.
289         (Expand_N_Exception_Declaration): Fix handling of exceptions
290         declared in a subprogram.
291
292 2009-07-09  Emmanuel Briot  <briot@adacore.com>
293
294         * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
295         multi-unit files.
296
297 2009-07-09  Thomas Quinot  <quinot@adacore.com>
298
299         * freeze.adb: Minor reformatting
300
301         * exp_ch3.adb: Minor comment fix.
302
303         * sinfo.ads: Minor comment fix
304
305 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
306
307         * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
308
309 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
310
311         * freeze.adb (Freeze_Expression): If the expression is the name of a
312         function in a call, and the function has not been frozen yet, create
313         extra formals for it to ensure that the proper actuals are created
314         when expanding the call.
315
316 2009-07-09  Emmanuel Briot  <briot@adacore.com>
317
318         * prj-pp.adb (Print): Fix handling of source index when set on a
319         declaration node.
320
321 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
322
323         * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
324         a temporary to the source expression whose value it captures.
325
326         * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
327
328 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
329
330         * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
331         EXPR_LOCATION.
332
333 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
334
335         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
336         parameters when the subtype of the actual is not known to be a subrange
337         of the formal's subtype.
338         (Expand_Call): Generate a range check only in the E_In_parameter case
339         (in out parameter range checks are now handled in Expand_Actuals).
340
341         * exp_ch4.adb (Expand_N_Slice): Restore code that calls
342         Enable_Range_Check.
343
344 2009-07-07  Robert Dewar  <dewar@adacore.com>
345
346         * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
347
348 2009-07-07  Javier Miranda  <miranda@adacore.com>
349
350         * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
351         designated type comes from a limited views.
352
353 2009-07-07  Emmanuel Briot  <briot@adacore.com>
354
355         * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
356         locally removed files that are later made visible again in an importing
357         project.
358
359 2009-07-07  Robert Dewar  <dewar@adacore.com>
360
361         * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
362
363 2009-07-07  Sergey Rybin  <rybin@adacore.com>
364
365         * gnat_ugn.texi: Add an example to the description of gnatcheck
366         'Style_Checks' rule option.
367
368 2009-07-07  Tristan Gingold  <gingold@adacore.com>
369
370         * seh_init.c: Fix inline assembly statement in seh_init.c
371
372 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
373
374         * sem_warn.adb (Check_References): Do not emit warnings on formals of
375         an entry body. Only the formals of the entry declaration are traced.
376
377 2009-07-07  Robert Dewar  <dewar@adacore.com>
378
379         * s-osprim-mingw.adb: Minor code reorganization
380
381 2009-07-07  Robert Dewar  <dewar@adacore.com>
382
383         * prj-nmsc.adb: Minor reformatting
384
385 2009-07-07  Pascal Obry  <obry@adacore.com>
386
387         * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
388         cases where Pattern is longer than Source.
389
390 2009-07-07  Pascal Obry  <obry@adacore.com>
391
392         * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
393
394 2009-07-07  Emmanuel Briot  <briot@adacore.com>
395
396         * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
397         project file.
398
399 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
400
401         * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
402         primitive operations, in case one of them is called in the
403         initialization procedure for the type.
404
405 2009-07-07  Robert Dewar  <dewar@adacore.com>
406
407         * a-calend.adb: Minor code reorganization (use conditional expressions)
408
409         * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
410         prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
411         s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
412         s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
413         s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
414         g-comlin.adb, exp_ch11.adb: Minor reformatting.
415
416 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
417
418         * checks.adb (Generate_Range_Check): Replace type conversions with
419         unchecked conversions to support the case of performing range checks
420         on Enum'Val (permits integer values to be converted to enumeration).
421
422         * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
423         Attribute_Succ): Set Do_Range_Check to False before calling
424         Expand_Pred_Succ, to prevent gigi from generating any range checks.
425         (Expand_N_Attribute_Reference, case Attribute_Val):
426         Generate a range check when needed (and set Do_Range_Check to False).
427
428         * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
429         scalar object initialization if needed.
430
431         * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
432         when needed on scalar allocators.
433         (Expand_N_Qualified_Expression): Generate range check when needed.
434         (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
435         Checks on slice ranges handled in Resolve_Slice.
436
437         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
438         when needed, for all scalar assignments, not just discrete.
439         (Expand_Simple_Function_Return): Resolve the conversion created for a
440         scalar function return so that the conversion will get expanded to
441         generate a possible constraint check.
442
443         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
444         in out scalar actuals when subtypes don't match, to ensure generation
445         of return checks (and set Do_Range_Check to False).
446         (Expand_Call): Uncomment code to perform range checks, but make it apply
447         only to in and in out parameters (checks on parameter returns are
448         handled in Expand_Actuals). If a scalar actual for a call to a derived
449         subprogram is marked as needing a range check, peform it here (and set
450         Do_Range_Check to False).
451
452         * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
453         range check on scalar component associations when needed.
454
455         * sem_eval.adb (In_Subrange_Of): Return False when the first type has
456         infinities but the second type does not, as these aren't compatible
457         floating-point types.
458
459         * sem_res.adb (Resolve_Slice): In the case where the prefix of the
460         slice is itself a slice, pick up the Etype of the prefix. This handles
461         the case where the prefix was an Image attribute expanded to a slice,
462         and ensures that we get the subtype with the slice constraint rather
463         than the unconstrained subbtype of the 'Image.
464
465 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
466
467         * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
468         overloaded expressions in a conditional expressions.
469
470         * sem_res.adb (Resolve): Handle properly overloaded conditional
471         expressions.
472
473 2009-07-07  Robert Dewar  <dewar@adacore.com>
474
475         * scng.adb: Minor reformattting
476
477         * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
478         association allows conditional expression without parens.
479
480         * par-ch4.adb (P_Name): Attribute arguments can be conditional
481         expressions without enclosing parentheses, and also as parameters,
482         indexing expressions etc.
483         (P_Conditional_Expression): New procedure
484         (P_Expression_If_OK): New procedure
485
486         * par.adb (P_Conditional_Expression): New procedure
487         (P_Expression_If_OK): New procedure
488
489         * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
490         form of conditional expression.
491
492         * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
493         missing True argument if ELSE argument missing.
494
495         * sinfo.adb (Is_Elsif): New flag
496
497         * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
498         part of the language, and the documentation is modified accordingly.
499         (Is_Elsif): New flag
500
501 2009-07-06  Olivier Hainque  <hainque@adacore.com>
502
503         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
504         setjmp_longjmp): Attach the exception propagation reraise fallback
505         to the sequence end label location when we have it.
506
507 2009-07-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
508
509         PR ada/40608
510         * init.c (APPLE): Include <mach/mach_init.h>.
511         (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
512
513 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
514
515         * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
516         (SET_DECL_LANG_SPECIFIC): Likewise.
517         (TYPE_RM_VALUE): New macro.
518         (SET_TYPE_RM_VALUE): Likewise.
519         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
520         (TYPE_RM_MIN_VALUE): Likewise.
521         (TYPE_RM_MAX_VALUE): Likewise.
522         (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
523         (SET_TYPE_RM_MIN_VALUE): Likewise.
524         (SET_TYPE_RM_MAX_VALUE): Likewise.
525         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
526
527 2009-07-04  Laurent GUERBY  <laurent@guerby.net>
528
529         PR ada/40631
530         * tracebak.c (__gnat_backtrace): Fix old-style definition.
531
532 2009-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
533
534         * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
535
536 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
537
538         PR ada/40609
539         * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
540         ucontext argument.
541
542 2009-07-01  Eric Botcazou  <ebotcazou@adacore.com>
543
544         * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
545
546 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
547
548         * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
549         the type of the left operand if it pads a self-referential type when
550         the right operand is a constructor.
551
552         * gcc-interface/lang-specs.h: Fix copyright date.
553
554 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
555
556         * gcc-interface/decl.c: Include tree-inline.h.
557         (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
558         * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
559         * gcc-interface/utils2.c: Include tree-inline.
560         (known_alignment) <CALL_EXPR>: Likewise.
561
562 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
563
564         * raise-gcc.c: Include dwarf2.h conditionally.
565         
566 2009-06-29  Tom Tromey  <tromey@redhat.com>
567
568         * raise-gcc.c: Include elf/dwarf2.h.
569
570 2009-06-27  Laurent GUERBY  <laurent@guerby.net>
571
572         * tb-gcc.c (trace_callback): Add casts to silence warning.
573
574 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
575
576         * tb-gcc.c: Fix copyright notice.
577
578 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
579
580         * init.c (__gnat_set_globals): Add prototype.
581         * adaint.c (__gnat_binder_supports_auto_init): Likewise.
582         (__gnat_sals_init_using_constructors): Likewise.
583         * gcc-interface/utils.c (gnat_pushlevel): Likewise.
584         (get_block_jmpbuf_decl): Likewise.
585         (gnat_poplevel): Likewise.
586         (merge_sizes): Rename local variable.
587         (copy_type): Likewise.
588         (build_vms_descriptor32): Likewise.
589         (build_vms_descriptor): Likewise.
590         (convert_vms_descriptor64): Likewise.
591         (convert_vms_descriptor32): Likewise.
592         (convert_to_fat_pointer): Likewise.
593         (maybe_unconstrained_array): Likewise.
594         (def_fn_type): Use promoted type with va_arg.
595         * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
596         (substitute_in_type): Rename local variable.
597         * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
598
599 2009-06-26  Laurent GUERBY  <laurent@guerby.net>
600
601         * tb-gcc.c (trace_callback): Use char* instead of void*.
602         * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
603         * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
604         (Attribute_to_gnu): Adjust for above change.
605         (Subprogram_Body_to_gnu): Likewise.
606         * gcc-interface/utils.c (merge_sizes): Rename local variable.
607         (copy_type): Likewise.
608         (build_vms_descriptor32): Likewise.
609         (build_vms_descriptor): Likewise.
610         (convert_vms_descriptor64): Likewise.
611         (convert_vms_descriptor32): Likewise.
612         (convert_to_fat_pointer): Likewise.
613         (maybe_unconstrained_array): Likewise.
614         * gcc-interface/decl.c (substitute_in_type): Likewise.
615
616 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
617
618         * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
619         (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
620         of the upper bound of the index types.
621
622 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
623
624         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
625         out common predicate.  Use the maximum to compute the upper bound of
626         the index type only when it is not wider than sizetype.  Perform the
627         comparison in the index type for the generic expression.  Use real
628         precision to decide whether to generate special types for debugging
629         information.
630
631 2009-06-26  Matthew Gingell  <gingell@adacore.com>
632
633         * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
634
635 2009-06-26  Vincent Celier  <celier@adacore.com>
636
637         * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
638         default.
639
640 2009-06-26  Robert Dewar  <dewar@adacore.com>
641
642         * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
643
644 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
645
646         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
647         correct arguments to create_field_decl.  Remove redundant iteration.
648         Rewrite computation of the maximum size.
649         <E_Array_Subtype>: Reorder and simplify handling of special cases.
650         Rewrite computation of the maximum size.  Use consistent naming.
651         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
652         comparison order for consistency.  Use generic integer node to
653         build the operator and fold the result.
654
655 2009-06-25  Vincent Celier  <celier@adacore.com>
656
657         * vms_data.ads: Minor comment change
658
659 2009-06-25  Gary Dismukes  <dismukes@adacore.com>
660
661         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
662         assignment statement to targeting a caller-provided object when the
663         result type is an interface type.
664
665         * exp_ch6.adb (Expand_Call): Remove redundant test of
666         Is_Limited_Interface (Is_Inherently_Limited is sufficient).
667         (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
668
669         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
670         to OK_For_Limited_Init.
671
672         * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
673         condition so that True is returned for all limited interfaces, not
674         just synchronized ones. Ignore components of an interface type when
675         checking for limited components (such a component can be a parent
676         component).
677
678         * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
679         (OK_For_Limited_Init): Add type parameter.
680
681         * sem_ch3.adb (Check_Initialization): Add type in call to
682         OK_For_Limited_Init.
683         (OK_For_Limited_Init): Add new type param in call to
684         OK_For_Limited_Init_In_05.
685         (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
686         nonlimited type when the context type is a limited interface. Add type
687         on recursive calls.
688
689         * sem_ch4.adb (Analyze_Allocator): Add type in call to
690         OK_For_Limited_Init.
691
692         * sem_ch6.adb (Check_Limited_Return): Add type in call to
693         OK_For_Limited_Init.
694
695         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
696         OK_For_Limited_Init.
697         (Instantiate_Object): Add type in call to OK_For_Limited_Init.
698
699         * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
700         class-wide interface, get the base type before applying Etype, in order
701         to account for class-wide subtypes.
702
703 2009-06-25  Emmanuel Briot  <briot@adacore.com>
704
705         * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
706         prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
707         between gnatmake and gprbuild.
708         (Naming_Data): Removed, no longer used
709         (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
710         needed locally in one subprogram, no need to store forever in the
711         structure.
712         (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
713         a similar role.
714         (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
715         Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
716         Spec_Suffix_Id_Of): removed, no longer used.
717
718 2009-06-25  Javier Miranda  <miranda@adacore.com>
719
720         * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
721         types on qualified expression in calls to imported C++ constructors.
722
723         * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
724         imported C++ constructors.
725
726 2009-06-25  Sergey Rybin  <rybin@adacore.com>
727
728         * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
729
730 2009-06-25  Vincent Celier  <celier@adacore.com>
731
732         * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
733         provided, on Windows change all '/' to '\'.
734
735         * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
736         used. Minor comment changes
737
738         * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
739         Remove_Forbidden_File_Name.
740
741 2009-06-25  Quentin Ochem  <ochem@adacore.com>
742
743         * prj.ads (Unit_Index): Now general access type.
744
745 2009-06-25  Pascal Obry  <obry@adacore.com>
746
747         * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
748
749 2009-06-25  Emmanuel Briot  <briot@adacore.com>
750
751         * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
752         prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
753         computed efficiently from the other fields.
754         (Object_To_Global_Archive): New subprogram
755         (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
756         (Override_Kind): Fix handling of separates in Ada.
757         (Create_Mapping_File): Remove duplicate code
758         (Naming_Data.Implementation_Exception, Specification_Exception):
759         field removed, since never used.
760         (Naming_Data.Specs, .Bodies): field removed, since this is only
761         used while processing the project and is not needed once the tree
762         is in memory. This brings Naming_Data and Lang_Naming_Data
763         closer (same content now, but different use still).
764
765 2009-06-25  Pascal Obry  <obry@adacore.com>
766
767         * sem_ch4.adb: Minor reformatting.
768
769         * a-strsea.adb: Fix confusion between 'Length and 'Last.
770
771 2009-06-25  Ed Schonberg  <schonberg@adacore.com>
772
773         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
774         Unchecked_Access): If the context is an interface type, and the prefix
775         is of the corresponding class-wide type, do not insert a conversion
776         because the pointer displacement has already taken place, and we must
777         retain the class-wide type in a dispatching context.
778
779 2009-06-25  Emmanuel Briot  <briot@adacore.com>
780
781         * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
782         the previous source file.
783         (Create_Mapping): Iterate on sources rather than on units.
784
785 2009-06-25  Emmanuel Briot  <briot@adacore.com>
786
787         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
788         prj-env.adb, prj-env.ads (Slash): removed, no longer used
789         (Source_Data): no longer use Path.Name to point to a locally removed
790         file. Instead we use the field Locally_Removed which is clearer
791
792 2009-06-25  Arnaud Charlet  <charlet@adacore.com>
793
794         * gcc-interface/Make-lang.in: Remove references to sem_maps.o
795
796         * sem_maps.adb, sem_maps.ads: Removed, not used.
797
798 2009-06-25  Ed Falis  <falis@adacore.com>
799
800         * s-vxwext-rtp.ads: Add missing declaration
801
802 2009-06-25  Matthew Gingell  <gingell@adacore.com>
803
804         * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
805         speed up unmapped case.
806
807 2009-06-25  Vincent Celier  <celier@adacore.com>
808
809         * prj-nmsc.adb (Check): Change error message for illegal abstract
810         projects.
811
812 2009-06-25  Robert Dewar  <dewar@adacore.com>
813
814         * gnat_ugn.texi: Add note on use of -gnatct for ASIS
815
816 2009-06-25  Emmanuel Briot  <briot@adacore.com>
817
818         * fmap.ads: Add documentation on mapping files
819
820 2009-06-25  Robert Dewar  <dewar@adacore.com>
821
822         * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
823         reformatting
824
825 2009-06-24  Robert Dewar  <dewar@adacore.com>
826
827         * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
828
829         * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
830         case.
831         (Index): Ditto.
832
833 2009-06-24  Ed Schonberg  <schonberg@adacore.com>
834
835         * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
836         present when checking whether a call may be interpreted as an indexing
837         of the result of a call.
838
839         * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
840         body for a null procedure on the freeze actions for the procedure, so
841         that it will be analyzed at the proper place without premature freezing
842         of actuals.
843
844         * sem_ch3.adb (Check_Completion): Code cleanup. 
845         Do not diagnose a null procedure without a body, if previous errors
846         have disabled expansion.
847
848 2009-06-24  Doug Rupp  <rupp@adacore.com>
849
850         * init.c [VMS] Resignal C$_SIGKILL
851
852 2009-06-24  Ed Falis  <falis@adacore.com>
853
854         * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
855         Define ERROR in body for VxWorks 6 kernel
856
857 2009-06-24  Pascal Obry  <obry@adacore.com>
858
859         * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
860         in [Send/Receive]_Socket.
861
862 2009-06-24  Emmanuel Briot  <briot@adacore.com>
863
864         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
865         prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
866         to several subprograms.
867         (Source_Data.Other_Part): Removed, since can be computed from the
868         language.
869         (Other_Part): New subprogram.
870
871 2009-06-24  Emmanuel Briot  <briot@adacore.com>
872
873         * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
874         the full base name of the file when the suffix doesn't start with a '.'.
875
876 2009-06-24  Vincent Celier  <celier@adacore.com>
877
878         * prj-nmsc.adb (Check): A project declared abstract is legal if no
879         attribute Source_Dirs, Source_Files, Source_List_File or Languages is
880         declared.
881
882 2009-06-24  Robert Dewar  <dewar@adacore.com>
883
884         * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
885         prj-env.adb: Minor reformatting
886
887 2009-06-24  Ed Falis  <falis@adacore.com>
888
889         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
890         s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
891         s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
892         support for VxWorks SMP.
893
894         * gcc-interface/Make-lang.in: Update dependencies
895
896 2009-06-24  Emmanuel Briot  <briot@adacore.com>
897
898         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
899         prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
900         no longer useful.
901         (Source_Data.Lang_Kind): Removed, since it duplicates information
902         already available through Language.Config.
903         (Source_Data.Compile): Removed, since information is already available
904         through the language.
905         (Is_Compilable): New subprogram.
906         (Source_Data.Dependency): Removed, since already available through
907         the language.
908         (Source_Data.Object_Exist, Object_Linked): Removed since available
909         through the language already.
910         (Unit_Data.File_Names): Is now also set in multi_language mode, to
911         bring the two modes closer in the resulting data structures.
912         (Source_Data.Unit): Now a direct pointer to the unit data, rather than
913         just the name that would point into a hash table.
914         (Get_Language_From_Name): New subprogram.
915
916 2009-06-24  Javier Miranda  <miranda@adacore.com>
917
918         * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
919         visible through limited-with context clauses. In addition, avoid an
920         extra tag check that is not required when the class-wide
921         designated types of the operand and target types are
922         the same entity.
923         (Tagged_Membership): Handle entities from the limited view.
924
925 2009-06-24  Emmanuel Briot  <briot@adacore.com>
926
927         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
928         prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
929         (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
930         different vocabularies for similar concepts (Impl/Body_Part and
931         Spec/Specification).
932         (Unit_Data): now points directly to a Source_Id, rather than duplicating
933         some of the information in File_Name_Data. This also saves a bit of
934         memory. However, since we are now using a pointer we need to test
935         for null explicitly in several places of the code
936
937 2009-06-24  Javier Miranda  <miranda@adacore.com>
938
939         * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
940         from processing the type conversion when the node is
941         replaced by an N_Raise_Program_Error node.
942
943 2009-06-24  Hristian Kirtchev  <kirtchev@adacore.com>
944
945         * sem_ch6.adb (Designates_From_With_Type): New routine.
946         (Process_Formals): Since anonymous access types are no longer flagged
947         as from with types, traverse the designated type to determine whether
948         it is coming from a limited view.
949
950         * sem_res.adb: Remove with and use clauses for Sem_Ch10.
951         (Full_Designated_Type): Use Available_View to extract the non-limited /
952         full view of a type.
953
954 2009-06-24  Robert Dewar  <dewar@adacore.com>
955
956         * exp_ch6.adb: Minor reformatting
957
958         * layout.adb: Minor reformatting
959
960         * make.adb: Minor reformatting
961
962 2009-06-24  Thomas Quinot  <quinot@adacore.com>
963
964         * sem_ch10.adb: Minor code reorganization.
965
966 2009-06-24  Eric Botcazou  <ebotcazou@adacore.com>
967
968         * ttypes.ads: Minor editing.
969         
970 2009-06-24  Robert Dewar  <dewar@adacore.com>
971
972         * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
973         in deciding to do call-by-copy code.
974
975 2009-06-24  Vincent Celier  <celier@adacore.com>
976
977         * make.adb (Gnatmake): To decide if an executable should be rebuilt,
978         check if an externally built library file is more current than the
979         executable.
980
981 2009-06-23  Olivier Hainque  <hainque@adacore.com>
982
983         * gcc-interface/utils.c (handle_vector_size_attribute): Import from
984         c-common.c and populate in gnat_internal_attribute_table.
985         
986 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
987
988         * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
989         Available_View only when designated type of an anonymous access type
990         is  limited view.
991
992 2009-06-23  Robert Dewar  <dewar@adacore.com>
993
994         * sem_ch10.adb: Minor reformatting
995
996         * ali.ads: Mino reformatting.
997
998         * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
999         turning off inlining if ASIS mode active).
1000         
1001         * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
1002         This belongs in gnat1drv.adb after switches are scanned.
1003
1004 2009-06-23  Hristian Kirtchev  <kirtchev@adacore.com>
1005
1006         * sem_attr.adb: Add with and use clauses for Sem_Ch10.
1007         (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
1008         when dealing with class-wide types. Detect a legal shadow entity and
1009         retrieve its non-limited view.
1010
1011         * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
1012         subprogram to top package level from Intall_Limited_Withed_Unit.
1013         (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
1014         Add check which prevents the installation of a limited view if the
1015         non-limited view is already visible through a with clause.
1016         (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
1017         legal shadow entity which may occur in subprogram formals of anonymous
1018         access type.
1019
1020         * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
1021
1022         * sem_ch3.adb (Access_Definition): Remove the propagation of flag
1023         From_With_Type from the designated type to the generated anonymous
1024         access type. Remove associated comment.
1025
1026         * sem_res.adb Add with and use clauses for Sem_Ch10.
1027         (Full_Designated_Type): Detect a legal shadow entity and retrieve its
1028         non-limited view. Since the shadow entity may replace a regular
1029         incomplete type, return the available full view.
1030
1031 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
1032
1033         * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
1034         incomplete type declarations. Previous code was potentially quadratic
1035         in the number of visible declarations in any package appearing in a
1036         limited_with_clause.
1037
1038 2009-06-23  Robert Dewar  <dewar@adacore.com>
1039
1040         * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
1041         xref_lib.adb: Minor reformatting
1042
1043 2009-06-23  Robert Dewar  <dewar@adacore.com>
1044
1045         * a-stzhas.adb: Provide dummy body to avoid build problems with old
1046         versions which did have a body for this unit.
1047
1048 2009-06-23  Vincent Celier  <celier@adacore.com>
1049
1050         * prj-attr.adb: Attribute names Initial_Required_Switches and
1051         Final_Required_Switches changed to Leading_Required_Switches and
1052         Trailing_Required_Switches.
1053
1054         * prj-nmsc.adb (Process_Compiler): Attribute names
1055         Initial_Required_Switches and Final_Required_Switches changed to
1056         Leading_Required_Switches and Trailing_Required_Switches.
1057
1058         * prj.ads (Language_Config): Component Initial_Required_Switches and
1059         Final_Required_Switches changed to Leading_Required_Switches and
1060         Trailing_Required_Switches.
1061
1062         * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
1063         Final_Required_Switches; add standard names Leading_Required_Switches
1064         and Trailing_Required_Switches.
1065
1066 2009-06-23  Thomas Quinot  <quinot@adacore.com>
1067
1068         * prj-conf.adb: Minor reformatting
1069
1070         * xref_lib.adb: Minor cleanup
1071
1072 2009-06-23  Emmanuel Briot  <briot@adacore.com>
1073
1074         * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
1075         prj-conf.ads (Check_Configuration): New parameter
1076         Compiler_Driver_Mandatory.
1077
1078 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
1079
1080         * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
1081         context of the current unit has an inline pragma, the instance is not
1082         rewritten as the declaration of the package wrapper. Handle both
1083         possibilities when retrieving the visible subprogram that renames the
1084         instantiation itself.
1085
1086 2009-06-23  Javier Miranda  <miranda@adacore.com>
1087
1088         * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
1089         designated types referencing entities from the limited view.
1090
1091 2009-06-23  Robert Dewar  <dewar@adacore.com>
1092
1093         * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
1094
1095         * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
1096         small values
1097
1098         * prj-conf.ads: Minor reformatting
1099
1100         * prj-conf.adb: Minor reformatting
1101
1102 2009-06-23  Vasiliy Fofanov  <fofanov@adacore.com>
1103
1104         * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
1105         to correspond to the log format that gnatmem now expects.
1106
1107 2009-06-23  Vincent Celier  <celier@adacore.com>
1108
1109         * prj-attr.adb: New attributes Initial_Required_Switches,
1110         Final_Required_Switches and Object_File_Switches
1111         
1112         * prj-nmsc.adb (Process_Compiler): Process new attributes
1113         Name_Final_Required_Switches, Name_Initial_Required_Switches and
1114         Name_Object_File_Switches.
1115
1116         * prj.ads (Language_Config): New component
1117         Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
1118         Compiler_Final_Required_Switches and Object_File_Switches.
1119
1120         * snames.ads-tmpl: New standard names Initial_Required_Switches,
1121         Final_Required_Switches and Object_File_Switches
1122
1123 2009-06-23  Pascal Obry  <obry@adacore.com>
1124
1125         * s-strhas.adb, s-strhas.ads: Minor reformatting.
1126
1127 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
1128
1129         * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
1130         not indicate that the enclosing unit needs a body.
1131
1132 2009-06-23  Emmanuel Briot  <briot@adacore.com>
1133
1134         * prj-conf.ads, prj-conf.adb: New files part of the project manager.
1135
1136 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
1137
1138         * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
1139         primitive equality include it with its source name even if the
1140         operation is currently invisible, to make sure that the corresponding
1141         slot in the dispatch table is reserved for the internal equality
1142         subsequently generated during expansion.
1143
1144 2009-06-23  Matthew Gingell  <gingell@adacore.com>
1145
1146         * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
1147
1148 2009-06-22  Jose Ruiz  <ruiz@adacore.com>
1149
1150         * sysdep.c (__gnat_localtime_tzoff for RTX):
1151         SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
1152         GetTimeZoneInformation instead.
1153
1154 2009-06-22  Robert Dewar  <dewar@adacore.com>
1155
1156         * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
1157
1158 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
1159
1160         * sem_ch12.adb (Collect_Previous_Instances): Do not collect
1161         instantiations declared in a previous generic package body.
1162
1163 2009-06-22  Robert Dewar  <dewar@adacore.com>
1164
1165         * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
1166         restriction No_Direct_Boolean_Operators.
1167
1168 2009-06-22  Thomas Quinot  <quinot@adacore.com>
1169
1170         * bindusg.adb: Minor fixes to gnatbind usage message
1171
1172         * sem_eval.adb: Minor reformatting
1173
1174 2009-06-22  Javier Miranda  <miranda@adacore.com>
1175
1176         * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
1177         freezing point the check on the use of abstract types in object
1178         declarations. Done to allow the declaration of C++ imported variables
1179         or constants whose type corresponds with an imported C++ classes for
1180         which the constructor is not imported.
1181
1182 2009-06-22  Thomas Quinot  <quinot@adacore.com>
1183
1184         * sem_ch6.adb: Minor reformatting
1185
1186 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
1187
1188         * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
1189         component is constrained with an expression rather than with a
1190         discriminant of the enclosing type, use that expression when building
1191         the call to default-initialize the component, when the call is part of
1192         an aggregate with box initialization.
1193
1194 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
1195
1196         * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
1197         unconditional rather than a style check, because a formal name out of
1198         order is suspicious.
1199
1200 2009-06-22  Vincent Celier  <celier@adacore.com>
1201
1202         * prj-nmsc.adb (Locate_Directory): Indicate the project name when
1203         creating a directory automatically.
1204
1205 2009-06-22  Eric Botcazou  <ebotcazou@adacore.com>
1206
1207         * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
1208         untagged derived type, add a hidden component for every constrained
1209         discriminant of the parent type to keep record layout consistent.
1210
1211 2009-06-22  Thomas Quinot  <quinot@adacore.com>
1212
1213         * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
1214         copy).
1215
1216 2009-06-22  Matthew Gingell  <gingell@adacore.com>
1217
1218         * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
1219         s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
1220         g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
1221         a-swuwha.adb: New unit System.String_Hash.  
1222         Refactor redundant cut and pasted hash functions with instances of a
1223         new generic hash function.
1224         Implement a new string hashing algorithm which appears in testing to
1225         be move effective than to previous approach.
1226
1227 2009-06-22  Ed Falis  <falis@adacore.com>
1228
1229         * sysdep.c: remove include for nfsLib.h and an NFS specific error
1230         message for VxWorks 653 vThreads: not supported by the OS.
1231
1232         * gsocket.h: disable sockets for VxWorks 653 vThreads.
1233
1234 2009-06-22  Robert Dewar  <dewar@adacore.com>
1235
1236         * sem_ch6.adb: Add ??? comment for bad use of Style_Check
1237
1238 2009-06-22  Robert Dewar  <dewar@adacore.com>
1239
1240         * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
1241         by Sloc_Range.
1242
1243         * freeze.adb: Minor comment updates
1244
1245         * s-valrea.adb (Bad_Based_Value): New procedure
1246         (Scan_Real): Raise exceptions with messages
1247
1248 2009-06-22  Matthew Gingell  <gingell@adacore.com>
1249
1250         * adaint.h: Complete previous change.
1251
1252 2009-06-22  Thomas Quinot  <quinot@adacore.com>
1253
1254         * exp_ch7.ads, exp_ch3.adb: Minor reformatting
1255
1256 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
1257
1258         * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
1259         enabled, emit warning when a non-controlling argument of the overriding
1260         operation appears out of place vis-a-vis of the formal of the
1261         overridden operation.
1262
1263 2009-06-22  Vincent Celier  <celier@adacore.com>
1264
1265         * gnatcmd.adb (Check_Files): Close temporary files after all file names
1266         have been written into it.
1267
1268 2009-06-22  Matthew Gingell  <gingell@adacore.com>
1269
1270         * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
1271         available.
1272
1273 2009-06-22  Thomas Quinot  <quinot@adacore.com>
1274
1275         * sem_disp.adb (Check_Direct_Call): Handle the case where the full
1276         view of the root type is visible at the point of the call.
1277
1278 2009-06-22  Pat Rogers  <rogers@adacore.com>
1279
1280         * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
1281
1282 2009-06-22  Jerome Lambourg  <lambourg@adacore.com>
1283
1284         * freeze.adb: Add comments.
1285
1286 2009-06-21  Thomas Quinot  <quinot@adacore.com>
1287
1288         * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
1289         sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
1290         Factor out code to new subprogram...
1291         (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
1292         for a default initialized variable.
1293         (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
1294         entity that has an associated freeze node.
1295         (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
1296         If there is an init call for the object, defer it to the object freeze
1297         point.
1298         (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
1299         name clash with new subprogram introduced in Exp_Util.
1300
1301 2009-06-21  Robert Dewar  <dewar@adacore.com>
1302
1303         * einfo.ads: Minor reformatting
1304
1305 2009-06-21  Ed Falis  <falis@adacore.com>
1306
1307         * env.c (__gnat_environ): return NULL for vThreads - unimplemented
1308
1309 2009-06-21  Eric Botcazou  <ebotcazou@adacore.com>
1310
1311         * einfo.ads: Update comments.
1312
1313 2009-06-21  Hristian Kirtchev  <kirtchev@adacore.com>
1314
1315         * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
1316         where the controlling formal is of private class-wide type whose
1317         completion is a synchronized type can be converted into direct calls.
1318
1319 2009-06-21  Vincent Celier  <celier@adacore.com>
1320
1321         * gnatcmd.adb (Check_Files): When all sources of the project are to be
1322         indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
1323         of sources using -files=, so that the distinction can be made by the
1324         tool of a call with no source (to display the usage) from a call with
1325         a project file that contains no source.
1326
1327 2009-06-21  Jerome Lambourg  <lambourg@adacore.com>
1328
1329         * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
1330         case of VM convention arrays.
1331
1332 2009-06-20  Robert Dewar  <dewar@adacore.com>
1333
1334         * a-nudira.adb: Minor reformatting
1335
1336 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
1337
1338         * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
1339         expressions (possibly from a parent type) indicate that the scope of
1340         the new itypes is the initialization procedure being built.
1341
1342 2009-06-20  Robert Dewar  <dewar@adacore.com>
1343
1344         * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
1345         Needs_64, and now computed without anomolies for some dynamic types.
1346
1347 2009-06-20  Thomas Quinot  <quinot@adacore.com>
1348
1349         * sem_prag.adb: Minor reformatting
1350
1351         * exp_disp.ads: Minor reformatting
1352
1353 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
1354
1355         * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
1356         function call is a legal expression to initialize a limited object.
1357
1358         * exp_ch3.adb: Rename various freeze operations that perform expansion
1359         actions, to prevent confusion with subprograms in the freeze package.
1360
1361 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
1362
1363         * sem.adb (Walk_Library_Units): Check instantiations first.
1364
1365         * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
1366         private primitive if it is a function with a controlling result that is
1367         a type extension with progenitors.
1368
1369         * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
1370         a primitive operation of a synchronized tagged type that has a
1371         controlling result.
1372
1373 2009-06-20  Thomas Quinot  <quinot@adacore.com>
1374
1375         * einfo.ads: Fix typo.
1376
1377 2009-06-20  Ed Falis  <falis@adacore.com>
1378
1379         * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
1380
1381 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
1382
1383         * gcc-interface/trans.c (emit_check): Do not wrap up the result
1384         in a SAVE_EXPR.
1385         (protect_multiple_eval): Always protect complex expressions.
1386
1387 2009-06-19  Emmanuel Briot  <briot@adacore.com>
1388
1389         * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
1390         make sure we always return a name ending with a path separator.
1391
1392 2009-06-19  Javier Miranda  <miranda@adacore.com>
1393
1394         * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
1395         Save and restore the visibility of the parent when installed.
1396
1397 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
1398
1399         * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
1400         by Common which contains all these fields.
1401
1402         * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
1403         Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
1404         Remove code duplication in this package by means of calling the
1405         equivalent code in s-taprob.
1406
1407 2009-06-19  Robert Dewar  <dewar@adacore.com>
1408
1409         * a-einuoc.ads: Minor reformatting
1410
1411 2009-06-19  Ed Falis  <falis@adacore.com>
1412
1413         * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
1414         s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
1415
1416 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
1417
1418         * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
1419
1420 2009-06-19  Robert Dewar  <dewar@adacore.com>
1421
1422         * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
1423         ranges
1424
1425         * checks.adb (Determine_Range): Move the test for generic types later.
1426
1427         * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
1428         cases.
1429         (Eval_Relational_Op): Fold more cases including string compares
1430
1431         * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
1432         function.
1433
1434 2009-06-19  Robert Dewar  <dewar@adacore.com>
1435
1436         * sem_type.ads, sem_ch12.adb: Minor reformatting
1437
1438         * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
1439
1440 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
1441
1442         * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
1443         primitive operation of a rivate extension whose controlling argument
1444         is an out parameter.
1445
1446         * sem.adb (Walk_Library_Units): exclude generic package declarations
1447         from check.
1448
1449 2009-06-19  Thomas Quinot  <quinot@adacore.com>
1450
1451         * i-vxwoio.ads: Add comments
1452
1453 2009-06-19  Thomas Quinot  <quinot@adacore.com>
1454
1455         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
1456         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
1457         g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
1458         (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
1459         (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
1460         Thin_Common.Socket_Ioctl.
1461         (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
1462         __gnat_socket_ioctl.
1463         (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
1464         argument after the file descriptor and request code.
1465
1466 2009-06-19  Robert Dewar  <dewar@adacore.com>
1467
1468         * checks.adb: Minor reformatting
1469
1470 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
1471
1472         * env.c (__gnat_environ): RTX does not support this functionality.
1473
1474 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
1475
1476         * sem.adb (Walk_Library_Items): Include bodies in the list of units to
1477         traverse, to account for front-end inlining and instantiations in a
1478         spec or in the main unit.
1479
1480 2009-06-19  Robert Dewar  <dewar@adacore.com>
1481
1482         * checks.adb (Determine_Range): Do not attempt to get range of generic
1483         type.
1484
1485 2009-06-19  Sergey Rybin  <rybin@adacore.com>
1486
1487         * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
1488         gnatmetric option for generating the schema file for gnatmetric XML
1489         output. Add corresponding VMS qualifier.
1490
1491 2009-06-19  Robert Dewar  <dewar@adacore.com>
1492
1493         * g-cgi.adb: Minor reformatting
1494
1495 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
1496
1497         * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
1498         signal code for SIGFPE and raise Program_Error for SIGILL.
1499
1500         * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
1501
1502 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
1503
1504         * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
1505         generic package if there is a visibility candidate that is declared in
1506         a regular package.
1507
1508 2009-06-18  Olivier Hainque  <hainque@adacore.com>
1509
1510         * system-aix64.ads: New file.
1511         * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
1512         64bit system.ads for ppc64 multilib variants.
1513
1514 2009-06-16  Robert Dewar  <dewar@adacore.com>
1515             Olivier Hainque  <hainque@adacore.com>
1516
1517         Relax constraints on Machine_Attribute argument types:
1518         * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
1519         missing type.
1520         (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
1521         * gcc-interface/decl.c (prepend_attributes): Accept static
1522         expressions of any type as attribute arguments, not only string
1523         literals.
1524         * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
1525         the relaxation of the restriction on the Info argument type.
1526         
1527 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
1528
1529         * gcc-interface/utils.c (record_builtin_type): Pass location
1530         argument to build_decl.
1531         (create_type_stub_decl): Same.
1532         (create_type_decl): Same.
1533         (create_var_decl_1): Same.
1534         (create_field_decl): Same.
1535         (create_param_decl): Same.
1536         (create_label_decl): Same.
1537         (create_subprog_decl): Same.
1538         * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
1539         * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
1540         argument to create_artificial_label.
1541         (Loop_Statement_to_gnu): Same.
1542         (Subprogram_Body_to_gnu): Same.
1543         (gnat_gimplify_stmt): Same.
1544
1545 2009-06-11  Richard Henderson  <rth@redhat.com>
1546
1547         * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
1548         OPT_gdwarfplus.
1549
1550 2009-06-11  Ed Schonberg  <schonberg@adacore.com>
1551
1552         * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
1553         accessibiliy check on access_to_subprogram in the context of an
1554         anonymous access that is not an access parameter.
1555
1556 2009-06-11  Eric Botcazou  <ebotcazou@adacore.com>
1557
1558         * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
1559         
1560 2009-06-11  Quentin Ochem  <ochem@adacore.com>
1561
1562         * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
1563         comments for message handled by GPS.
1564
1565 2009-06-11  Matthew Gingell  <gingell@adacore.com>
1566
1567         * adaint.c: Use fopen64 instead of fopen on platforms where we know
1568         it's supported.
1569
1570 2009-06-11  Pascal Obry  <obry@adacore.com>
1571
1572         * g-cgi.ads: Fix comment typo.
1573
1574         * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
1575
1576 2009-06-10  Eric Botcazou  <ebotcazou@adacore.com>
1577
1578         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
1579         a reference to the original type for the type of the field of the
1580         XVS type.
1581         (maybe_pad_type): Likewise.
1582
1583         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
1584         common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
1585         Pass correctly typed arguments to create_field_decl.
1586         <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
1587         case of contrained discriminants as well.  Use the padded base type
1588         in the other case as well.  Rename temporary variable.  Tweak test.
1589         Factor common access pattern.  Set GNU_SIZE only once.
1590
1591 2009-06-09  Olivier Hainque  <hainque@adacore.com>
1592
1593         * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
1594         helper for build_call_alloc_dealloc with arguments to be interpreted
1595         identically.  Process the case where a GNAT_PROC to call is provided.
1596         (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
1597         and return an allocator for DATA_SIZE bytes aimed at containing a
1598         DATA_TYPE object, using the default __gnat_malloc allocator.  Honor
1599         DATA_TYPE alignments greater than what the latter offers.
1600         (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
1601         release a DATA_TYPE object designated by DATA_PTR using the
1602         __gnat_free entry point.
1603         (build_call_alloc_dealloc): Expect object data type instead of naked
1604         alignment constraint. Use the new helpers.
1605         (build_allocator): Remove special processing for the super-aligned
1606         case, now handled by build_call_alloc_dealloc.  Pass data
1607         type instead of the former alignment argument, as expected by the new
1608         interface.
1609         * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
1610         and comment.
1611         * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
1612         Remove special processing for the super-aligned case, now handled
1613         by build_call_alloc_dealloc.  Pass data type instead of the former
1614         alignment argument, as expected by the new interface.
1615         
1616 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
1617
1618         * lib-writ.adb (flag_compare_debug): Import.
1619         (Write_ALI): Skip during -fcompare-debug-second.
1620
1621 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1622
1623         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
1624         adjusting the discriminant nodes in an extension, use the full view
1625         of the parent subtype if it is of a private kind.
1626
1627 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1628
1629         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
1630         _Parent field, if any, to the record before adding the other fields.
1631         <E_Record_Subtype>: Put the _Controller field before the other fields
1632         except for the _Tag or _Parent fields.
1633         (components_to_record): Likewise.  Retrieve the _Parent field from the
1634         record type.
1635
1636 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
1637
1638         * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
1639         remove unused parameter and simplify.
1640         (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS.  Factor
1641         common predicate.  Rewrite loop for clarity.  Use GNU_TYPE directly
1642         as context for all discriminants.  Fix formatting nits.
1643         <E_Record_Subtype>: Add cosmetic 'break'.  Test Has_Discriminants
1644         before Discriminant_Constraint.  Adjust for above renaming.  Do not
1645         set GNU_TYPE more than once.
1646         (elaborate_entity): Test Has_Discriminants on the entity and use
1647         Implementation_Base_Type.
1648         (components_to_record): Rename component_list to gnat_component_list.
1649         Retrieve the _Parent field from the list.  Fix nits in comments.
1650         Clarify logic in loop.  Pass correct arguments to create_field_decl.
1651
1652 2009-06-02  Eric Botcazou  <ebotcazou@adacore.com>
1653
1654         * gcc-interface/Make-lang.in: Fix formatting.
1655
1656 2009-06-01  Olivier Hainque  <hainque@adacore.com>
1657             Eric Botcazou  <ebotcazou@adacore.com>
1658         
1659         * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
1660         to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
1661         on the result if at least one of the input fields couldn't be output
1662         as a static constant any more.
1663
1664 2009-06-01  Olivier Hainque  <hainque@adacore.com>
1665             Eric Botcazou  <ebotcazou@adacore.com>
1666         
1667         * gcc-interface/utils2.c (gnat_build_constructor): Factor
1668         out code.  Use initializer_constant_valid_for_bitfield_p and
1669         CONSTRUCTOR_BITFIELD_P for bit-fields.
1670
1671 2009-05-26  Ian Lance Taylor  <iant@google.com>
1672
1673         * gcc-interface/Makefile.in (COMPILER): Define.
1674         (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
1675         (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
1676         (seh_init.o, tracebak.o): Likewise.
1677         * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
1678         (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
1679         (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
1680         (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
1681         (ada/utils2.o): Likewise.
1682
1683 2009-05-24  Olivier Hainque  <hainque@adacore.com>
1684
1685         * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
1686         * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
1687         Add -auxbase variants to the list of recognized internal switches.
1688         * back_end.adb (Scan_Back_End_Switches): Use the new functions and
1689         adjust comments.
1690         * lib.ads: Make comment on internal GCC switches more general.
1691         * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
1692         as for C.       
1693         
1694 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
1695
1696         * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
1697
1698 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
1699
1700         * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
1701         types.
1702
1703 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
1704
1705         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
1706         original type because of the alignment when there is an address clause.
1707
1708 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
1709
1710         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
1711         discriminants affect the shape of the subtype, retrieve the GCC type
1712         directly from the original field if the GNAT types for the field and
1713         the original field are the same.
1714
1715 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
1716
1717         * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
1718         New macros.
1719         (TYPE_RM_VALUES): Likewise.
1720         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
1721         (SET_TYPE_RM_SIZE): New macro.
1722         (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
1723         (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
1724         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
1725         * gcc-interface/gigi.h (create_range_type): Declare.
1726         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
1727         Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
1728         <E_Signed_Integer_Subtype>: Build a regular integer type first and
1729         then set the RM bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
1730         <E_Floating_Point_Subtype>: Build a regular floating-point type first
1731         and then set the RM bounds.
1732         <E_Array_Type>: Use create_range_type instead of build_range_type.
1733         <E_Array_Subtype>: Build a regular integer type first and then set
1734         the RM bounds for the extra subtype.
1735         <E_String_Literal_Subtype>: Use create_range_type instead of
1736         build_range_type.
1737         <all>: Set the RM bounds for enumeration types and the GCC bounds for
1738         floating-point types.
1739         (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
1740         (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
1741         to set the bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
1742         (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
1743         types and with RM bounds for subtypes.
1744         * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
1745         (gnat_print_type) <REAL_TYPE>: New case.
1746         <ENUMERAL_TYPE>: Fall through to above case.
1747         (gnat_get_subrange_bounds): New function.
1748         * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
1749         TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
1750         * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
1751         for booleans.  Adjust and use SET_TYPE_RM_SIZE to set the RM size.
1752         (create_range_type): New function.
1753         (create_param_decl): Build a regular integer type first and then set
1754         the RM bounds for the extra subtype.
1755         (unchecked_convert): Remove kludge for 'Valid.
1756         * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
1757         the index to sizetype instead of TYPE_DOMAIN.
1758
1759 2009-05-14  Eric Botcazou  <ebotcazou@adacore.com>
1760
1761         * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
1762         parameter and move check for static expression to...
1763         (elaborate_expression): ...here.  Adjust call to above function.
1764         (gnat_to_gnu_entity): Likewise for all calls.  Use correct arguments
1765         in calls to elaborate_expression.
1766         (elaborate_entity): Likewise.
1767         (substitution_list): Likewise.
1768         (maybe_variable): Fix formatting.
1769         (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
1770         missing guard.
1771         * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
1772
1773 2009-05-07  Arnaud Charlet  <charlet@adacore.com>
1774
1775         * gcc-interface/Make-lang.in: Update dependencies.
1776
1777 2009-05-06  Laurent GUERBY  <laurent@guerby.net>
1778
1779         * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
1780         Define sa_handler_pos.
1781         * s-osinte-linux.ads: Use it.
1782         * s-linux-mipsel.ads: New.
1783         * system-linux-mips64el.ads: New.
1784         * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
1785         mips64el-linux.
1786
1787 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
1788
1789         * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
1790         targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
1791         opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
1792         (Tagged_Type_Expansion): New flag.
1793         Replace use of VM_Target related to tagged types expansion by
1794         Tagged_Type_Expansion, since tagged type expansion is not necessarily
1795         linked to VM targets.
1796
1797 2009-05-06  Robert Dewar  <dewar@adacore.com>
1798
1799         * sem_attr.adb: Add processing for Standard'Compiler_Version
1800
1801         * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
1802         skipping.
1803         (Expr_First_Char): Add ??? comment that paren skipping needs work
1804         (Expr_Last_Char): Add ??? comment that paren skipping needs work
1805
1806         * exp_attr.adb: Add processing for Compiler_Version
1807
1808         * sem_attr.adb: New attribute Compiler_Version
1809
1810         * snames.ads-tmpl: Add entries for Compiler_Version attribute
1811
1812         * gnat_rm.texi: Document Compiler_Version attribute
1813
1814 2009-05-06  Robert Dewar  <dewar@adacore.com>
1815
1816         * errout.adb: Minor reformatting
1817
1818         * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
1819         sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
1820         styleg.adb: Add stylized comments to error messages that are included
1821         in the codefix circuitry of IDE's such as GPS.
1822
1823 2009-05-06  Sergey Rybin  <rybin@adacore.com>
1824
1825         * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
1826         new form of the rule parameter that allows to specify the suffix for
1827         access-to-access type names.
1828
1829 2009-05-06  Robert Dewar  <dewar@adacore.com>
1830
1831         * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
1832         out parameter assigned when exception handlers are present.
1833
1834         * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
1835         assignments on exit.
1836
1837         * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
1838         sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
1839         prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
1840         par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
1841         messages that are included in the codefix circuitry of IDE's such as
1842         GPS.
1843
1844         * sinput.ads, sinput.adb (Expr_First_Char): New function
1845         (Expr_Last_Char): New function
1846
1847 2009-05-06  Sergey Rybin  <rybin@adacore.com>
1848
1849         * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
1850         Add formal definition for extra exit point metric
1851
1852 2009-05-06  Pascal Obry  <obry@adacore.com>
1853
1854         * adaint.c: Support for setting attributes on unicode filename on
1855         Windows.
1856
1857 2009-05-06  Robert Dewar  <dewar@adacore.com>
1858
1859         * sem_warn.adb: Minor reformatting
1860
1861 2009-05-06  Javier Miranda  <miranda@adacore.com>
1862
1863         * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
1864         not have discriminants or components with default expressions.
1865         (Analyze_Pragma): For pragma CPP_Class check that imported types
1866         have no discriminants and components have no default expression.
1867
1868         * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
1869         class-wide types in the expression of a record component association.
1870
1871 2009-05-06  Sergey Rybin  <rybin@adacore.com>
1872
1873         * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
1874
1875         * gnat_ugn.texi: Add description for the new extra exit points metric
1876         (gnatmetric section).
1877
1878 2009-05-06  Robert Dewar  <dewar@adacore.com>
1879
1880         * s-fileio.adb: Minor comment update
1881
1882         * sem_ch8.adb: Minor reformatting
1883
1884         * exp_ch3.adb: Update comments.
1885
1886 2009-05-06  Tristan Gingold  <gingold@adacore.com>
1887
1888         * init.c, s-osinte-darwin.ads: Reduce alternate stack size
1889
1890 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
1891
1892         * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
1893         Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
1894
1895         * gcc-interface/Make-lang.in: Update dependencies
1896
1897 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
1898
1899         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
1900         change. The context clause of a generic instance declaration must be
1901         preserved until the end of the compilation, because it may have to be
1902         installed/removed repeatedly.
1903         The latest change to sem.adb ensures that the context of both spec and
1904         body of an instance is traversed before the instance itself, making
1905         this patch redundant.
1906
1907 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
1908
1909         * sem_aggr.adb: Fix typo.
1910
1911 2009-05-06  Thomas Quinot  <quinot@adacore.com>
1912
1913         * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
1914         declaration, do not adjust if the declaration is to be rewritten into
1915         a renaming.
1916
1917 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
1918
1919         * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
1920         discriminant part.
1921
1922 2009-05-06  Bob Duff  <duff@adacore.com>
1923
1924         * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
1925         otherwise the compiler would be allowed to optimize away the cleanup
1926         code.
1927
1928 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
1929
1930         * gnat_ugn.texi: Fix typo.
1931
1932 2009-05-06  Thomas Quinot  <quinot@adacore.com>
1933
1934         * g-debuti.adb: Minor reformatting
1935
1936         * exp_attr.adb: Minor reformatting
1937
1938 2009-05-06  Robert Dewar  <dewar@adacore.com>
1939
1940         * sem_aggr.adb: Minor reformatting.
1941
1942         * g-socthi-vms.adb: Minor reformatting
1943
1944 2009-05-06  Bob Duff  <duff@adacore.com>
1945
1946         * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
1947         (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
1948
1949 2009-05-06  Bob Duff  <duff@adacore.com>
1950
1951         * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
1952         flags.
1953
1954 2009-05-06  Javier Miranda  <miranda@adacore.com>
1955
1956         * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
1957         (Resolve_Extension_Aggregate): Do not reject C++ constructors in
1958         extension aggregates.
1959         (Resolve_Record_Aggregate): Add support for C++ constructors in
1960         extension aggregates.
1961
1962         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
1963         constructors in extension aggregates.
1964
1965 2009-05-06  Robert Dewar  <dewar@adacore.com>
1966
1967         * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
1968         clause.
1969
1970 2009-05-06  Thomas Quinot  <quinot@adacore.com>
1971
1972         * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
1973         packed type, since on OpenVMS, struct msghdr is packed.
1974
1975 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
1976
1977         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
1978         call returning an unconstrained composite value, create the proper
1979         subtype for it, as is done for object dclarations with unconstrained
1980         nominal subtypes. Perform this transformation regarless of whether
1981         call comes from source.
1982
1983 2009-05-06  Robert Dewar  <dewar@adacore.com>
1984
1985         * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
1986         records
1987
1988         * gnat_rm.texi:
1989         Add documentation for pragma Implicit_Packing applied to record
1990         types.
1991
1992 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
1993
1994         * sem.adb (Walk_Library_Items): Place all with_clauses of an
1995         instantiation on the spec, because late instance bodies may generate
1996         with_clauses for the instance body but are inserted in the instance
1997         spec.
1998
1999 2009-05-06  Emmanuel Briot  <briot@adacore.com>
2000
2001         * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
2002         support for returning the directory even if it doesn't exist. This is
2003         used for the object directory, since we are always setting it to a
2004         non-null value, and we should set it to an absolute name rather than a
2005         relative name for the sake of external tools that might depend on it.
2006         (Check_Library_Attributes): When Project.Library_Dir is known, check
2007         that the directory exists.
2008
2009 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
2010
2011         * sem_attr.adb (Check_Dereference): If the prefix of an attribute
2012         reference is an implicit dereference, do not freeze the designated type
2013         if within a default expression or when preanalyzing a pre/postcondtion.
2014
2015 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
2016
2017         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
2018         call returning an unconstrained composite value, create the proper
2019         subtype for it, as is done for object dclarations with unconstrained
2020         nominal subtypes
2021
2022 2009-05-06  Robert Dewar  <dewar@adacore.com>
2023
2024         * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
2025         improvements
2026
2027         * freeze.adb: Minor reformatting
2028
2029 2009-05-06  Thomas Quinot  <quinot@adacore.com>
2030
2031         * sem_ch3.adb (Access_Type_Declaration): An access type whose
2032         designated type is a limited view from a limited with clause (flagged
2033         From_With_Type) is not itself such a limited view.
2034
2035 2009-05-06  Emmanuel Briot  <briot@adacore.com>
2036
2037         * prj-nmsc.adb: Remove unused variable.
2038
2039         * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
2040         prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
2041         makeutl.ads, since not all users of prj.ads need this.
2042
2043 2009-05-06  Javier Miranda  <miranda@adacore.com>
2044
2045         * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
2046         constructor in case of aggregates whose type is a CPP_Class type.
2047
2048 2009-05-06  Robert Dewar  <dewar@adacore.com>
2049
2050         * sem_ch13.adb: Minor comment additions
2051
2052         * osint.adb: Minor reformatting
2053
2054 2009-05-06  Pascal Obry  <obry@adacore.com>
2055
2056         * initialize.c: On Windows, keep full pathname to expanded command
2057         line patterns.
2058
2059 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
2060
2061         * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
2062         an aggregate with box default is of a discriminated private type, do
2063         not build a subaggregate for it.
2064         A proper call to the initialization procedure is generated for it.
2065
2066 2009-05-06  Thomas Quinot  <quinot@adacore.com>
2067
2068         * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
2069         (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
2070         Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
2071         use standard array code for Standard.String.
2072         (Exp_Dist): Bump PolyORB s-parint API version to 3.
2073         (Rtsfind): New entities TA_Std_String, Unbounded_String.
2074
2075 2009-05-06  Robert Dewar  <dewar@adacore.com>
2076
2077         * g-comlin.ads: Minor reformatting
2078
2079         * xoscons.adb: Minor reformatting
2080
2081 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
2082
2083         * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
2084         Underlying_Type before retrieving the type definition for gathering
2085         components, to account for the case where the type is private.
2086
2087 2009-05-06  Tristan Gingold  <gingold@adacore.com>
2088
2089         * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
2090
2091 2009-05-06  Thomas Quinot  <quinot@adacore.com>
2092
2093         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2094         g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
2095         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
2096         (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
2097         Windows versions): Fix incorrect base
2098         address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
2099         (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
2100         System.Address for the To parameter instead of a Sockaddr_In_Access, to
2101         achieve independance from AF_INET family, and also to allow this
2102         parameter to be retrieved from a Msghdr for the Windows case where
2103         these routines are used to implement C_Sendmsg and C_Recvmsg.
2104
2105 2009-05-06  Bob Duff  <duff@adacore.com>
2106
2107         * g-expect.adb, g-expect.ads: Minor reformatting
2108
2109         * sdefault.ads: Minor comment fix
2110
2111         * g-expect-vms.adb: Minor reformatting
2112
2113         * table.ads, table.adb (Append_All): New convenience procedure for
2114         appending a whole array.
2115
2116         * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
2117         box message. Call Osint.Dump_Source_File_Names to print out the file
2118         list, instead of rummaging around in various data structures.
2119
2120         * debug.adb: New switch -gnatd.n, to print source file names as they
2121         are read.
2122
2123         * alloc.ads: Add parameters for Osint.File_Name_Chars.
2124
2125         * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
2126         out source file names during a "bug box".
2127         (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
2128         (Read_Source_File): Print out the file name, if requested via -gnatd.n.
2129         If it's not part of the runtimes, store it for later printing by
2130         Dump_Source_File_Names.
2131
2132 2009-05-06  Javier Miranda  <miranda@adacore.com>
2133
2134         * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
2135         documentation and add reference to the GNAT user guide for further
2136         details.
2137
2138 2009-05-06  Javier Miranda  <miranda@adacore.com>
2139
2140         * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
2141         also wrong examples that use extension aggregates.
2142
2143 2009-05-06  Albert Lee  <lee@adacore.com>
2144
2145         * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
2146         of Msg_Iovlen_T for VMS.
2147
2148 2009-05-04   Laurent GUERBY  <laurent@guerby.net>
2149
2150         PR ada/38874
2151         * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
2152         
2153 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2154
2155         * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
2156         box-defaulted operator in an instantiation, when the type of the
2157         operands is not directly visible.
2158
2159 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
2160
2161         * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
2162         (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
2163         analysis of the ancestor part. Remove prohibition against limited
2164         interpretations of the ancestor expression in the case of Ada 2005.
2165         Revise error message in overloaded case, adding a message to cover
2166         the Ada 2005 case.
2167
2168 2009-04-29  Thomas Quinot  <quinot@adacore.com>
2169
2170         * xoscons.adb: Minor reformatting
2171
2172 2009-04-29  Bob Duff  <duff@adacore.com>
2173
2174         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
2175         attribute_definition_clauses for the following attributes when the
2176         -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
2177         Storage_Size, Write. Otherwise, we get spurious errors (for example,
2178         missing Read attribute on remote types).
2179
2180         * gnat_ugn.texi: Document the change, and add a stern warning.
2181
2182 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2183
2184         * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
2185         disabled not just for the current scope, but for the innermost dynamic
2186         scope as well.
2187
2188 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
2189
2190         * gcc-interface/Make-lang.in: Update dependencies
2191
2192 2009-04-29  Vincent Celier  <celier@adacore.com>
2193
2194         * prj-part.adb: Minor comment update
2195
2196 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2197
2198         * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
2199         box-initialized records with discriminated subcomponents that are
2200         constrained by discriminants of enclosing components. New subsidiary
2201         procedures Add_Discriminant_Values, Propagate_Discriminants.
2202
2203 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
2204
2205         * g-socket.adb: Code clean up.
2206
2207 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
2208
2209         * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
2210         function entity, to cover the case of a parameterless function call
2211         that has not been resolved.
2212
2213 2009-04-29  Robert Dewar  <dewar@adacore.com>
2214
2215         * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
2216         reformatting and comment updates.
2217
2218 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
2219
2220         * gnat_ugn.texi: Update some documentation about interfacing with C++
2221         Mention -fkeep-inline-functions.
2222
2223         * gnat_ugn.texi: Minor edits
2224
2225 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2226
2227         * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
2228         for a defaulted component of an enclosing aggregate, inherit the type
2229         from the component declaration of the enclosing type. 
2230
2231 2009-04-29  Albert Lee  <lee@adacore.com>
2232
2233         * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
2234         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
2235         (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
2236         msg_iovlen field in struct msghdr is 32 or 64 bits wide.
2237         Relocate the Msghdr record type from GNAT.Sockets.Thin to
2238         GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
2239         type for the Msg_Iovlen field.
2240
2241 2009-04-29  Vincent Celier  <celier@adacore.com>
2242
2243         * sinput-l.adb (Load_File): When preprocessing, set temporarily the
2244         Source_File_Index_Table entries for the source, to avoid crash when
2245         reporting an error.
2246
2247         * gnatcmd.adb (Test_If_Relative_Path): Use
2248         Makeutl.Test_If_Relative_Path.
2249         
2250         * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
2251         Including_RTS is True.
2252
2253         * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
2254         Including_RTS defaulted to False.
2255
2256         * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
2257         a default value.
2258
2259 2009-04-29  Javier Miranda  <miranda@adacore.com>
2260
2261         * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
2262
2263 2009-04-29  Javier Miranda  <miranda@adacore.com>
2264
2265         * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
2266         associated with dyamically tagged expressions if the expression
2267         initializing a tagged type corresponds with a non default CPP
2268         constructor.
2269         (OK_For_Limited_Init): CPP constructor calls are OK for initialization
2270         of limited type objects.
2271
2272         * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
2273         when a CPP constructor is called in an assignment. Disable also the
2274         error message associated with dyamically tagged expressions if the
2275         exporession initializing a tagged type corresponds with a non default
2276         CPP constructor.
2277
2278         * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
2279         non-default C++ constructors.
2280
2281         * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
2282
2283         * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
2284         non-default constructors.
2285         (Init_Proc): Add support for non-default constructors.
2286
2287         * exp_disp.adb (Set_Default_Constructor): Removed.
2288         (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
2289         but extending its functionality to handle non-default constructors.
2290
2291         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
2292         constructors. Minor code cleanup removing unrequired label and goto
2293         statement.
2294
2295         * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
2296         constructors.
2297         (Build_Init_Statements): Add support for non-default constructors.
2298         (Expand_N_Object_Declaration): Add support for non-default constructors.
2299         (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
2300         to Set_CPP_Constructors.
2301
2302         * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
2303         non-default constructors.
2304         Required to handle its use in build-in-place statements.
2305
2306         * gnat_rm.texi (CPP_Constructor): Document new extended use of this
2307         pragma for non-default C++ constructors and the new compiler support
2308         that allows the use of these constructors in record components, limited
2309         aggregates, and extended return statements.
2310
2311 2009-04-29  Vincent Celier  <celier@adacore.com>
2312
2313         * prj-part.adb (Parse_Single_Project): Do not attempt to find a
2314         project extending an abstract project.
2315
2316 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
2317
2318         * targparm.ads: Fix oversight.
2319
2320 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2321
2322         * lib-xref.adb (Output_Overridden_Op): Follow several levels of
2323         derivation when necessary, to find the user-subprogram that is actally
2324         being overridden.
2325
2326 2009-04-29  Robert Dewar  <dewar@adacore.com>
2327
2328         * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
2329         components
2330
2331 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2332
2333         * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
2334         primitive operation, rather than source line of synchronized type, when
2335         building the wrapper for a primitive operation that overrides an
2336         operation inherited from a progenitor, to improve the error message on
2337         duplicate declarations.
2338
2339         * sem_ch3.adb (Process_Full_View): Use new signature of
2340         Build_Wrapper_Spec.
2341
2342 2009-04-29  Robert Dewar  <dewar@adacore.com>
2343
2344         * prj-nmsc.ads: Minor reformatting
2345
2346 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
2347
2348         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
2349         expression on the existing parent If statement.
2350
2351 2009-04-29  Robert Dewar  <dewar@adacore.com>
2352
2353         * prj-proc.adb, prj.ads: Minor reformatting
2354
2355 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
2356
2357         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
2358         existing parent If statement on the newly created one.
2359
2360 2009-04-29  Emmanuel Briot  <briot@adacore.com>
2361
2362         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
2363         prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
2364         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
2365         (Set_In_Configuration, In_Configuration): Removed.
2366         Replaced by an extra parameter Is_Config_File in several parameter to
2367         avoid global variables to store the state of the parser.
2368
2369 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2370
2371         * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
2372         with_clauses generated for the same unit through rtsfind, and that
2373         appear in the context of different units.
2374
2375         * rtsfind.adb: New attribute First_Implicit_With, component of the
2376         Unit_Record that stores information about a unit loaded through rtsfind.
2377
2378 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
2379
2380         * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
2381         (other conditions permitting), so that abstract stream subprograms will
2382         be declared for them.
2383
2384 2009-04-29  Bob Duff  <duff@adacore.com>
2385
2386         * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
2387
2388         * g-expect.ads: Minor comment fixes.
2389
2390 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2391
2392         * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
2393         dispatching operation is a body without previous spec, update the list
2394         of primitive operations to ensure that cross-reference information is
2395         up-to-date.
2396
2397 2009-04-29  Albert Lee  <lee@adacore.com>
2398
2399         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2400         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2401         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
2402         (GNAT.Sockets.Thin.C_Readv,
2403         GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
2404         (GNAT.Sockets.Thin.C_Recvmsg,
2405         GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
2406         sendmsg(2).  
2407         (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
2408         C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
2409
2410 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2411
2412         * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
2413         operation is a body without previous spec, update the list of
2414         primitive operations to ensure that cross-reference information is
2415         up-to-date.
2416
2417         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
2418         new compilation unit node for the instance declaration, keep the
2419         context items of the original unit on it, so that the context of the
2420         instance body only holds the context inherited from the generic body.
2421
2422 2009-04-29  Bob Duff  <duff@adacore.com>
2423
2424         * sem_res.adb: Minor comment fix.
2425
2426 2009-04-29  Thomas Quinot  <quinot@adacore.com>
2427
2428         * sem_elim.adb: Minor reformatting
2429
2430 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2431
2432         * exp_aggr.adb (Convert_To_Positional): if the current unit is a
2433         predefined unit, allow arbitrary number of components in static
2434         aggregate, to ensure that the same level of constant folding applies
2435         for Ada 95 and Ada 05 versions of the file.
2436
2437 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2438
2439         * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
2440         information: no need for full scope check.
2441         (Eliminate_Error): Do not emit error in a generic context.
2442
2443 2009-04-29  Ed Falis  <falis@adacore.com>
2444
2445         * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
2446         VxWorks 653 POS does not support rmdir.
2447
2448 2009-04-29  Matteo Bordin  <bordin@adacore.com>
2449
2450         * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
2451         results are printed.
2452
2453 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
2454
2455         * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
2456         unused assignment.
2457
2458 2009-04-29  Thomas Quinot  <quinot@adacore.com>
2459
2460         * make.adb: Minor reformatting.
2461         Minor code reorganization throughout.
2462
2463 2009-04-29  Matteo Bordin  <bordin@adacore.com>
2464
2465         * s-stausa.ads: Changed visibility of type Task_Result: moved to
2466         public part to give application visibility over it.
2467         This is for future improvement and to build a public API on top of it.
2468         Changed record components name of type Task_Result to reflect the new
2469         way of reporting. 
2470
2471         * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
2472         reporting Stack usage.
2473
2474         * gnat_ugn.texi: Update doc of stack usage report.
2475
2476         * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
2477
2478         * Makefile.rtl: Add new run-time files.
2479
2480 2009-04-29  Pascal Obry  <obry@adacore.com>
2481
2482         * initialize.c: Do not expand quoted arguments.
2483
2484 2009-04-29  Emmanuel Briot  <briot@adacore.com>
2485
2486         * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
2487
2488         * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
2489          Prj.Ultimate_Extending_Project_Of
2490
2491 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2492
2493         * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
2494         Amendment type, add the with_clause for Finalization.List_Controller
2495         only if the current context is a package body.
2496
2497 2009-04-29  Thomas Quinot  <quinot@adacore.com>
2498
2499         * sem_ch12.adb: Minor reformatting
2500
2501         * sem_aggr.adb: Minor reformatting
2502
2503         * sem_ch6.adb, sem_cat.ads: Minor reformatting
2504
2505         * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
2506
2507 2009-04-29  Quentin Ochem  <ochem@adacore.com>
2508
2509         * prj.ads (Source_Id): Now general pointer type.
2510
2511 2009-04-29  Thomas Quinot  <quinot@adacore.com>
2512
2513         * exp_ch7.adb, rtsfind.adb: Minor reformatting
2514
2515         * sem_res.adb: Minor reformatting
2516
2517 2009-04-29  Thomas Quinot  <quinot@adacore.com>
2518
2519         * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
2520         operands is static only if it is a predefined concatenation operator.
2521
2522         * sem_util.adb: Minor reformatting
2523
2524         * sem_ch12.adb (Save_References): When propagating semantic information
2525         from generic copy back to generic template, for the case of an
2526         identifier that has been rewritten to an explicit dereference whose
2527         prefix is either an object name or a parameterless funcion call
2528         denoting a global object or function, properly capture the denoted
2529         global entity: perform the corresponding rewriting in the template,
2530         and point the rewritten identifier to the correct global entity (not
2531         to the associated identifier in the generic copy).
2532
2533 2009-04-29  Robert Dewar  <dewar@adacore.com>
2534
2535         * rtsfind.adb, prj-env.adb: Minor reformatting
2536         Minor code reorganization
2537
2538 2009-04-29  Emmanuel Briot  <briot@adacore.com>
2539
2540         * make.adb: Fix comment
2541
2542         * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
2543         is given as argument, as might happen in gnatmake.
2544
2545 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
2546
2547         * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
2548         an abstract operation of a progenitor is not properly overridden by an
2549         operation of a derived synchronized type.
2550
2551 2009-04-29  Robert Dewar  <dewar@adacore.com>
2552
2553         * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
2554         prj-proc.adb: Minor reformatting
2555         Minor code reorganization
2556
2557 2009-04-29  Bob Duff  <duff@adacore.com>
2558
2559         * exp_ch7.adb (Build_Final_List): For an access type that designates a
2560         Taft Amendment type, if the access type needs finalization, make sure
2561         the implicit with clause for List_Controller occurs on the package spec.
2562
2563         * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
2564         with's created for the pseudo-children of Text_IO and friends. In
2565         particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
2566         Ada.Text_IO.Integer_IO both with-ing each other.
2567
2568         * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
2569         oddball cases when pragma Extend_System is used.
2570
2571         * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
2572         the case where a package spec instantiates a generic whose body with's
2573         this package, so Walk_Library_Items won't complain about cyclic with's.
2574
2575 2009-04-29  Emmanuel Briot  <briot@adacore.com>
2576
2577         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
2578         prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
2579         mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
2580         (Project_Id): now a real pointer to Project_Data, instead of an index
2581         into the Projects_Table. This simplifies the API significantly, avoiding
2582         extra lookups in this table and the need to pass the Project_Tree_Ref
2583         parameter in several cases
2584
2585 2009-04-29  Nicolas Setton  <setton@adacore.com>
2586
2587         * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
2588         darwin.
2589
2590 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
2591
2592         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
2593         back kludge.
2594
2595 2009-04-24  Robert Dewar  <dewar@adacore.com>
2596
2597         * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
2598         clean.adb: Minor reformatting.
2599         Minor code reorganization and message improvement.
2600
2601 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2602
2603         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
2604         (Alternate_Languages): now implemented as a malloc-ed list rather
2605         than through a table.
2606
2607 2009-04-24  Thomas Quinot  <quinot@adacore.com>
2608
2609         * sem_res.adb (Static_Concatenation): Simplify predicate to make it
2610         accurately handle cases such as "lit" & "lit" and
2611         "lit" & static_string_constant
2612
2613 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2614
2615         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
2616         prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
2617         removed. Lists of projects are now implemented via standard malloc
2618         rather than through the table.
2619
2620 2009-04-24  Thomas Quinot  <quinot@adacore.com>
2621
2622         * sem_ch12.adb: Minor reformatting
2623
2624         * g-trasym.adb: Minor reformatting
2625
2626         * exp_ch6.adb: Minor reformatting
2627
2628 2009-04-24  Robert Dewar  <dewar@adacore.com>
2629
2630         * layout.adb (Layout_Type): For packed array type, copy unset
2631         size/alignment fields from the referenced Packed_Array_Type.
2632
2633 2009-04-24  Bob Duff  <duff@adacore.com>
2634
2635         * lib-load.adb (Make_Instance_Unit): Revert previous change, no
2636         longer needed after sem_ch12 changes.
2637
2638         * sem.adb (Walk_Library_Items): Include with's in some debugging
2639         printouts.
2640
2641 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2642
2643         * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
2644         only ever using the Project field.
2645
2646 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
2647
2648         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
2649         Body_Required on the generated compilation node. The new node is linked
2650         to its body, but both share the same file, so we do not set this flag
2651         on the new unit so as not to create a spurious dependency on a
2652         non-existent body in the ali file for the instance.
2653
2654 2009-04-24  Robert Dewar  <dewar@adacore.com>
2655
2656         * make.adb: Minor reformatting
2657
2658 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2659
2660         * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
2661         Add_Source): merge some code between those. In particular change where
2662         file normalization is done to avoid a few extra calls to
2663         Canonicalize_File_Name. This also removes the need for passing
2664         Current_Dir in a number of subprograms.
2665
2666 2009-04-24  Bob Duff  <duff@adacore.com>
2667
2668         * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
2669         False, assign the correct unit to the Cunit field of the new table
2670         entry. We want the spec unit, not the body unit.
2671
2672         * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
2673         interface for these.
2674         (Maybe_Add_With): Check whether we're trying to a with on the current
2675         unit, and avoid creating such directly self-referential with clauses.
2676         (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
2677         [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
2678         and matches existing comments in the spec.
2679
2680         * sem.adb (Walk_Library_Items): Add various special cases to make the
2681         assertions pass.
2682
2683         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
2684         instead of Parent (N), for uniformity.
2685
2686 2009-04-24  Robert Dewar  <dewar@adacore.com>
2687
2688         * errout.ads: Minor reformatting
2689
2690 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2691
2692         * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
2693         behavior when the project includes sources from multiple languages
2694
2695 2009-04-24  Vincent Celier  <celier@adacore.com>
2696
2697         * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
2698         is a language other than Ada declared.
2699
2700         * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
2701         Imported_First set to True.
2702
2703 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
2704
2705         * sem_res.adb: additional optimization to inhibit creation of
2706         redundant transient scopes.
2707
2708 2009-04-24  Bob Duff  <duff@adacore.com>
2709
2710         * rtsfind.ads: Minor comment fix
2711
2712 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2713
2714         * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
2715         Get_Path_Name_And_Record_Ada_Sources): merged, since these were
2716         basically doing the same work (for explicit or implicit sources).
2717         (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
2718         role. Rewritten to share some code (testing that all explicit sources
2719         have been found) between ada_only and multi_language modes.
2720
2721 2009-04-24  Jerome Lambourg  <lambourg@adacore.com>
2722
2723         * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
2724         for CLI imported types.
2725         (Analyze_Pragma): Allow CIL or Java imported functions returning
2726         access-to-subprogram types.
2727
2728 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2729
2730         * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
2731         (Project_Data.Dir_Path): field removed, since it can be computed
2732         directly from .Directory, and is needed only once when processing the
2733         project is buildgpr.adb or make.adb
2734
2735 2009-04-24  Robert Dewar  <dewar@adacore.com>
2736
2737         * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
2738         rtsfind.adb: Minor reformatting.
2739         Minor code reorganization
2740
2741 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
2742
2743         * mlib-prj.adb: Use friendlier english identifier.
2744
2745         * gnatcmd.adb, make.adb: Use better english identifiers.
2746
2747 2009-04-24  Robert Dewar  <dewar@adacore.com>
2748
2749         * clean.adb: Minor reformatting
2750
2751 2009-04-24  Robert Dewar  <dewar@adacore.com>
2752
2753         * einfo.adb (OK_To_Rename): New flag
2754
2755         * einfo.ads (OK_To_Rename): New flag
2756
2757         * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
2758         OK_To_Rename set.
2759
2760         * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
2761
2762         * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
2763         OK_To_Rename.
2764
2765 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2766
2767         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
2768         clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
2769         field removed. This is not a property of the
2770         project, just a boolean used to traverse the project tree, and storing
2771         it in the structure prevents doing multiple traversal in parallel.
2772         (Project_Data.Checked): also removed, since it was playing the same role
2773         as Seen when we had two nested loops, and this is no longer necessary
2774         (For_All_Imported_Projects): removed, since in fact there was already
2775         the equivalent in For_Every_Project_Imported. The latter was rewritten
2776         to use a local hash table instead of Project_Data.Seen
2777         Various loops were rewritten to use For_Every_Project_Imported, thus
2778         removing the need for Project_Data.Seen. This avoids a lot of code
2779         duplication
2780
2781 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
2782
2783         * sem_res.adb (Resolve_Actuals): Do not create blocks around code
2784         statements, even though the actual of the call is a concatenation,
2785         because the argument is static, and we want to preserve warning
2786         messages  about sequences of code statements that are not marked
2787         volatile.
2788
2789         * sem_warn.adb: remove obsolete comment about warning being obsolete
2790
2791         * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
2792         requeued and the delay has expired while within the accept statement
2793         that executes the requeue, do not perform the requeue and indicate that
2794         the timed call has been aborted.
2795
2796 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2797
2798         * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
2799         (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
2800         (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
2801         since they can be computed from the above.
2802
2803 2009-04-24  Vincent Celier  <celier@adacore.com>
2804
2805         * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
2806
2807         * prj-env.adb: Move all global variables to the private part of the
2808         project tree data.
2809         Access these new components instead of the global variables no longer
2810         in existence.
2811         (Add_To_Path): New Project_Tree_Ref parameter, to access the new
2812         components that were previously global variables.
2813
2814         * prj-env.ads (Initialize): New Project_Tree_Ref parameter
2815         (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
2816         parameter.
2817
2818         * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
2819         be able to call Set_Mapping_File_Initial_State_To_Empty with it.
2820
2821         * prj.adb (Initialize): Do not call Prj.Env.Initialize
2822         (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
2823         components in the private part of the project tree data.
2824
2825         * prj.ads (Private_Project_Tree_Data): new components moved from
2826         Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
2827         Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
2828         Ada_Prj_Objects_File_Set, Fill_Mapping_File.
2829
2830 2009-04-24  Vincent Celier  <celier@adacore.com>
2831
2832         * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
2833
2834         * prj-nmsc.adb (Check_Library): No error for imports by shared library
2835         projects, when --unchecked-shared-lib-imports is used.
2836
2837 2009-04-24  Robert Dewar  <dewar@adacore.com>
2838
2839         * sem_ch7.adb: Minor reformatting
2840
2841 2009-04-24  Tristan Gingold  <gingold@adacore.com>
2842
2843         * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
2844         mach thread id.
2845
2846 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2847
2848         * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
2849         Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
2850         (For_All_Imported_Projects): new procedure
2851         (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
2852         above rather than duplicating code.
2853
2854 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2855
2856         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
2857         (Source_Id, Source_Data): use a real list to store sources rather than
2858         using an external table to store the elements. This makes code more
2859         efficient and more readable.
2860
2861 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2862
2863         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
2864         (Source_Iterator): new type.
2865         This removes the need for having the sources on three different
2866         lists at the project tree, project and language level. They are now
2867         on a single list.
2868
2869 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2870
2871         * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
2872
2873 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
2874
2875         * sem_warn.adb: Add comment on obsolete warning
2876
2877 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
2878
2879         * s-tassta.adb (Create_Task): Fix violation of locking rule.
2880
2881 2009-04-24  Emmanuel Briot  <briot@adacore.com>
2882
2883         * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
2884         to Language_Ptr to better reflect its new implementation.
2885         (Project_Data.First_Languages_Processing): renamed to Languages now
2886         that the field with that name is no longer used
2887         (Project_Data.Languages): removed, no longer used, and duplicates
2888         information already available through First_Language_Processing.
2889         (Prj.Language_Index): now an actual pointer, instead of an index into
2890         a table. This makes the list somewhat more obvious, but more importantly
2891         removes the need to pass a pointer to the project_tree_data in a few
2892         places, and makes accessing the attributes of a languages more
2893         efficient.
2894
2895 2009-04-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2896             Thomas Quinot  <quinot@adacore.com>
2897
2898         * fe.h (Set_Identifier_Casing): Add const to second parameter.
2899         * gcc-interface/misc.c (internal_error_function): Make copy of return
2900         from pp_formatted_text before assigning BUFFER to it.
2901         (gnat_init): Likewise for main_input_filename and gnat_argv.
2902         (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
2903
2904 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
2905
2906         * ttypes.ads (Target_Double_Float_Alignment): New variable.
2907         (Target_Double_Scalar_Alignment): Likewise.
2908         * get_targ.ads (Get_Strict_Alignment): Adjust external name.
2909         (Get_Double_Float_Alignment): New imported function.
2910         (Get_Double_Scalar_Alignment): Likewise.
2911         * layout.adb (Set_Elem_Alignment): Take into account specific caps for
2912         the alignment of "double" floating-point types and "double" or larger
2913         scalar types, as parameterized by Target_Double_Float_Alignment and
2914         Target_Double_Scalar_Alignment respectively.
2915         * gcc-interface/gigi.h (double_float_alignment): Declare.
2916         (double_scalar_alignment): Likewise.
2917         (is_double_float_or_array): Likewise.
2918         (is_double_scalar_or_array): Likewise.
2919         (get_target_double_float_alignment): Likewise.
2920         (get_target_double_scalar_alignment): Likewise.
2921         * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
2922         (get_target_strict_alignment): ...this.
2923         (get_target_double_float_alignment): New function.
2924         (get_target_double_scalar_alignment): Likewise.
2925         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
2926         Test the presence of an alignment clause for under-aligned integer
2927         types.  Take into account specific caps for the alignment of "double"
2928         floating-point types and "double" or larger scalar types, as
2929         parameterized by Target_Double_Float_Alignment and
2930         Target_Double_Scalar_Alignment respectively.
2931         (validate_alignment): Likewise.
2932         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
2933         (gigi): Initialize double_float_alignment and double_scalar_alignment.
2934         * gcc-interface/utils.c (double_float_alignment): New global variable.
2935         (double_scalar_alignment): Likewise.
2936         (is_double_float_or_array): New predicate.
2937         (is_double_scalar_or_array): Likewise.
2938
2939 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
2940
2941         * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
2942         the conditional expression only if it is common to both arms.
2943
2944 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
2945
2946         * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
2947         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
2948         arguments to build_allocator.
2949         * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
2950         Remove code handling special allocator and assert its uselessness.
2951
2952 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
2953
2954         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
2955         alignment is specified, do not promote that of the component type
2956         beyond it.
2957         <E_Array_Subtype>: Likewise.
2958
2959 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
2960
2961         * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
2962         * sinfo.ads (Object Declaration): Likewise.
2963         (Assignment Statement): Likewise.
2964         * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
2965         Do not force Is_True_Constant to false on the temporary.
2966         (Freeze_Entity): Do not force Is_True_Constant to false on names on
2967         the RHS of object declarations.
2968         * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
2969         New case.  Return 1 if the object is atomic.
2970         <N_Assignment_Statement>: Likewise.
2971
2972 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
2973
2974         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
2975         For packed array types, make the original array type a parallel type
2976         for the modular type and its JM wrapper if the type is bit-packed.
2977         <E_Array_Subtype>: Likewise.  Do not generate the special XA parallel
2978         record type for packed array types.  Remove kludge.
2979
2980 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
2981
2982         * gcc-interface/gigi.h (create_index_type): Adjust head comment.
2983         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
2984         Use front-end predicates to compute signedness and precision.
2985         <E_String_Literal_Subtype>: Fold range type.
2986         Make sure to set longest_float_type_node to a scalar type.
2987         (elaborate_entity): Use consistent Constraint_Error spelling.
2988         (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
2989         * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
2990         output for the modulus, if any.
2991         <ENUMERAL_TYPE>: Likewise for the RM size.
2992         * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
2993         spelling.
2994         * gcc-interface/utils.c (finish_record_type): Really test the alignment
2995         of BLKmode bit-fields to compute their addressability.
2996         (create_index_type): Adjust comments.
2997         (create_param_decl): Create the biased subtype manually.
2998         * gcc-interface/utils2.c (build_component_ref): Use consistent
2999         Constraint_Error spelling.
3000
3001 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
3002
3003         * gcc-interface/cuintp.c: Clean up include directives.
3004         * gcc-interface/targtyps.c: Likewise.
3005         * gcc-interface/decl.c: Likewise.
3006         * gcc-interface/misc.c: Likewise.
3007         * gcc-interface/trans.c: Likewise.
3008         * gcc-interface/utils.c: Likewise.
3009         * gcc-interface/utils2.c: Likewise.
3010         * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
3011
3012 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
3013
3014         * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
3015         (SET_TYPE_LANG_SPECIFIC): Likewise.  Fix formatting.
3016         (SET_DECL_LANG_SPECIFIC): Likewise.
3017         Reorder macros.
3018         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3019         Update comment about use of build_range_type.
3020         <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
3021         <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
3022         check for other cases of overloading.
3023         * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
3024         * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
3025         Use size_int in lieu of build_int_cst.
3026         (build_call_alloc_dealloc): Use build_index_2_type in lieu of
3027         build_range_type.
3028
3029 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
3030
3031         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
3032         type is an enumeral or a boolean type, change it to an integer type
3033         with the same mode and signedness.
3034
3035 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
3036
3037         * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
3038         for an external constant whose initializer is not absolute.
3039
3040 2009-04-22  Taras Glek  <tglek@mozilla.com>
3041
3042         * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
3043         * gcc-interface/trans.c: Likewise.
3044         * gcc-interface/utils.c: Likewise.
3045
3046 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
3047
3048         * sem_res.adb: Create block around procedure call when actual is a
3049         concatenation.
3050
3051 2009-04-22  Thomas Quinot  <quinot@adacore.com>
3052
3053         * s-soflin.ads: Fix typos
3054
3055 2009-04-22  Vincent Celier  <celier@adacore.com>
3056
3057         * prj-env.adb: Minor comment change
3058
3059         * prj-nmsc.adb (Check_Common): Add guard to avoid calling
3060         Get_Name_String with No_File.
3061
3062         * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
3063         cannot be created even when not in verbose mode.
3064
3065 2009-04-22  Emmanuel Briot  <briot@adacore.com>
3066
3067         * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
3068         prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
3069         Multi_Language modes, to avoid code duplication.
3070         (Project_Data.Include_Language): Removed.
3071
3072 2009-04-22  Vincent Celier  <celier@adacore.com>
3073
3074         * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
3075         the temporary file cannot be created, indicating the directory when the
3076         creation was attempted.
3077
3078 2009-04-22  Emmanuel Briot  <briot@adacore.com>
3079
3080         * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
3081         the language names, not their indices.
3082
3083 2009-04-22  Emmanuel Briot  <briot@adacore.com>
3084
3085         * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
3086         (Source_Data.Language_Name): Field removed.
3087
3088 2009-04-22  Emmanuel Briot  <briot@adacore.com>
3089
3090         * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
3091         Two fields removed.
3092
3093 2009-04-22  Emmanuel Briot  <briot@adacore.com>
3094
3095         * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
3096         separate_suffix to the same value as the body_suffix.
3097
3098 2009-04-22  Robert Dewar  <dewar@adacore.com>
3099
3100         * prj.adb: Minor code reorganization
3101         Code clean up.
3102
3103         * prj-proc.adb: Minor code reorganization, clean up.
3104
3105         * prj-nmsc.adb: Minor reformatting
3106         Minor code reorganization
3107
3108         * gnat_ugn.texi: Add to doc on strict aliasing
3109
3110 2009-04-22  Pascal Obry  <obry@adacore.com>
3111
3112         * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
3113         SpinCount.
3114
3115         * s-tasini.adb: Minor reformatting.
3116
3117         * s-tassta.adb: Minor reformatting.
3118
3119 2009-04-22  Emmanuel Briot  <briot@adacore.com>
3120
3121         * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
3122         smaller subprograms.
3123         Renamed to Check_File_Naming_Schemes to avoid confusion with the
3124         other Check_Naming_Schemes functions that plays a totally different
3125         role.
3126         (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
3127         extracted from the above. These were partially rewritten to avoid
3128         unnecessary code and temporary variables.
3129         (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
3130         and Get_Unit (which for now still exist since they contain mode-specific
3131         code)
3132
3133 2009-04-22  Emmanuel Briot  <briot@adacore.com>
3134
3135         * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
3136         Remove duplicated code.
3137         (Canonical_Case_File_Name): new subprogram
3138         (Check_And_Normalize_Unit_Names): new subprogram
3139         (Write_Attr): new subprogram
3140         Better sharing of code
3141         (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
3142         split Check_Naming and help find duplicated code
3143         (Check_Common): new subprogram, sharing code between ada_only and
3144         multi_language mode.
3145         (Naming_Data.Dot_Repl_Loc): field removed
3146
3147 2009-04-22  Emmanuel Briot  <briot@adacore.com>
3148
3149         * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
3150         Minor refactoring to reduce the size of
3151         Process_Sources_In_Multi_Language_Mode.
3152         Avoid extra copied of Source_Data, which we found in the past could be
3153         quite slow.
3154         (Mark_Excluded_Sources): new subprogram.
3155         (Remove_Locally_Removed_Files_From_Units): merged into the above
3156         Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
3157         and allow better sharing of code between multi_lang and ada_only modes
3158         (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
3159
3160 2009-04-22  Emmanuel Briot  <briot@adacore.com>
3161
3162         * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
3163         Removed, since unused.
3164
3165 2009-04-22  Vincent Celier  <celier@adacore.com>
3166
3167         * prj-attr.adb: New single project level attribute
3168         Separate_Run_Path_Options.
3169
3170         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
3171         attribute Seperate_Run_Path_Options.
3172
3173         * prj.ads: (Project_Configuration): New Boolean component
3174         Separate_Run_Path_Options, defaulted to False.
3175
3176         * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
3177
3178 2009-04-22  Robert Dewar  <dewar@adacore.com>
3179
3180         * sem_type.adb: Minor reformatting
3181
3182         * mlib.adb: Minor reformatting
3183
3184         * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
3185         syntax error.
3186
3187 2009-04-22  Nicolas Setton  <setton@adacore.com>
3188
3189         * link.c: Add flag __gnat_separate_run_path_options.
3190
3191         * mlib.adb (Separate_Run_Path_Options): New subprogram.
3192
3193         * mlib.ads (Separate_Run_Path_Options): Declare.
3194
3195         * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
3196         switch per directory, rather than one "rpath" switch listing all
3197         directories.
3198
3199         * gnatlink.adb (Process_Binder_File): Likewise.
3200
3201         * make.adb (Gnatmake): Likewise.
3202
3203 2009-04-22  Hristian Kirtchev  <kirtchev@adacore.com>
3204
3205         * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
3206         Add a call to Move_Final_List when the target of the assignment is a
3207         return object that needs finalization and the expression is a
3208         controlled build-in-place function.
3209
3210 2009-04-22  Vincent Celier  <celier@adacore.com>
3211
3212         * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
3213         Including_Libraries set to True.
3214
3215 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
3216
3217         * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
3218         create a unit table entry for the subprogram declaration created for a
3219         child suprogram body that has no separate specification.
3220
3221         * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
3222         subprogram body, call Make_Child_Decl_Unit.
3223
3224         * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
3225         table can only be the created specification of a child subprogram body
3226         that is the main unit, which has not been entered in the table yet.
3227
3228         * errout.adb  (Output_Messages): Ignore created specification of a
3229         child subprogram body to prevent repeated listing of error messages.
3230
3231         * gnat1drv.adb (gnat1drv): The generated specification for a child
3232         subprogram body does not generate code.
3233
3234 2009-04-22  Arnaud Charlet  <charlet@adacore.com>
3235
3236         * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
3237         since this unit is now part of bootstrap units, so must use Ada 95
3238         syntax only.
3239
3240 2009-04-22  Thomas Quinot  <quinot@adacore.com>
3241
3242         * a-tasatt.adb: Minor reformatting
3243
3244 2009-04-22  Bob Duff  <duff@adacore.com>
3245
3246         * s-stalib.ads: Remove "with System;" since we're inside System, so
3247         it's unnecessary.
3248
3249 2009-04-22  Vincent Celier  <celier@adacore.com>
3250
3251         * prj-nmsc.adb (Add_Source): Always put the dependency file name in
3252         the source record, as there may be a dependency file even if no object
3253         file is created.
3254
3255 2009-04-22  Robert Dewar  <dewar@adacore.com>
3256
3257         * lib-load.adb: Minor reformatting
3258
3259         * lib-load.ads: Minor reformatting
3260
3261         * sinfo.ads: Minor reformatting
3262
3263 2009-04-22  Bob Duff  <duff@adacore.com>
3264
3265         * exp_pakd.adb: Minor comment fixes.
3266
3267         * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
3268         sem_ch12.adb: Change the meaning of the Library_Unit attribute to
3269         include units containing instantiations, as well as units that are
3270         generic instantiations.
3271
3272         * sem.adb: Include dependents and corresponding specs/bodies in the
3273         unit walk.
3274
3275         * gcc-interface/Make-lang.in:
3276         sem now depends on s-bitops, because of the packed array of Booleans.
3277
3278 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
3279
3280         * gcc-interface/ada-tree.def: Fix formatting nits.
3281         (REGION_STMT): Delete.
3282         (HANDLER_STMT): Likewise.
3283         * gcc-interface/ada-tree.h: Fix formatting nits.
3284         (IS_STMT): Delete.
3285         (REGION_STMT_BODY): Likewise.
3286         (REGION_STMT_HANDLE): Likewise.
3287         (REGION_STMT_BLOCK): Likewise.
3288         (HANDLER_STMT_ARG): Likewise.
3289         (HANDLER_STMT_LIST): Likewise.
3290         (HANDLER_STMT_BLOCK): Likewise.
3291         * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
3292         (fp_size_to_prec): Likewise.
3293         (largest_move_alignment): Delete.
3294         (gnat_compute_largest_alignment): Likewise.
3295         Fix minor nits.
3296         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3297         Remove redundant code.
3298         <E_Array_Type>: Remove redundant assert.
3299         <E_Array_Subtype>: Exit early from index computation in pathological
3300         cases.
3301         Rewrite conditional assignment.
3302         (make_type_from_size): Likewise.
3303         * gcc-interface/misc.c (largest_move_alignment): Delete.
3304         (gnat_finish_incomplete_decl): Likewise.
3305         (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
3306         (asm_out_file): Likewise
3307         (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
3308         (gnat_dwarf_name): Move around.
3309         * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
3310         (gigi): Remove call to gnat_compute_largest_alignment.
3311         * utils.c (create_field_decl): Rewrite conditional assignment.
3312         Fix minor nits.
3313
3314 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
3315
3316         * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
3317         on entry.  Defer common processing for types.  Reorder and clean up.
3318         Compute the equivalent GNAT node and the default size for types only.
3319         <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
3320         <E_Access_Type>: For an unconstrained designated type, do not pretend
3321         that a dummy type is always made.
3322         <all> Fix nits in comments.
3323         (validate_size): Fix formatting nits and comments.
3324         (set_rm_size): Likewise.
3325         * gcc-interface/utils.c (create_param_decl): Replace bogus argument
3326         passed to TARGET_PROMOTE_PROTOTYPES hook.
3327
3328 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
3329
3330         * fe.h (Get_External_Name): Declare.
3331         * gcc-interface/gigi.h (concat_id_with_name): Rename to...
3332         (concat_name): ...this.
3333         * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
3334         gnu_entity_name and adjust for above renaming.
3335         <E_Access_Type>: Use create_concat_name to get the name of the various
3336         types associated with unconstrained array types.
3337         (make_aligning_type): Adjust for above renaming.
3338         (maybe_pad_type): Likewise.
3339         (components_to_record): Likewise.  Use get_identifier_with_length for
3340         the encoding of the variant.
3341         (get_entity_name): Use get_identifier_with_length.
3342         (create_concat_name): Likewise.  Use Get_External_Name if no suffix.
3343         Do not fiddle with Name_Buffer.
3344         (concat_id_with_name): Rename to...
3345         (concat_name): ...this.  Use get_identifier_with_length.  Do not fiddle
3346         with Name_Buffer.
3347         * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
3348         above renaming.
3349
3350 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
3351
3352         * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
3353         license notices.
3354
3355 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3356
3357         * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
3358
3359 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3360
3361         * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
3362         (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
3363         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
3364         Remove useless support code for packed array types and assert its
3365         uselessness.
3366         <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
3367         adjust for TYPE_RM_SIZE change.
3368         <all> Fix nits in comments.  Use Original_Array_Type accessor instead
3369         of Associated_Node_For_Itype accessor for packed array types.
3370         (make_packable_type): Likewise.
3371         (maybe_pad_type): Likewise.
3372         (set_rm_size): Likewise.  Rework conditional statement.  Adjust for
3373         TYPE_RM_SIZE change.
3374         (make_type_from_size): Adjust for TYPE_RM_SIZE change.
3375         (rm_size): Fix nits in comments.  Rework conditional statements.
3376         * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
3377         change.
3378         * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
3379         * gcc-interface/utils.c (gnat_init_decl_processing): Use more
3380         appropriate function to initialize the size_type_node.  Adjust for
3381         TYPE_RM_SIZE change.
3382
3383 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3384
3385         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
3386         for imported subprograms.
3387
3388 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3389
3390         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
3391         constant objects covered by 13.3(19) volatile.
3392
3393 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3394
3395         * gcc-interface/utils.c (create_type_decl): Do not pass declarations
3396         of dummy fat pointer types to the debug back-end.
3397
3398 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3399
3400         * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
3401         <E_Signed_Integer_Subtype>: Set the RM size on the integer type
3402         before wrapping it up in the record type.  Do not overwrite the
3403         Ada size of the record type with the Esize.
3404
3405 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3406
3407         * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
3408         (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
3409         if the conversion is on the LHS of an assignment and a no-op.
3410         <all> Do not convert the result to the result type if the Parent
3411         node is such a conversion.
3412
3413 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3414
3415         * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
3416         * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
3417         of types with unknown discriminants.
3418         (substitute_in_type): Rewrite and restrict to formal substitutions.
3419         * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
3420         (update_pointer_to): Update comment.
3421
3422 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3423
3424         * sem_ch8.adb (Use_One_Package): In an instance, if two
3425         potentially_use_visible and non-overloadable homonyms are available
3426         from  the actuals of distinct formal packages, retain the current one,
3427         which was visible in the generic, to prevent spurious visibility
3428         errors.
3429         (End_Use_Package): Restore use_visibility when needed.
3430
3431 2009-04-20  Sergey Rybin  <rybin@adacore.com>
3432
3433         * gnat_ugn.texi, vms_data.ads: Update doc.
3434
3435 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
3436
3437         * gcc-interface/Make-lang.in: Update dependencies
3438
3439         * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
3440         Windows.
3441
3442 2009-04-20  Robert Dewar  <dewar@adacore.com>
3443
3444         * checks.ads: Fix documentation of range check handling
3445
3446 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3447
3448         * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
3449         a redundant use_type clause.
3450
3451 2009-04-20  Robert Dewar  <dewar@adacore.com>
3452
3453         * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
3454         this attribute can be evaluated at compile time.
3455         (Eval_Attribute, case Range_Length): Same improvement
3456
3457         * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
3458
3459 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3460
3461         * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
3462         for better handling of null procedures.
3463         (Check_Overriding_Indicator): Do not emit a warning on a missing
3464         overriding indicator on an operator when the type of which the operator
3465         is a primitive is private.
3466
3467 2009-04-20  Bob Duff  <duff@adacore.com>
3468
3469         * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
3470         debugging output.
3471
3472 2009-04-20  Robert Dewar  <dewar@adacore.com>
3473
3474         * sem_attr.adb: Minor reformatting
3475
3476         * gnatcmd.adb: Minor reformatting
3477
3478 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3479
3480         * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
3481         overloaded and one interpretation matches the context, label the
3482         operand with the type of first formal.
3483
3484 2009-04-20  Bob Duff  <duff@adacore.com>
3485
3486         * debug.ads: Minor comment fix.
3487
3488         * debug.adb: Minor comment fixes.
3489
3490 2009-04-20  Javier Miranda  <miranda@adacore.com>
3491
3492         * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
3493
3494         * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
3495
3496         * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
3497         is expanded into a call to Raise_Exception, avoid passing the
3498         exception-name'identity in runtimes in which this argument
3499         is not used.
3500
3501 2009-04-20  Jerome Lambourg  <lambourg@adacore.com>
3502
3503         * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
3504         generated bindings for cil.
3505
3506 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3507
3508         * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
3509         discriminants, collect components from the Underlying_Record_View,
3510         which will be used in the expansion of the aggregate into assignments.
3511
3512         * sem_ch3.adb: Do not label derived type with unknown discriminants as
3513         having a private declaration.
3514
3515 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3516
3517         * exp_util.adb (Expand_Subtype_From_Expr): use the
3518         underlying_record_view when available, to create the proper constrained
3519         subtype for an object of a derived type with unknown discriminants.
3520
3521 2009-04-20  Javier Miranda  <miranda@adacore.com>
3522
3523         * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
3524         formals that have pragma unreferenced.
3525
3526 2009-04-20  Pascal Obry  <obry@adacore.com>
3527
3528         * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
3529         Remove all calls to To_Lower_If_Case_Insensitive to preserve
3530         the pathname original casing.
3531
3532 2009-04-20  Robert Dewar  <dewar@adacore.com>
3533
3534         * g-trasym.adb: Minor reformatting
3535
3536         * s-os_lib.adb: Minor reformatting
3537
3538         * sem.adb: Minor reformatting
3539         Minor code reorganization
3540
3541         * sem_ch3.adb: Minor reformatting
3542
3543         * sem_ch4.adb: Minor reformatting
3544
3545         * sem_ch8.adb: Minor reformatting
3546
3547         * sem_type.adb: Minor reformatting
3548
3549 2009-04-20  Javier Miranda  <miranda@adacore.com>
3550
3551         * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
3552         generated by derivations of tagged types use the aliased subprogram a
3553         reference to locate their controlling type.
3554
3555 2009-04-20  Tristan Gingold  <gingold@adacore.com>
3556
3557         * g-trasym.adb: Set size of result buffer before calling
3558         convert_address.
3559
3560 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3561
3562         * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
3563         to a function returning an array can be interpreted as a call with
3564         defaulted parameters whose result is indexed, take into account the
3565         types of all the indices of the array result type.
3566
3567 2009-04-20  Pascal Obry  <obry@adacore.com>
3568
3569         * a-direct.adb, s-os_lib.adb: Minor reformatting.
3570
3571 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3572
3573         * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
3574         null exclusion qualifiers for object renaming declarations.
3575
3576 2009-04-20  Nicolas Roche  <roche@adacore.com>
3577
3578         * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
3579         unsigned long long. So compare local_time and utc_time before computing
3580         the difference.
3581
3582 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3583
3584         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
3585         of the Underlying_Record_View before that of the derived type.
3586
3587         * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
3588         with unknown discriminants with regard to the parent subtype.
3589
3590 2009-04-20  Bob Duff  <duff@adacore.com>
3591
3592         * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
3593         that are not included. This is necessary if the main unit is a generic
3594         instantiation.
3595
3596         * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
3597         because it doesn't work if -gnatn is used.
3598
3599 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3600
3601         * rtsfind.adb (RTE, RTE_Record_Component): In
3602         Configurable_Run_Time_Mode, do not enable front-end inlining.
3603
3604 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3605
3606         * g-socthi-vms.adb: Remove now unnecessary WITH clause on
3607         System.Address_To_Access_Conversions.
3608
3609 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3610
3611         * sem.adb: Guard against ill-formed subunits.
3612
3613 2009-04-20  Bob Duff  <duff@adacore.com>
3614
3615         * output.adb (Flush_Buffer): Do not indent blank lines.
3616         (Ignore_Output): New procedure for output suppression.
3617
3618 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
3619
3620         * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
3621         when it is positive.  This avoids a potential constraint error raised
3622         by the conversion to Natural.
3623
3624 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
3625
3626         * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
3627         involves a target that has a specified address, don't set Forward_OK
3628         and Backward_OK to False if the rhs is an aggregate, since overlap
3629         can't occur.
3630
3631 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3632
3633         * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
3634         in an object renaming declaration when the expected type is an
3635         anonymous access type.
3636
3637         * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
3638         ambiguity when one interpretation is an anonymous access type and the
3639         other is a named access type, and the context itself is anonymous
3640
3641 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3642
3643         * einfo.ads: Minor comment rewording
3644
3645         * sem_aggr.adb: Minor comment rewording
3646
3647         * sem_ch3.adb, sem_ch6.adb: Minor reformatting
3648
3649 2009-04-20  Pascal Obry  <obry@adacore.com>
3650
3651         * adaint.c (__gnat_is_readable_file): Check for file existence
3652         when not using ACL (always the case on remote drives).
3653
3654 2009-04-20  Robert Dewar  <dewar@adacore.com>
3655
3656         * sinfo.ads: Minor comment fixes
3657
3658         * exp_disp.adb: Minor reformatting
3659
3660         * gnat1drv.adb: Minor reformatting
3661
3662         * output.adb: Minor reformatting
3663
3664         * s-vxwext-kernel.ads: Minor reformatting
3665
3666         * sem.ads: Minor reformatting
3667
3668         * sem.adb: Minor reformatting
3669
3670         * sem_elim.adb: Minor reformatting
3671
3672         * uname.ads: Minor reformatting
3673
3674 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3675
3676         * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
3677         a small dope of 4 words to the adjustment to the stack pointer.
3678
3679 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3680
3681         * xoscons.adb: generate C header s-oscons.h in
3682         addition to s-oscons.ads.
3683
3684         * socket.c: On VMS, use s-oscons.h.
3685
3686         * sem_ch3.adb: Minor reformatting
3687
3688         * exp_ch9.adb: Minor reformatting
3689
3690 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3691
3692         * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
3693         (Attribute_to_gnu): Do not call check_for_eliminated_entity.
3694         (call_to_gnu): Likewise.
3695
3696 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3697
3698         * gcc-interface/trans.c (gigi): Declare the name of the compilation
3699         unit as the first global name at the very beginning.
3700
3701 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3702
3703         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
3704         s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
3705         g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
3706         since HP-UX supports neither inet_aton nor inet_pton (altough the
3707         latter is part of the Single UNIX Specification!).
3708         So reorganize code, and share C implementation based on inet_addr(3)
3709         with VMS (instead of having a VMS specific Ada implementation in
3710         g-socthi-vms.adb).
3711
3712 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
3713
3714         * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
3715         to return the object file name saved by Set_Object_Output_File_Name.
3716
3717 2009-04-20  Emmanuel Briot  <briot@adacore.com>
3718
3719         * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
3720         for the standard command line, when argc has been modified since the
3721         start of the application.
3722
3723 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3724
3725         * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
3726         WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
3727
3728 2009-04-20  Bob Duff  <duff@adacore.com>
3729
3730         * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
3731         pragma Debug.
3732
3733 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3734
3735         * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
3736         subprogram as Eliminated when source operation is.
3737         (Expand_N_Protected_Type_Declaration): Generate protected and
3738         unprotected specs for the internal operations, even if the source
3739         operation is eliminated.
3740
3741 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
3742
3743         * exp_ch3.adb (Make_Predefined_Primitive_Specs,
3744         Predefined_Primitive_Bodies): Do not create the declarations and bodies
3745         of the primitive subprograms associated with dispatching select
3746         statements when the runtime is in configurable mode.
3747
3748 2009-04-20  Ed Falis  <falis@adacore.com>
3749
3750         * s-vxwext-kernel.ads (tickGet): Use tick64Get.
3751
3752 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3753
3754         * s-oscons-tmplt.c: Add support for generating a dummy version of
3755         s-oscons.ads providing all possible constants.
3756
3757         * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
3758
3759         * socket.c (__gnat_inet_pton): On Windows make sure we always use the
3760         ANSI version (not the UNICODE version) of WSAStringToAddress.
3761
3762 2009-04-20  Pascal Obry  <obry@adacore.com>
3763
3764         * adaint.c (__gnat_set_OWNER_ACL): properly free memory
3765         allocated for the security descriptor and make sure all
3766         handles are closed before leaving this procedure.
3767
3768 2009-04-20  Javier Miranda  <miranda@adacore.com>
3769
3770         * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
3771         (Set_Is_Underlying_Record_View): New subprogram
3772
3773         * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
3774         private types with unknown discriminants use the underlying record view
3775         if available.
3776
3777         * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
3778         underlying record view in the full view of private types whose parent
3779         has unknown discriminants.
3780         (Build_Derived_Record_Type): Avoid generating the class-wide entity
3781         associated with an underlying record view.
3782         (Derived_Type_Declaration): Avoid deriving parent primitives in
3783         underlying record views.
3784
3785         * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
3786         records with unknown discriminants.
3787
3788         * sem_type.adb (Covers): Handle underlying record views.
3789         (Is_Ancestor): Add support for underlying record views.
3790
3791         * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
3792         dispatching call if the type of the target object is tagged and has
3793         unknown discriminants.
3794
3795         * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
3796         unknown discriminants.
3797
3798         * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
3799         tables for internally built underlying record views.
3800
3801         * sprint.adb (sprint_node_actual): Improve output of aggregates with an
3802         empty list of component associations.
3803
3804 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3805
3806         * sem_ch10.adb: Minor reformatting
3807
3808         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
3809         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
3810         (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
3811         standard inet_pton API (and emulate it on platforms that do not
3812         support it).
3813         (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
3814         DECC$INET_ADDR, imported in Ada.
3815         (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
3816         implementation provided by GNAT runtime.
3817         (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
3818         Windows.
3819
3820 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3821
3822         * gnat_ugn.texi: Add documentation for -fno-ivopts.
3823
3824 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
3825
3826         * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
3827         with_clause if it is the main unit.
3828
3829 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3830
3831         * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
3832         (no behaviour change): Use Append instead of Increment_Last followed
3833         by assignment.
3834
3835 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
3836
3837         * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
3838         declarations of all primitives associated with dispatching asynchronous,
3839         conditional and timed selects when dispaching calls are forbidden and
3840         select statements are not allowed (such as in Ravenscar).
3841         (Predefined_Primitive_Bodies): Ditto for bodies.
3842
3843         * exp_disp.ad (Make_DT): Do not create and populate the
3844         Select_Specific_Data of the dispatch table when dispatching calls are
3845         forbidden and select statements are not allowed (such as in Ravenscar).
3846
3847 2009-04-20  Robert Dewar  <dewar@adacore.com>
3848
3849         * a-tifiio.adb: Minor reformatting
3850
3851 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3852
3853         * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
3854         other C library functions, report *failure* with a zero status, and
3855         success with a non-zero status.
3856
3857 2009-04-20  Bob Duff  <duff@adacore.com>
3858
3859         * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
3860         (Semantics): After analyzing each unit, Append it to the
3861         Comp_Unit_List, if appropriate.
3862
3863         * gnat1drv.adb (Check_Library_Items): New procedure for debugging
3864         purposes.
3865         (Gnat1drv): Correct comment regarding Back_End_Mode.
3866
3867 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3868
3869         * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
3870
3871 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3872
3873         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3874         output.adb, output.ads, s-taprop-hpux-dce.adb,
3875         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
3876         reformatting.
3877
3878 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3879
3880         * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
3881         g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
3882         (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
3883         (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
3884         except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
3885         (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
3886
3887         * debug.adb: Fix typo
3888
3889         * gnat_rm.texi: Minor doc fix.
3890
3891         * sem_ch7.adb, freeze.adb: Minor reformatting
3892
3893 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3894
3895         * g-socket.ads: Add new constants:
3896           Loopback_Inet_Addr
3897           Unspecified_Group_Inet_Addr
3898           All_Hosts_Group_Inet_Addr
3899           All_Routers_Group_Inet_Addr
3900
3901         * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
3902         ERANGE (Result too large).
3903         (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
3904         propagation of errno to caller.
3905
3906 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
3907
3908         * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
3909         to 24. Increment Leap_Seconds_Count and add an entry to aggregate
3910         Leap_Second_Times.
3911
3912 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
3913
3914         * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
3915         checking for references to eliminated subprograms that should be
3916         flagged.
3917         (Eliminate_Error_Message): Update comment to say "references" rather
3918         than "calls" (since attribute cases are handled here as well).
3919
3920         * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
3921         checking for references to eliminated subprograms that should be
3922         flagged.  Add with and use of Sem and Sem_Util.
3923
3924         * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
3925         Add with and use of Sem_Elim.
3926
3927         * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
3928         applied to eliminated subprograms.
3929         (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
3930         eliminated subprograms.
3931         Add with and use of Sem_Elim.
3932
3933         * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
3934         to eliminated subprograms, now handled during Resolve_Call.
3935         Remove with and use of Sem_Elim.
3936
3937         * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
3938         testing Is_Eliminated, for proper handling of primitive derived from
3939         eliminated subprograms.
3940
3941 2009-04-20  Vincent Celier  <celier@adacore.com>
3942
3943         * mlib-prj.adb (Build_Library): Use the shared library linker, if one
3944         has been declared (Library_GCC or Linker'Driver), for the driver name.
3945
3946         * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
3947         Linker'Driver is, use Linker'Driver as the shared library linker.
3948         (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
3949         Library_GCC is declared.
3950         (Check_Library_Attributes): Set up the shared linker driver: either
3951         Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
3952         declared.
3953
3954 2009-04-20  Thomas Quinot  <quinot@adacore.com>
3955
3956         * g-socket.ads (Send_Socket): Fix misleading comment.
3957
3958 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
3959
3960         * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
3961         ASIS mode.
3962
3963 2009-04-20  Geert Bosch  <bosch@adacore.com>
3964
3965         * a-tifiio.adb (Put): Avoid generating too many digits for certain
3966         fixed types with smalls that are neither integer or the reciprocal
3967         of an integer.
3968
3969 2009-04-20  Bob Duff  <duff@adacore.com>
3970
3971         * uname.ads: Minor comment fix.
3972
3973         * types.ads: Minor comment fix.
3974
3975 2009-04-20  Pascal Obry  <obry@adacore.com>
3976
3977         * adaint.c (__gnat_get_libraries_from_registry): Fix code to
3978         avoid warning. At the same time fix a memory leak.
3979
3980         * osint.adb (Get_Libraries_From_Registry): Properly free memory
3981         returned by the above routine.
3982
3983 2009-04-20  Robert Dewar  <dewar@adacore.com>
3984
3985         * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
3986         s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
3987         s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
3988         s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
3989
3990         * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
3991
3992 2009-04-20  Pascal Obry  <obry@adacore.com>
3993
3994         * initialize.c (__gnat_initialize): Add braces to kill warning.
3995
3996         * adaint.c: Minor reformatting, remove trailing spaces.
3997
3998 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
3999
4000         * gcc-interface/Make-lang.in: Update dependencies.
4001
4002 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4003
4004         * adaint.h (__gnat_lwp_self): Declare on Linux.
4005
4006         * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
4007
4008 2009-04-20  Robert Dewar  <dewar@adacore.com>
4009
4010         * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
4011         front-end part of -fpreserve-control-flow switch.
4012
4013 2009-04-20  Bob Duff  <duff@adacore.com>
4014
4015         * rtsfind.adb: Minor comment fix
4016
4017 2009-04-20  Robert Dewar  <dewar@adacore.com>
4018
4019         * exp_aggr.adb: Minor reformatting
4020         Minor code reorganization (use Nkind_In)
4021
4022         * g-socket.adb: Minor reformatting
4023
4024         * g-socket.ads: Minor comment fix
4025
4026         * s-auxdec.ads: Minor comment and organization update.
4027
4028         * s-auxdec-vms_64.ads: Minor comment and organization update.
4029
4030         * sem_ch10.adb: Minor addition of ??? comment
4031
4032         * sem_disp.adb: Minor reformatting
4033
4034 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
4035
4036         * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
4037         list a caller of an inlined subprogram, if the caller itself is not
4038         called.
4039
4040 2009-04-20  Pascal Obry  <obry@adacore.com>
4041
4042         * adaint.c: Disable use of ACL on network drives.
4043
4044 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
4045
4046         * gnat_ugn.texi: Add examples.
4047
4048 2009-04-20  Thomas Quinot  <quinot@adacore.com>
4049
4050         * g-socket.ads (Abort_Selector): Clarify documentation.
4051
4052 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
4053
4054         * opt.ads (Inspector_Mode): Update documentation of this flag.
4055
4056 2009-04-20  Thomas Quinot  <quinot@adacore.com>
4057
4058         * g-socket.ads: Minor reformatting
4059
4060         * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
4061         consider S_resolvLib error codes since we only use the hostLib wrappers.
4062
4063 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4064
4065         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
4066         of the Underlying_Record_View after that of the derived type.
4067
4068 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
4069
4070         * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
4071         in inspector mode.
4072
4073 2009-04-20  Javier Miranda  <miranda@adacore.com>
4074
4075         * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
4076
4077         * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
4078         documentation.
4079
4080         * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
4081
4082         * sem_disp.adb
4083         (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
4084         in internally built overriding subprograms.
4085
4086 2009-04-20  Doug Rupp  <rupp@adacore.com>
4087
4088         * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
4089
4090         * s-auxdec.ads: Likewise
4091
4092 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
4093
4094         * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
4095         type by an interface.
4096
4097         * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
4098         minimze difference in expanded tree when compiled as spec of the main
4099         unit, or as a spec in the context of another unit.
4100
4101 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
4102
4103         * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
4104         (localtime_tzoff): This routine no longer accepts an actual of type
4105         tm_Pointer.
4106         (UTC_Time_Offset): Remove local variable Secs_TM.
4107
4108         * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
4109         actual of type struct tm*. Add local variable of type struct tm for all
4110         targets that provide localtime_r and need to invoke it.
4111
4112 2009-04-20  Thomas Quinot  <quinot@adacore.com>
4113
4114         * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
4115         (GNAT.Sockets.Resolve_Error): Add case of EPIPE
4116         Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
4117
4118 2009-04-20  Robert Dewar  <dewar@adacore.com>
4119
4120         * sem_ch3.adb: Minor reformatting
4121
4122         * lib-load.adb: Minor reformatting
4123
4124         * sem_ch4.adb: Minor reformatting
4125
4126 2009-04-20  Robert Dewar  <dewar@adacore.com>
4127
4128         * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
4129         (equal values => False).
4130
4131 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
4132
4133         * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
4134         to null procedures can be inlined unconditionally.
4135
4136 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4137
4138         * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
4139         non-addressable parameter passed by reference, do not convert the
4140         actual if its type is already the nominal type, unless it is of
4141         self-referential size.
4142
4143 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
4144
4145         * gnat_ugn.texi: Fix typos.
4146
4147 2009-04-20  Robert Dewar  <dewar@adacore.com>
4148
4149         * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
4150         Validate_Unchecked_Warnings to suppress warnings about size or
4151         alignment or extra bits if either type involved has pragma Warnings
4152         (Off) set for the type entity.
4153
4154 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4155
4156         * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
4157         a builtin type and give it a name.
4158
4159 2009-04-17  Diego Novillo  <dnovillo@google.com>
4160
4161         * gcc-interface/misc.c (gnat_expand_expr): Remove.
4162         (LANG_HOOKS_EXPAND_EXPR): Remove.
4163
4164 2009-04-17  Robert Dewar  <dewar@adacore.com>
4165
4166         * sem_ch3.adb: Minor reformatting
4167
4168 2009-04-17  Pascal Obry  <obry@adacore.com>
4169
4170         * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
4171
4172 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
4173
4174         * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
4175         illegal constraints on type derived from formal discrete types.
4176
4177 2009-04-17  Thomas Quinot  <quinot@adacore.com>
4178
4179         PR ada/35953
4180
4181         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4182         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4183         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
4184         g-socket.ads (GNAT.Sockets.Thin.C_Send,
4185         GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
4186         Replace calls to send(2) with equivalent sendto(2) calls.
4187         (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
4188         (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
4189         report an error in that case. Factor code common to the two versions
4190         (datagram and stream) in common routine Stream_Write.
4191
4192 2009-04-17  Robert Dewar  <dewar@adacore.com>
4193
4194         * exp_disp.adb: Minor reformatting
4195         Minor code reorganization (use Nkind_In)
4196
4197         * prepcomp.adb: Minor reformatting
4198
4199         * sem_ch3.adb: Minor reformatting
4200
4201         * sem_res.adb: Minor comment addition
4202
4203         * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
4204         for address clause
4205
4206         * lib-xref.adb (Generate_Reference): Exclude recursive calls from
4207         setting Is_Referenced
4208
4209         * types.ads: Minor reformatting
4210
4211 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
4212
4213         * gnat_ugn.texi: Initial documentation on binding generator.
4214
4215 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
4216
4217         * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
4218         type extensions whose parent is a type with unknown discriminants.
4219
4220         * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
4221         aggregate has unknown discriminants, use the Underlying_Record_View to
4222         obtain the discriminants of the ancestor part.
4223
4224         * exp_disp.adb (Build_Dispatch_Tables): Types that are
4225         Underlying_Record_Views share the dispatching information of the
4226         original record extension.
4227
4228         * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
4229         discriminants, propagate dispach table information to the
4230         Underlying_Record_View.
4231
4232         * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
4233         discriminants and declaration is not a completion, generate
4234         Underlying_Record_View to provide proper discriminant information to
4235         the front-end and to gigi.
4236
4237 2009-04-17  Robert Dewar  <dewar@adacore.com>
4238
4239         * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
4240         s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
4241         s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
4242         g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
4243         s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
4244         s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
4245         g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
4246         s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
4247         g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
4248         s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
4249         s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
4250         s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
4251         s-conca3.ads: Remove unneeded pragma Warnings
4252
4253 2009-04-17  Robert Dewar  <dewar@adacore.com>
4254
4255         * g-moreex.adb: Add comments.
4256
4257         * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
4258
4259         * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
4260         Warnings (Off)
4261
4262         * prepcomp.adb: Add ??? comment
4263
4264         * a-tasatt.adb: Minor reformatting
4265
4266         * g-trasym-vms-alpha.adb: Add ??? comment
4267
4268         * g-trasym-vms-ia64.adb: Add ??? comment
4269
4270         * xoscons.adb: Minor reformatting
4271
4272         * s-tassta.adb: Minor reformatting
4273
4274         * s-scaval.adb: Add ??? comment
4275
4276         * stand.ads: Minor code clean up (remove junk with of Namet)
4277
4278         * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
4279         s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
4280         s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
4281         s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
4282         s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
4283         s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
4284         s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
4285         s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
4286         Warnings off pragmas.
4287
4288 2009-04-17  Pascal Obry  <obry@adacore.com>
4289
4290         * initialize.c: Fix test for reallocating the arguments array.
4291
4292 2009-04-17  Geert Bosch  <bosch@adacore.com>
4293
4294         * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
4295         conversion truncate only for decimal fixed point types.
4296
4297 2009-04-17  Jerome Lambourg  <lambourg@adacore.com>
4298
4299         * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
4300         reinitialized.
4301
4302 2009-04-17  Robert Dewar  <dewar@adacore.com>
4303
4304         * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
4305         Backwards_OK if either operand has an address clause.
4306
4307 2009-04-17  Pascal Obry  <obry@adacore.com>
4308
4309         * initialize.c: Code clean up, use realloc.
4310
4311 2009-04-17  Pascal Obry  <obry@adacore.com>
4312
4313         * initialize.c: Do not get Unicode command line if Unicode support not
4314         activated.
4315         Add support for wildcard expansion for Unicode parameters on Win32.
4316
4317         * mingw32.h: Add missing macros when Unicode support not activated.
4318
4319 2009-04-17  Javier Miranda  <miranda@adacore.com>
4320
4321         * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
4322         avoid generating code that references the Current_Master
4323         when compiling without tasks.
4324
4325 2009-04-17  Vincent Celier  <celier@adacore.com>
4326
4327         * prj-attr.adb: New project level attribute Target
4328         
4329         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4330         attribute Target
4331         
4332         * prj.ads (Project_Configuration): New component Target
4333
4334 2009-04-17  Thomas Quinot  <quinot@adacore.com>
4335
4336         * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
4337         case for the case of an aggregate component, the attach call for the
4338         result is actually needed.
4339
4340         * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
4341         an array aggregate must be disabled if the component type requires
4342         controlled actions.
4343
4344         * exp_ch3.adb: Minor reformatting
4345
4346 2009-04-17  Bob Duff  <duff@adacore.com>
4347
4348         * output.ads (Indent,Outdent): New procedures for indenting the output.
4349         (Write_Char): Correct comment -- LF _is_ allowed.
4350
4351         * output.adb (Indent,Outdent): New procedures for indenting the output.
4352         Keep track of the indentation level, and make sure it doesn't get too
4353         high.
4354         (Flush_Buffer): Insert spaces at the beginning of each line, if
4355         indentation level is nonzero.
4356         (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
4357         indentation level.
4358         (Set_Standard_Error,Set_Standard_Output): Remove superfluous
4359         "Next_Col := 1;".  Flush_Buffer does that.
4360
4361         * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
4362         controlled by the -gnatdc switch. It now occurs on entry/exit to the
4363         relevant analysis routines, and calls Indent/Outdent to make the
4364         indentation reflect the nesting level.  Add "helper" routines, since
4365         otherwise lots of "return;" statements would skip the debugging output.
4366
4367 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
4368
4369         * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
4370         s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
4371         s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
4372
4373 2009-04-17  Thomas Quinot  <quinot@adacore.com>
4374
4375         * exp_aggr.adb: Minor code reorganization, no behaviour change.
4376
4377 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
4378
4379         * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
4380         clause in a unit that is a package body or a subunit, when the previous
4381         clause appears in a spec or a parent.
4382
4383 2009-04-17  Thomas Quinot  <quinot@adacore.com>
4384
4385         * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
4386
4387         * exp_ch7.adb: Minor reformatting
4388
4389 2009-04-17  Bob Duff  <duff@adacore.com>
4390
4391         * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
4392         allocator, check that the expression of the qualified expression obeys
4393         the constraints of the subtype of the qualified expression.
4394
4395 2009-04-17  Thomas Quinot  <quinot@adacore.com>
4396
4397         * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
4398
4399 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
4400
4401         * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
4402         aggregate, using context imposed by subtype mark in allocator.
4403
4404 2009-04-17  Pascal Obry  <obry@adacore.com>
4405
4406         * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
4407
4408 2009-04-17  Nicolas Roche  <roche@adacore.com>
4409
4410         * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
4411         argument length.
4412
4413 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
4414
4415         * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
4416         cover both calls and attribute references ("call" => "reference").
4417
4418 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
4419
4420         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
4421         type for which Storage_Size is set to 0 is legal in a pure unit.
4422
4423 2009-04-17  Thomas Quinot  <quinot@adacore.com>
4424
4425         * exp_ch7.adb: Minor reformatting
4426
4427 2009-04-17  Robert Dewar  <dewar@adacore.com>
4428
4429         * restrict.adb (Check_Restriction_No_Dependence): Don't check
4430         restriction if outside main extended source unit.
4431
4432         * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
4433         for parents of child units as well as the child unit itself.
4434
4435 2009-04-17  Bob Duff  <duff@adacore.com>
4436
4437         * checks.ads: Minor comment fix
4438
4439         * exp_aggr.ads: Minor comment fix
4440
4441 2009-04-17  Nicolas Roche  <roche@adacore.com>
4442
4443         * adaint.c: Improve cross compiler detection and handling.
4444
4445 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4446
4447         * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
4448
4449 2009-04-17  Pascal Obry  <obry@adacore.com>
4450
4451         * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
4452         CurrentCodePage.
4453
4454         * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
4455         value when no encoding form paramter is set on Text_IO services.
4456
4457         * adaint.c: CurrentCodePage new variable on Windows.
4458         Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
4459         ones.
4460
4461         * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
4462         ones.
4463
4464         * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
4465         environment variable value. Default is UTF-8.
4466
4467         * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
4468         fopen and freopen encoding parameter is now set to Unspecified.
4469         The default value is in this case UTF-8 (as it was before) but
4470         use the new macros that convert to/from the code page set
4471         at runtime (CurrentCodePage).
4472
4473         * s-fileio.adb: When no encoding specified use Unspecified value.
4474
4475 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
4476
4477         * atree.adb, atree.ads: Remove dead code.
4478
4479 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
4480
4481         * gcc-interface/Make-lang.in: Update dependencies.
4482
4483 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
4484
4485         * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
4486         illegal uses of incomplete types in formal parts and return types.
4487
4488         * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
4489         access to subprograms.
4490
4491         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
4492         Taft-amendment types as the return type of an access_to_function type.
4493
4494         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
4495         type for access_to_subprograms. The check is performed on package exit.
4496
4497 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
4498
4499         * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
4500
4501         * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
4502         
4503         * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
4504
4505         * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
4506         semantic units, because the handling of itypes in the copied tree
4507         requires semantic information that does not belong in atree.
4508
4509 2009-04-17  Robert Dewar  <dewar@adacore.com>
4510
4511         * par-ch6.adb: Minor reformatting
4512
4513         * prj.adb: Minor reformatting
4514
4515 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
4516
4517         * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
4518         on protected subprogram bodies, so exclude the case where Pf_Flags is
4519         Pf_Decl_Pbod from the error check.
4520
4521         * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
4522         indicators on subprograms in protected bodies, and proceed with parsing
4523         the subprogram.
4524
4525         * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
4526         subprograms from the check for primitiveness on subprograms with
4527         overriding indicators.
4528         (Check_Overriding_Indicator): Include protected subprograms in the
4529         style check for missing overriding indicators.
4530
4531 2009-04-17  Tristan Gingold  <gingold@adacore.com>
4532
4533         * init.c: Fix stack checking for x86 Darwin.
4534
4535 2009-04-17  Vincent Celier  <celier@adacore.com>
4536
4537         * prj-attr.adb: New project level attribute Object_File_Suffix
4538         (<language>).
4539         
4540         * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
4541         object file name
4542         (Process_Compiler): Process attribute Object_File_Suffix
4543
4544         * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
4545         platform suffix, when specified.
4546
4547         * prj.ads (Language_Config): New component Object_File_Suffix,
4548         defaulted to No_Name.
4549         (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
4550
4551         * snames.ads-tmpl: New standard name Object_File_Suffix
4552
4553 2009-04-17  Robert Dewar  <dewar@adacore.com>
4554
4555         * gnat_rm.texi: Add documentation about No_Streams restriction
4556
4557         * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
4558         attributes when checking No_Streams restriction.
4559
4560 2009-04-17  Thomas Quinot  <quinot@adacore.com>
4561
4562         * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
4563
4564         * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
4565         missing calls to RE_Request_Destroy to deallocate request objects after
4566         use.
4567
4568 2009-04-17  Nicolas Setton  <setton@adacore.com>
4569
4570         * link.c: Fix support for passing a response file under Darwin.
4571
4572 2009-04-17  Emmanuel Briot  <briot@adacore.com>
4573
4574         * prj.adb (Free): new subprogram.
4575
4576 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
4577
4578         * sem_ch3.adb: additional initialization on incomplete subtypes.
4579         
4580         * sem_ch6.adb (Process_Formals): if the subprogram is in the private
4581         part and one of the formals is an incomplete tagged type, attach to
4582         list of private dependends of the type for later validation.
4583
4584         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
4585         primitive operations of a Taft-amendmment type.
4586
4587         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
4588         type. The check is performed on package exit, possibly after the
4589         subprogram is frozen.
4590
4591 2009-04-17  Vincent Celier  <celier@adacore.com>
4592
4593         * prj-nmsc.adb (Get_Directories): Get the object and exec directory
4594         before looking for source directories, but make sure that there are nil
4595         if they are not explicitely declared and there is explicitely no
4596         sources in the project.
4597
4598 2009-04-17  Pascal Obry  <obry@adacore.com>
4599
4600         * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
4601
4602         * init.c: Fix minor typo and style fix.
4603
4604 2009-04-17  Robert Dewar  <dewar@adacore.com>
4605
4606         * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
4607
4608         * sem_attr.adb (Analyze_Attribute, case Address): Use
4609         PE_Address_Of_Intrinsic.
4610
4611         * types.ads: Add PE_Address_Of_Intrinsic
4612
4613         * types.h: Add PE_Address_Of_Intrinsic
4614
4615 2009-04-17  Nicolas Setton  <setton@adacore.com>
4616
4617         * gcc-interface/Makefile.in: Under darwin, build shared libraries
4618         with install_name starting with "@rpath/".
4619
4620 2009-04-17  Nicolas Setton  <setton@adacore.com>
4621
4622         * link.c: Add darwin section
4623
4624 2009-04-16  Robert Dewar  <dewar@adacore.com>
4625
4626         * g-pehage.adb: Minor reformatting
4627
4628         * sem_ch12.adb: Minor reformatting
4629
4630         * exp_dist.adb: Minor reformatting
4631
4632         * bindgen.adb: Minor style fixes.
4633
4634 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
4635
4636         * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
4637         indexed components to the case where the prefix is a static string
4638         literal.
4639
4640 2009-04-16  Javier Miranda  <miranda@adacore.com>
4641
4642         * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
4643         objects avoid any further expansion of the expression initializing the
4644         object.
4645
4646 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
4647
4648         * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
4649         that hides an outer homograph, make that homograph invisible when
4650         analyzing the actuals, to to prevent illegal direct visibility on it.
4651
4652 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
4653
4654         * g-pehage.adb (Initialize): Fix off-by-one error.
4655
4656 2009-04-16  Tristan Gingold  <gingold@adacore.com>
4657
4658         * init.c: Detect real stack overflow on Darwin.
4659
4660         * system-darwin-x86.ads: Use stack probing on darwin x86.
4661
4662 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
4663
4664         * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
4665         take the address of an intrinsic subprogram.
4666
4667 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
4668
4669         * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
4670         for the targets where GNAT.Traceback.Symbolic is not supported.
4671
4672 2009-04-16  Vincent Celier  <celier@adacore.com>
4673
4674         * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
4675
4676         * g-trasym.ads: Update comments.
4677
4678 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
4679
4680         * tracebak.c (STOP_FRAME): Verify validity of the current address
4681         before dereferencing.
4682
4683 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
4684
4685         * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
4686         the original location of the index expressions and the index subtypes,
4687         to prevent spurious out-of-scope references in gigi.
4688
4689 2009-04-16  Tristan Gingold  <gingold@adacore.com>
4690
4691         * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
4692         Add support for stack checking on darwin.
4693
4694 2009-04-16  Vincent Celier  <celier@adacore.com>
4695
4696         * prj-attr.adb: New attribute Runtime_Source_Dir
4697
4698         * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
4699         attribute Runtime_Source_Dir.
4700         (Check_Naming_Schemes): Give default values to out parameters to avoid
4701         invalid data.
4702
4703         * prj.ads (Language_Config): New component Runtime_Source_Dir
4704
4705         * snames.ads-tmpl: New standard name Runtime_Source_Dir
4706
4707 2009-04-16  Pascal Obry  <obry@adacore.com>
4708
4709         * adaint.h, adaint.c (__gnat_rmdir): New routine.
4710         Simple wrapper routines used to convert to proper encoding on
4711         Windows.
4712
4713         * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
4714
4715         * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
4716         twice.
4717
4718 2009-04-16  Pascal Obry  <obry@adacore.com>
4719
4720         * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
4721
4722 2009-04-16  Thomas Quinot  <quinot@adacore.com>
4723
4724         * snames.ads-tmpl (Name_Defined): New predefined name for use by the
4725         integrated preprocessor.
4726
4727         * prep.ads, prep.adb (Setup_Hooks): New subprogram.
4728         (Initialize): Split into two subprograms, Initialize (to be called
4729         prior to compiler command line processing) and Setup_Hooks (to be called
4730         later on when the first source file is loaded).
4731
4732         * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
4733         Add call to Prep.Initialize.
4734
4735         * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
4736         to Prep.Setup_Hooks.
4737
4738 2009-04-16  Pascal Obry  <obry@adacore.com>
4739
4740         * adaint.h, adaint.c (__gnat_chdir): New routine.
4741         Simple wrapper routines used to convert to proper encoding on
4742         Windows.
4743
4744         * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
4745
4746         * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
4747
4748 2009-04-16  Quentin Ochem  <ochem@adacore.com>
4749
4750         * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
4751         of Source.Init.
4752
4753 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
4754
4755         * a-convec.ads (Is_Empty): Mark inline.
4756
4757 2009-04-16  Nicolas Roche  <roche@adacore.com>
4758
4759         * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
4760
4761 2009-04-16  Thomas Quinot  <quinot@adacore.com>
4762
4763         * prepcomp.adb: Minor reformatting
4764
4765 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
4766
4767         * sem_prag.adb (Process_Import_Or_Interface): With .NET,
4768         Access_Subprogram types can also be imported.
4769         (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
4770         names.
4771
4772 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
4773
4774         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
4775         preserve homonym chain when the declaration is rewritten into a
4776         renaming declaration, in order to preserve visibility structure.
4777
4778 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
4779
4780         * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
4781         taken into account for VM targets.
4782
4783 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
4784
4785         * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
4786         Year_Week_In_Year.
4787         (Year_Week_In_Year): New routine which contains the original code from
4788         Week_In_Year. Add the missing special case for January 1st falling on
4789         a Monday.
4790
4791 2009-04-16  Thomas Quinot  <quinot@adacore.com>
4792
4793         * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
4794         actual type, use the base type to build the To_Any function.
4795         (Build_From_Any_Function): Remove junk, useless subtype conversion.
4796
4797 2009-04-16  Thomas Quinot  <quinot@adacore.com>
4798
4799         * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
4800         restrict.adb: Minor code reorganization (use
4801         Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
4802
4803 2009-04-16  Bob Duff  <duff@adacore.com>
4804
4805         * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
4806         unused.
4807
4808 2009-04-16  Thomas Quinot  <quinot@adacore.com>
4809
4810         * sem_ch4.adb: Minor reformatting
4811
4812         * adaint.c: Remove junk duplicated code.
4813
4814         * sem_ch3.adb: Minor reformatting
4815
4816         * exp_dist.adb: Minor comment rewording
4817
4818 2009-04-16  Robert Dewar  <dewar@adacore.com>
4819
4820         * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
4821         used together.
4822
4823 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
4824
4825         * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
4826         usable before calling Add_One_Interp, to resolve spurious ambiguities.
4827
4828 2009-04-16  Robert Dewar  <dewar@adacore.com>
4829
4830         * Make-lang.in: Add entries for s-conca?.o
4831
4832         * Makefile.rtl: Add entries for s-conca?
4833
4834         * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
4835         of concatenation expansion
4836
4837         * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
4838         string cases instead of expanding assignments inline.
4839
4840         * opt.ads (Optimize_Size): New flag
4841
4842         * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
4843         s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
4844         s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
4845         s-conca9.adb, s-conca9.ads: New file.
4846
4847 2009-04-16  Robert Dewar  <dewar@adacore.com>
4848
4849         * exp_ch6.adb: Add comments
4850
4851         * rtsfind.ads: Add entries for s-conca? routines
4852
4853 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
4854
4855         * gcc-interface/Make-lang.in: Update dependencies.
4856
4857         * gcc-interface/Makefile.in: Update translation for vms.
4858
4859 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
4860
4861         * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
4862         and made global, to be used when installing parents of a child
4863         instance, to provide mappings for entities declared in formal packages
4864         of ancestor units. Now called from Install_Formal_Packages.
4865
4866 2009-04-16  Doug Rupp  <rupp@adacore.com>
4867
4868         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
4869         notation for clarity.
4870
4871         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4872         s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
4873         s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
4874         (Initialize): Initialize Known_Tasks with Environment task.
4875
4876         * s-taskin.ads (Task_States): Move new states to end for the sake of
4877         GDB compatibility.
4878
4879         * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
4880
4881 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
4882
4883         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
4884         operation has an inline pragma, propagate the flag to the internal
4885         unprotected subprogram.
4886
4887 2009-04-16  Doug Rupp  <rupp@adacore.com>
4888
4889         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
4890         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb, 
4891         s-taprop-hpux-dce.adb, s-taprop-posix.adb
4892         (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
4893
4894         * s-taprop-vms.adb (Enter_Task): Likewise.
4895         (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
4896
4897         * s-tassta.adb (Activate_Tasks): After task creation set state to
4898         Activating, vice Runnable. Initialize Known_Tasks, moved here from
4899         s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
4900         Set state to Runnable after above.
4901         (Task_Wrapper): Set Debug_Event_Run. In exception block set
4902         Debug_Event_Terminated.
4903
4904         * s-taskin.ads (Task_States): Add new states Activiting and
4905         Activator_Delay_Sleep.
4906         (Bit_Array, Debug_Event_Array): New types.
4907         (Global_Task_Debug_Event_Set: New flag.
4908         (Common_ATCB): New field Debug_Events.
4909
4910         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
4911
4912         * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
4913         Activator_Sleep.
4914
4915         * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
4916         Activating and when Acceptor_Delay_Sleep.
4917
4918         * s-tasdeb.ads: Add constants for Debug_Events.
4919         (Debug_Event_Kind_Type): New subtype.
4920         (Signal_Debug_Event): New subprogram.
4921
4922         * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
4923
4924 2009-04-16  Thomas Quinot  <quinot@adacore.com>
4925
4926         * sem_elim.adb: Minor reformatting
4927
4928         * freeze.adb: Minor reformatting
4929
4930         * exp_ch4.adb: Minor reformatting
4931
4932 2009-04-16  Emmanuel Briot  <briot@adacore.com>
4933
4934         * prj-nmsc.adb (Path_Name_Of): fix memory leak
4935
4936 2009-04-16  Robert Dewar  <dewar@adacore.com>
4937
4938         * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
4939
4940 2009-04-16  Vincent Celier  <celier@adacore.com>
4941
4942         * fmap.adb (Initialize): Show the current line when the mapping file
4943         is detected as "incorrectly formatted".
4944
4945 2009-04-16  Robert Dewar  <dewar@adacore.com>
4946
4947         * sem_ch12.adb: Minor reformatting
4948
4949         * sem_ch5.adb: Minor comment addition
4950
4951         * sem_util.adb: Minor reformatting
4952
4953         * sinput-p.adb: Minor reformatting
4954         Add missing pragma Warnings (On)
4955
4956 2009-04-16  Ed Falis  <falis@adacore.com>
4957
4958         * s-vxwext-kernel.adb: (ERROR): deleted unused constant
4959
4960 2009-04-16  Vincent Celier  <celier@adacore.com>
4961
4962         * ali-util.adb: Minor comment spelling error fix
4963
4964 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
4965
4966         * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
4967         generate an assignment loop in case of overlap.
4968
4969 2009-04-16  Olivier Hainque  <hainque@adacore.com>
4970
4971         * gnat_ugn.texi (gnatmem description): Make it explicit that
4972         gnatmem is designed to work in association with static runtime
4973         library only.
4974
4975 2009-04-16  Thomas Quinot  <quinot@adacore.com>
4976
4977         * sem_type.adb: Minor reformatting
4978
4979 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
4980
4981         * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
4982         concerning return codes of gettimeofday and return value check.
4983
4984 2009-04-16  Ed Falis  <falis@adacore.com>
4985
4986         * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
4987         body can be renaming of imported routines.
4988
4989 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
4990
4991         * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
4992         targeted fashion.
4993
4994 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
4995
4996         * exp_ch9.adb: Comment improvements.
4997         (Build_Entry_Family_Name): Add parentheses around the index of a entry
4998         family member.
4999
5000 2009-04-15  Bob Duff  <duff@adacore.com>
5001
5002         * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
5003         "while X /= null loop" where X is unchanged inside the loop. We were
5004         not warning in this case, because of the pointers -- we feared that the
5005         loop variable could be updated via a pointer, if there are any pointers
5006         around the place. But that is impossible in this case.
5007
5008         * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
5009         the case of dereferences. In X.all, X cannot be an l-value. We now
5010         catch that case (and implicit dereferences, too).
5011
5012 2009-04-15  Vincent Celier  <celier@adacore.com>
5013
5014         * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
5015
5016 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5017
5018         * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
5019         From code reading.
5020         (Analyze_Package_Instantiation): If generic unit in child instance is
5021         the same as generic unit in parent instance, look for an outer homonym
5022         to locate the desired generic.
5023
5024 2009-04-15  Bob Duff  <duff@adacore.com>
5025
5026         * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
5027         warnings unless the loop comes from source, because checking generated
5028         loops is a waste of time, and makes it harder to debug
5029         Check_Infinite_Loop_Warning.
5030
5031         * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
5032         tested in the while loop is a renaming, do not warn. Otherwise, we get
5033         false alarms, because it's usually renaming something that we can't
5034         deal with (an indexed component, a global variable, ...).
5035
5036         * gnat_rm.texi: Fix typo
5037
5038 2009-04-15  Thomas Quinot  <quinot@adacore.com>
5039
5040         * sem_ch6.adb: Minor reformatting
5041
5042 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
5043
5044         * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
5045         immediate parent of the controlled function call is a component
5046         association.
5047
5048 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5049
5050         * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
5051         corresponding class-wide type is also in use.
5052
5053 2009-04-15  Thomas Quinot  <quinot@adacore.com>
5054
5055         * frontend.adb: Minor comment fix
5056
5057 2009-04-15  Robert Dewar  <dewar@adacore.com>
5058
5059         * gnatchop.adb (BOM_Length): New global variable
5060         (Write_Unit): Add new parameter Write_BOM
5061         (Write_Chopped_Files): Check for BOM and set Write_BOM for call
5062         to Write_Unit
5063
5064         * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
5065
5066 2009-04-15  Geert Bosch  <bosch@adacore.com>
5067
5068         * system-mingw-x86_64.ads, system-darwin-x86_64.ads
5069         (Backend_Overflow_Checks): Set to True.
5070
5071 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
5072
5073         * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
5074         keyword is given in a record extension.
5075
5076 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
5077
5078         * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
5079         of a controlled function call in the context of a record aggregate.
5080         This does not apply to array aggregates since the call will be expanded
5081         into assignments.
5082
5083 2009-04-15  Ed Falis  <falis@adacore.com>
5084
5085         * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
5086         s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
5087         s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
5088         s-osinte-vxworks* and s-vxwext*.
5089
5090 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
5091
5092         * gcc-interface/Make-lang.in: Update dependencies.
5093
5094         * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
5095         and s-vxwext*.
5096
5097 2009-04-15  Robert Dewar  <dewar@adacore.com>
5098
5099         * sem_ch13.adb (Unchecked_Conversions): Store source location instead
5100         of node for location for warning messages.
5101
5102         * gnatchop.adb: Minor reformatting
5103
5104 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5105
5106         * exp_ch6.adb: additional guard for renaming declarations for in
5107         parameters of an array type.
5108
5109 2009-04-15  Robert Dewar  <dewar@adacore.com>
5110
5111         * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
5112         in case they were rewritten by expander (Force_Evaluation).
5113
5114         * targparm.adb (Get_Target_Parameters): Correct check for
5115         Suppress_Exception_Locations.
5116
5117 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5118
5119         * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
5120         inlined  is of an array type that is not bit-packed, use a renaming
5121         declaration to capture its value, rather than a constant declaration.
5122
5123 2009-04-15  Robert Dewar  <dewar@adacore.com>
5124
5125         * rtsfind.adb: Minor reformatting.
5126
5127 2009-04-15  Emmanuel Briot  <briot@adacore.com>
5128
5129         * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
5130         Restore, and free the saved context.
5131
5132 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
5133
5134         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
5135         for illegal private extension from a synchronized interface parent in
5136         front of check for illegal limited extension so that limited extension
5137         from a synchronized interface will be rejected.
5138         (Check_Ifaces): Check that a private extension that has a synchronized
5139         interface as a progenitor must be explicitly declared synchronized.
5140         Also check that a record extension cannot derive from a synchronized
5141         interface.
5142
5143 2009-04-15  Pascal Obry  <obry@adacore.com>
5144
5145         * adaint.h (__gnat_unlink): Add spec.
5146         (__gnat_rename): Likewise.
5147
5148 2009-04-15  Vincent Celier  <celier@adacore.com>
5149
5150         * prj-nmsc.adb: Minor spelling error corrections in error messages
5151
5152 2009-04-15  Robert Dewar  <dewar@adacore.com>
5153
5154         * sinfo.ads: Minor comment update
5155
5156         * opt.ads: Minor comment updates
5157
5158         * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
5159         modular type.
5160
5161 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5162
5163         * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
5164         that generates the code needed to update a dispatch table when a
5165         primitive operation is declared with a subprogram body without previous
5166         spec. Insertion of the generated code is responsibility of the caller.
5167         (Make_DT): When building static tables, append the code created by
5168         Register_Primitive to update a secondary table after it has been
5169         constructed.
5170
5171         * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
5172
5173         * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
5174         on an overriding operation that implements an interface operation only
5175         if not building static dispatch tables.
5176
5177 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
5178
5179         * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
5180         does not cause overflow when converted to Duration. Use the safe value
5181         as the maximum allowable time delay..
5182
5183 2009-04-15  Jerome Lambourg  <lambourg@adacore.com>
5184
5185         * g-comlin.adb (Set_Command_Line): When adding a switch with attached
5186         parameter, specify that the delimiter is NUL, otherwise "-j2" will be
5187         translated to "-j 2".
5188
5189 2009-04-15  Bob Duff  <duff@adacore.com>
5190
5191         * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
5192         with_clauses, to avoid code duplication. Change this processing so we
5193         always add a with_clause on the main unit if needed.
5194
5195 2009-04-15  Pascal Obry  <obry@adacore.com>
5196
5197         Add support for Win32 native encoding for delete/rename routines.
5198         
5199         * adaint.c (__gnat_unlink): New routine.
5200         (__gnat_rename): New routine.
5201         Simple wrapper routines used to convert to proper encoding on
5202         Windows.
5203
5204         * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
5205         call to the C library.
5206
5207         * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
5208
5209 2009-04-15  Robert Dewar  <dewar@adacore.com>
5210
5211         * s-tassta.adb: Minor reformatting
5212
5213 2009-04-15  Robert Dewar  <dewar@adacore.com>
5214
5215         * frontend.adb (Frontend): Set proper default for
5216         Warn_On_Non_Local_Exception.
5217
5218         * opt.ads (Exception_Handler_Encountered): New flag
5219         (No_Warn_On_Non_Local_Exception): New flag
5220
5221         * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
5222
5223         * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
5224         (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
5225
5226 2009-04-15  Cyrille Comar  <comar@adacore.com>
5227
5228         * s-tassta.adb, a-exextr.adb, a-elchha.adb
5229         (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
5230         message when exception traces are active since it would generate
5231         redundant information.
5232         (Exception_Traces.Notify_Exception): put message output by a critical
5233         section to avoid unsynchronized output.
5234         (Trace_Unhandled_Exception_In_Task): put message output by a critical
5235         section to avoid unsynchronized output.
5236
5237 2009-04-15  Emmanuel Briot  <briot@adacore.com>
5238
5239         * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
5240         (Free): New subprogram.
5241
5242 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
5243
5244         * a-calend.adb: Add new constant Nanos_In_Four_Years.
5245         (Formatting_Operations.Time_Of): Change the way four year chunks of
5246         nanoseconds are added to the intermediate result.
5247
5248 2009-04-15  Nicolas Setton  <setton@adacore.com>
5249
5250         * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
5251         does not need to wait for a carriage return.
5252
5253 2009-04-15  Tristan Gingold  <gingold@adacore.com>
5254
5255         * bindgen.adb: Do not generate adafinal if No_Finalization restriction
5256         is set.
5257
5258 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5259
5260         * freeze.adb (Freeze_Entity): improve error message for improper use of
5261         incomplete types.
5262         Diagnose additional illegal uses of incomplete types in formal parts.
5263         appearing in formal parts.
5264
5265         * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
5266
5267 2009-04-15  Robert Dewar  <dewar@adacore.com>
5268
5269         * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
5270
5271 2009-04-15  Nicolas Roche  <roche@adacore.com>
5272
5273         * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
5274         current thread.
5275
5276         * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
5277
5278         * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
5279
5280 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5281
5282         * sem_ch4.adb: improve error message on exponentiation.
5283
5284 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
5285
5286         * a-calend.adb: Move constant Epoch_Offset from package
5287         Conversion_Operations to top level.
5288         (Delay_Operations.To_Duration): Define a constant which represents
5289         "end of time" and use it as a guard against very distant delay dates.
5290         Protect the code against overflow when performing the origin shift to
5291         Unix time.
5292
5293 2009-04-15  Robert Dewar  <dewar@adacore.com>
5294
5295         * sem_prag.adb: Minor reformatting.
5296
5297         * sem_type.adb: Minor reformatting
5298
5299 2009-04-15  Javier Miranda  <miranda@adacore.com>
5300
5301         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
5302         support to check eliminated subprograms.
5303
5304         * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
5305
5306         * sem_elim.adb (Set_Eliminated): Add support for elimination of
5307         dispatching subprograms.
5308
5309         * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
5310         operations. Initialize with "null" the slots of eliminated dispaching
5311         primitives.
5312         (Write_DT): Add output for eliminated primitives.
5313
5314         * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
5315
5316 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5317
5318         * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
5319         the second is redundant, regardless of scopes.
5320
5321 2009-04-15  Vincent Celier  <celier@adacore.com>
5322
5323         * prj-nmsc.adb (Get_Directories): Check for sources before checking
5324         the object directory as when there are no sources, they may not be any
5325         object directory.
5326
5327         * make.adb (Gnatmake): Do not attempt to get the path name of the exec
5328         directory, when there are no exec directory.
5329
5330 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5331
5332         * sem_type.adb (Remove_Conversions): In order to resolve spurious
5333         ambiguities, refine removal of universal interpretations from complex
5334         expressions with literal arguments, when some numeric operators have
5335         been declared abstract.
5336
5337 2009-04-15  Ed Falis  <falis@adacore.com>
5338
5339         * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
5340         and backward compatibility for targets using probing for stack overflow
5341
5342 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5343
5344         * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
5345         after any declaration, including renaming declarations.
5346
5347 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
5348
5349         * gcc-interface/Make-lang.in: Update dependencies.
5350
5351         * gcc-interface/Makefile.in: Fix VxWorks target pairs.
5352         Update xenomai target pairs.
5353
5354 2009-04-15  Javier Miranda  <miranda@adacore.com>
5355
5356         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
5357
5358         * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
5359         functions returning anonymous access to class-wide limited types. Mark
5360         also the containing scope as a task master.
5361
5362         * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
5363         limited-withed packages. Required to restore their visibility after
5364         processing packages associated with implicit with-clauses.
5365
5366         * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
5367         associated with return statements because this work is now done by
5368         Check_Anonymous_Return.
5369         (Build_Master): Code cleanup.
5370
5371 2009-04-15  Thomas Quinot  <quinot@adacore.com>
5372
5373         * sem_warn.ads: Minor reformatting
5374
5375 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5376
5377         * sem_ch3.adb: better error message for illegal interfaces
5378
5379         * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
5380         formal is an incomplete type from a limited_with clause.
5381
5382 2009-04-15  Vincent Celier  <celier@adacore.com>
5383
5384         * prj-nmsc.adb (Locate_Directory): New Boolean parameter
5385         Externally_Built indicating if the project is externally built. If it
5386         is, and --subdirs is specified, but the subdir does not exist, look
5387         for the specified directory, without the subdir.
5388
5389 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
5390
5391         * a-tasatt.adb: Fix typo, plus minor reformatting
5392
5393         * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
5394
5395         * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
5396
5397 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5398
5399         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
5400         private extension whose parent is a synchronized interface carries an
5401         explicit synchronized keyword.
5402
5403 2009-04-15  Thomas Quinot  <quinot@adacore.com>
5404
5405         * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
5406         instantiate generic shared object package with the corresponding
5407         record type.
5408
5409 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
5410
5411         * system-linux-sparc.ads: Remove obsolete entries.
5412
5413 2009-04-15  Thomas Quinot  <quinot@adacore.com>
5414
5415         * s-tasuti.ads: Add ??? comment
5416
5417 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
5418
5419         * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
5420         type even if the designated type comes from a limited_with clause, to
5421         ensure that the symbol for the finalization list of the access type is
5422         created.
5423
5424 2009-04-10  Robert Dewar  <dewar@adacore.com>
5425
5426         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
5427         for warning suppression.
5428
5429 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
5430
5431         * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
5432         identical, there is no redudancy to check.
5433
5434 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
5435
5436         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
5437         calls initializing SS_Allocator (which is initialized in following
5438         code).
5439         (Expand_Simple_Function_Return): Add comment about False value for
5440         Comes_From_Source on secondary-stack allocator.
5441
5442         * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
5443         (Build_Entry_Name): Add comment.
5444
5445 2009-04-10  Robert Dewar  <dewar@adacore.com>
5446
5447         * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
5448
5449         * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
5450         bound tested, since this is now done more generally in Sem_Res.
5451
5452         * sem_res.adb (Resolve_Comparison_Op): Add call to
5453         Check_Lower_Bound_Tested.
5454         (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
5455
5456         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
5457         (Low_Bound_Tested): New name for Low_Bound_Known flag
5458
5459         * exp_ch5.adb: Minor reformatting
5460
5461         * exp_ch4.adb:
5462         Add comments on copying the Comes_From_Source flag for allocators
5463
5464         * sinfo.ads:
5465         Add comments on copying the Comes_From_Source flag for allocators
5466
5467         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
5468         Comes_From_Source flag from old allocator to new one.
5469
5470 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
5471
5472         * sem_ch6.ads: Address missing documentation query
5473
5474 2009-04-10  Vincent Celier  <celier@adacore.com>
5475
5476         * prj-attr.adb:
5477         Add new Linker attributes Max_Command_Line_Length, Response_File_Format
5478         and Response_File_Switches.
5479
5480         * prj-nmsc.adb (Process_Linker): Process new attributes
5481         Max_Command_Line_Length, Response_File_Format and
5482         Response_File_Switches.
5483
5484         * prj.ads (Response_File_Format): New enumeration type
5485         (Project_Configuration): New componants Max_Command_Line_Length,
5486         Resp_File_Format and Resp_File_Options.
5487
5488         * snames.ads-tmpl: Add new standard names for linking response files
5489         for gprbuild: GNU, None, Object_List, Option_List,
5490         Max_Command_Line_Length, Response_File_Format and
5491         Response_File_Switches.
5492
5493 2009-04-10  Geert Bosch  <bosch@adacore.com>
5494
5495         * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
5496         system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
5497         system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
5498         system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
5499         system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
5500         system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
5501         system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
5502         system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
5503         system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
5504         system-vxworks-arm.ads, system-vxworks-m68k.ads,
5505         system-vxworks-mips.ads, system-vxworks-ppc.ads,
5506         system-vxworks-sparcv9.ads, system-vxworks-x86.ads
5507         (Backend_Overflow_Checks): Set to True.
5508
5509 2009-04-10  Thomas Quinot  <quinot@adacore.com>
5510
5511         * exp_attr.adb: Minor reformatting
5512
5513 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
5514
5515         * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
5516         analyze the expression for a postcondition, even if the compiler mode
5517         is Generate_Code.
5518
5519 2009-04-10  Robert Dewar  <dewar@adacore.com>
5520
5521         * sem_aux.adb: Minor reformatting
5522
5523 2009-04-10  Ed Falis  <falis@adacore.com>
5524
5525         * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
5526
5527         * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
5528
5529 2009-04-10  Thomas Quinot  <quinot@adacore.com>
5530
5531         * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
5532         undocumented formal.
5533         Minor reformatting
5534
5535         * a-direio.ads: Fix typo in comment
5536
5537         * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
5538         errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
5539         Use uniform phrasing for comment at start of subprogram body.
5540
5541         * xsnamest.adb: Add note to explain why we use specific names for the
5542         newly generated files instead of generating snames.{ads,adb,h} directly
5543
5544 2009-04-10  Sergey Rybin  <rybin@adacore.com>
5545
5546         * vms_data.ads:
5547         Add qualifier for new gnatstub option '--no-exception'
5548
5549         * gnat_ugn.texi:
5550         Add the description of the new gnatstub option '--no-exception'
5551
5552 2009-04-10  Robert Dewar  <dewar@adacore.com>
5553
5554         * rtsfind.adb: Minor reformatting
5555
5556 2009-04-10  Thomas Quinot  <quinot@adacore.com>
5557
5558         * sem_disp.adb: Minor reformatting.
5559         Add comment pointing to RM clause for the case of warning against a
5560         (failed) attempt at declaring a primitive operation elsewhere than in a
5561         package spec.
5562
5563 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
5564
5565         * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
5566         an actual for a previous formal package of the current instance.
5567
5568 2009-04-10  Bob Duff  <duff@adacore.com>
5569
5570         * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
5571         them first, rather than on the extended main unit.
5572
5573 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
5574
5575         * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
5576         specification of full view carries a null exclusion indicator, create
5577         an itype for it, to check for conformance with partial view.
5578
5579 2009-04-10  Bob Duff  <duff@adacore.com>
5580
5581         * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
5582
5583         * rtsfind.adb: Minor comment changes, and remove useless code.
5584
5585         * sinfo.ads: Add ??? comment.
5586
5587 2009-04-10  Vincent Celier  <celier@adacore.com>
5588
5589         * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
5590
5591 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
5592
5593         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
5594         type is a synchronized type, retrieve tag information from the
5595         corresponding record, which has the dispatch table link.
5596
5597 2009-04-10  Jerome Lambourg  <lambourg@adacore.com>
5598
5599         * g-comlin.adb (Group_Analysis): Take care of switches that might be
5600         decomposed afterwards, but are present as-is in the command line
5601         configuration, and thus should be kept as-is.
5602
5603 2009-04-10  Robert Dewar  <dewar@adacore.com>
5604
5605         * gnat_rm.texi: Document that postconditions are tested on implicit
5606         returns.
5607
5608         * sem_aux.adb: Minor reformatting
5609
5610 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
5611
5612         * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
5613         setting Etype.
5614         
5615         * par-ch3.adb (P_Access_Type_Definition): Set new attribute
5616         Null_Exclusion_In_Return_Present when an access-to-function type has a
5617         result type with an explicit not null.
5618
5619         * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
5620         given on the result type, then create a null-excluding itype for the
5621         function.
5622
5623         * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
5624         the case where a null exclusion is imposed on a named access type.
5625         (Analyze_Subprogram_Specification): Push and pop the scope of the
5626         function around the call to Analyze_Return_Type in the case of no
5627         formals, for consistency with handling when formals are present
5628         (Process_Formals does this). Ensures that any itype created for the
5629         return type will be associated with the proper scope.
5630
5631         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
5632         exclusion is given on a generic function's result type, then create a
5633         null-excluding itype for the generic function.
5634         (Instantiate_Object): Set Null_Exclusion_Present of a constant created
5635         for an actual for a formal in object according to the setting on the
5636         formal. Ensures null exclusion checks are done when the association is
5637         elaborated.
5638
5639         * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
5640         N_Access_Function_Definition.
5641
5642         * sinfo.adb: Add Get_ and Set_ operations for
5643         Null_Exclusion_In_Return_Present.
5644
5645 2009-04-10  Bob Duff  <duff@adacore.com>
5646
5647         * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
5648         call to the _Postconditions procedure in the case of implicit returns
5649         from analysis to expansion. This eliminates some duplicated code. Use
5650         the Postcondition_Proc to find the identity of this procedure during
5651         expansion.
5652
5653 2009-04-10  Robert Dewar  <dewar@adacore.com>
5654
5655         * sem_ch6.adb: Minor code clean up.
5656
5657         * einfo.ads, sem_attr.adb: Minor comment fixes.
5658
5659 2009-04-10  Robert Dewar  <dewar@adacore.com>
5660
5661         * sem_ch8.adb: Minor reformatting
5662
5663 2009-04-10  Robert Dewar  <dewar@adacore.com>
5664
5665         * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
5666         procedures.
5667
5668         * sem_ch6.adb: Minor code clean up.
5669
5670 2009-04-10  Robert Dewar  <dewar@adacore.com>
5671
5672         * mlib-tgt-specific-xi.adb: Minor reformatting
5673
5674 2009-04-10  Bob Duff  <duff@adacore.com>
5675
5676         * einfo.ads: Minor comment fixes
5677
5678 2009-04-10  Vincent Celier  <celier@adacore.com>
5679
5680         * snames.ads-tmpl: Remove names that are no longer used in the
5681         Project Manager.
5682         Mark specifically those that are used only in gprbuild
5683
5684 2009-04-10  Eric Botcazou  <ebotcazou@adacore.com>
5685
5686         * init.c: Adjust EH support code on Alpha/Tru64.
5687
5688 2009-04-10  Bob Duff  <duff@adacore.com>
5689
5690         * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
5691         procedure on every path that could return implicitly (not via a return
5692         statement) from a procedure.
5693
5694 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
5695
5696         * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
5697         valid scope for a task declarations and therefore for a master id.
5698
5699 2009-04-10  Robert Dewar  <dewar@adacore.com>
5700
5701         * sem_aux.adb: Minor reformatting
5702
5703 2009-04-10  Vincent Celier  <celier@adacore.com>
5704
5705         * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
5706         True.
5707         (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
5708         (Set_Obsolescent_Check): New procedure to change the value of
5709         Obsolescent_Check_Flag.
5710
5711         * scn.ads (Set_Obsolescent_Check): New procedure to control
5712         Obsolescent_Check.
5713
5714         * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
5715         obsolescent features while preprocessing.
5716
5717 2009-04-10  Thomas Quinot  <quinot@adacore.com>
5718
5719         * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
5720         generated files on all platforms.
5721
5722 2009-04-10  Robert Dewar  <dewar@adacore.com>
5723
5724         * sem_aux.adb: Minor reformatting
5725
5726 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
5727
5728         * sem_ch3.adb (Access_Definition): Handle properly the case of a
5729         protected function with formals that returns an anonymous access type.
5730
5731 2009-04-10  Thomas Quinot  <quinot@adacore.com>
5732
5733         * sem_disp.adb: Minor reformatting
5734
5735 2009-04-10  Vasiliy Fofanov  <fofanov@adacore.com>
5736
5737         * seh_init.c: Do not use the 32-bit specific implementation of
5738         __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
5739         version TBD).
5740
5741 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
5742
5743         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
5744         a '/' at the end so we better use the complete target name to determine
5745         whether it is a PowerPC 55xx target.
5746
5747 2009-04-10  Thomas Quinot  <quinot@adacore.com>
5748
5749         * sem_eval.adb: Minor reformatting
5750
5751 2009-04-10  Thomas Quinot  <quinot@adacore.com>
5752
5753         * snames.h, snames.ads, snames.adb: Remove files, now generated from
5754         templates.
5755
5756         * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
5757         above.
5758
5759         * xsnamest.adb: New file.
5760
5761         * gcc-interface/Make-lang.in: New target for automated generation of
5762         snames.ads, snames.adb and snames.h
5763
5764 2009-04-10  Tristan Gingold  <gingold@adacore.com>
5765
5766         * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
5767         avoid compile time warnings.
5768         Do not add gcc/config in include search list while compiling the RTS.
5769         Pragma Thread_Local_Storage is available on any target.
5770
5771 2009-04-10  Bob Duff  <duff@adacore.com>
5772
5773         * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
5774
5775 2009-04-10  Tristan Gingold  <gingold@adacore.com>
5776
5777         * init.c: Install signal handler on Darwin.
5778
5779 2009-04-10  Robert Dewar  <dewar@adacore.com>
5780
5781         * sem_prag.adb: Minor reformatting
5782
5783         * exp_util.adb (Make_Non_Empty_Check): New function
5784         (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
5785         (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
5786
5787 2009-04-10  Arnaud Charlet  <charlet@adacore.com>
5788
5789         * make.adb, gnatlink.adb: Rename JGNAT toolchain.
5790
5791 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
5792
5793         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
5794         tool prefix for AVR and PowerPC 55xx targets.
5795
5796 2009-04-10  Robert Dewar  <dewar@adacore.com>
5797
5798         * sem_warn.adb (Within_Postcondition): New function
5799         (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
5800
5801 2009-04-10  Robert Dewar  <dewar@adacore.com>
5802
5803         * sem_warn.adb: Minor reformatting
5804
5805         * make.adb: Minor reformatting.
5806
5807 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
5808
5809         * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
5810         entity and the scope is a subprogram, retrieve the Sloc of the
5811         subprogram's body rather than using the sloc of the spec, for better
5812         line-stepping behavior in gdb.
5813         (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
5814         controller, use the Sloc of the first declaration of the containing list
5815         rather than that of the node that triggered creation of the list
5816         controller.
5817
5818 2009-04-10  Vincent Celier  <celier@adacore.com>
5819
5820         * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
5821         to avoid gcc warning.
5822
5823 2009-04-10  Robert Dewar  <dewar@adacore.com>
5824
5825         * g-comlin.adb: Add ??? comment
5826
5827 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
5828
5829         * sem_warn.adb (Check_Unused_Withs): Do not emit message about
5830         unreferenced entities for a package with no visible declarations.
5831
5832 2009-04-10  Robert Dewar  <dewar@adacore.com>
5833
5834         * exp_ch9.adb: Minor reformatting
5835
5836 2009-04-10  Thomas Quinot  <quinot@adacore.com>
5837
5838         * sem_prag.adb: Minor reformatting
5839
5840 2009-04-10  Vincent Celier  <celier@adacore.com>
5841
5842         * prj-nmsc.adb:
5843         (Check_Library_Attributes): For a project qualified as a library project
5844         that is not a library project, indicate in the error message which
5845         attributes are missing (Library_Dir and/or Library_Name).
5846
5847 2009-04-10  Bob Duff  <duff@adacore.com>
5848
5849         * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
5850         generated nodes, because it might confuse various circuits in the FE.
5851
5852 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
5853
5854         * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
5855         of pragma. It will be recopied and analyzed when used in call to
5856         Create_Task.
5857
5858         * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
5859         initialization operations and recognize use of it in procedure calls
5860         within init_procs.
5861
5862         * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
5863         argument, because it may have side-effects.
5864
5865         * exp_ch2.adb: Remove obsolete comments on default functions
5866
5867 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
5868
5869         * adaint.c (RTX section): Do for RTX the same thing as we do for
5870         Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
5871
5872 2009-04-10  Robert Dewar  <dewar@adacore.com>
5873
5874         * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
5875
5876         * sem_res.adb (Resolve_Call): Fix test for
5877         Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
5878         a non-dynamic scope).
5879
5880 2009-04-10  Robert Dewar  <dewar@adacore.com>
5881
5882         * make.adb: Add comment.
5883         Minor reformatting
5884
5885 2009-04-10  Nicolas Setton  <setton@adacore.com>
5886
5887         * s-osprim-darwin.adb: New file.
5888
5889         * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
5890
5891 2009-04-10  Thomas Quinot  <quinot@adacore.com>
5892
5893         * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
5894
5895 2009-04-09  Nick Clifton  <nickc@redhat.com>
5896
5897         * adadecode.h: Change copyright header to refer to version
5898         3 of the GNU General Public License with version 3.1 of the
5899         GCC Runtime Library Exception and to point readers at the
5900         COPYING3 and COPYING3.RUNTIME files and the FSF's license web
5901         page.
5902         * 9drpc.adb: Likewise.
5903         * a-assert.adb: Likewise.
5904         * a-astaco.adb: Likewise.
5905         * a-calari.adb: Likewise.
5906         * a-calcon.adb: Likewise.
5907         * a-calcon.ads: Likewise.
5908         * a-caldel.ads: Likewise.
5909         * a-calend-vms.adb: Likewise.
5910         * a-calend-vms.ads: Likewise.
5911         * a-calend.adb: Likewise.
5912         * a-calend.ads: Likewise.
5913         * a-calfor.adb: Likewise.
5914         * a-catizo.adb: Likewise.
5915         * a-cdlili.adb: Likewise.
5916         * a-cdlili.ads: Likewise.
5917         * a-cgaaso.adb: Likewise.
5918         * a-cgaaso.ads: Likewise.
5919         * a-cgarso.adb: Likewise.
5920         * a-cgcaso.adb: Likewise.
5921         * a-chacon.adb: Likewise.
5922         * a-chacon.ads: Likewise.
5923         * a-chahan.adb: Likewise.
5924         * a-chahan.ads: Likewise.
5925         * a-chlat9.ads: Likewise.
5926         * a-chtgke.adb: Likewise.
5927         * a-chtgke.ads: Likewise.
5928         * a-chtgop.adb: Likewise.
5929         * a-chtgop.ads: Likewise.
5930         * a-chzla1.ads: Likewise.
5931         * a-chzla9.ads: Likewise.
5932         * a-cidlli.adb: Likewise.
5933         * a-cidlli.ads: Likewise.
5934         * a-cihama.adb: Likewise.
5935         * a-cihama.ads: Likewise.
5936         * a-cihase.adb: Likewise.
5937         * a-cihase.ads: Likewise.
5938         * a-ciorma.adb: Likewise.
5939         * a-ciorma.ads: Likewise.
5940         * a-ciormu.adb: Likewise.
5941         * a-ciormu.ads: Likewise.
5942         * a-ciorse.adb: Likewise.
5943         * a-ciorse.ads: Likewise.
5944         * a-clrefi.adb: Likewise.
5945         * a-clrefi.ads: Likewise.
5946         * a-cohama.adb: Likewise.
5947         * a-cohama.ads: Likewise.
5948         * a-cohase.adb: Likewise.
5949         * a-cohase.ads: Likewise.
5950         * a-cohata.ads: Likewise.
5951         * a-coinve.adb: Likewise.
5952         * a-coinve.ads: Likewise.
5953         * a-colien.adb: Likewise.
5954         * a-colien.ads: Likewise.
5955         * a-colire.adb: Likewise.
5956         * a-colire.ads: Likewise.
5957         * a-comlin.adb: Likewise.
5958         * a-comlin.ads: Likewise.
5959         * a-convec.adb: Likewise.
5960         * a-convec.ads: Likewise.
5961         * a-coorma.adb: Likewise.
5962         * a-coorma.ads: Likewise.
5963         * a-coormu.adb: Likewise.
5964         * a-coormu.ads: Likewise.
5965         * a-coorse.adb: Likewise.
5966         * a-coorse.ads: Likewise.
5967         * a-coprnu.adb: Likewise.
5968         * a-coprnu.ads: Likewise.
5969         * a-crbltr.ads: Likewise.
5970         * a-crbtgk.adb: Likewise.
5971         * a-crbtgk.ads: Likewise.
5972         * a-crbtgo.adb: Likewise.
5973         * a-crbtgo.ads: Likewise.
5974         * a-crdlli.adb: Likewise.
5975         * a-crdlli.ads: Likewise.
5976         * a-cwila1.ads: Likewise.
5977         * a-cwila9.ads: Likewise.
5978         * a-decima.adb: Likewise.
5979         * a-decima.ads: Likewise.
5980         * a-diocst.adb: Likewise.
5981         * a-diocst.ads: Likewise.
5982         * a-direct.adb: Likewise.
5983         * a-direct.ads: Likewise.
5984         * a-direio.adb: Likewise.
5985         * a-direio.ads: Likewise.
5986         * a-dirval-mingw.adb: Likewise.
5987         * a-dirval-vms.adb: Likewise.
5988         * a-dirval.adb: Likewise.
5989         * a-dirval.ads: Likewise.
5990         * a-dynpri.adb: Likewise.
5991         * a-einuoc.adb: Likewise.
5992         * a-einuoc.ads: Likewise.
5993         * a-elchha.adb: Likewise.
5994         * a-elchha.ads: Likewise.
5995         * a-envvar.adb: Likewise.
5996         * a-excach.adb: Likewise.
5997         * a-except-2005.adb: Likewise.
5998         * a-except-2005.ads: Likewise.
5999         * a-except.adb: Likewise.
6000         * a-except.ads: Likewise.
6001         * a-excpol-abort.adb: Likewise.
6002         * a-excpol.adb: Likewise.
6003         * a-exctra.adb: Likewise.
6004         * a-exctra.ads: Likewise.
6005         * a-exetim-mingw.adb: Likewise.
6006         * a-exetim-mingw.ads: Likewise.
6007         * a-exexda.adb: Likewise.
6008         * a-exexpr-gcc.adb: Likewise.
6009         * a-exexpr.adb: Likewise.
6010         * a-exextr.adb: Likewise.
6011         * a-exstat.adb: Likewise.
6012         * a-filico.adb: Likewise.
6013         * a-filico.ads: Likewise.
6014         * a-finali.adb: Likewise.
6015         * a-finali.ads: Likewise.
6016         * a-interr.ads: Likewise.
6017         * a-intnam-aix.ads: Likewise.
6018         * a-intnam-darwin.ads: Likewise.
6019         * a-intnam-dummy.ads: Likewise.
6020         * a-intnam-freebsd.ads: Likewise.
6021         * a-intnam-hpux.ads: Likewise.
6022         * a-intnam-irix.ads: Likewise.
6023         * a-intnam-linux.ads: Likewise.
6024         * a-intnam-lynxos.ads: Likewise.
6025         * a-intnam-mingw.ads: Likewise.
6026         * a-intnam-rtems.ads: Likewise.
6027         * a-intnam-solaris.ads: Likewise.
6028         * a-intnam-tru64.ads: Likewise.
6029         * a-intnam-vms.ads: Likewise.
6030         * a-intnam-vxworks.ads: Likewise.
6031         * a-intsig.adb: Likewise.
6032         * a-intsig.ads: Likewise.
6033         * a-ngcefu.adb: Likewise.
6034         * a-ngcoar.adb: Likewise.
6035         * a-ngcoty.adb: Likewise.
6036         * a-ngcoty.ads: Likewise.
6037         * a-ngelfu.adb: Likewise.
6038         * a-ngrear.adb: Likewise.
6039         * a-ngrear.ads: Likewise.
6040         * a-nudira.adb: Likewise.
6041         * a-nudira.ads: Likewise.
6042         * a-nuflra.adb: Likewise.
6043         * a-nuflra.ads: Likewise.
6044         * a-numaux-darwin.adb: Likewise.
6045         * a-numaux-darwin.ads: Likewise.
6046         * a-numaux-libc-x86.ads: Likewise.
6047         * a-numaux-vxworks.ads: Likewise.
6048         * a-numaux-x86.adb: Likewise.
6049         * a-numaux-x86.ads: Likewise.
6050         * a-numaux.ads: Likewise.
6051         * a-rbtgso.adb: Likewise.
6052         * a-rbtgso.ads: Likewise.
6053         * a-reatim.ads: Likewise.
6054         * a-retide.adb: Likewise.
6055         * a-retide.ads: Likewise.
6056         * a-rttiev.adb: Likewise.
6057         * a-rttiev.ads: Likewise.
6058         * a-secain.adb: Likewise.
6059         * a-secain.ads: Likewise.
6060         * a-sequio.adb: Likewise.
6061         * a-sequio.ads: Likewise.
6062         * a-shcain.adb: Likewise.
6063         * a-shcain.ads: Likewise.
6064         * a-siocst.adb: Likewise.
6065         * a-siocst.ads: Likewise.
6066         * a-slcain.adb: Likewise.
6067         * a-slcain.ads: Likewise.
6068         * a-ssicst.adb: Likewise.
6069         * a-ssicst.ads: Likewise.
6070         * a-stboha.adb: Likewise.
6071         * a-stmaco.ads: Likewise.
6072         * a-storio.adb: Likewise.
6073         * a-strbou.adb: Likewise.
6074         * a-strbou.ads: Likewise.
6075         * a-stream.ads: Likewise.
6076         * a-strfix.adb: Likewise.
6077         * a-strhas.adb: Likewise.
6078         * a-strmap.adb: Likewise.
6079         * a-strmap.ads: Likewise.
6080         * a-strsea.adb: Likewise.
6081         * a-strsea.ads: Likewise.
6082         * a-strsup.adb: Likewise.
6083         * a-strsup.ads: Likewise.
6084         * a-strunb.adb: Likewise.
6085         * a-strunb.ads: Likewise.
6086         * a-ststio.adb: Likewise.
6087         * a-ststio.ads: Likewise.
6088         * a-stunau.adb: Likewise.
6089         * a-stunau.ads: Likewise.
6090         * a-stunha.adb: Likewise.
6091         * a-stwibo.adb: Likewise.
6092         * a-stwibo.ads: Likewise.
6093         * a-stwifi.adb: Likewise.
6094         * a-stwiha.adb: Likewise.
6095         * a-stwima.adb: Likewise.
6096         * a-stwima.ads: Likewise.
6097         * a-stwise.adb: Likewise.
6098         * a-stwise.ads: Likewise.
6099         * a-stwisu.adb: Likewise.
6100         * a-stwisu.ads: Likewise.
6101         * a-stwiun.adb: Likewise.
6102         * a-stwiun.ads: Likewise.
6103         * a-stzbou.adb: Likewise.
6104         * a-stzbou.ads: Likewise.
6105         * a-stzfix.adb: Likewise.
6106         * a-stzhas.adb: Likewise.
6107         * a-stzmap.adb: Likewise.
6108         * a-stzmap.ads: Likewise.
6109         * a-stzsea.adb: Likewise.
6110         * a-stzsea.ads: Likewise.
6111         * a-stzsup.adb: Likewise.
6112         * a-stzsup.ads: Likewise.
6113         * a-stzunb.adb: Likewise.
6114         * a-stzunb.ads: Likewise.
6115         * a-suteio.adb: Likewise.
6116         * a-suteio.ads: Likewise.
6117         * a-swbwha.adb: Likewise.
6118         * a-swmwco.ads: Likewise.
6119         * a-swunau.adb: Likewise.
6120         * a-swunau.ads: Likewise.
6121         * a-swuwha.adb: Likewise.
6122         * a-swuwti.adb: Likewise.
6123         * a-swuwti.ads: Likewise.
6124         * a-sytaco.adb: Likewise.
6125         * a-sytaco.ads: Likewise.
6126         * a-szbzha.adb: Likewise.
6127         * a-szmzco.ads: Likewise.
6128         * a-szunau.adb: Likewise.
6129         * a-szunau.ads: Likewise.
6130         * a-szuzha.adb: Likewise.
6131         * a-szuzti.adb: Likewise.
6132         * a-szuzti.ads: Likewise.
6133         * a-tags.adb: Likewise.
6134         * a-tags.ads: Likewise.
6135         * a-tasatt.ads: Likewise.
6136         * a-taside.adb: Likewise.
6137         * a-taside.ads: Likewise.
6138         * a-taster.adb: Likewise.
6139         * a-teioed.adb: Likewise.
6140         * a-teioed.ads: Likewise.
6141         * a-textio.adb: Likewise.
6142         * a-textio.ads: Likewise.
6143         * a-tiboio.adb: Likewise.
6144         * a-ticoau.adb: Likewise.
6145         * a-ticoau.ads: Likewise.
6146         * a-ticoio.adb: Likewise.
6147         * a-ticoio.ads: Likewise.
6148         * a-tideau.adb: Likewise.
6149         * a-tideau.ads: Likewise.
6150         * a-tideio.adb: Likewise.
6151         * a-tideio.ads: Likewise.
6152         * a-tienau.adb: Likewise.
6153         * a-tienau.ads: Likewise.
6154         * a-tienio.adb: Likewise.
6155         * a-tienio.ads: Likewise.
6156         * a-tifiio.adb: Likewise.
6157         * a-tifiio.ads: Likewise.
6158         * a-tiflau.adb: Likewise.
6159         * a-tiflau.ads: Likewise.
6160         * a-tiflio.adb: Likewise.
6161         * a-tiflio.ads: Likewise.
6162         * a-tigeau.adb: Likewise.
6163         * a-tigeau.ads: Likewise.
6164         * a-tiinau.adb: Likewise.
6165         * a-tiinau.ads: Likewise.
6166         * a-tiinio.adb: Likewise.
6167         * a-tiinio.ads: Likewise.
6168         * a-timoau.adb: Likewise.
6169         * a-timoau.ads: Likewise.
6170         * a-timoio.adb: Likewise.
6171         * a-timoio.ads: Likewise.
6172         * a-tiocst.adb: Likewise.
6173         * a-tiocst.ads: Likewise.
6174         * a-titest.adb: Likewise.
6175         * a-wichun.adb: Likewise.
6176         * a-wichun.ads: Likewise.
6177         * a-witeio.adb: Likewise.
6178         * a-witeio.ads: Likewise.
6179         * a-wtcoau.adb: Likewise.
6180         * a-wtcoau.ads: Likewise.
6181         * a-wtcoio.adb: Likewise.
6182         * a-wtcstr.adb: Likewise.
6183         * a-wtcstr.ads: Likewise.
6184         * a-wtdeau.adb: Likewise.
6185         * a-wtdeau.ads: Likewise.
6186         * a-wtdeio.adb: Likewise.
6187         * a-wtdeio.ads: Likewise.
6188         * a-wtedit.adb: Likewise.
6189         * a-wtedit.ads: Likewise.
6190         * a-wtenau.adb: Likewise.
6191         * a-wtenau.ads: Likewise.
6192         * a-wtenio.adb: Likewise.
6193         * a-wtenio.ads: Likewise.
6194         * a-wtfiio.adb: Likewise.
6195         * a-wtfiio.ads: Likewise.
6196         * a-wtflau.adb: Likewise.
6197         * a-wtflau.ads: Likewise.
6198         * a-wtflio.adb: Likewise.
6199         * a-wtflio.ads: Likewise.
6200         * a-wtgeau.adb: Likewise.
6201         * a-wtgeau.ads: Likewise.
6202         * a-wtinau.adb: Likewise.
6203         * a-wtinau.ads: Likewise.
6204         * a-wtinio.adb: Likewise.
6205         * a-wtmoau.adb: Likewise.
6206         * a-wtmoau.ads: Likewise.
6207         * a-wtmoio.adb: Likewise.
6208         * a-wtmoio.ads: Likewise.
6209         * a-wttest.adb: Likewise.
6210         * a-wwboio.adb: Likewise.
6211         * a-zchuni.adb: Likewise.
6212         * a-zchuni.ads: Likewise.
6213         * a-ztcoau.adb: Likewise.
6214         * a-ztcoau.ads: Likewise.
6215         * a-ztcoio.adb: Likewise.
6216         * a-ztcstr.adb: Likewise.
6217         * a-ztcstr.ads: Likewise.
6218         * a-ztdeau.adb: Likewise.
6219         * a-ztdeau.ads: Likewise.
6220         * a-ztdeio.adb: Likewise.
6221         * a-ztdeio.ads: Likewise.
6222         * a-ztedit.adb: Likewise.
6223         * a-ztedit.ads: Likewise.
6224         * a-ztenau.adb: Likewise.
6225         * a-ztenau.ads: Likewise.
6226         * a-ztenio.adb: Likewise.
6227         * a-ztenio.ads: Likewise.
6228         * a-ztexio.adb: Likewise.
6229         * a-ztexio.ads: Likewise.
6230         * a-ztfiio.adb: Likewise.
6231         * a-ztfiio.ads: Likewise.
6232         * a-ztflau.adb: Likewise.
6233         * a-ztflau.ads: Likewise.
6234         * a-ztflio.adb: Likewise.
6235         * a-ztflio.ads: Likewise.
6236         * a-ztgeau.adb: Likewise.
6237         * a-ztgeau.ads: Likewise.
6238         * a-ztinau.adb: Likewise.
6239         * a-ztinau.ads: Likewise.
6240         * a-ztinio.adb: Likewise.
6241         * a-ztmoau.adb: Likewise.
6242         * a-ztmoau.ads: Likewise.
6243         * a-ztmoio.adb: Likewise.
6244         * a-ztmoio.ads: Likewise.
6245         * a-zttest.adb: Likewise.
6246         * a-zzboio.adb: Likewise.
6247         * adadecode.c: Likewise.
6248         * adaint.c: Likewise.
6249         * adaint.h: Likewise.
6250         * alloc.ads: Likewise.
6251         * argv.c: Likewise.
6252         * arit64.c: Likewise.
6253         * atree.adb: Likewise.
6254         * atree.ads: Likewise.
6255         * aux-io.c: Likewise.
6256         * cal.c: Likewise.
6257         * casing.adb: Likewise.
6258         * casing.ads: Likewise.
6259         * cio.c: Likewise.
6260         * csets.adb: Likewise.
6261         * csets.ads: Likewise.
6262         * cstreams.c: Likewise.
6263         * ctrl_c.c: Likewise.
6264         * debug.adb: Likewise.
6265         * debug.ads: Likewise.
6266         * dec.ads: Likewise.
6267         * einfo.adb: Likewise.
6268         * einfo.ads: Likewise.
6269         * elists.adb: Likewise.
6270         * elists.ads: Likewise.
6271         * env.c: Likewise.
6272         * env.h: Likewise.
6273         * errno.c: Likewise.
6274         * exit.c: Likewise.
6275         * fe.h: Likewise.
6276         * final.c: Likewise.
6277         * fname.adb: Likewise.
6278         * fname.ads: Likewise.
6279         * g-allein.ads: Likewise.
6280         * g-alleve.adb: Likewise.
6281         * g-alleve.ads: Likewise.
6282         * g-altcon.adb: Likewise.
6283         * g-altcon.ads: Likewise.
6284         * g-altive.ads: Likewise.
6285         * g-alveop.adb: Likewise.
6286         * g-alveop.ads: Likewise.
6287         * g-alvety.ads: Likewise.
6288         * g-alvevi.ads: Likewise.
6289         * g-arrspl.adb: Likewise.
6290         * g-arrspl.ads: Likewise.
6291         * g-calend.ads: Likewise.
6292         * g-comlin.adb: Likewise.
6293         * g-debpoo.adb: Likewise.
6294         * g-debpoo.ads: Likewise.
6295         * g-eacodu-vms.adb: Likewise.
6296         * g-eacodu.adb: Likewise.
6297         * g-excact.adb: Likewise.
6298         * g-excact.ads: Likewise.
6299         * g-locfil.adb: Likewise.
6300         * g-os_lib.ads: Likewise.
6301         * g-rannum.adb: Likewise.
6302         * g-rannum.ads: Likewise.
6303         * g-regist.adb: Likewise.
6304         * g-regist.ads: Likewise.
6305         * g-signal.adb: Likewise.
6306         * g-signal.ads: Likewise.
6307         * g-soccon.ads: Likewise.
6308         * g-string.adb: Likewise.
6309         * g-string.ads: Likewise.
6310         * g-strspl.ads: Likewise.
6311         * g-timsta.adb: Likewise.
6312         * g-timsta.ads: Likewise.
6313         * g-trasym-vms-alpha.adb: Likewise.
6314         * g-trasym-vms-ia64.adb: Likewise.
6315         * g-utf_32.adb: Likewise.
6316         * g-utf_32.ads: Likewise.
6317         * g-wistsp.ads: Likewise.
6318         * g-zstspl.ads: Likewise.
6319         * gmem.c: Likewise.
6320         * gnatvsn.adb: Likewise.
6321         * gnatvsn.ads: Likewise.
6322         * gsocket.h: Likewise.
6323         * hostparm.ads: Likewise.
6324         * i-c.adb: Likewise.
6325         * i-cexten.ads: Likewise.
6326         * i-cobol.adb: Likewise.
6327         * i-cobol.ads: Likewise.
6328         * i-cpoint.adb: Likewise.
6329         * i-cpoint.ads: Likewise.
6330         * i-cpp.adb: Likewise.
6331         * i-cpp.ads: Likewise.
6332         * i-cstrea-vms.adb: Likewise.
6333         * i-cstrea.adb: Likewise.
6334         * i-cstrea.ads: Likewise.
6335         * i-cstrin.adb: Likewise.
6336         * i-cstrin.ads: Likewise.
6337         * i-forbla-darwin.adb: Likewise.
6338         * i-forbla-unimplemented.ads: Likewise.
6339         * i-forbla.adb: Likewise.
6340         * i-forbla.ads: Likewise.
6341         * i-forlap.ads: Likewise.
6342         * i-fortra.adb: Likewise.
6343         * i-pacdec.adb: Likewise.
6344         * i-pacdec.ads: Likewise.
6345         * i-vxwoio.adb: Likewise.
6346         * i-vxwoio.ads: Likewise.
6347         * indepsw-aix.adb: Likewise.
6348         * indepsw-gnu.adb: Likewise.
6349         * indepsw-mingw.adb: Likewise.
6350         * indepsw.adb: Likewise.
6351         * indepsw.ads: Likewise.
6352         * init.c: Likewise.
6353         * initialize.c: Likewise.
6354         * interfac.ads: Likewise.
6355         * krunch.adb: Likewise.
6356         * krunch.ads: Likewise.
6357         * lib-list.adb: Likewise.
6358         * lib-sort.adb: Likewise.
6359         * lib.adb: Likewise.
6360         * lib.ads: Likewise.
6361         * link.c: Likewise.
6362         * math_lib.adb: Likewise.
6363         * memtrack.adb: Likewise.
6364         * mingw32.h: Likewise.
6365         * mkdir.c: Likewise.
6366         * namet-sp.adb: Likewise.
6367         * namet-sp.ads: Likewise.
6368         * namet.adb: Likewise.
6369         * namet.ads: Likewise.
6370         * nlists.adb: Likewise.
6371         * nlists.ads: Likewise.
6372         * opt.adb: Likewise.
6373         * opt.ads: Likewise.
6374         * output.adb: Likewise.
6375         * output.ads: Likewise.
6376         * raise-gcc.c: Likewise.
6377         * raise.c: Likewise.
6378         * raise.h: Likewise.
6379         * repinfo.adb: Likewise.
6380         * repinfo.ads: Likewise.
6381         * repinfo.h: Likewise.
6382         * rident.ads: Likewise.
6383         * s-addima.adb: Likewise.
6384         * s-addima.ads: Likewise.
6385         * s-addope.adb: Likewise.
6386         * s-addope.ads: Likewise.
6387         * s-arit64.adb: Likewise.
6388         * s-arit64.ads: Likewise.
6389         * s-assert.adb: Likewise.
6390         * s-assert.ads: Likewise.
6391         * s-asthan-vms-alpha.adb: Likewise.
6392         * s-asthan.adb: Likewise.
6393         * s-asthan.ads: Likewise.
6394         * s-atacco.adb: Likewise.
6395         * s-atacco.ads: Likewise.
6396         * s-auxdec-empty.adb: Likewise.
6397         * s-auxdec-empty.ads: Likewise.
6398         * s-auxdec-vms_64.ads: Likewise.
6399         * s-auxdec.adb: Likewise.
6400         * s-auxdec.ads: Likewise.
6401         * s-bitops.adb: Likewise.
6402         * s-bitops.ads: Likewise.
6403         * s-boarop.ads: Likewise.
6404         * s-carsi8.adb: Likewise.
6405         * s-carsi8.ads: Likewise.
6406         * s-carun8.adb: Likewise.
6407         * s-carun8.ads: Likewise.
6408         * s-casi16.adb: Likewise.
6409         * s-casi16.ads: Likewise.
6410         * s-casi32.adb: Likewise.
6411         * s-casi32.ads: Likewise.
6412         * s-casi64.adb: Likewise.
6413         * s-casi64.ads: Likewise.
6414         * s-casuti.ads: Likewise.
6415         * s-caun16.adb: Likewise.
6416         * s-caun16.ads: Likewise.
6417         * s-caun32.adb: Likewise.
6418         * s-caun32.ads: Likewise.
6419         * s-caun64.adb: Likewise.
6420         * s-caun64.ads: Likewise.
6421         * s-chepoo.ads: Likewise.
6422         * s-crc32.adb: Likewise.
6423         * s-crc32.ads: Likewise.
6424         * s-crtl.ads: Likewise.
6425         * s-direio.adb: Likewise.
6426         * s-direio.ads: Likewise.
6427         * s-dsaser.ads: Likewise.
6428         * s-except.adb: Likewise.
6429         * s-except.ads: Likewise.
6430         * s-exctab.adb: Likewise.
6431         * s-exctab.ads: Likewise.
6432         * s-exnint.adb: Likewise.
6433         * s-exnint.ads: Likewise.
6434         * s-exnllf.adb: Likewise.
6435         * s-exnllf.ads: Likewise.
6436         * s-exnlli.adb: Likewise.
6437         * s-exnlli.ads: Likewise.
6438         * s-expint.adb: Likewise.
6439         * s-expint.ads: Likewise.
6440         * s-explli.adb: Likewise.
6441         * s-explli.ads: Likewise.
6442         * s-expllu.adb: Likewise.
6443         * s-expllu.ads: Likewise.
6444         * s-expmod.adb: Likewise.
6445         * s-expmod.ads: Likewise.
6446         * s-expuns.adb: Likewise.
6447         * s-expuns.ads: Likewise.
6448         * s-fatflt.ads: Likewise.
6449         * s-fatgen.adb: Likewise.
6450         * s-fatgen.ads: Likewise.
6451         * s-fatlfl.ads: Likewise.
6452         * s-fatllf.ads: Likewise.
6453         * s-fatsfl.ads: Likewise.
6454         * s-ficobl.ads: Likewise.
6455         * s-fileio.adb: Likewise.
6456         * s-fileio.ads: Likewise.
6457         * s-filofl.ads: Likewise.
6458         * s-finimp.adb: Likewise.
6459         * s-finimp.ads: Likewise.
6460         * s-finroo.adb: Likewise.
6461         * s-finroo.ads: Likewise.
6462         * s-fishfl.ads: Likewise.
6463         * s-fore.adb: Likewise.
6464         * s-fore.ads: Likewise.
6465         * s-fvadfl.ads: Likewise.
6466         * s-fvaffl.ads: Likewise.
6467         * s-fvagfl.ads: Likewise.
6468         * s-gearop.adb: Likewise.
6469         * s-gearop.ads: Likewise.
6470         * s-gecobl.adb: Likewise.
6471         * s-gecobl.ads: Likewise.
6472         * s-gecola.adb: Likewise.
6473         * s-gecola.ads: Likewise.
6474         * s-gerebl.adb: Likewise.
6475         * s-gerebl.ads: Likewise.
6476         * s-gerela.adb: Likewise.
6477         * s-gerela.ads: Likewise.
6478         * s-geveop.adb: Likewise.
6479         * s-geveop.ads: Likewise.
6480         * s-gloloc.adb: Likewise.
6481         * s-gloloc.ads: Likewise.
6482         * s-hibaen.ads: Likewise.
6483         * s-imenne.adb: Likewise.
6484         * s-imenne.ads: Likewise.
6485         * s-imgbiu.adb: Likewise.
6486         * s-imgbiu.ads: Likewise.
6487         * s-imgboo.adb: Likewise.
6488         * s-imgboo.ads: Likewise.
6489         * s-imgcha.adb: Likewise.
6490         * s-imgcha.ads: Likewise.
6491         * s-imgdec.adb: Likewise.
6492         * s-imgdec.ads: Likewise.
6493         * s-imgenu.adb: Likewise.
6494         * s-imgenu.ads: Likewise.
6495         * s-imgint.adb: Likewise.
6496         * s-imgint.ads: Likewise.
6497         * s-imgllb.adb: Likewise.
6498         * s-imgllb.ads: Likewise.
6499         * s-imglld.adb: Likewise.
6500         * s-imglld.ads: Likewise.
6501         * s-imglli.adb: Likewise.
6502         * s-imglli.ads: Likewise.
6503         * s-imgllu.adb: Likewise.
6504         * s-imgllu.ads: Likewise.
6505         * s-imgllw.adb: Likewise.
6506         * s-imgllw.ads: Likewise.
6507         * s-imgrea.adb: Likewise.
6508         * s-imgrea.ads: Likewise.
6509         * s-imguns.adb: Likewise.
6510         * s-imguns.ads: Likewise.
6511         * s-imgwch.adb: Likewise.
6512         * s-imgwch.ads: Likewise.
6513         * s-imgwiu.adb: Likewise.
6514         * s-imgwiu.ads: Likewise.
6515         * s-inmaop-dummy.adb: Likewise.
6516         * s-inmaop-vms.adb: Likewise.
6517         * s-inmaop.ads: Likewise.
6518         * s-interr-hwint.adb: Likewise.
6519         * s-interr-sigaction.adb: Likewise.
6520         * s-interr-vms.adb: Likewise.
6521         * s-interr.adb: Likewise.
6522         * s-interr.ads: Likewise.
6523         * s-intman-dummy.adb: Likewise.
6524         * s-intman-mingw.adb: Likewise.
6525         * s-intman-posix.adb: Likewise.
6526         * s-intman-solaris.adb: Likewise.
6527         * s-intman-vms.adb: Likewise.
6528         * s-intman-vms.ads: Likewise.
6529         * s-intman-vxworks.adb: Likewise.
6530         * s-intman-vxworks.ads: Likewise.
6531         * s-intman.ads: Likewise.
6532         * s-io.adb: Likewise.
6533         * s-io.ads: Likewise.
6534         * s-linux-alpha.ads: Likewise.
6535         * s-linux-hppa.ads: Likewise.
6536         * s-linux.ads: Likewise.
6537         * s-maccod.ads: Likewise.
6538         * s-mantis.adb: Likewise.
6539         * s-mantis.ads: Likewise.
6540         * s-mastop-irix.adb: Likewise.
6541         * s-mastop.adb: Likewise.
6542         * s-mastop.ads: Likewise.
6543         * s-memcop.ads: Likewise.
6544         * s-memory-mingw.adb: Likewise.
6545         * s-memory.adb: Likewise.
6546         * s-memory.ads: Likewise.
6547         * s-os_lib.ads: Likewise.
6548         * s-oscons-tmplt.c: Likewise.
6549         * s-osinte-aix.adb: Likewise.
6550         * s-osinte-darwin.adb: Likewise.
6551         * s-osinte-freebsd.adb: Likewise.
6552         * s-osinte-irix.adb: Likewise.
6553         * s-osinte-lynxos-3.adb: Likewise.
6554         * s-osinte-rtems.ads: Likewise.
6555         * s-osinte-tru64.adb: Likewise.
6556         * s-osinte-vxworks-kernel.adb: Likewise.
6557         * s-osinte-vxworks.adb: Likewise.
6558         * s-osprim-mingw.adb: Likewise.
6559         * s-osprim-posix.adb: Likewise.
6560         * s-osprim-solaris.adb: Likewise.
6561         * s-osprim-unix.adb: Likewise.
6562         * s-osprim-vms.adb: Likewise.
6563         * s-osprim-vms.ads: Likewise.
6564         * s-osprim-vxworks.adb: Likewise.
6565         * s-osprim.ads: Likewise.
6566         * s-pack03.adb: Likewise.
6567         * s-pack03.ads: Likewise.
6568         * s-pack05.adb: Likewise.
6569         * s-pack05.ads: Likewise.
6570         * s-pack06.adb: Likewise.
6571         * s-pack06.ads: Likewise.
6572         * s-pack07.adb: Likewise.
6573         * s-pack07.ads: Likewise.
6574         * s-pack09.adb: Likewise.
6575         * s-pack09.ads: Likewise.
6576         * s-pack10.adb: Likewise.
6577         * s-pack10.ads: Likewise.
6578         * s-pack11.adb: Likewise.
6579         * s-pack11.ads: Likewise.
6580         * s-pack12.adb: Likewise.
6581         * s-pack12.ads: Likewise.
6582         * s-pack13.adb: Likewise.
6583         * s-pack13.ads: Likewise.
6584         * s-pack14.adb: Likewise.
6585         * s-pack14.ads: Likewise.
6586         * s-pack15.adb: Likewise.
6587         * s-pack15.ads: Likewise.
6588         * s-pack17.adb: Likewise.
6589         * s-pack17.ads: Likewise.
6590         * s-pack18.adb: Likewise.
6591         * s-pack18.ads: Likewise.
6592         * s-pack19.adb: Likewise.
6593         * s-pack19.ads: Likewise.
6594         * s-pack20.adb: Likewise.
6595         * s-pack20.ads: Likewise.
6596         * s-pack21.adb: Likewise.
6597         * s-pack21.ads: Likewise.
6598         * s-pack22.adb: Likewise.
6599         * s-pack22.ads: Likewise.
6600         * s-pack23.adb: Likewise.
6601         * s-pack23.ads: Likewise.
6602         * s-pack24.adb: Likewise.
6603         * s-pack24.ads: Likewise.
6604         * s-pack25.adb: Likewise.
6605         * s-pack25.ads: Likewise.
6606         * s-pack26.adb: Likewise.
6607         * s-pack26.ads: Likewise.
6608         * s-pack27.adb: Likewise.
6609         * s-pack27.ads: Likewise.
6610         * s-pack28.adb: Likewise.
6611         * s-pack28.ads: Likewise.
6612         * s-pack29.adb: Likewise.
6613         * s-pack29.ads: Likewise.
6614         * s-pack30.adb: Likewise.
6615         * s-pack30.ads: Likewise.
6616         * s-pack31.adb: Likewise.
6617         * s-pack31.ads: Likewise.
6618         * s-pack33.adb: Likewise.
6619         * s-pack33.ads: Likewise.
6620         * s-pack34.adb: Likewise.
6621         * s-pack34.ads: Likewise.
6622         * s-pack35.adb: Likewise.
6623         * s-pack35.ads: Likewise.
6624         * s-pack36.adb: Likewise.
6625         * s-pack36.ads: Likewise.
6626         * s-pack37.adb: Likewise.
6627         * s-pack37.ads: Likewise.
6628         * s-pack38.adb: Likewise.
6629         * s-pack38.ads: Likewise.
6630         * s-pack39.adb: Likewise.
6631         * s-pack39.ads: Likewise.
6632         * s-pack40.adb: Likewise.
6633         * s-pack40.ads: Likewise.
6634         * s-pack41.adb: Likewise.
6635         * s-pack41.ads: Likewise.
6636         * s-pack42.adb: Likewise.
6637         * s-pack42.ads: Likewise.
6638         * s-pack43.adb: Likewise.
6639         * s-pack43.ads: Likewise.
6640         * s-pack44.adb: Likewise.
6641         * s-pack44.ads: Likewise.
6642         * s-pack45.adb: Likewise.
6643         * s-pack45.ads: Likewise.
6644         * s-pack46.adb: Likewise.
6645         * s-pack46.ads: Likewise.
6646         * s-pack47.adb: Likewise.
6647         * s-pack47.ads: Likewise.
6648         * s-pack48.adb: Likewise.
6649         * s-pack48.ads: Likewise.
6650         * s-pack49.adb: Likewise.
6651         * s-pack49.ads: Likewise.
6652         * s-pack50.adb: Likewise.
6653         * s-pack50.ads: Likewise.
6654         * s-pack51.adb: Likewise.
6655         * s-pack51.ads: Likewise.
6656         * s-pack52.adb: Likewise.
6657         * s-pack52.ads: Likewise.
6658         * s-pack53.adb: Likewise.
6659         * s-pack53.ads: Likewise.
6660         * s-pack54.adb: Likewise.
6661         * s-pack54.ads: Likewise.
6662         * s-pack55.adb: Likewise.
6663         * s-pack55.ads: Likewise.
6664         * s-pack56.adb: Likewise.
6665         * s-pack56.ads: Likewise.
6666         * s-pack57.adb: Likewise.
6667         * s-pack57.ads: Likewise.
6668         * s-pack58.adb: Likewise.
6669         * s-pack58.ads: Likewise.
6670         * s-pack59.adb: Likewise.
6671         * s-pack59.ads: Likewise.
6672         * s-pack60.adb: Likewise.
6673         * s-pack60.ads: Likewise.
6674         * s-pack61.adb: Likewise.
6675         * s-pack61.ads: Likewise.
6676         * s-pack62.adb: Likewise.
6677         * s-pack62.ads: Likewise.
6678         * s-pack63.adb: Likewise.
6679         * s-pack63.ads: Likewise.
6680         * s-parame-ae653.ads: Likewise.
6681         * s-parame-hpux.ads: Likewise.
6682         * s-parame-rtems.adb: Likewise.
6683         * s-parame-vms-alpha.ads: Likewise.
6684         * s-parame-vms-ia64.ads: Likewise.
6685         * s-parame-vms-restrict.ads: Likewise.
6686         * s-parame-vxworks.adb: Likewise.
6687         * s-parame-vxworks.ads: Likewise.
6688         * s-parame.adb: Likewise.
6689         * s-parame.ads: Likewise.
6690         * s-parint.adb: Likewise.
6691         * s-parint.ads: Likewise.
6692         * s-pooglo.adb: Likewise.
6693         * s-pooglo.ads: Likewise.
6694         * s-pooloc.adb: Likewise.
6695         * s-pooloc.ads: Likewise.
6696         * s-poosiz.adb: Likewise.
6697         * s-poosiz.ads: Likewise.
6698         * s-powtab.ads: Likewise.
6699         * s-proinf-irix-athread.adb: Likewise.
6700         * s-proinf-irix-athread.ads: Likewise.
6701         * s-proinf.adb: Likewise.
6702         * s-proinf.ads: Likewise.
6703         * s-purexc.ads: Likewise.
6704         * s-rannum.adb: Likewise.
6705         * s-rannum.ads: Likewise.
6706         * s-restri.adb: Likewise.
6707         * s-restri.ads: Likewise.
6708         * s-rident.ads: Likewise.
6709         * s-rpc.adb: Likewise.
6710         * s-rpc.ads: Likewise.
6711         * s-scaval.adb: Likewise.
6712         * s-scaval.ads: Likewise.
6713         * s-secsta.adb: Likewise.
6714         * s-secsta.ads: Likewise.
6715         * s-sequio.adb: Likewise.
6716         * s-sequio.ads: Likewise.
6717         * s-shasto.adb: Likewise.
6718         * s-shasto.ads: Likewise.
6719         * s-soflin.adb: Likewise.
6720         * s-soflin.ads: Likewise.
6721         * s-solita.adb: Likewise.
6722         * s-solita.ads: Likewise.
6723         * s-sopco3.adb: Likewise.
6724         * s-sopco3.ads: Likewise.
6725         * s-sopco4.adb: Likewise.
6726         * s-sopco4.ads: Likewise.
6727         * s-sopco5.adb: Likewise.
6728         * s-sopco5.ads: Likewise.
6729         * s-stache.adb: Likewise.
6730         * s-stache.ads: Likewise.
6731         * s-stalib.adb: Likewise.
6732         * s-stalib.ads: Likewise.
6733         * s-stausa.adb: Likewise.
6734         * s-stausa.ads: Likewise.
6735         * s-stchop-limit.ads: Likewise.
6736         * s-stchop-rtems.adb: Likewise.
6737         * s-stchop-vxworks.adb: Likewise.
6738         * s-stchop.adb: Likewise.
6739         * s-stchop.ads: Likewise.
6740         * s-stoele.adb: Likewise.
6741         * s-stoele.ads: Likewise.
6742         * s-stopoo.adb: Likewise.
6743         * s-stopoo.ads: Likewise.
6744         * s-stratt.adb: Likewise.
6745         * s-stratt.ads: Likewise.
6746         * s-strcom.adb: Likewise.
6747         * s-strcom.ads: Likewise.
6748         * s-string.adb: Likewise.
6749         * s-string.ads: Likewise.
6750         * s-strops.adb: Likewise.
6751         * s-strops.ads: Likewise.
6752         * s-strxdr.adb: Likewise.
6753         * s-ststop.adb: Likewise.
6754         * s-ststop.ads: Likewise.
6755         * s-taasde.adb: Likewise.
6756         * s-taasde.ads: Likewise.
6757         * s-tadeca.adb: Likewise.
6758         * s-tadeca.ads: Likewise.
6759         * s-tadert.adb: Likewise.
6760         * s-tadert.ads: Likewise.
6761         * s-taenca.adb: Likewise.
6762         * s-taenca.ads: Likewise.
6763         * s-taprob.ads: Likewise.
6764         * s-taprop-dummy.adb: Likewise.
6765         * s-taprop-hpux-dce.adb: Likewise.
6766         * s-taprop-irix.adb: Likewise.
6767         * s-taprop-linux.adb: Likewise.
6768         * s-taprop-lynxos.adb: Likewise.
6769         * s-taprop-mingw.adb: Likewise.
6770         * s-taprop-posix.adb: Likewise.
6771         * s-taprop-solaris.adb: Likewise.
6772         * s-taprop-tru64.adb: Likewise.
6773         * s-taprop-vms.adb: Likewise.
6774         * s-taprop-vxworks.adb: Likewise.
6775         * s-taprop.ads: Likewise.
6776         * s-tarest.adb: Likewise.
6777         * s-tarest.ads: Likewise.
6778         * s-tasdeb.adb: Likewise.
6779         * s-tasdeb.ads: Likewise.
6780         * s-tasinf-irix.ads: Likewise.
6781         * s-tasinf-linux.adb: Likewise.
6782         * s-tasinf-linux.ads: Likewise.
6783         * s-tasinf-mingw.adb: Likewise.
6784         * s-tasinf-mingw.ads: Likewise.
6785         * s-tasinf-solaris.adb: Likewise.
6786         * s-tasinf-solaris.ads: Likewise.
6787         * s-tasinf-tru64.ads: Likewise.
6788         * s-tasinf.adb: Likewise.
6789         * s-tasinf.ads: Likewise.
6790         * s-tasini.adb: Likewise.
6791         * s-tasini.ads: Likewise.
6792         * s-taskin.adb: Likewise.
6793         * s-taskin.ads: Likewise.
6794         * s-taspri-dummy.ads: Likewise.
6795         * s-taspri-hpux-dce.ads: Likewise.
6796         * s-taspri-mingw.ads: Likewise.
6797         * s-taspri-solaris.ads: Likewise.
6798         * s-taspri-tru64.ads: Likewise.
6799         * s-taspri-vms.ads: Likewise.
6800         * s-taspri-vxworks.ads: Likewise.
6801         * s-tasque.adb: Likewise.
6802         * s-tasque.ads: Likewise.
6803         * s-tasren.adb: Likewise.
6804         * s-tasren.ads: Likewise.
6805         * s-tasres.ads: Likewise.
6806         * s-tassta.adb: Likewise.
6807         * s-tassta.ads: Likewise.
6808         * s-tasuti.adb: Likewise.
6809         * s-tasuti.ads: Likewise.
6810         * s-tfsetr-default.adb: Likewise.
6811         * s-tfsetr-vxworks.adb: Likewise.
6812         * s-tpinop.adb: Likewise.
6813         * s-tpinop.ads: Likewise.
6814         * s-tpoben.adb: Likewise.
6815         * s-tpoben.ads: Likewise.
6816         * s-tpobop.adb: Likewise.
6817         * s-tpobop.ads: Likewise.
6818         * s-tpopde-vms.adb: Likewise.
6819         * s-tpopde-vms.ads: Likewise.
6820         * s-tpopsp-lynxos.adb: Likewise.
6821         * s-tpopsp-posix-foreign.adb: Likewise.
6822         * s-tpopsp-posix.adb: Likewise.
6823         * s-tpopsp-solaris.adb: Likewise.
6824         * s-tpopsp-vxworks.adb: Likewise.
6825         * s-tporft.adb: Likewise.
6826         * s-tposen.adb: Likewise.
6827         * s-tposen.ads: Likewise.
6828         * s-traceb.adb: Likewise.
6829         * s-traceb.ads: Likewise.
6830         * s-traces-default.adb: Likewise.
6831         * s-traces.adb: Likewise.
6832         * s-traces.ads: Likewise.
6833         * s-traent-vms.adb: Likewise.
6834         * s-traent-vms.ads: Likewise.
6835         * s-traent.adb: Likewise.
6836         * s-traent.ads: Likewise.
6837         * s-trafor-default.adb: Likewise.
6838         * s-trafor-default.ads: Likewise.
6839         * s-tratas-default.adb: Likewise.
6840         * s-tratas.adb: Likewise.
6841         * s-tratas.ads: Likewise.
6842         * s-unstyp.ads: Likewise.
6843         * s-utf_32.adb: Likewise.
6844         * s-utf_32.ads: Likewise.
6845         * s-vaflop-vms-alpha.adb: Likewise.
6846         * s-vaflop.adb: Likewise.
6847         * s-vaflop.ads: Likewise.
6848         * s-valboo.adb: Likewise.
6849         * s-valboo.ads: Likewise.
6850         * s-valcha.adb: Likewise.
6851         * s-valcha.ads: Likewise.
6852         * s-valdec.adb: Likewise.
6853         * s-valdec.ads: Likewise.
6854         * s-valenu.adb: Likewise.
6855         * s-valenu.ads: Likewise.
6856         * s-valint.adb: Likewise.
6857         * s-valint.ads: Likewise.
6858         * s-vallld.adb: Likewise.
6859         * s-vallld.ads: Likewise.
6860         * s-vallli.adb: Likewise.
6861         * s-vallli.ads: Likewise.
6862         * s-valllu.adb: Likewise.
6863         * s-valllu.ads: Likewise.
6864         * s-valrea.adb: Likewise.
6865         * s-valrea.ads: Likewise.
6866         * s-valuns.adb: Likewise.
6867         * s-valuns.ads: Likewise.
6868         * s-valuti.adb: Likewise.
6869         * s-valuti.ads: Likewise.
6870         * s-valwch.adb: Likewise.
6871         * s-valwch.ads: Likewise.
6872         * s-veboop.adb: Likewise.
6873         * s-veboop.ads: Likewise.
6874         * s-vector.ads: Likewise.
6875         * s-vercon.adb: Likewise.
6876         * s-vercon.ads: Likewise.
6877         * s-vmexta.adb: Likewise.
6878         * s-vmexta.ads: Likewise.
6879         * s-vxwext-kernel.ads: Likewise.
6880         * s-vxwext-rtp.adb: Likewise.
6881         * s-vxwext-rtp.ads: Likewise.
6882         * s-vxwext.ads: Likewise.
6883         * s-vxwork-arm.ads: Likewise.
6884         * s-vxwork-m68k.ads: Likewise.
6885         * s-vxwork-mips.ads: Likewise.
6886         * s-vxwork-ppc.ads: Likewise.
6887         * s-vxwork-sparcv9.ads: Likewise.
6888         * s-vxwork-x86.ads: Likewise.
6889         * s-wchcnv.adb: Likewise.
6890         * s-wchcnv.ads: Likewise.
6891         * s-wchcon.adb: Likewise.
6892         * s-wchcon.ads: Likewise.
6893         * s-wchjis.adb: Likewise.
6894         * s-wchjis.ads: Likewise.
6895         * s-wchstw.adb: Likewise.
6896         * s-wchstw.ads: Likewise.
6897         * s-wchwts.adb: Likewise.
6898         * s-wchwts.ads: Likewise.
6899         * s-widboo.adb: Likewise.
6900         * s-widboo.ads: Likewise.
6901         * s-widcha.adb: Likewise.
6902         * s-widcha.ads: Likewise.
6903         * s-widenu.adb: Likewise.
6904         * s-widenu.ads: Likewise.
6905         * s-widlli.adb: Likewise.
6906         * s-widlli.ads: Likewise.
6907         * s-widllu.adb: Likewise.
6908         * s-widllu.ads: Likewise.
6909         * s-widwch.adb: Likewise.
6910         * s-widwch.ads: Likewise.
6911         * s-win32.ads: Likewise.
6912         * s-winext.ads: Likewise.
6913         * s-wwdcha.adb: Likewise.
6914         * s-wwdcha.ads: Likewise.
6915         * s-wwdenu.adb: Likewise.
6916         * s-wwdenu.ads: Likewise.
6917         * s-wwdwch.adb: Likewise.
6918         * s-wwdwch.ads: Likewise.
6919         * scans.adb: Likewise.
6920         * scans.ads: Likewise.
6921         * seh_init.c: Likewise.
6922         * sfn_scan.adb: Likewise.
6923         * sinfo.adb: Likewise.
6924         * sinfo.ads: Likewise.
6925         * sinput.adb: Likewise.
6926         * sinput.ads: Likewise.
6927         * snames.adb: Likewise.
6928         * snames.ads: Likewise.
6929         * socket.c: Likewise.
6930         * stand.adb: Likewise.
6931         * stand.ads: Likewise.
6932         * stringt.adb: Likewise.
6933         * stringt.ads: Likewise.
6934         * sysdep.c: Likewise.
6935         * system-aix.ads: Likewise.
6936         * system-darwin-ppc.ads: Likewise.
6937         * system-darwin-x86.ads: Likewise.
6938         * system-darwin-x86_64.ads: Likewise.
6939         * system-freebsd-x86.ads: Likewise.
6940         * system-hpux-ia64.ads: Likewise.
6941         * system-hpux.ads: Likewise.
6942         * system-irix-n32.ads: Likewise.
6943         * system-irix-n64.ads: Likewise.
6944         * system-irix-o32.ads: Likewise.
6945         * system-linux-alpha.ads: Likewise.
6946         * system-linux-hppa.ads: Likewise.
6947         * system-linux-ia64.ads: Likewise.
6948         * system-linux-mips.ads: Likewise.
6949         * system-linux-mipsel.ads: Likewise.
6950         * system-linux-ppc.ads: Likewise.
6951         * system-linux-ppc64.ads: Likewise.
6952         * system-linux-s390.ads: Likewise.
6953         * system-linux-s390x.ads: Likewise.
6954         * system-linux-sh4.ads: Likewise.
6955         * system-linux-sparc.ads: Likewise.
6956         * system-linux-sparcv9.ads: Likewise.
6957         * system-linux-x86.ads: Likewise.
6958         * system-linux-x86_64.ads: Likewise.
6959         * system-lynxos-ppc.ads: Likewise.
6960         * system-lynxos-x86.ads: Likewise.
6961         * system-mingw-x86_64.ads: Likewise.
6962         * system-mingw.ads: Likewise.
6963         * system-rtems.ads: Likewise.
6964         * system-solaris-sparc.ads: Likewise.
6965         * system-solaris-sparcv9.ads: Likewise.
6966         * system-solaris-x86.ads: Likewise.
6967         * system-solaris-x86_64.ads: Likewise.
6968         * system-tru64.ads: Likewise.
6969         * system-vms-ia64.ads: Likewise.
6970         * system-vms-zcx.ads: Likewise.
6971         * system-vms.ads: Likewise.
6972         * system-vms_64.ads: Likewise.
6973         * system-vxworks-arm.ads: Likewise.
6974         * system-vxworks-m68k.ads: Likewise.
6975         * system-vxworks-mips.ads: Likewise.
6976         * system-vxworks-ppc.ads: Likewise.
6977         * system-vxworks-sparcv9.ads: Likewise.
6978         * system-vxworks-x86.ads: Likewise.
6979         * system.ads: Likewise.
6980         * table.adb: Likewise.
6981         * table.ads: Likewise.
6982         * targext.c: Likewise.
6983         * targparm.ads: Likewise.
6984         * tree_in.adb: Likewise.
6985         * tree_in.ads: Likewise.
6986         * tree_io.adb: Likewise.
6987         * tree_io.ads: Likewise.
6988         * types.adb: Likewise.
6989         * types.ads: Likewise.
6990         * uintp.adb: Likewise.
6991         * uintp.ads: Likewise.
6992         * uname.adb: Likewise.
6993         * uname.ads: Likewise.
6994         * urealp.adb: Likewise.
6995         * urealp.ads: Likewise.
6996         * vx_stack_info.c: Likewise.
6997         * widechar.adb: Likewise.
6998         * widechar.ads: Likewise.
6999         * exp_attr.adb: Change copyright header to refer to version
7000         3 of the GNU General Public License and to point readers at the
7001         COPYING3 file and the FSF's license web page.
7002         * sem.adb: Likewise.
7003         * sem_attr.ads: Likewise.
7004         * freeze.adb: Likewise.
7005         * freeze.ads: Likewise.
7006         * errout.ads: Likewise.
7007         * erroutc.adb: Likewise.
7008         * exp_ch11.ads: Likewise.
7009
7010 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
7011
7012         * config-lang.in: Change copyright header to refer to version
7013         3 of the GNU General Public License and to point readers at the
7014         COPYING3 file and the FSF's license web page.
7015         * gcc-interface/trans.c: Likewise.
7016         * gnathtml.pl: Likewise.
7017         * gcc-interface/ada.h: Likewise.  Remove runtime exception.
7018         * gcc-interface/gigi.h: Likewise.
7019         * gcc-interface/misc.c: Likewise.
7020         * gcc-interface/targtyps.c: Likewise.
7021
7022 2009-04-09  Nicolas Setton  <setton@adacore.com>
7023
7024         * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
7025
7026         * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
7027         struct_timeval.
7028
7029 2009-04-09  Bob Duff  <duff@adacore.com>
7030
7031         * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
7032         internally-generated nodes related to select statements to avoid
7033         confusing the debugger.
7034
7035 2009-04-09  Pascal Obry  <obry@adacore.com>
7036
7037         * make.adb: Ensure that all linker arguments are duplicated.
7038
7039 2009-04-09  Robert Dewar  <dewar@adacore.com>
7040
7041         * sem_ch5.adb: Minor reformatting
7042
7043 2009-04-09  Vincent Celier  <celier@adacore.com>
7044
7045         * vms_data.ads:
7046         Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
7047         New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
7048         New qualifier /LXDEBUG=nnn for -gnatDnnn
7049         For H820-010
7050
7051         * gnat_ugn.texi:
7052         Update documentation for VMS qualifiers equivalent to -gnatGnn and
7053         -gnatDnn
7054
7055 2009-04-09  Nicolas Setton  <setton@adacore.com>
7056
7057         * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
7058         to match layout of siginfo_t in sys/signal.h.
7059
7060         * gcc-interface/Makefile.in: Add section for x86_64 darwin.
7061
7062 2009-04-09  Thomas Quinot  <quinot@adacore.com>
7063
7064         * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
7065
7066 2009-04-09  Nicolas Setton  <setton@adacore.com>
7067
7068         * s-oscons-tmplt.c: Allow long lines in the generated spec.
7069         Add generation of Darwin-specific constants needed when binding to the
7070         pthread library.
7071
7072 2009-04-09  Robert Dewar  <dewar@adacore.com>
7073
7074         * checks.adb:
7075         (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
7076         when no invalid values exist, Avoid duplicate read of atomic variable.
7077
7078         * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
7079         (Standard_Unsigned): Set Is_Known_Valid
7080
7081         * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
7082         subtype declaration if no constraint.
7083         (Set_Modular_Size): Set Is_Known_Valid if appropriate
7084         (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
7085
7086 2009-04-09  Robert Dewar  <dewar@adacore.com>
7087
7088         * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
7089         switch.ads: for numeric switches, an optional equal sign is always
7090         allowed.
7091
7092 2009-04-09  Vincent Celier  <celier@adacore.com>
7093
7094         * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
7095         the case of file names is not significant.
7096
7097 2009-04-09  Vincent Celier  <celier@adacore.com>
7098
7099         * errout.adb: Remove dependency on package Style
7100
7101         * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
7102         moved to Stylesw.
7103         
7104         * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
7105         Styleg.
7106
7107         * errutil.adb, par.adb: Import Stylesw
7108
7109 2009-04-09  Arnaud Charlet  <charlet@adacore.com>
7110
7111         * opt.ads: Fix typos.
7112
7113 2009-04-09  Robert Dewar  <dewar@adacore.com>
7114
7115         * einfo.adb: Minor reformatting
7116
7117 2009-04-09  Robert Dewar  <dewar@adacore.com>
7118
7119         * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
7120         units.
7121
7122         * styleg-c.ads, styleg-c.adb: Removed, no longer used.
7123
7124 2009-04-09  Robert Dewar  <dewar@adacore.com>
7125
7126         * g-comver.adb: Minor reformatting.
7127
7128 2009-04-09  Thomas Quinot  <quinot@adacore.com>
7129
7130         * lib-load.ads (Load_Unit): Update documentation.
7131
7132 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
7133
7134         * lib-load.adb (Load_Unit): When loading the parent of a child unit
7135         named in a with_clause, retain the with_clause to preserve a
7136         limited_with indication.
7137
7138 2009-04-09  Robert Dewar  <dewar@adacore.com>
7139
7140         * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
7141         exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
7142         sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
7143         possible to replace an OR of two separate tests.
7144
7145 2009-04-09  Robert Dewar  <dewar@adacore.com>
7146
7147         * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
7148         Maximum_Messages.
7149         
7150         * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
7151         warning status as well.
7152         
7153         * opt.ads (Maximum_Messages): New name for Maximum_Errors.
7154         
7155         * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
7156         Maximum_Messages.
7157         
7158         * bindusg.adb, usage.adb: Update line for -gnatm switch
7159
7160         * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
7161         -mnn binder switch.
7162
7163 2009-04-09  Robert Dewar  <dewar@adacore.com>
7164
7165         * sem_ch10.adb: Minor reformatting.
7166
7167 2009-04-09  Bob Duff  <duff@adacore.com>
7168
7169         * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
7170         Set Sloc of generated nodes for calls to Undefer_Aborts and
7171         Save_Occurrence to No_Location, so the debugger ignores them and
7172         therefore does not jump back and forth when single stepping.
7173
7174 2009-04-09  Robert Dewar  <dewar@adacore.com>
7175
7176         * switch-b.adb: Minor reformatting.
7177
7178 2009-04-09  Robert Dewar  <dewar@adacore.com>
7179
7180         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
7181         sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
7182         exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
7183         sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
7184         einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
7185         tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
7186         exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
7187         sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
7188         sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
7189         sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
7190         Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
7191
7192 2009-04-09  Robert Dewar  <dewar@adacore.com>
7193
7194         * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
7195
7196         * atree.h: Add Elist26
7197
7198         * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
7199         backends.
7200
7201 2009-04-09  Javier Miranda  <miranda@adacore.com>
7202
7203         * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
7204         retrieve from the Dispatch_Table_Wrappers list the external name.
7205         Addition of documentation.
7206         (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
7207         used to export secondary dispatch tables (in the previous version of
7208         the frontend only primary dispatch tables were exported). Addition of
7209         documentation.
7210         (Import_DT): New subprogram (internal of Make_Tags). Used to import a
7211         dispatch table of a given tagged type. 
7212         (Make_Tags): Modified to import secondary dispatch tables.
7213
7214         * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
7215         (Constant_Redeclaration): Code cleanup.
7216
7217         * einfo.ads (Dispatch_Table_Wrapper): Renamed to
7218         Dispatch_Table_Wrappers.  Update documentation.
7219
7220         * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
7221         Renamed to Dispatch_Table_Wrappers.
7222
7223         * sem_util.adb (Collect_Interface_Components): Improve handling of
7224         private types.
7225
7226         * atree.ads (Elist26, Set_Elist26): New subprograms
7227
7228         * atree.adb (Elist26, Set_Elist26): New subprograms
7229
7230 2009-04-09  Javier Miranda  <miranda@adacore.com>
7231
7232         * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
7233         (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
7234         tagged types.
7235
7236 2009-04-09  Robert Dewar  <dewar@adacore.com>
7237
7238         * s-direio.adb: Minor reformatting
7239
7240         * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
7241
7242 2009-04-09  Robert Dewar  <dewar@adacore.com>
7243
7244         * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
7245
7246 2009-04-09  Pascal Obry  <obry@adacore.com>
7247
7248         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
7249         s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
7250         a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
7251         a-filico.ads: Add some missing overriding keywords.
7252
7253 2009-04-09  Pascal Obry  <obry@adacore.com>
7254
7255         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
7256         a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
7257         a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
7258         reformatting.
7259
7260 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
7261
7262         * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
7263         missing overriding indicator if the new declaration is not seen as
7264         primitive.
7265
7266 2009-04-09  Thomas Quinot  <quinot@adacore.com>
7267
7268         * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
7269         overflows in computation of bounds.
7270
7271 2009-04-09  Pascal Obry  <obry@adacore.com>
7272
7273         * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
7274         typos in comment.
7275
7276 2009-04-09  Robert Dewar  <dewar@adacore.com>
7277
7278         * sem_attr.adb (Check_Stream_Attribute): Check violation of
7279         restriction No_Streams
7280
7281         * gnat_rm.texi: Clarify No_Streams restriction
7282
7283         * g-socket.adb: Minor reformatting.
7284
7285 2009-04-09  Thomas Quinot  <quinot@adacore.com>
7286
7287         * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
7288
7289 2009-04-09  Geert Bosch  <bosch@adacore.com>
7290
7291         * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
7292         (Set_Result): Likewise.
7293         (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
7294         conversion, as required by RM 4.6(31).
7295
7296 2009-04-08  Robert Dewar  <dewar@adacore.com>
7297
7298         * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
7299         suppressed.
7300         
7301         * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
7302         resolution steps.
7303
7304 2009-04-08  Robert Dewar  <dewar@adacore.com>
7305
7306         * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
7307         No_Local_Allocators restriction preventing local instantiation.
7308
7309 2009-04-08  Thomas Quinot  <quinot@adacore.com>
7310
7311         * sem_eval.adb: Minor comment fix
7312
7313 2009-04-08  Thomas Quinot  <quinot@adacore.com>
7314
7315         * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
7316         New limited controlled type used to automate the initialization and
7317         finalization of the sockets implementation.
7318         (GNAT.Sockets.Initialize, Finalize): Make these no-ops
7319
7320 2009-04-08  Vincent Celier  <celier@adacore.com>
7321
7322         * prj-attr.adb: New read-only project-level attribute Project_Dir
7323
7324         * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
7325         read-only attribute of the same name.
7326         (Process_Declarative_Items): Call Add_Attributes with Project_Dir
7327         (Recursive_Process): Ditto
7328
7329         * snames.adb: Add new standard name Project_Dir
7330
7331         * snames.ads: Add new standard name Project_Dir
7332
7333 2009-04-08  Thomas Quinot  <quinot@adacore.com>
7334
7335         * checks.adb: Minor reformatting
7336
7337 2009-04-08  Vincent Celier  <celier@adacore.com>
7338
7339         * vms_data.ads: Add documentation for new style keyword
7340         OVERRIDING_INDICATORS
7341
7342 2009-04-08  Robert Dewar  <dewar@adacore.com>
7343
7344         * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
7345         spec is in the current unit.
7346
7347 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
7348
7349         * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
7350         presence of entity.
7351
7352         * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
7353
7354 2009-04-08  Vincent Celier  <celier@adacore.com>
7355
7356         * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
7357
7358 2009-04-08  Thomas Quinot  <quinot@adacore.com>
7359
7360         * checks.ads: Minor reformatting
7361
7362 2009-04-08  Robert Dewar  <dewar@adacore.com>
7363
7364         * gnat_rm.texi: Update documentation of pragma Obsolescent
7365         
7366         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
7367         be omitted, and allow Entity parameter to be omitted.
7368
7369 2009-04-08  Thomas Quinot  <quinot@adacore.com>
7370
7371         * exp_util.adb: Minor comment fix
7372
7373 2009-04-08  Robert Dewar  <dewar@adacore.com>
7374
7375         * g-socket.ads: Fix bad syntax in pragma Obsolescent
7376
7377         * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
7378         argument with no identifier following one that has an identifier. Was
7379         missed in some cases.
7380
7381         * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
7382         identifier.
7383         (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
7384
7385         * snames.adb: Add Name_Policy
7386
7387         * snames.ads: Add Name_Policy
7388
7389 2009-04-08  Robert Dewar  <dewar@adacore.com>
7390
7391         * gnat_rm.texi: Minor reformatting
7392
7393         * par-ch2.adb: Minor reformatting
7394
7395 2009-04-08  Robert Dewar  <dewar@adacore.com>
7396
7397         * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
7398
7399 2009-04-08  Robert Dewar  <dewar@adacore.com>
7400
7401         * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
7402         properly in the presence of Remote_Types or Remote_Call_Interface.
7403
7404         * sem_util.adb: Add comment.
7405
7406 2009-04-08  Robert Dewar  <dewar@adacore.com>
7407
7408         * ug_words: Add /ASSUME_VALID for -gnatB
7409
7410         * vms_data.ads: Add /ASSUME_VALID for -gnatB
7411
7412         * sem_cat.adb: Add clarifying commment
7413
7414         * a-direio.ads (Bytes): Make sure value is non-zero
7415
7416 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
7417
7418         * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
7419         that does not come from source, check for a rewritten function call in
7420         prefixed notation before other forms of rewriting.
7421
7422 2009-04-08  Robert Dewar  <dewar@adacore.com>
7423
7424         * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
7425         these are now obsolescent units used only for bootrapping with an
7426         older compiler.
7427
7428 2009-04-08  Robert Dewar  <dewar@adacore.com>
7429
7430         * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
7431
7432         * sem_ch3.adb: Minor comment updates
7433
7434 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
7435
7436         * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
7437         that come from source.
7438
7439 2009-04-08  Tristan Gingold  <gingold@adacore.com>
7440
7441         * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
7442         * gcc-interface/decl.c (prepend_attributes): New case
7443         Pragma_Thread_Local_Storage.
7444         * gcc-interface/utils.c (process_attributes): New case
7445         ATTR_THREAD_LOCAL_STORAGE.
7446
7447 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
7448
7449         * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
7450         by the back-end if it contains a call to a subprogram without a
7451         previous spec that is declared in the same unit.
7452
7453         * errout.ads: Update comments on uses of dirs
7454
7455 2009-04-08  Robert Dewar  <dewar@adacore.com>
7456
7457         * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
7458
7459 2009-04-08  Tristan Gingold  <gingold@adacore.com>
7460
7461         * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
7462         variables.
7463         Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
7464
7465 2009-04-08  Vincent Celier  <celier@adacore.com>
7466
7467         * prj-nmsc.adb:
7468         (Add_Source): Add the mapping of the unit name to source file name in
7469         the Unit_Sources_HT hash table, if the unit name is not null.
7470
7471         * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
7472
7473         * prj.ads (Unit_Sources_Htable): New hash table instantiation
7474         (Project_Tree_Data): New component Unit_Sources_HT
7475
7476 2009-04-08  Thomas Quinot  <quinot@adacore.com>
7477
7478         * sem_ch8.adb: Minor reformatting.
7479         Minor code reorganization.
7480
7481 2009-04-08  Robert Dewar  <dewar@adacore.com>
7482
7483         * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
7484         snames.ads, freeze.adb, par-prag.adb: Add implementation of
7485         pragma Thread_Local_Storage, setting new flag
7486         Has_Pragma_Thread_Local_Storage in corresponding entities.
7487
7488 2009-04-08  Emmanuel Briot  <briot@adacore.com>
7489
7490         * prj.ads: Update comment on switches file
7491
7492         * prj-nmsc.adb: Code clean up. Use renaming clauses.
7493
7494 2009-04-08  Robert Dewar  <dewar@adacore.com>
7495
7496         * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
7497
7498 2009-04-08  Thomas Quinot  <quinot@adacore.com>
7499
7500         * ali-util.adb: Minor comment fix
7501
7502 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
7503
7504         * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
7505         appears in a context clause, and the enclosing package is mentioned in
7506         a limited_with_clause.
7507         (Use_One_Type): Reject clause if type is still incomplete.
7508
7509 2009-04-08  Emmanuel Briot  <briot@adacore.com>
7510
7511         * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
7512         avoid copies of Source_Data variables when possible, since these
7513         involve calls to memcpy() which are done too many times.
7514
7515 2009-04-08  Robert Dewar  <dewar@adacore.com>
7516
7517         * exp_ch4.adb (Expand_Concatenate): Clean up code
7518
7519 2009-04-07  Thomas Quinot  <quinot@adacore.com>
7520
7521         * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
7522         type for the case of concatenating a constrained array indexed by an
7523         enumeration type.
7524
7525 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
7526
7527         * sem_ch6.adb (Check_Conformance): when checking conformance of an
7528         operation that overrides an abstract operation inherited from an
7529         interface, return False if only one of the controlling formals is an
7530         access parameter.
7531
7532 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
7533
7534         * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
7535         mandated by AI05-105.
7536
7537 2009-04-07  Vincent Celier  <celier@adacore.com>
7538
7539         * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
7540
7541 2009-04-07  Thomas Quinot  <quinot@adacore.com>
7542
7543         * usage.adb: Minor fix in usage message.
7544
7545         * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
7546         match declaration; the correct subtype is Node_Id, not Entity_Id,
7547         because the expected node kind is an identifier, not a defining
7548         identifier.
7549
7550         * switch-c.adb: Minor reformatting.
7551
7552         * uintp.adb: Minor reformatting.
7553
7554 2009-04-07  Robert Dewar  <dewar@adacore.com>
7555
7556         * exp_ch13.adb: Minor reformatting
7557
7558 2009-04-07  Robert Dewar  <dewar@adacore.com>
7559
7560         * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
7561         against missing parent.
7562
7563 2009-04-07  Thomas Quinot  <quinot@adacore.com>
7564
7565         * xoscons.adb: Minor reformatting
7566
7567 2009-04-07  Robert Dewar  <dewar@adacore.com>
7568
7569         * rtsfind.ads: Remove obsolete string concatenation entries
7570
7571 2009-04-07  Robert Dewar  <dewar@adacore.com>
7572
7573         * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
7574
7575 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
7576
7577         * sem_ch10.adb (Check_Body_Required): Handle properly imported
7578         subprograms.
7579
7580 2009-04-07  Gary Dismukes  <dismukes@adacore.com>
7581
7582         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
7583         Attribute_Address): When Init_Or_Norm_Scalars is True and the object
7584         is of a scalar or string type then suppress the setting of the
7585         expression to Empty.
7586
7587         * freeze.adb (Warn_Overlay): Also emit the warnings about default
7588         initialization for the cases of scalar and string objects when
7589         Init_Or_Norm_Scalars is True.
7590
7591 2009-04-07  Bob Duff  <duff@adacore.com>
7592
7593         * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
7594
7595 2009-04-07  Bob Duff  <duff@adacore.com>
7596
7597         * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
7598         Form parameter of Text_Translation=No allows binary mode for Text_IO
7599         files.
7600
7601         * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
7602
7603 2009-04-07  Javier Miranda  <miranda@adacore.com>
7604
7605         * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
7606         processing the bounds for bit packed arrays or VM target machines.
7607
7608 2009-04-07  Thomas Quinot  <quinot@adacore.com>
7609
7610         * g-sothco.ads (Int_Access): Remove extraneous access type (use
7611         anonymous access instead).
7612         (Get_Socket_From_Set): Fix incorrectly reverted formals
7613         Last and Socket to match the underlying C routine.
7614
7615         * g-socket.adb, g-socket.ads
7616         (Get): Use named parameter associations instead of positional ones in
7617         call go Get_Socket_From_Set, since this routine has two formals of the
7618         same type.
7619         (Image): New procedure.
7620
7621         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7622         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
7623         (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
7624         for type of Arg formal.
7625
7626         * sem_warn.adb: Minor reformatting
7627
7628 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
7629
7630         * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
7631         over record components.
7632
7633 2009-04-07  Nicolas Roche  <roche@adacore.com>
7634
7635         * gsocket.h:
7636         Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
7637         has disappeared between VxWorks 6.4 and VxWorks 6.5
7638         In RTP mode use time.h instead of times.h
7639
7640 2009-04-07  Robert Dewar  <dewar@adacore.com>
7641
7642         * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
7643
7644 2009-04-07  Kevin Pouget  <pouget@adacore.com>
7645
7646         * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
7647         expanded code for constrained types.
7648
7649 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
7650
7651         * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
7652         AI05-105: in an object renaming declaration, anonymousness is a name
7653         resolution rule.
7654
7655         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
7656
7657 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
7658
7659         * g-comlin.adb (Expansion): Fix old regression: also return directory
7660         names when matching.
7661
7662 2009-04-07  Robert Dewar  <dewar@adacore.com>
7663
7664         * exp_ch4.adb:
7665         (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
7666         (Expand_Concatenate): New name for Expand_Concatenate_String which has
7667         been rewritten to handle all types.
7668         (Expand_Concatenate_Other): Remove
7669
7670 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
7671
7672         * lib-xref.adb (Generate_Reference): A default subprogram in an
7673         instance appears within the tree for the instance, but generates an
7674         implicit reference in the ALI.
7675
7676 2009-04-07  Javier Miranda  <miranda@adacore.com>
7677
7678         * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
7679         derived type that has discriminants, propagate the list of interfaces
7680         to the corresponding new base type. In addition, propagate also
7681         attribute Limited_Present (found working in this patch).
7682
7683 2009-04-07  Robert Dewar  <dewar@adacore.com>
7684
7685         * exp_ch4.adb: Rewrite concatenation expansion.
7686
7687 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
7688
7689         * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
7690         relevant to packages.
7691
7692 2009-04-07  Robert Dewar  <dewar@adacore.com>
7693
7694         * sem_attr.adb: Minor reformatting
7695
7696         * sem_ch6.adb: Minor reformatting
7697
7698 2009-04-07  Tristan Gingold  <gingold@adacore.com>
7699
7700         * socket.c: Add more protections against S_resolvLib_ macros.
7701
7702 2009-04-07  Thomas Quinot  <quinot@adacore.com>
7703
7704         * sem_attr.adb: Minor reformatting
7705
7706 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
7707
7708         * sem_ch6.adb (New_Overloaded_Entity): New predicate
7709         Is_Overriding_Alias to handle properly types that inherit two homonym
7710         operations that have distinct dispatch table entries.
7711
7712 2009-04-07  Emmanuel Briot  <briot@adacore.com>
7713
7714         * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
7715         looking for the end of a parenthesis group
7716
7717 2009-04-07  Tristan Gingold  <gingold@adacore.com>
7718
7719         * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
7720
7721         * socket.c Don't use resolvLib_ macros if not defined.
7722
7723 2009-04-07  Robert Dewar  <dewar@adacore.com>
7724
7725         * g-socket.adb: Minor reformatting.
7726
7727         * g-socthi-mingw.adb: Minor reformatting
7728
7729         * g-sothco.ads: Minor reformatting
7730
7731         * exp_ch4.adb:
7732         (Expand_Concatenate_String): Complete rewrite to generate efficient code
7733         inline instead of relying on external library routines.
7734
7735         * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
7736         s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
7737         obsolescent
7738
7739 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
7740
7741         * sem_attr.adb:
7742         (Eval_Attribute): for attributes of array objects that are not strings,
7743         attributes are not static if nominal subtype of object is unconstrained.
7744
7745 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
7746
7747         * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
7748         operations for a type T in an instance do not override each other,
7749         when T is derived from a formal private type, the corresponding
7750         operations inherited by a type derived from T outside
7751         of the instance do not override each other either.
7752
7753 2009-04-07  Robert Dewar  <dewar@adacore.com>
7754
7755         (Osint.Fail): Change calling sequence to have one string arg
7756         (Make.Make_Failed): Same change
7757         All callers are adjusted to use concatenation
7758
7759 2009-04-07  Robert Dewar  <dewar@adacore.com>
7760
7761         * exp_ch4.adb: Fix documentation typo
7762
7763 2009-04-07  Robert Dewar  <dewar@adacore.com>
7764
7765         * tbuild.ads: Minor reformatting
7766
7767 2009-04-07  Javier Miranda  <miranda@adacore.com>
7768
7769         * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
7770         when compiling under ZFP runtime.
7771
7772 2009-04-07  Robert Dewar  <dewar@adacore.com>
7773
7774         * g-comlin.adb: Minor reformatting
7775
7776 2009-04-07  Thomas Quinot  <quinot@adacore.com>
7777
7778         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7779         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7780         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
7781         Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
7782
7783 2009-04-07  Robert Dewar  <dewar@adacore.com>
7784
7785         * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
7786
7787         * opt.ads (Sprint_Line_Limit): New parameter
7788         
7789         * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
7790         
7791         * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
7792         
7793         * usage.adb: Output information for -gnatGnn -gnatDnn
7794
7795 2009-04-07  Robert Dewar  <dewar@adacore.com>
7796
7797         * make.adb: Minor reformatting
7798
7799 2009-04-07  Robert Dewar  <dewar@adacore.com>
7800
7801         * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
7802
7803 2009-04-07  Robert Dewar  <dewar@adacore.com>
7804
7805         * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
7806
7807 2009-04-07  Robert Dewar  <dewar@adacore.com>
7808
7809         * checks.adb:
7810         Remove Assume_Valid parameter from In_Subrange_Of calls
7811         
7812         * sem_eval.adb:
7813         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
7814         (Is_In_Range): Remove incorrect use of Assume_Valid
7815         (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
7816         
7817         * sem_eval.ads:
7818         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
7819         (Is_In_Range): Documentation cleanup
7820         (Is_Out_Of_Range): Documentation cleanup
7821
7822         * gnat_rm.texi:
7823         Add documentation for Assume_No_Invalid_Values pragma
7824
7825         * sem_ch12.adb: Minor reformatting
7826
7827         * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
7828
7829         * sem_prag.adb: Improve error message.
7830
7831         * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
7832         LF/CR no longer recognized as line terminator
7833
7834         * switch.ads: Minor documentation improvement
7835
7836         * vms_data.ads: Minor reformatting
7837
7838 2009-04-07  Robert Dewar  <dewar@adacore.com>
7839
7840         * checks.adb (Determine_Range): Add Assume_Valid parameter
7841         
7842         * checks.ads (Determine_Range): Add Assume_Valid parameter
7843         
7844         * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
7845          Is_Null_Loop to suppress warnings in a loop body.
7846         
7847         * exp_ch4.adb:
7848         (Rewrite_Comparison): Major rewrite to accomodate invalid values
7849         
7850         * exp_ch5.adb:
7851         (Expand_N_Loop_Statement): Delete loop known not to execute
7852         
7853         * opt.ads:
7854         (Assume_No_Invalid_Values): Now set to False, and as documented, this
7855          fully enables the proper handling of invalid values.
7856         
7857         * sem_attr.adb:
7858         New calling sequence for Is_In_Range
7859         
7860         * sem_ch5.adb:
7861         (Analyze_Iteration_Scheme): Accomodate possible invalid values
7862          in determining if a loop range is null.
7863         
7864         * sem_eval.adb:
7865         (Is_In_Range): Add Assume_Valid parameter
7866         (Is_Out_Of_Range): Add Assume_Valid_Parameter
7867         (Compile_Time_Compare): Major rewrite to accomodate invalid values and
7868          also to do more accurate and complete range analysis, catching more
7869          cases.
7870         
7871         * sem_eval.ads:
7872         (Is_In_Range): Add Assume_Valid parameter
7873         (Is_Out_Of_Range): Add Assume_Valid_Parameter
7874         
7875         * sem_util.adb:
7876         New calling sequence for Is_In_Range
7877         
7878         * sinfo.adb:
7879         (Suppress_Loop_Warnings): New flag
7880         
7881         * sinfo.ads:
7882         (Is_Null_Loop): Update documentation
7883         (Suppress_Loop_Warnings): New flag
7884         
7885         * gnat_ugn.texi: Document -gnatB switch
7886
7887 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
7888
7889         * gnatvsn.ads: Bump version number.
7890
7891 2009-04-07  Thomas Quinot  <quinot@adacore.com>
7892
7893         * exp_ch3.adb: Minor rewording (comments)
7894
7895 2009-04-07  Robert Dewar  <dewar@adacore.com>
7896
7897         * exp_disp.adb: Minor reformatting
7898
7899 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7900
7901         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
7902         underlying type.
7903         * gcc-interface/trans.c (lvalue_required_p): Likewise.
7904
7905 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7906
7907         * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
7908         Do not convert the result.  Remove obsolete comment.
7909
7910 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7911
7912         * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
7913         DECL_CONTEXT.
7914         (Subprogram_Body_to_gnu): Fix pasto.
7915
7916 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7917
7918         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
7919         (void_type_decl_node): Remove.
7920         (init_gigi_decls): Likewise.
7921         (gnat_install_builtins): Declare.
7922         (record_builtin_type): Likewise.
7923         (create_type_stub_decl): Likewise.
7924         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
7925         (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
7926         artificial.
7927         <E_Array_Subtype>: Use the index types, not only their name, in the
7928         record giving the names of the bounds, if any.
7929         For a packed array type, make it artificial only if the base type
7930         was artificial as well.  Remove redundant statement.
7931         (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
7932         dummy types.
7933         Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
7934         (rest_of_type_decl_compilation_no_defer): Likewise.
7935         * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
7936         * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
7937         and use create_type_stub_decl to build it.
7938         (gnat_pushdecl): Rewrite condition.
7939         (gnat_install_builtins): Remove bogus declaration.
7940         (record_builtin_type): New function.
7941         (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
7942         of types.
7943         (create_type_stub_decl): New function.
7944         (create_type_decl): Assert that the type is not dummy.  If the type
7945         hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
7946         (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
7947         (build_vms_descriptor): Likewise.
7948         (init_gigi_decls): Delete and move bulk of code to...
7949         * gcc-interface/trans.c (gigi): ...here.  Use record_builtin_type.
7950         (emit_range_check): Add gnat_node parameter.
7951         (emit_index_check): Likewise.
7952         (emit_check): Likewise.
7953         (build_unary_op_trapv): Likewise.
7954         (build_binary_op_trapv): Likewise.
7955         (convert_with_check): Likewise.
7956         (Attribute_to_gnu): Adjust calls for above changes.
7957         (call_to_gnu): Likewise.
7958         (gnat_to_gnu): Likewise.
7959         (assoc_to_constructor): Likewise.
7960         (pos_to_constructor): Likewise.
7961         (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
7962         (process_type): Do not create TYPE_DECL for dummy types.
7963
7964 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7965
7966         * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
7967         * gcc-interface/trans.c: Fix formatting throughout.  Fix comments.
7968         * gcc-interface/utils.c: Fix comments.
7969
7970 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7971
7972         * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
7973         move around.
7974         (gnat_to_gnu_type): Move around.
7975         (get_unpadded_type): Likewise.
7976         * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
7977         Tidy comments.
7978
7979 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7980
7981         * gcc-interface/trans.c (check_for_eliminated_entity): New function.
7982         (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
7983         (call_to_gnu): Invoke it instead of manually checking.
7984
7985 2009-04-04  Eric Botcazou  <ebotcazou@adacore.com>
7986
7987         * gcc-interface/utils.c (finish_record_type): Force structural equality
7988         checks if the record type is discriminated.
7989
7990 2009-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7991
7992         * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
7993         * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
7994         * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
7995         * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
7996         * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
7997         * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
7998         * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
7999
8000 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
8001
8002         * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
8003         of TREE_CONSTANT_OVERFLOW.
8004
8005 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
8006
8007         PR rtl-optimization/323
8008         * gcc-interface/misc.c (gnat_post_options): Set
8009         flag_excess_precision_cmdline.  Give an error for
8010         -fexcess-precision=standard for processors where the option is
8011         significant.
8012
8013 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8014
8015         PR c/39323
8016         * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
8017         on bit_align.
8018
8019 2009-03-11  Olivier Hainque  <hainque@adacore.com>
8020
8021         * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
8022         checks processing, remove unintended TREE_TYPE walk on index type.
8023
8024 2009-03-01  Eric Botcazou  <ebotcazou@adacore.com>
8025
8026         PR ada/39264
8027         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
8028         call make_packable_type on fat pointer types.
8029         <E_Array_Subtype>: Likewise.
8030         <E_Record_Subtype>: Call make_packable_type on all record types
8031         except for fat pointer types.
8032         (make_packable_type): Likewise.
8033         (gnat_to_gnu_field): Likewise.
8034
8035 2009-02-28  Eric Botcazou  <ebotcazou@adacore.com>
8036
8037         * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
8038         EH_MECHANISM change made on 2007-12-06.
8039
8040 2009-02-26  Andreas Schwab  <schwab@suse.de>
8041
8042         PR ada/39172
8043         * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
8044         * gcc-interface/Makefile.in: Change all uses of $(srcdir),
8045         $(fsrcdir) and $(fsrcpfx) to add ada subdir.
8046         (AWK): Substitute.
8047         (target_cpu_default): Substitute.
8048
8049 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
8050
8051         PR ada/39221
8052         * a-teioed.adb (Expand): Fix Result overflow.
8053
8054 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
8055
8056         * gcc-interface/Makefile.in: Fix multilib handling for
8057         sparc64-linux.
8058
8059 2009-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8060
8061         * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
8062
8063 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8064
8065         * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
8066
8067 2009-02-16  Eric Botcazou  <ebotcazou@adacore.com>
8068
8069         * gcc-interface/deftarg.c: Remove.
8070
8071 2009-02-10  Olivier Hainque  <hainque@adacore.com>
8072             Eric Botcazou  <ebotcazou@adacore.com>
8073
8074         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
8075         (copy_alias_set): Rename into...
8076         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
8077         underlying array of unconstrained arrays for the new type as well.
8078         If the old and new alias sets don't conflict, make one a subset of
8079         the other as per the OP parameter.
8080         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
8081         <E_Record_Type>: Do not copy the alias set for derived types.
8082         For all types, make the alias set of derived types a superset of
8083         that of their parent type.
8084         (make_aligning_type): Adjust calls to copy_alias_set.
8085         (make_packable_type): Likewise.
8086         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
8087         Check for alias set conflict instead of strict equality to issue the
8088         warning.
8089
8090 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
8091
8092         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
8093         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
8094         (copy_alias_set): Assert that arrays have the same aliasing settings.
8095         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
8096
8097 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
8098
8099         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
8100         Set TYPE_NONALIASED_COMPONENT on the array type.
8101
8102 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
8103
8104         * gcc-interface/Makefile.in: Fix mipsel linux handling.
8105
8106 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
8107
8108         * gcc-interface/Makefile.in: Fix multilib handling for
8109         powerpc64-linux.
8110
8111 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
8112
8113         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
8114         only useless conversions around renamed objects.
8115
8116 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
8117
8118         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
8119         the _Tag field before any discriminants in the field list.
8120         (components_to_record): Remove obsolete comment.
8121
8122
8123 \f
8124 Copyright (C) 2009 Free Software Foundation, Inc.
8125
8126 Copying and distribution of this file, with or without modification,
8127 are permitted in any medium without royalty provided the copyright
8128 notice and this notice are preserved.