OSDN Git Service

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