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