OSDN Git Service

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