OSDN Git Service

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