OSDN Git Service

149391c7cfe872f06847602dc977c3d4f517f29b
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2009-11-30  Pascal Obry  <obry@adacore.com>
2
3         * expect.c: Fix cast to avoid warnings in x86-64 Windows.
4
5 2009-11-30  Thomas Quinot  <quinot@adacore.com>
6
7         * gnat_rm.texi, s-sechas.adb, s-sechas.ads, s-shshco.adb,
8         s-shshco.ads, g-md5.adb, g-md5.ads, g-sha256.ads, s-shsh64.adb,
9         s-shsh64.ads, s-sehamd.adb, s-sehamd.ads, g-sha512.ads, g-sha1.adb,
10         g-sha1.ads, Makefile.rtl, g-sha224.ads, g-sha384.ads, s-shsh32.adb,
11         s-shsh32.ads, s-sehash.adb, s-sehash.ads: Reimplementation of GNAT.MD5
12         and GNAT.SHA1 to factor shared code and avoid unnecessary stack copies.
13         Also introduce new functions SHA-{224,256,384,512}
14
15 2009-11-30  Jerome Lambourg  <lambourg@adacore.com>
16
17         * exp_ch3.adb (Make_Predefined_Primitive_Specs): Improve comment for
18         the Value_Type case.
19
20 2009-11-30  Thomas Quinot  <quinot@adacore.com>
21
22         * a-textio.adb: Minor reformatting
23
24 2009-11-30  Pascal Obry  <obry@adacore.com>
25
26         * adaint.c: Fix bug in passing parameter.
27         * expect.c: Include io.h to get definition of _open_osfhandle
28
29 2009-11-30  Javier Miranda  <miranda@adacore.com>
30
31         * exp_ch6.adb, sem_scil.adb (Adjust_SCIL_Node): Add missing management
32         of N_Unchecked_Type_Conversion nodes when searching for SCIL nodes.
33         (Expand_Call): Adjust decoration of SCIL node associated with relocated
34         function call.
35
36 2009-11-30  Emmanuel Briot  <briot@adacore.com>
37
38         * prj-env.adb (Add_To_Source_Path): Preserve casing of directories
39
40 2009-11-30  Vincent Celier  <celier@adacore.com>
41
42         * opt.ads (No_Split_Units): New flag initialized to False
43
44 2009-11-30  Jerome Lambourg  <lambourg@adacore.com>
45
46         * exp_ch7.adb (Needs_Finalization): Add comments.
47         * exp_ch3.adb (Make_Predefined_Primitive_Specs): Improve handling of
48         CIL Value types.
49
50 2009-11-30  Robert Dewar  <dewar@adacore.com>
51
52         * osint.adb, a-rttiev.adb: Minor reformatting.
53
54 2009-11-30  Robert Dewar  <dewar@adacore.com>
55
56         * gnat_rm.texi: Remove list of warning letters, and refer instead to
57         using gnatmake to get a brief list.
58
59         * debug.adb: Document -gnatd.i to disable pragma Warnings
60         * par-prag.adb, sem_prag.adb: Recognize -gnatd.i to disable Warnings
61         pragma.
62         * vms_data.ads: Add /NOWARNINGS_PRAGMS for -gnatd.i
63         
64 2009-11-30  Geert Bosch  <bosch@adacore.com>
65
66         * a-ngelfu.adb (Sin): Correct spelling of sine in comment.
67
68 2009-11-30  Vincent Celier  <celier@adacore.com>
69
70         * gnatls.adb: Do not call Get_Target_Parameters in Verbose_Mode, as it
71         is not needed and gnatls fails when called with -v -nostdinc.
72
73 2009-11-30  Emmanuel Briot  <briot@adacore.com>
74
75         * osint.adb, osint.ads (File_Time_Stamp): new subprogram.
76
77 2009-11-30  Ed Schonberg  <schonberg@adacore.com>
78
79         * gnat_rm.texi, gnat_ugn.texi: Document new syntax for pragma Annotate
80
81 2009-11-30  Robert Dewar  <dewar@adacore.com>
82
83         * scans.ads (Wide_Wide_Character_Found): New flag
84         * scn.adb (Post_Scan): Set new flag Has_Wide_Wide_Character
85         * scng.adb (Set_String): Set new flag Wide_Wide_Character_Found
86         (Set_String): Fix failure to reset Wide_Character_Found
87         * sinfo.adb (Has_Wide_Wide_Character): New flag in N_String_Literal
88         * sinfo.ads (Has_Wide_Wide_Character): New flag in N_String_Literal
89         * a-ngelfu.adb: Minor reformatting & code reorganization.
90         * usage.adb: Fix typo in -gnatw.W line
91
92 2009-11-30  Robert Dewar  <dewar@adacore.com>
93
94         * osint.adb, prj-nmsc.adb, sem_prag.adb, sem_util.adb: Minor
95         reformatting.
96         * csinfo.adb: Terminate run if improper use of reserved flag
97         * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): Don't use reserved
98         Flag12, used Flag13 instead.
99         
100 2009-11-30  Vincent Celier  <celier@adacore.com>
101
102         * gnatcmd.adb (Check_Files): Recognize documented switches that have a
103         separate parameter.
104
105 2009-11-30  Robert Dewar  <dewar@adacore.com>
106
107         * sem_util.ads: Minor reformatting
108         * errout.adb: Minor reformatting
109         Minor code reorganization (use N_Subprogram_Specification to simplify)
110         * exp_ch7.adb: Add comment.
111
112 2009-11-30  Thomas Quinot  <quinot@adacore.com>
113
114         * put_scos.adb (Put_SCOs): Do not generate a SCO unit header for a unit
115         that has no SCOs.
116         * scos.ads: Minor reformatting
117
118 2009-11-30  Ed Schonberg  <schonberg@adacore.com>
119
120         * sem_prag.adb: Second unanalyzed parameter of Annotate is optional.
121
122 2009-11-30  Eric Botcazou  <ebotcazou@adacore.com>
123
124         * init.c (__gnat_adjust_context_for_raise, Linux version): Add guard
125         for null PC saved in the context.
126
127 2009-11-30  Hristian Kirtchev  <kirtchev@adacore.com>
128
129         * a-calend.adb (Day_Of_Week): Rewritten. The routine determines the
130         number of days from the Ada Epoch to the input date while ensuring that
131         both dates are in the same time zone.
132
133 2009-11-30  Emmanuel Briot  <briot@adacore.com>
134
135         * clean.adb ("-eL"): Also set Follow_Links_For_Dirs, to match what is
136         done in other project-aware tools like gnatmake and gprbuild.
137
138 2009-11-30  Jerome Lambourg  <lambourg@adacore.com>
139
140         * exp_ch3.adb (Make_Predefined_Primitive_Specs): Take care of CIL
141         ValueTypes.
142         * exp_ch7.adb (Needs_Finalization): Do not finalize CIL valuetypes.
143         * sem_util.adb (Is_Value_Type): Protect against invalid calls to Chars
144         (Is_Delegate): New method used for CIL.
145         * sem_util.ads (Is_Delegate): New method for CIL handling.
146         (Is_Value_Type): Improve documentation.
147
148 2009-11-30  Ed Schonberg  <schonberg@adacore.com>
149
150         * errout.adb (Unwind_Internal_Type): Improve error reporting if the
151         type is an anonymous access to subprogram that is the type of a formal
152         in a subprogram spec.
153
154 2009-11-30  Vincent Celier  <celier@adacore.com>
155
156         * prj-nmsc.adb (Check_Interfaces): In a Stand-Alone Library project, if
157         attribute Interfaces is not declared, then Library_Interface should
158         define the interfaces.
159
160 2009-11-30  Ed Schonberg  <schonberg@adacore.com>
161
162         * sem_prag.adb: New semantics for Annotate.
163
164 2009-11-30  Tristan Gingold  <gingold@adacore.com>
165
166         * gcc-interface/Makefile.in: Do not link with -static-libgcc on Darwin.
167
168 2009-11-30  Emmanuel Briot  <briot@adacore.com>
169
170         * gnat_ugn.texi: Extend doc for -eL
171
172 2009-11-30  Vincent Celier  <celier@adacore.com>
173
174         * osint.adb (Executable_Name (File_Name_Type)): Put the Name in the
175         Name_Buffer before testing for a dot in the Name.
176
177 2009-11-30  Vincent Celier  <celier@adacore.com>
178
179         * prj-part.adb (Project_Path_Name_Of): Resolve links for final result
180         if -eL has been specified.
181
182 2009-11-30  Vincent Celier  <celier@adacore.com>
183
184         * osint.adb (Executable_Name): Test the name instead of the name buffer
185         to check if there is a dot in the given name.
186
187 2009-11-30  Sergey Rybin  <rybin@adacore.com>
188
189         * gnat_ugn.texi: Update gnatcheck doc.
190
191 2009-11-30  Robert Dewar  <dewar@adacore.com>
192
193         * sem_ch3.adb, sem_disp.adb, usage.adb: Minor reformatting
194
195 2009-11-30  Vasiliy Fofanov  <fofanov@adacore.com>
196
197         * gnat_ugn.texi: Minor editing.
198
199 2009-11-30  Emmanuel Briot  <briot@adacore.com>
200
201         * prj-nmsc.adb (Search_Directories): when -eL was not specified, assume
202         that no directory matches the naming scheme for sources.
203
204 2009-11-30  Emmanuel Briot  <briot@adacore.com>
205
206         * prj.adb, prj.ads, prj-nmsc.adb (Has_Multi_Unit_Sources): New field in
207         project_data.
208
209 2009-11-30  Vincent Celier  <celier@adacore.com>
210
211         * osint.adb (Executable_Name): Correctly decide if the executable
212         suffix should be added when Only_If_No_Suffix is True.
213
214 2009-11-30  Robert Dewar  <dewar@adacore.com>
215
216         * frontend.adb, gnatlink.adb, prj-conf.adb, prj-tree.adb,
217         prj-tree.ads: Minor reformatting
218
219 2009-11-30  Vincent Celier  <celier@adacore.com>
220
221         * gnatlink.adb (Process_Args): Call Executable_Name on argument of -o
222         with Only_If_No_Suffix set to True.
223         * osint.adb (Executable_Name): Do not add executable suffix if there is
224         already a suffix and Only_If_No_Suffix is True.
225         * osint.ads (Executable_Name): New Boolean parameter Only_If_No_Suffix,
226         defaulted to False.
227
228 2009-11-30  Javier Miranda  <miranda@adacore.com>
229
230         * exp_atag.adb (Build_TSD): Change argument name because the actual is
231         now the address of a tag (instead of the tag). Update implementation
232         accordingly.
233         (Build_CW_Membership): New implementation. Converted into a procedure
234         because it has an additional out mode parameter. Its implementation has
235         been rewritten to improve the generated code but also to facilitate
236         referencing the relocated object node in the caller.
237         * exp_atag.ads (Build_CW_Membership): Update profile and documentation.
238         * sinfo.ads (N_SCIL_Membership_Test) New_Node.
239         (SCIL_Tag_Value): New field of N_SCIL_Membership_Test nodes.
240         (Is_Syntactic_Field): Add entry of new node.
241         (SCIL_Tag_Value/Set_SCIL_Tag_Value): New subprograms.
242         * sinfo.adb (SCIL_Related_Node, SCIL_Entity): Update assertions to
243         handle N_SCIL_Membership_Test nodes.
244         (SCIL_Tag_Value/Set_SCIL_Tag_Value): New subprograms.
245         * sem.adb (Analyze): Add null management for new node.
246         * sem_scil.adb (Find_SCIL_Node): Add null management for new node.
247         (Check_SCIL_Node): Add checks of N_SCIL_Membership_Test nodes.
248         * exp_ch4.adb (Tagged_Membership): Change profile from function to
249         procedure. Add generation of SCIL node associated with class-wide
250         membership test.
251         (Expand_N_In): Complete decoration of SCIL nodes.
252         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Tune call to
253         Build_CW_Membership because its profile has been changed.
254         * exp_util.adb (Insert_Actions): Add null management for new node.
255         * sprint.adb (Sprint_Node_Actual): Handle new node.
256         * gcc-interface/trans.c Add no processing for N_SCIL_Membership_Test
257         nodes.
258         * gcc-interface/Make-lang.in: Update dependencies.
259
260 2009-11-30  Ed Schonberg  <schonberg@adacore.com>
261
262         * opt.ads: New flags Init_Or_Norm_Scalars_Config,
263         Initialize_Scalars_Config, to capture the presence of the corresponding
264         pragmas in a configuration file.
265         * opt.adb (Register_, Save_, Set_, Restore_Opt_Configuration_Switches):
266         handle new flags so that they are restored for each compilation unit.
267         * frontend.adb: At the end of compilation, scan the context of the main
268         unit to recover occurrences of pragma Initialize_Scalars, to annotate
269         the ALI file accordingly.
270
271 2009-11-30  Vincent Celier  <celier@adacore.com>
272
273         * prj-tree.ads: Minor comment updates
274         * prj-tree.adb: Minor reformatting
275
276 2009-11-30  Ed Schonberg  <schonberg@adacore.com>
277
278         * sem_ch3.adb (Derive_Subprogram): Indicate that an inherited
279         predefined control operation is hidden if the parent type is not
280         visibly controlled.
281         * sem_ch6.adb (Check_Overriding_Indicator): Do not report error if
282         overridden operation is not visible, as may be the case with predefined
283         control operations.
284         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on
285         non-overriding control operation when type is not visibly controlled,
286         if the subprogram has an explicit overriding indicator.
287         * sem_util.ads, sem_util.adb (Is_Visibly_Controlled): Moved here from
288         sem_disp.adb.
289
290 2009-11-30  Emmanuel Briot  <briot@adacore.com>
291
292         * prj-tree.adb (Create_Attribute): Fix handling of VMS and Windows
293         * prj-attr.ads: Minor comment updates
294
295 2009-11-30  Robert Dewar  <dewar@adacore.com>
296
297         * gnat_rm.texi: Document pragma Short_Circuit
298
299 2009-11-30  Emmanuel Briot  <briot@adacore.com>
300
301         * prj-conf.adb, prj-tree.adb, prj-tree.ads (Create_Attribute): Now set
302         the index either on the attribute or on its value, depending on the
303         kind of the attribute. Done to match recent changes in Prj.PP that were
304         not synchronized with this function.
305
306 2009-11-30  Arnaud Charlet  <charlet@adacore.com>
307
308         * gcc-interface/Make-lang.in: Fix typo.
309         Update dependencies.
310
311 2009-11-30  Robert Dewar  <dewar@adacore.com>
312
313         * gnat_rm.texi: Add documentation for attribute Result.
314
315 2009-11-30  Arnaud Charlet  <charlet@adacore.com>
316
317         * s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
318         s-osinte-tru64.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads
319         (Get_Page_Size): Update comment since Get_Page_Size is now required.
320
321 2009-11-30  Jerome Lambourg  <lambourg@adacore.com>
322
323         * freeze.adb: Disable Warning on VM targets concerning C Imports, not
324         relevant.
325
326 2009-11-30  Bob Duff  <duff@adacore.com>
327
328         * sprint.adb (Source_Dump): Minor comment fix.
329         (Write_Itype): When writing a string literal subtype, use Expr_Value
330         instead of Intval to get the low bound.
331
332 2009-11-30  Vincent Celier  <celier@adacore.com>
333
334         * gnatlink.adb (Process_Args): Do not call Executable_Name on arguments
335         of switch -o.
336
337 2009-11-30  Robert Dewar  <dewar@adacore.com>
338
339         * exp_ch4.adb (Expand_N_Op_And): Implement pragma Short_Circuit_And_Or
340         (Expand_N_Op_Or): Implement pragma Short_Circuit_And_Or
341         * opt.ads (Short_Circuit_And_Or): New flag
342         * par-prag.adb: Add dummy entry for pragma Short_Circuit_And_Or
343         * sem_prag.adb: Implement pragma Short_Circuit_And_Or
344         * snames.ads-tmpl: Add entries for pragma Short_Circuit_And_Or
345
346 2009-11-30  Arnaud Charlet  <charlet@adacore.com>
347
348         * s-taprop-posix.adb: Fix casing.
349         * s-osinte-tru64.adb: Complete previous check-in.
350
351 2009-11-30  Robert Dewar  <dewar@adacore.com>
352
353         * gnat_rm.texi: Document pragma Compiler_Unit
354         * s-bitops.adb, s-restri.adb, g-htable.adb, s-restri.ads,
355         a-comlin.ads, a-strhas.ads, s-strhas.adb, s-parame.adb,
356         s-parame.ads, a-clrefi.adb, a-clrefi.ads, a-ioexce.ads: Supply missing
357         Compiler_Unit pragmas.
358         * freeze.adb (Freeze_Entity): Improve message for 8-bit boolean passed
359         to C.
360
361 2009-11-30  Robert Dewar  <dewar@adacore.com>
362
363         * makeutl.adb, makeutl.ads, prj-proc.adb, prj.adb, prj.ads: Minor
364         reformatting.
365
366 2009-11-30  Thomas Quinot  <quinot@adacore.com>
367
368         * osint.adb: Minor reformatting
369
370 2009-11-30  Vincent Celier  <celier@adacore.com>
371
372         * makeutl.ads, makeutl.adb (Base_Name_Index_For): New function to get
373         the base name of a main without the extension, with an eventual source
374         index.
375         (Mains.Get_Index): New procedure to set the source index of a main
376         (Mains.Get_Index): New function to get the source index of a main
377         * prj-attr.adb: New attributes Config_Body_File_Name_Index,
378         Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
379         Multi_Unit_Switches.
380         * prj-nmsc.adb (Process_Compiler): Takle into account new attributes
381         Config_Body_File_Name_Index, Config_Spec_File_Name_Index,
382         Multi_Unit_Object_Separator and Multi_Unit_Switches.
383         Allow only one character for Multi_Unit_Object_Separator.
384         * prj-proc.adb (Process_Declarative_Items): Take into account the
385         source indexes in indexes of associative array attribute declarations.
386         * prj.adb (Object_Name): New function to get the object file name for
387         units in multi-unit sources.
388         * prj.ads (Language_Config): New components Multi_Unit_Switches,
389         Multi_Unit_Object_Separator Config_Body_Index and Config_Spec_Index.
390         (Object_Name): New function to get the object file name for units in
391         multi-unit sources.
392         * snames.ads-tmpl: New standard names Config_Body_File_Name_Index,
393         Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
394         Multi_Unit_Switches.
395
396 2009-11-30  Arnaud Charlet  <charlet@adacore.com>
397
398         * s-tassta.adb: Update comment.
399
400 2009-11-30  Robert Dewar  <dewar@adacore.com>
401
402         * a-ngelfu.adb: Minor code reorganization.
403
404 2009-11-30  Robert Dewar  <dewar@adacore.com>
405
406         * osint.ads, prj.adb, prj.ads: Minor reformatting
407         * s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
408         s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
409         s-strxdr.adb, s-taprop-irix.adb, s-osinte-hpux-dce.adb,
410         s-osinte-tru64.adb, s-taenca.adb, s-taprop-hpux-dce.adb, s-stausa.adb,
411         s-taprop-posix.adb: Minor code reorganization (use conditional
412         expressions).
413
414 2009-11-30  Bob Duff  <duff@adacore.com>
415
416         * g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change.
417
418 2009-11-30  Bob Duff  <duff@adacore.com>
419
420         * socket.c: Add more accessor functions for struct servent (need
421         setters as well as getters).
422         * g-sothco.ads (Servent): Declare interfaces to C setter functions for
423         struct servent.
424         * g-sttsne-locking.adb (Copy_Service_Entry): Use setter functions for
425         struct servent.
426
427 2009-11-30  Robert Dewar  <dewar@adacore.com>
428
429         * s-stchop-vxworks.adb: Add comment.
430
431 2009-11-30  Emmanuel Briot  <briot@adacore.com>
432
433         * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Now acts
434         on the whole tree, to better share code with gprbuild.
435         (Length): New subprogram, to share code in gprbuild.
436         (Project_Data): Remove fields that are only needed when compiling a
437         project in gprbuild (where we use local variables instead)
438         * osint.adb, osint.ads: Added minor comment on memory management
439
440 2009-11-30  Sergey Rybin  <rybin@adacore.com>
441
442         * gnat_ugn.texi: Update gnatcheck doc.
443
444 2009-11-30  Robert Dewar  <dewar@adacore.com>
445
446         make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting
447         * s-taprop-dummy.adb: Minor code reorganization (raise with msgs start
448         with lower case).
449         * i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb,
450         g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb,
451         s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb,
452         g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb,
453         g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code
454         reorganization (use conditional expressions).
455
456 2009-11-30  Vincent Celier  <celier@adacore.com>
457
458         * prj-makr.adb (Source_Files): New hash table to keep track of source
459         file names.
460         (Finalize): Avoid putting several times the same source file name
461         in the source list file.
462         * prj-pp.adb (Print): Fix a bug in the placement of "at nn" for
463         associative array indexes.
464
465 2009-11-30  Robert Dewar  <dewar@adacore.com>
466
467         * g-dyntab.ads: Add missing pragma Compiler_Unit
468
469 2009-11-30  Thomas Quinot  <quinot@adacore.com>
470
471         * s-crtrun.ads, s-crtl.ads, g-stseme.adb, Makefile.rtl, s-fileio.adb
472         (System.CRTL.Runtime): New unit, to contain parts of s-crtl that are
473         used in the Ada runtime but can't be used in the compiler because of
474         bootstrap issues.
475         * socket.c, s-oscons-tmplt.c, g-sothco.ads
476         (System.OS_Constants.SIZEOF_struct_servent): New constant.
477         Use s-oscons constant instead of external variable to get size of
478         struct hostent.
479
480 2009-11-30  Thomas Quinot  <quinot@adacore.com>
481
482         * s-crtl.ads, g-stseme.adb, s-fileio.adb (System.CRTL.strerror): Change
483         return type to Interfaces.C.Strings.chars_ptr to eliminate need for
484         dubious unchecked conversion at call sites.
485         * s-errrep.adb, s-errrep.ads, Makefile.rtl (System.Error_Reporting):
486         Remove obsolete, unused runtime unit.
487         * gcc-interface/Make-lang.in: Update dependencies.
488         * gcc-interface/Makefile.in: Remove VMS specialization of s-crtl, not
489         required anymore.
490
491 2009-11-30  Vincent Celier  <celier@adacore.com>
492
493         * gnatlink.adb: Delete an eventual existing executable file, in case it
494         is a symbolic link, to avoid modifying the target of the symbolic link.
495
496 2009-11-30  Bob Duff  <duff@adacore.com>
497
498         * socket.c: Add accessor functions for struct servent.
499         * g-sothco.ads (Servent): Declare interfaces to C accessor functions
500         for struct servent.
501         * g-socket.adb (To_Service_Entry): Use accessor functions for struct
502         servent.
503
504 2009-11-30  Robert Dewar  <dewar@adacore.com>
505
506         * g-arrspl.adb: Minor reformatting
507         * g-dyntab.adb: Add missing pragma Compiler_Unit
508
509 2009-11-30  Thomas Quinot  <quinot@adacore.com>
510
511         * s-crtl.ads, s-oscons-tmplt.c: Fix support for VMS
512         * make.adb, g-comlin.ads, exp_ch6.adb: Minor reformatting
513
514 2009-11-30  Robert Dewar  <dewar@adacore.com>
515
516         * bcheck.adb, gnatlink.adb, make.adb, makeutl.adb, osint.adb,
517         osint.ads, prj-ext.adb, sem_case.adb: Minor reformatting
518         * g-alleve.adb: Minor code reorganization (use conditional expressions)
519
520 2009-11-30  Matthew Heaney  <heaney@adacore.com>
521
522         * a-crbtgo.adb (Delete_Fixup): Changed always-true predicates to
523         assertions.
524
525 2009-11-30  Thomas Quinot  <quinot@adacore.com>
526
527         * a-tasatt.adb, s-crtl.ads, s-taprop-dummy.adb (System.CRTL.malloc32,
528         System.CRTL.realloc32): Remove VMS-specific routines.
529         (Ada.Task_Attributes.Reference): Remove unreachable code.
530         (System.Task_Primitives.Operations.Initialize, dummy version):
531         Use plain Program_Error rather than call to
532         System.Error_Reporting.Shutdown.
533
534 2009-11-30  Thomas Quinot  <quinot@adacore.com>
535
536         * s-oscons-tmplt.c, xoscons.adb: Add new constants in preparation for
537         sharing s-crtl across all platforms.
538
539 2009-11-30  Thomas Quinot  <quinot@adacore.com>
540
541         * s-commun.adb, s-commun.ads: New internal support unit,
542         allowing code sharing between GNAT.Sockets and
543         GNAT.Serial_Communication.
544         * g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb,
545         g-socket.adb (GNAT.Sockets.Last_Index): Move to System.Communication.
546         (GNAT.Serial_Communication.Read): Handle correctly the case where no
547         data was read, and Buffer'First = Stream_Element_Offset'First.
548         * Makefile.rtl: Add entry for s-commun
549         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
550         g-socthi-vxworks.ads, g-stseme.adb, g-socthi-mingw.ads,
551         g-socthi.adb, g-socthi.ads (GNAT.Sockets.Thin.Socket_Error_Message):
552         Reimplement in terms of System.CRTL.strerror.
553
554 2009-11-26  Eric Botcazou  <ebotcazou@adacore.com>
555
556         * gcc-interface/utils.c (copy_type): Unshare the language-specific data
557         and the contents of the language-specific slot if needed.
558
559 2009-11-26  Eric Botcazou  <ebotcazou@adacore.com>
560
561         * gcc-interface/trans.c (gnat_to_gnu) <N_In>: Set the source location
562         of the operator on both branches of the test in the generic case.
563
564 2009-11-25  Eric Botcazou  <ebotcazou@adacore.com>
565
566         * gcc-interface/trans.c (unchecked_conversion_lhs_nop): Rename into...
567         (unchecked_conversion_nop): ...this.  Handle actual parameters.
568         (gnat_to_gnu): Adjust for above renaming.
569
570 2009-11-25  Eric Botcazou  <ebotcazou@adacore.com>
571
572         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
573         Translate regular boolean types into BOOLEAN_TYPEs.
574
575 2009-11-24  Eric Botcazou  <ebotcazou@adacore.com>
576
577         * sem_util.adb (Set_Debug_Info_Needed): For an E_Class_Wide_Subtype,
578         also set the flag on the Equivalent_Type.
579         * gcc-interface/utils.c (finish_record_type): Replace DO_NOT_FINALIZE
580         parameter with DEBUG_INFO_P.  Rename FIELDLIST into FIELD_LIST.
581         (rest_of_record_type_compilation): Rename FIELDLIST into FIELD_LIST.
582         (build_vms_descriptor32): Adjust call to finish_record_type.
583         (build_vms_descriptor): Likewise.
584         (build_unc_object_type): Likewise.
585         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust calls to
586         finish_record_type and components_to_record.
587         (make_packable_type): Adjust call to finish_record_type.
588         (maybe_pad_type): Likewise.  Tweak condition.
589         (components_to_record): Likewise.  Replace DO_NOT_FINALIZE parameter
590         with MAYBE_UNUSED.  Adjust recursive call.
591         (create_variant_part_from): Adjust call to finish_record_type.  Do not
592         call rest_of_record_type_compilation on the new record types.
593         * gcc-interface/trans.c (gigi): Adjust call to finish_record_type.
594         * gcc-interface/gigi.h (finish_record_type): Adjust prototype and
595         comment.
596         (rest_of_record_type_compilation): Adjust comment.
597
598 2009-11-24  Eric Botcazou  <ebotcazou@adacore.com>
599
600         * exp_util.adb (Make_CW_Equivalent_Type): Do not mark the type as
601         frozen for targets that do not require front-end layout.
602         (New_Class_Wide_Subtype): Always reset the freezing status to False.
603         * exp_ch8.adb: Do not 'with' Targparm.
604         (Expand_N_Object_Renaming_Declaration): Always freeze a class-wide
605         subtype that has been built from the expression.
606         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
607         class wide, freeze the implicit type that has been built from the
608         expression at the dereference point.
609         * freeze.adb (Freeze_Entity): Adjust comment.
610         * gcc-interface/decl.c (Gigi_Equivalent_Type) <E_Class_Wide_Type>:
611         Remove useless test.
612         * gcc-interface/trans.c (process_freeze_entity): Do not special-case
613         class-wide subtypes.
614
615         * s-osinte-aix.adb (clock_gettime): Fix comment.
616         * s-osinte-darwin.adb (clock_gettime): Likewise.
617
618 2009-11-23  Eric Botcazou  <ebotcazou@adacore.com>
619
620         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Pass the list
621         of attributes when building the corresponding variable of a constant.
622         * gcc-interface/utils.c (create_var_decl_1): Do not process attributes
623         for constants.
624
625 2009-11-23  Laurent GUERBY  <laurent@guerby.net>
626             Eric Botcazou  <ebotcazou@adacore.com>
627
628         PR ada/42153
629         * s-osinte-linux.ads (struct_timeval): Delete.
630         * s-osinte-hpux.ads (struct_timeval, To_Duration, To_Timeval): Delete.
631         * s-osinte-kfreebsd-gnu.ads: Likewise.
632         * s-osinte-rtems.ads: Likewise.
633         * s-osinte-aix.ads: Likewise.
634         * s-osinte-hpux-dce.ads: Likewise.
635         * s-osinte-darwin.ads: Likewise.
636         * s-osinte-solaris-posix.ads: Likewise.
637         * s-osinte-irix.ads: Likewise.
638         * s-osinte-solaris.ads: Likewise.
639         * s-osinte-hpux-dce.adb (To_Duration, To_Timeval): Delete.
640         * s-osinte-irix.adb: Likewise.
641         * s-osinte-solaris.adb: Likewise.
642         * s-osinte-rtems.adb: Likewise.  Minor reformatting.
643         * s-osinte-aix.adb (To_Duration, To_Timeval): Delete.
644         (clock_gettime): Use cal.c's timeval_to_duration.
645         * s-osinte-darwin.adb: Likewise.
646
647 2009-11-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
648
649         * adaint.h: Assume large file support on IRIX only if _LFAPI.
650
651 2009-11-21  Laurent GUERBY  <laurent@guerby.net>
652             Eric Botcazou  <ebotcazou@adacore.com>
653
654         * s-osinte-linux.ads (struct_timeval, To_Duration, To_Timeval,
655         gettimeofday): Delete.
656         * s-osinte-posix.adb (To_Duration, To_Timeval): Delete.
657         * s-osprim-posix.adb (struct_timezone, struct_timeval, gettimeofday):
658         Delete.
659         (Clock): Use cal.c's timeval_to_duration.
660         * s-taprop-linux.adb (Monotonic_Clock): Likewise.
661
662 2009-11-12  Eric Botcazou  <ebotcazou@adacore.com>
663             Laurent GUERBY  <laurent@guerby.net>
664
665         * init.c (GNU/Linux Section): Enable for all architectures.
666
667 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
668
669         PR ada/20548
670         * system-linux-alpha.ads (Stack_Check_Probes): Set to true.
671         * system-linux-hppa.ads (Stack_Check_Probes): Likewise.
672         * system-linux-sparc.ads (Stack_Check_Probes): Likewise.
673         * system-linux-sparcv9.ads (Stack_Check_Probes): Likewise.
674
675 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
676
677         * system-linux-alpha.ads (AAMP, Compiler_System_Version, OpenVMS,
678         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
679         Delete.
680         (Stack_Check_Limits, Always_Compatible_Rep): New.
681         * system-linux-mips.ads (AAMP, Compiler_System_Version, OpenVMS,
682         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
683         Delete.
684         (Stack_Check_Limits, Always_Compatible_Rep): New.
685         * system-linux-mips64el.ads (AAMP, Compiler_System_Version, OpenVMS,
686         Functions_Return_By_DSP, Front_End_ZCX_Support, High_Integrity_Mode,
687         Long_Shifts_Inlined): Delete.
688         (Stack_Check_Limits, Always_Compatible_Rep): New.
689         * system-linux-mipsel.ads (AAMP, Compiler_System_Version, OpenVMS,
690         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
691         Delete.
692         (Stack_Check_Limits, Always_Compatible_Rep): New.
693         * system-linux-s390.ads (AAMP, Compiler_System_Version, OpenVMS,
694         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
695         Delete.
696         (Stack_Check_Limits, Always_Compatible_Rep): New.
697         * system-linux-s390x.ads (AAMP, Compiler_System_Version, OpenVMS,
698         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
699         Delete.
700         (Stack_Check_Limits, Always_Compatible_Rep): New.
701         * system-linux-sh4.ads (Stack_Check_Limits, Always_Compatible_Rep):
702         New.
703         * system-linux-sparc.ads (AAMP, Compiler_System_Version, OpenVMS,
704         Front_End_ZCX_Support): Delete.
705         (Stack_Check_Limits, Always_Compatible_Rep): New.
706         * system-linux-sparcv9.ads (AAMP, Compiler_System_Version, OpenVMS,
707         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
708         Delete.
709         (Stack_Check_Limits, Always_Compatible_Rep): New.
710         * system-rtems.ads (OpenVMS): Delete.
711         (Stack_Check_Limits, Always_Compatible_Rep): New.
712
713 2009-11-08  Eric Botcazou  <ebotcazou@adacore.com>
714
715         * gcc-interface/decl.c (make_packable_type): Fix oversight.
716         (gnat_to_gnu_field): Do not attempt to change the form of the type
717         if the field requires strict alignment.  Always change the form of
718         the type if the specified size is smaller than its size.
719
720 2009-11-05  Eric Botcazou  <ebotcazou@adacore.com>
721
722         * gcc-interface/utils.c (gnat_type_for_mode): Handle vector modes.
723
724 2009-11-05  Eric Botcazou  <ebotcazou@adacore.com>
725
726         * gcc-interface/trans.c (lvalue_required_p) <N_Unchecked_Conversion>:
727         New case.
728
729 2009-10-30  Eric Botcazou  <ebotcazou@adacore.com>
730
731         * gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete.
732         (create_field_decl): Update description.  In a packed record, round
733         the size up to a byte boundary only if the field's type has BLKmode.
734         * gcc-interface/gigi.h (create_field_decl): Update description.
735
736 2009-10-30  Emmanuel Briot  <briot@adacore.com>
737
738         * make.adb (Start_Compile_If_Possible): Compute location of resulting
739         ALI file in this procedure instead of after the compilation itself,
740         since the current directory might have changed in between when using
741         -j<n>.
742
743         * osint.ads: Addded missing alignment clause.
744
745         * adaint.c, adaint.h, osint.adb (__gnat_reset_attributes,
746         __gnat_size_of_file_attributes): Rename reset_attributes and
747         size_of_file_attributes.
748
749 2009-10-30  Javier Miranda  <miranda@adacore.com>
750
751         * sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences
752         of statements when searching for SCIL nodes.
753
754 2009-10-30  Tristan Gingold  <gingold@adacore.com>
755
756         * gnatlink.adb, link.c: By default use shared libgcc on darwin.
757
758 2009-10-30  Emmanuel Briot  <briot@adacore.com>
759
760         * make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is
761         already in the list.
762         This saves system calls when looking for ALI files
763         (Scan_Make_Args): The parameter to gnatmake's -D is now converted to an
764         absolute PATH (so that the above improvement properly occurs if both
765         -D<dir> and -aO<dir> are specified).
766
767 2009-10-30  Thomas Quinot  <quinot@adacore.com>
768
769         * a-direct.adb: Minor reformatting
770
771 2009-10-30  Emmanuel Briot  <briot@adacore.com>
772
773         * make.adb, adaint.c, adaint.h, osint.adb, osint.ads, bcheck.adb
774         (*_attr): new subprograms.
775         (File_Length, File_Time_Stamp, Is_Writable_File): new subprograms
776         (Read_Library_Info_From_Full, Full_Library_Info_Name,
777         Full_Source_Name): Now benefit from a previous cache of the file
778         attributes, to further save on system calls.
779         (Smart_Find_File): now also cache the file attributes. This makes the
780         package File_Stamp_Hash_Table useless, and it was removed.
781         (Compile_Sources): create subprograms for the various steps of the main
782         loop, for readibility and to avoid sharing variables between the
783         various steps.
784
785 2009-10-30  Emmanuel Briot  <briot@adacore.com>
786
787         * make.adb, osint.adb, osint.ads (Library_File_Stamp): Removed, since
788         unused.
789         (Read_Library_Info_From_Full): New subprogram.
790
791 2009-10-30  Robert Dewar  <dewar@adacore.com>
792
793         * a-tideio.adb: Minor reformatting
794         * a-wtdeio.adb, a-ztdeio.adb: Update comments, code clean up.
795
796         * a-reatim.adb, a-tideau.adb, a-ngelfu.adb, a-ztdeau.adb, a-ngrear.adb,
797         a-wtedit.adb, a-ststio.adb, a-ztedit.adb: Minor code reorganization
798         (use conditional expressions).
799
800 2009-10-30  Ed Schonberg  <schonberg@adacore.com>
801
802         * gnat_ugn.texi: Additional info on gnatw.i and gnatw.I
803
804         * sem_case.adb: Improved error message.
805
806 2009-10-30  Emmanuel Briot  <briot@adacore.com>
807
808         * a-direct.adb, gnatcmd.adb, gnatname.adb, makeutl.adb, opt.ads,
809         osint.adb, prj-ext.adb, switch-m.adb (Follow_Links_For_Dirs): Now
810         defaults to False, and controlled by -eL.
811         * a-direct.adb: Add comments.
812         * osint.adb (File_Stamp): Avoid unneeded duplicate system call
813
814 2009-10-30  Robert Dewar  <dewar@adacore.com>
815
816         * sem_res.adb (Resolve_Type_Conversion): Avoid false positive when
817         converting non-static subtype to "identical" static subtype.
818
819 2009-10-30  Ed Schonberg  <schonberg@adacore.com>
820
821         * usage.adb: Add -gnatw.i switch.
822
823 2009-10-30  Vincent Celier  <celier@adacore.com>
824
825         * xsnamest.adb: Update comments with regards to the template files
826         snames.*.tmpl
827
828 2009-10-30  Bob Duff  <duff@adacore.com>
829
830         * s-fileio.adb (Errno_Message): Suppress VMS-specific warning.
831
832 2009-10-30  Ed Schonberg  <schonberg@adacore.com>
833
834         * sem_case.adb (Check_Choices): Add explanatory message when there are
835         missing alternatives when the required range of alternatives is given
836         by the base type of the case expression or discriminant in a variant
837         part.
838
839         * opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially
840         dangerous overlap between actuals in a call, activated by -gnatw.i
841         * sem_warn.adb (Set_Dot_Warning_Switch): set flag.
842         (Warn_On_Overlapping_Actuals): use new flag.
843
844         * gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals
845
846 2009-10-30  Robert Dewar  <dewar@adacore.com>
847
848         * exp_aggr.adb, exp_ch9.adb: Minor reformatting
849
850 2009-10-29  Eric Botcazou  <ebotcazou@adacore.com>
851
852         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
853         create integer types with precision 0.
854
855 2009-10-29  Eric Botcazou  <ebotcazou@adacore.com>
856
857         PR ada/41870
858         * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
859         parameters and rewrite comments.  For a derived type, return the
860         setting of its parent type.
861         (gnat_to_gnu_entity): Do an alias set copy for derived types if they
862         are composite.  Adjust calls to above function.
863
864 2009-10-29  Eric Botcazou  <ebotcazou@adacore.com>
865
866         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not
867         return the RM size for padded types.
868
869 2009-10-28  Robert Dewar  <dewar@adacore.com>
870
871         * sem_type.adb: Minor reformatting
872
873 2009-10-28  Arnaud Charlet  <charlet@adacore.com>
874
875         * exp_ch9.adb (Build_Task_Proc_Specification): Generate a different
876         suffix for task type bodies.
877
878 2009-10-28  Ed Schonberg  <schonberg@adacore.com>
879
880         * exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a
881         finalization list if the designated type requires no control actions,
882         to prevent a useless semantic dependence on ada.tags.
883
884 2009-10-28  Bob Duff  <duff@adacore.com>
885
886         * s-fileio.adb: Give more information in exception messages.
887
888 2009-10-28  Robert Dewar  <dewar@adacore.com>
889
890         * gnat_ugn.texi: Document new -gnatyt requirement for space after right
891         paren if next token starts with digit or letter.
892         * styleg.adb (Check_Right_Paren): New rule for space after if next
893         character is a letter or digit.
894
895 2009-10-28  Thomas Quinot  <quinot@adacore.com>
896
897         * s-crtl.ads (System.CRTL.strerror): New function.
898
899 2009-10-28  Ed Schonberg  <schonberg@adacore.com>
900
901         * sem_type.adb: Add guard to recover some type errors.
902
903 2009-10-28  Vincent Celier  <celier@adacore.com>
904
905         * prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
906         Add_If_Not_In_List to account to the fact that a directory may be
907         removed from the list. Only remove directory if Removed is True.
908
909 2009-10-28  Gary Dismukes  <dismukes@adacore.com>
910
911         * a-textio.ads, a-textio.ads: Put back function EOF_Char in private
912         part. Put back body of function EOF_Char.
913         * a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
914         to EOF_Char.
915
916 2009-10-28  Emmanuel Briot  <briot@adacore.com>
917
918         * prj-tree.adb (Free): Fix memory leak.
919
920 2009-10-28  Thomas Quinot  <quinot@adacore.com>
921
922         * s-fileio.adb: Minor reformatting
923
924 2009-10-28  Arnaud Charlet  <charlet@adacore.com>
925
926         * gcc-interface/Make-lang.in: Update dependencies.
927
928 2009-10-28  Robert Dewar  <dewar@adacore.com>
929
930         * exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
931         types.ads: Minor reformatting
932
933 2009-10-28  Tristan Gingold  <gingold@adacore.com>
934
935         * init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
936
937 2009-10-28  Thomas Quinot  <quinot@adacore.com>
938
939         * exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
940         the operand of the unary minus and ABS operators.
941
942         * sem_type.adb (Covers): A concurrent type and its corresponding record
943         type are compatible.
944         * exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
945         attribute reference for the current instance of a protected type while
946         analyzing an access discriminant constraint in a component definition.
947         Such a reference is handled in the corresponding record's init proc,
948         while initializing the constrained component.
949         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
950         corresponding record type, propagate components'
951         Has_Per_Object_Constraint flag.
952         * exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
953         For a concurrent type, set up concurrent aspects before initializing
954         components with a per object constrain, because they may be controlled,
955         and their initialization may call entries or protected subprograms of
956         the enclosing concurrent object.
957
958 2009-10-28  Emmanuel Briot  <briot@adacore.com>
959
960         * prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
961         of code.
962         (Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
963         processing the directories specified explicitly in the project file.
964
965 2009-10-28  Robert Dewar  <dewar@adacore.com>
966
967         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
968         a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
969         to body).
970         (Initialize_Standard_Files): New procedure.
971         * a-tienau.adb: Minor change to make EOF directly visible
972         * a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
973         a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
974         * gnat_rm.texi: Add documentation for
975         Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
976         * Makefile.rtl: Add entries for
977         Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
978
979 2009-10-28  Thomas Quinot  <quinot@adacore.com>
980
981         * exp_ch9.ads: Minor reformatting
982         * sem_ch3.adb: Minor reformatting
983         * sem_aggr.adb: Minor reformatting.
984         * sem_attr.adb: Minor reformatting
985         * tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
986         New subprogram.
987         Minor code reorganization/factoring.
988
989 2009-10-27  Eric Botcazou  <ebotcazou@adacore.com>
990
991         * gcc-interface/decl.c (purpose_member_field): New static function.
992         (annotate_rep): Use it instead of purpose_member.
993
994 2009-10-27  Eric Botcazou  <ebotcazou@adacore.com>
995
996         * raise-gcc (db_region_for): Use _Unwind_GetIPInfo instead of
997         _Unwind_GetIP if HAVE_GETIPINFO is defined.
998         (db_action_for): Likewise.
999
1000 2009-10-27  Robert Dewar  <dewar@adacore.com>
1001
1002         * s-fileio.adb, s-fileio.ads, sem_util.adb, sem_warn.adb,
1003         sem_warn.ads: Minor reformatting
1004
1005 2009-10-27  Robert Dewar  <dewar@adacore.com>
1006
1007         * sem_warn.adb, sem_util.adb, sem_util.ads: Minor reformatting. Add
1008         comments.
1009
1010 2009-10-27  Robert Dewar  <dewar@adacore.com>
1011
1012         * s-os_lib.ads, s-os_lib.adb, prj-err.adb, makeutl.adb: Minor
1013         reformatting.
1014
1015 2009-10-27  Ed Schonberg  <schonberg@adacore.com>
1016
1017         * sem.util.ads, sem_util.adb (Denotes_Same_Object,
1018         Denotes_Same_Prefix): New functions to detect overlap between actuals
1019         that are not by-copy in a call, when one of them is in-out.
1020         * sem_warn.ads, sem_warn.adb (Warn_On_Overlapping_Actuals): New
1021         procedure,  called on a subprogram call to warn when an in-out actual
1022         that is not by-copy overlaps with another actual, thus leadind to
1023         potentially dangerous aliasing in the body of the called subprogram.
1024         Currently the warning is under control of the -gnatX switch.
1025         * sem_res.adb (resolve_call): call Warn_On_Overlapping_Actuals.
1026
1027 2009-10-27  Thomas Quinot  <quinot@adacore.com>
1028
1029         * sem_ch12.adb (Install_Formal_Packages): Do not omit installation of
1030         visible entities when the formal package doesn't have a box.
1031
1032         * checks.adb: Minor reformatting.
1033
1034 2009-10-27  Vincent Celier  <celier@adacore.com>
1035
1036         * prj-part.adb (Parse): Catch exception Types.Unrecoverable_Error and
1037         set Project to Empty_Node.
1038
1039 2009-10-27  Robert Dewar  <dewar@adacore.com>
1040
1041         * gnatbind.adb: Minor reformatting
1042
1043 2009-10-27  Arnaud Charlet  <charlet@adacore.com>
1044
1045         * exp_aggr.adb: Fix comment.
1046
1047 2009-10-27  Emmanuel Briot  <briot@adacore.com>
1048
1049         * prj-err.adb (Error_Msg): take into account continuation lines when
1050         computing whether we have a warning.
1051
1052 2009-10-27  Vasiliy Fofanov  <fofanov@adacore.com>
1053
1054         * make.adb, s-os_lib.adb, s-os_lib.ads (Create_Temp_Output_File): New
1055         routine that is designed to create temp file descriptor specifically
1056         for redirecting an output stream.
1057
1058 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1059
1060         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
1061         processing the parent type, build the COMPONENT_REF for a discriminant
1062         with the proper type.
1063
1064 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1065
1066         * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo.
1067         * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO.
1068         Pass GNATLIBCFLAGS_FOR_C to recursive invocations.
1069
1070 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
1071
1072         * gcc-interfaces/decl.c (build_subst_list): Convert the expression of
1073         the constraint to the type of the discriminant.
1074
1075 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
1076
1077         * gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
1078         TYPE_DECL when a type is padded if there is already one and reset
1079         TYPE_STUB_DECL in this case.
1080
1081 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
1082
1083         * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
1084         main_identifier_node.
1085
1086 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1087
1088         * gcc-interface/utils.c (convert): When converting to a padded type
1089         with an inner type of self-referential size, pad the expression before
1090         doing the unchecked conversion.
1091
1092 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1093
1094         * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
1095         sure the element type is consistent.
1096
1097 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1098
1099         * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
1100
1101 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1102
1103         * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
1104         (TYPE_IS_FAT_POINTER_P): ...this.
1105         (TYPE_THIN_POINTER_P): Rename into...
1106         (TYPE_IS_THIN_POINTER_P): ...this.
1107         (TYPE_FAT_OR_THIN_POINTER_P): Rename into...
1108         (TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
1109         (TYPE_IS_PADDING_P): Change definition, move old one to...
1110         (TYPE_PADDING_P): ...this.
1111         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
1112         (get_unpadded_type): Likewise.
1113         (gnat_to_gnu_component_type): Likewise.
1114         (gnat_to_gnu_param): Likewise.
1115         (relate_alias_sets): Likewise.
1116         (make_packable_type): Likewise.
1117         (maybe_pad_type): Likewise.
1118         (gnat_to_gnu_field): Likewise.
1119         (is_variable_size): Likewise.
1120         (annotate_object): Likewise.
1121         (validate_size): Likewise.
1122         (set_rm_size): Likewise.
1123         (make_type_from_size): Likewise.
1124         (rm_size): Likewise.
1125         * gcc-interface/misc.c (gnat_print_type): Likewise.
1126         (gnat_get_alias_set): Likewise.
1127         * gcc-interface/trans.c (Identifier_to_gnu): Likewise.
1128         (Attribute_to_gnu): Likewise.
1129         (call_to_gnu): Likewise.
1130         (gnat_to_gnu): Likewise.
1131         (add_decl_expr): Likewise.
1132         (convert_with_check): Likewise.
1133         (addressable_p): Likewise.
1134         (maybe_implicit_deref): Likewise.
1135         (protect_multiple_eval): Likewise.
1136         (gnat_stabilize_reference_1): Likewise.
1137         * gcc-interface/utils.c (gnat_pushdecl): Likewise.
1138         (finish_record_type): Likewise.
1139         (rest_of_record_type_compilation): Likewise.
1140         (create_type_decl): Likewise.
1141         (gnat_types_compatible_p): Likewise.
1142         (build_template): Likewise.
1143         (convert_vms_descriptor64): Likewise.
1144         (convert_vms_descriptor32): Likewise.
1145         (build_unc_object_type_from_ptr): Likewise.
1146         (update_pointer_to): Likewise.
1147         (convert_to_fat_pointer): Likewise.
1148         (convert_to_fat_pointer): Likewise.
1149         (convert): Likewise.
1150         (remove_conversions): Likewise.
1151         (maybe_unconstrained_array): Likewise.
1152         (unchecked_convert): Likewise.
1153         (handle_vector_type_attribute): Likewise.
1154         * gcc-interface/utils2.c (build_binary_op): Likewise.
1155         (build_unary_op): Likewise.
1156         (build_allocator): Likewise.
1157
1158 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1159
1160         * exp_dbug.ads: Adjust type names in comments.
1161         * gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
1162         add new IS_COMPONENT_TYPE parameter.  Adjust.  Remove dead code.
1163         (gnat_to_gnu_entity): Adjust for above change.
1164         (gnat_to_gnu_component_type): Likewise.
1165         (gnat_to_gnu_field): Likewise.
1166         * gcc-interface/trans.c (call_to_gnu): Likewise.  Do not unnecessarily
1167         call max_size.
1168         * gcc-interface/utils.c (finish_record_type): Remove obsolete code.
1169         * gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.
1170
1171 2009-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
1172
1173         * s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
1174         * s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.
1175
1176 2009-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1177
1178         * env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
1179
1180 2009-10-10  Samuel Tardieu  <sam@rfc1149.net>
1181
1182         * sem_eval.adb: Give a more precise error message.
1183
1184 2009-10-06  Samuel Tardieu  <sam@rfc1149.net>
1185
1186         PR ada/41383
1187         * a-rttiev.adb (Time_Of_Event): Return Time_First for unset event.
1188
1189 2009-10-06  Samuel Tardieu  <sam@rfc1149.net>
1190
1191         PR ada/38333
1192         * sem_prag.adb (Process_Import_Or_Interface): Forbid an abstract
1193         subprogram to be completed with a "pragma Import".
1194
1195 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
1196
1197         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>:
1198         Generate an XVZ variable alongside the XVS type if the size is
1199         not constant.
1200         (maybe_pad_type): Minor tweak.
1201
1202 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
1203
1204         * gcc-interface/decl.c (check_ok_for_atomic): Do nothing if the type
1205         doesn't come from source.
1206
1207 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
1208
1209         * gcc-interface/decl.c (gnat_to_gnu_component_type): Force at least
1210         unit size for the component size of an array with aliased components.
1211         (maybe_pad_type): Do not warn for MAX_EXPR.
1212
1213 2009-09-29  Eric Botcazou  <ebotcazou@adacore.com>
1214
1215         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
1216         common code processing the component type into...
1217         <E_Array_Subtype>: Likewise.
1218         (gnat_to_gnu_component_type): ...this new static function.
1219         (maybe_pad_type): Minor cleanup.
1220
1221 2009-09-29  Eric Botcazou  <ebotcazou@adacore.com>
1222
1223         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
1224         the handling of constrained discriminated record subtypes.
1225         (components_to_record): Declare the type of the variants and of the
1226         qualified union.
1227         (build_subst_list): Move around.
1228         (compute_field_positions): Rename into...
1229         (build_position_list): ...this.  Return a TREE_VEC.
1230         (annotate_rep): Adjust for above renaming.
1231         (build_variant_list): New static function.
1232         (create_field_decl_from): Likewise.
1233         (get_rep_part): Likewise.
1234         (get_variant_part): Likewise.
1235         (create_variant_part_from): Likewise.
1236         (copy_and_substitute_in_size): Likewise.
1237
1238 2009-09-28  Olivier Hainque  <hainque@adacore.com>
1239
1240         PR ada/41100
1241         * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
1242         Account for observable alignments out of default allocators.
1243
1244 2009-09-28  Richard Henderson  <rth@redhat.com>
1245
1246         * gcc-interface/utils.c (gnat_install_builtins): Update call to
1247         build_common_builtin_nodes.
1248
1249 2009-09-26  Eric Botcazou  <ebotcazou@adacore.com>
1250
1251         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
1252         negative size for the array dimensions like in the constrained case.
1253         <E_Array_Subtype>: Do not create an artificially non-constant high
1254         bound if the low bound is non-constant.  Minor tweaks.
1255
1256         * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
1257         and turn ALIASED into a boolean parameter.  Adjust calls to self.
1258         <N_Attribute_Reference>: Return 1 for more attributes.
1259         <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
1260         <N_Assignment_Statement>: Return 1 for the LHS.
1261         (Identifier_to_gnu): Adjust calls to lvalue_required_p.
1262         (call_to_gnu): Be prepared for wrapped boolean rvalues.
1263
1264 2009-09-25  Olivier Hainquqe  <hainque@adacore.com>
1265             Eric Botcazou  <ebotcazou@adacore.com>
1266
1267         * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
1268         specific node.  Representative array type for VECTOR_TYPE entities.
1269         * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
1270         Turn an ARRAY_TYPE entity into a VECTOR_TYPE.   
1271         (gnat_types_compatible_p): Handle VECTOR_TYPEs.
1272         (convert): Likewise.  Arrange to produce VECTOR_CST out of constant
1273         array aggregates for VECTOR_TYPE entities.
1274         (unchecked_convert): Likewise.
1275         (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
1276         converted to the associated TYPE_REPRESENTATIVE_ARRAY.
1277         (handle_pure_attribute, handle_sentinel_attribute,
1278         handle_noreturn_attribute, handle_malloc_attribute,
1279         handle_vector_size_attribute): Replace uses of qE format by qs.
1280         Remove GCC_DIAG_STYLE definition.
1281         * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
1282         vector input to representative array type on entry.
1283         <N_Op_Eq, etc>: Likewise.
1284         * gcc-interface/gigi.h (maybe_vector_array): Declare.
1285         (VECTOR_TYPE_P): New predicate.
1286         * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
1287
1288 2009-09-24  Eric Botcazou  <ebotcazou@adacore.com>
1289
1290         * gcc-interface/ada.h: Fix outdated comment.
1291         * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
1292         lieu of mark_visited.
1293         * gcc-interface/gigi.h (mark_visited): Change type of parameter.
1294         (MARK_VISITED): New macro.
1295         (gnat_truthvalue_conversion): Delete.
1296         * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
1297         of mark_visited.
1298         (annotate_rep): Fix formatting and tidy.
1299         (compute_field_positions): Get rid of useless variable.
1300         * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
1301         node only once.  Use IN operator for the Nkind in more cases.
1302         Remove calls to gnat_truthvalue_conversion.
1303         (mark_visited): Change type of parameter and adjust.
1304         (mark_visited_r): Dereference TP only once.
1305         (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
1306         * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
1307         (build_binary_op): Remove calls to gnat_truthvalue_conversion.
1308         (build_unary_op): Likewise.
1309
1310 2009-09-24  Dave Korn  <dave.korn.cygwin@gmail.com>
1311
1312         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
1313         a-except% in target pairs list; don't (implicitly) compare whitespace.
1314
1315 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
1316
1317         * gcc-interface/utils.c (gnat_pushdecl): Don't set
1318         DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
1319         nested functions.
1320
1321 2009-09-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
1322
1323         * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
1324         Bind to getpagesize() in RTEMS 4.10 and newer.
1325
1326 2009-09-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1327
1328         * env.c [__alpha__ && __osf__] (_BSD): Define.
1329         * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
1330         to const char *.
1331
1332 2009-09-18  Pascal Obry  <obry@adacore.com>
1333
1334         * mingw32.h: Activate Unicode support for x86-64 Windows platform.
1335
1336 2009-09-18  Vadim Godunko  <godunko@adacore.com>
1337
1338         * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
1339
1340 2009-09-18  Javier Miranda  <miranda@adacore.com>
1341
1342         * exp_aggr.adb (Backend_Processing_Possible): Disable backend
1343         processing for array aggregates in the VM backend if the array has
1344         aliased components.
1345
1346 2009-09-18  Ed Schonberg  <schonberg@adacore.com>
1347
1348         * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
1349         the prefix indicates a previous semantic error, and this is the first
1350         error in the program.
1351
1352 2009-09-18  Bob Duff  <duff@adacore.com>
1353
1354         * gnat_ugn.texi: Minor editing.
1355
1356 2009-09-18  Vincent Celier  <celier@adacore.com>
1357
1358         * prj.ads, prj.adb (Project_Data): New component
1359         Imported_Directories_Switches.
1360
1361 2009-09-18  Pascal Obry  <obry@adacore.com>
1362
1363         * mingw32.h: Include standard _mingw.h file.
1364         Define _WIN32_WINNT only if not already defined.
1365
1366 2009-09-18  Thomas Quinot  <quinot@adacore.com>
1367
1368         * g-socket.adb (Is_Open): New function indicating whether a
1369         Selector_Type object is open.
1370
1371 2009-09-18  Vincent Celier  <celier@adacore.com>
1372
1373         * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
1374         is deleted before creating it.
1375
1376 2009-09-18  Robert Dewar  <dewar@adacore.com>
1377
1378         * bindgen.adb: Minor reformatting
1379
1380 2009-09-18  Arnaud Charlet  <charlet@adacore.com>
1381
1382         * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
1383         s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
1384         signal handler is installed.
1385         * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
1386         tasks if Abort_Task_Interrupt cannot be used.
1387
1388 2009-09-18  Vincent Celier  <celier@adacore.com>
1389
1390         * prj-tree.ads: Minor comment update
1391
1392 2009-09-17  Bob Duff  <duff@adacore.com>
1393
1394         * g-socket.ads: Document the fact that Close_Selector has no effect on
1395         a closed selector.
1396         * g-socket.adb: Raise an exception when a Selector that should be open
1397         is closed.
1398         (Check_Selector): Declare RSig as a constant rather than a renames,
1399         less confusing.
1400
1401 2009-09-17  Robert Dewar  <dewar@adacore.com>
1402
1403         * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
1404         prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
1405         prj-tree.ads: Minor reformatting
1406
1407 2009-09-17  Emmanuel Briot  <briot@adacore.com>
1408
1409         * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
1410         spec.
1411         (Do_Autoconf): If the object directory does not exists, create auto.cgpr
1412         in a temporary directory instead
1413
1414 2009-09-17  Bob Duff  <duff@adacore.com>
1415
1416         * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
1417         terminated.
1418         (Get_Priority): Correct message for "terminated" case -- it said "null".
1419
1420 2009-09-17  Robert Dewar  <dewar@adacore.com>
1421
1422         * exp_ch6.adb: Minor reformatting
1423
1424 2009-09-17  Emmanuel Briot  <briot@adacore.com>
1425
1426         * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
1427         switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
1428         (Project_Node_Tree_Data.Project_Path): New field.
1429
1430         * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
1431
1432 2009-09-17  Emmanuel Briot  <briot@adacore.com>
1433
1434         * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
1435         Remove duplicate code.
1436         (Prj.Ext): Fix memory leak
1437         (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
1438         variable. This was previously allowed in the code in
1439         Is_External_Assignment, and some tests rely on it
1440
1441 2009-09-17  Bob Duff  <duff@adacore.com>
1442
1443         * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
1444
1445 2009-09-17  Emmanuel Briot  <briot@adacore.com>
1446
1447         * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
1448         makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
1449         prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
1450         prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
1451         Scenario variables are now specific to each project tree loaded in
1452         memory.
1453         Code clean ups.
1454
1455 2009-09-17  Javier Miranda  <miranda@adacore.com>
1456
1457         * exp_disp.adb (Make_DT): Remove wrong line of code that was
1458         undocumented and probably added by mistake.
1459
1460 2009-09-16  Eric Botcazou  <ebotcazou@adacore.com>
1461
1462         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
1463         conversions between original and packable version of types from
1464         the expression.
1465
1466 2009-09-16  Eric Botcazou  <ebotcazou@adacore.com>
1467
1468         * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
1469         If a padding type was made for the field, declare it.
1470         (components_to_record): Add DEBUG_INFO_P parameter.  Adjust call
1471         to gnat_to_gnu_field and call to self.
1472         (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
1473         <E_Array_Subtype>: Likewise.
1474         Adjust calls to gnat_to_gnu_field and components_to_record.
1475
1476 2009-09-16  Robert Dewar  <dewar@adacore.com>
1477
1478         * prj-nmsc.adb: Minor reformatting
1479
1480 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
1481
1482         * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
1483         expression is a by-reference type (tagged or inherently limited)
1484         introduce an access type to capture references to the values of each
1485         branch of the conditional.
1486
1487 2009-09-16  Emmanuel Briot  <briot@adacore.com>
1488
1489         * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
1490         (Project_Name_And_Node.Display_Name): new field
1491         The display name of a project (as written in the .gpr file) is now
1492         computed when the project file itself is parsed, not when it is
1493         processed.
1494
1495 2009-09-16  Thomas Quinot  <quinot@adacore.com>
1496
1497         * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
1498         intrinsics untouched (to be expanded later on by gigi) if an external
1499         name has been specified.
1500         (Freeze_Entity): Do not generate a default external name for
1501         imported subprograms with convention Intrinsic (so that the above code
1502         can identify the case where an external name has been explicitly
1503         provided).
1504
1505         * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
1506         replaced by something else due to an existing #define clause.
1507
1508 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
1509
1510         * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
1511         Parameter_Association node, created for the extra actual generated for
1512         an access parameter of a function that dispatches on result, to prevent
1513         double generation of such actuals when the call is rewritten is a
1514         dispatching call.
1515         * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
1516         * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
1517         that carry this flag when rewriting the original call as a dispatching
1518         call, after propagating the controlling tag.
1519
1520 2009-09-16  Vincent Celier  <celier@adacore.com>
1521
1522         * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
1523         in the source data.
1524         (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
1525         source is allowed.
1526         (Find_Source_Dirs): New parameter Rank to be recorded with the source
1527         directories.
1528         (Search_Directories): Call Check_File with the rank of the directory
1529         * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
1530         (Free): Free also Number_Lists
1531         (Reset): Init also Number_Lists
1532         * prj.ads (Number_List_Table): New dynamic table for lists of numbers
1533         (Source_Data): New component Source_Dir_Rank. Remove component
1534         Known_Order_Of_Source_Dirs, no longer needed.
1535         (Project_Data): New component Source_Dir_Ranks
1536         (Project_Tree_Data): New components Number_Lists
1537
1538 2009-09-16  Vincent Celier  <celier@adacore.com>
1539
1540         * gprep.adb (Yes_No): New global constant
1541         Unix_Line_Terminators: New global Boolean variable
1542         (Process_One_File): Create the out file with a "Text_Translation=" form
1543         that depends on the use of option -T.
1544         (Scan_Command_Line): Add option -T
1545         (Usage): Add line for option -T
1546
1547 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
1548
1549         * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
1550         predicate that describes a proper subset of
1551         Is_Predefined_Dispatching_Operation and excludes stream operations,
1552         which can be overridden by the user.
1553         * sem_ch6.adb (Create_Extra_Formals): use
1554         Is_Predefined_Internal_Operation, so that stream operations get extra
1555         formals.
1556         * exp_ch6.adb (Prevent double generation of extra actuals in calls to
1557         'Input, which may be expanded twice, first as a function call and then
1558         as a dispatching call.
1559
1560 2009-09-16  Thomas Quinot  <quinot@adacore.com>
1561
1562         * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
1563         * g-expect.adb (Set_Up_Child_Communications): Use
1564         System.OS_Constants.Target_OS to determine whether running on Windows.
1565
1566 2009-09-14  Richard Henderson  <rth@redhat.com>
1567
1568         * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
1569
1570 2009-09-14  Eric Botcazou  <ebotcazou@adacore.com>
1571
1572         * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
1573         the unconstrained case.
1574         * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
1575         the encoding.  Do not give a name to the pointer type to the XUT type.
1576         * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
1577         for fat pointer types, if any.  Make sure DECL_ARTIFICIAL is cleared
1578         on nodes with DECL_ORIGINAL_TYPE set.
1579         (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
1580         for fat pointer types.  Make sure DECL_ARTIFICIAL is cleared.
1581
1582 2009-09-14  Richard Henderson  <rth@redhat.com>
1583
1584         * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
1585         default_init_unwind_resume_libfunc.
1586         * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
1587         __builtin_eh_pointer.
1588         * gcc-interface/utils.c (gnat_install_builtins): Update call
1589         to build_common_builtin_nodes.
1590
1591 2009-09-13  Richard Guenther  <rguenther@suse.de>
1592             Rafael Avila de Espindola  <espindola@google.com>
1593
1594         * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
1595         eh_personality_libfunc and lang_eh_runtime_type.
1596         (LANG_HOOKS_EH_PERSONALITY): Define.
1597         (gnat_eh_personality_decl): New static variable.
1598         (gnat_eh_personality): New static function.
1599         Include gt-ada-misc.h.
1600         * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
1601         * gcc-interface/config-lang.in (gtfiles): Add misc.c.
1602
1603 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1604
1605         PR ada/18302
1606         * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
1607
1608 2009-09-08  Eric Botcazou  <ebotcazou@adacore.com>
1609
1610         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
1611         flow of control.
1612         Avoid useless work when processing the Treat_As_Volatile flag.
1613
1614 2009-09-08  Eric Botcazou  <ebotcazou@adacore.com>
1615
1616         * gcc-interface/targtyps.c: Reorder include directives.
1617
1618 2009-09-07  Laurent GUERBY  <laurent@guerby.net>
1619
1620         * gcc-interface/targtyps.c: Add missing include for tm_p.h.
1621         * gcc-interface/Make-lang.in: Update dependencies.
1622
1623 2009-09-07  Laurent GUERBY  <laurent@guerby.net>
1624
1625         * make.adb: Add missing documentation for multilib handling.
1626         
1627 2009-09-03  Diego Novillo  <dnovillo@google.com>
1628
1629         * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
1630
1631 2009-09-02  Richard Henderson  <rth@redhat.com>
1632
1633         * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
1634
1635 2009-09-02  Olivier Hainque  <hainque@adacore.com>
1636
1637         * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
1638         and uc arguments.
1639         
1640 2009-09-02  Olivier Hainque  <hainque@adacore.com>
1641
1642         * gcc-interface/decl.c (cannot_be_superflat_p): Handle
1643         Signed_Integer_Type_Definition Scalar_Ranges.
1644
1645 2009-09-02  Eric Botcazou  <ebotcazou@adacore.com>
1646
1647         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
1648         SAVE_EXPR built for misaligned arguments.  Remove redundant stuff.
1649         (addressable_p): Return true for more rvalues.
1650
1651 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1652
1653         * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
1654         POINTER_SIZE to HOST_WIDE_INT.
1655
1656 2009-09-01  Richard Guenther  <rguenther@suse.de>
1657
1658         * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1659
1660 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
1661
1662         * gcc-interface/trans.c (call_to_gnu): Tidy.
1663         (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
1664         non-constant size but the array itself has constant size.
1665         * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
1666         consistency error.
1667         (convert_vms_descriptor32): Likewise.
1668
1669 2009-08-22  Aurelien Jarno  <aurelien@aurel32.net>
1670
1671         * gcc-interface/Makefile.in: Add Ada support for 
1672         GNU/kFreeBSD x86_64.
1673         * system-freebsd-x86_64.ads: New file based on 
1674         system-freebsd-x86.ads.
1675
1676 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
1677
1678         * gcc-interface/utils.c (convert): In the padded case, do the final
1679         conversion as an unchecked conversion if the underlying types are
1680         array types with variable size.
1681
1682 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
1683
1684         * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
1685         as visited.
1686         * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
1687         bounds.
1688         * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
1689         fields.
1690         (gnat_gimplify_expr) <DECL_EXPR>: New case.
1691
1692 2009-08-17  Aurelien Jarno  <aurelien@aurel32.net>
1693
1694         * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
1695         (stack_t): New record type.
1696         (sigaltstack): New imported function.
1697         (Alternate_Stack): New imported variable.
1698         (Alternate_Stack_Size): New constant.
1699
1700 2009-08-17  Vasiliy Fofanov  <fofanov@adacore.com>
1701
1702         * a-calend-vms.adb: Fix typo.
1703
1704 2009-08-17  Tristan Gingold  <gingold@adacore.com>
1705
1706         * s-taprop-posix.adb: Round up the stack size to avoid failure on
1707         Darwin.
1708
1709 2009-08-17  Gary Dismukes  <dismukes@adacore.com>
1710
1711         * sem_cat.adb (Validate_Static_Object_Name): Update comment.
1712
1713 2009-08-17  Vincent Celier  <celier@adacore.com>
1714
1715         * make.adb (Arguments_Collected): Unneeded, removed
1716         (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
1717         ensure caller does not pass in No_Project.
1718         (Compile): Add new parameter Project. Let procedure
1719         Collect_Arguments_And_Compile provide the proper value.
1720
1721         * switch-c.adb: Add documentation for -gnatea and -gnatez
1722
1723 2009-08-17  Ben Brosgol  <brosgol@adacore.com>
1724
1725         * gnat_ugn.texi: Changed name of package in SAL example, to avoid
1726         clash with Ada 2005 reserved word (interface).
1727
1728 2009-08-17  Robert Dewar  <dewar@adacore.com>
1729
1730         * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
1731         a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
1732         a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
1733         (use conditional expressions).
1734
1735 2009-08-17  Robert Dewar  <dewar@adacore.com>
1736
1737         * make.adb: Add ??? comment
1738         * tbuild.adb: Minor reformatting
1739
1740 2009-08-17  Thomas Quinot  <quinot@adacore.com>
1741
1742         * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
1743         Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
1744         Use Tbuild.Make_Temporary to create entity for the temporary.
1745
1746 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
1747
1748         * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
1749         and ignore -mieee switch to avoid spawning an extra gcc in this case.
1750
1751 2009-08-17  Thomas Quinot  <quinot@adacore.com>
1752
1753         * tbuild.adb: Minor reformatting
1754
1755 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
1756
1757         * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
1758         exist, as is the case for synchronized types, use the type of the
1759         discriminal in the parameter specification, to prevent a spurious
1760         subtype mismatch in gigi.
1761
1762 2009-08-17  Robert Dewar  <dewar@adacore.com>
1763
1764         * prj-env.adb: Minor reformatting
1765         * make.adb: Minor reformatting
1766         Comment updates
1767
1768 2009-08-17  Javier Miranda  <miranda@adacore.com>
1769
1770         * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
1771
1772 2009-08-17  Emmanuel Briot  <briot@adacore.com>
1773
1774         * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
1775         (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
1776         object directories must be present. In the case of gprclean at least,
1777         these are optional (if they do not exist there is nothing to clean)
1778
1779 2009-08-17  Robert Dewar  <dewar@adacore.com>
1780
1781         * prj-env.adb: Minor reformatting
1782         * sem_ch3.adb: Minor reformatting
1783
1784 2009-08-17  Hristian Kirtchev  <kirtchev@adacore.com>
1785
1786         * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
1787         the time zone since VxWorks chose positive values to represent west
1788         time zones and negative for east zones.
1789
1790 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
1791
1792         * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
1793         an anonymous access type whose designated type is generic.
1794
1795 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
1796
1797         * comperr.adb (Compiler_Abort): Do not generate a bug box when in
1798         codepeer mode, friendlier.
1799
1800 2009-08-10  Laurent GUERBY  <laurent@guerby.net>
1801
1802         * make.adb: Handle multilib
1803         
1804 2009-08-10  Vincent Celier  <celier@adacore.com>
1805
1806         * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
1807         the temporary file name in the error message when the temporary file
1808         cannot be created.
1809
1810 2009-08-10  Yannick Moy  <moy@adacore.com>
1811
1812         * gnat_ugn.texi: Fix typo
1813
1814 2009-08-10  Robert Dewar  <dewar@adacore.com>
1815
1816         * exp_ch7.adb: Add ??? comment for last change
1817
1818 2009-08-10  Vincent Celier  <celier@adacore.com>
1819
1820         * prj-env.adb (Add_To_Buffer): New procedure
1821         (Create_Config_Pragmas_File): Write to temporary file in one shot
1822         (Create_Mapping_File): Ditto
1823         (Set_Ada_Paths): Ditto
1824
1825 2009-08-10  Vincent Celier  <celier@adacore.com>
1826
1827         PR ada/17566
1828         * xref_lib.adb (Print_Xref): Make sure that there is at least one space
1829         between a declaration name and its type.
1830
1831 2009-08-07  Javier Miranda  <miranda@adacore.com>
1832
1833         * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
1834         SCIL node.
1835
1836 2009-08-07  Robert Dewar  <dewar@adacore.com>
1837
1838         * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
1839
1840 2009-08-07  Vincent Celier  <celier@adacore.com>
1841
1842         * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
1843         specified on the command line and there are switches in the Compiler
1844         package of the project file, use these compilation switches to invoke
1845         the tool.
1846
1847 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
1848
1849         * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
1850
1851 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
1852
1853         * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
1854         even if not in main unit, to simplify debugging.
1855
1856 2009-08-07  Arnaud Charlet  <charlet@adacore.com>
1857
1858         * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
1859         * gcc-interface/Make-lang.in: Update dependencies.
1860
1861 2009-08-07  Robert Dewar  <dewar@adacore.com>
1862
1863         * types.ads: Minor reformatting
1864         * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
1865         * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
1866         Output_Non_Modified_In_Out_Warnings.
1867         * sem_ch13.adb: Remove ??? comment.
1868
1869 2009-08-07  Vincent Celier  <celier@adacore.com>
1870
1871         * mlib-prj.adb (Build_Library): Include binder generate object file
1872         for SAL when library name is only one character.
1873
1874 2009-08-07  Thomas Quinot  <quinot@adacore.com>
1875
1876         * targparm.adb: Minor reformatting
1877         * sem.adb: Minor reformatting
1878         * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
1879
1880 2009-08-07  Emmanuel Briot  <briot@adacore.com>
1881
1882         * prj-conf.adb: Remove duplicate directory separator in the output when
1883         an object directory does not exist.
1884
1885 2009-08-07  Robert Dewar  <dewar@adacore.com>
1886
1887         * exp_util.adb: Minor reformatting
1888
1889 2009-08-07  Vincent Celier  <celier@adacore.com>
1890
1891         * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
1892         length used).
1893
1894 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
1895
1896         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
1897         detect non-static private components that will violate restriction
1898         No_Implicit_Heap_Allocation.
1899
1900 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
1901
1902         * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
1903
1904 2009-08-02  Eric Botcazou  <ebotcazou@adacore.com>
1905
1906         * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
1907         * gcc-interface/utils.c (end_subprog_body): Likewise.
1908         * gcc-interface/trans.c (gigi): Likewise.
1909         (gnat_to_gnu): Likewise.
1910
1911 2009-07-30  Ben Brosgol  <brosgol@adacore.com>
1912
1913         * gnat_ugn.texi: Correct minor texi glitch.
1914
1915 2009-07-30  Ed Schonberg  <schonberg@adacore.com>
1916
1917         * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
1918         expression has an underlying representation that is an unchecked union,
1919         there is no subtype to build.
1920
1921 2009-07-30  Robert Dewar  <dewar@adacore.com>
1922
1923         * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
1924         s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
1925         sem_ch7.adb, adaint.c: Minor reformatting
1926
1927 2009-07-29  Javier Miranda  <miranda@adacore.com>
1928
1929         * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
1930         moved from the expander to the semantic analyzer to allow the
1931         generation of these internal entities when compiling with no code
1932         generation. Required by ASIS.
1933         * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
1934         * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
1935         * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
1936         (Expand_Freeze_Record_Type): Remove call to
1937         Add_Internal_Interface_Entities because this routine is now called at
1938         early stage --when the freezing node is analyzed.
1939
1940 2009-07-29  Robert Dewar  <dewar@adacore.com>
1941
1942         * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
1943         exp_disp.adb, g-socket.adb: Minor reformatting
1944
1945 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
1946
1947         * sem_ch7.adb (New_Private_Type): Create class-wide type after other
1948         attributes have been established, so that they are all inherited by the
1949         class-wide type.
1950         * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
1951         properly named subtypes of class-wide types.
1952
1953 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
1954
1955         * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
1956         indicators on user-defined operators.
1957
1958 2009-07-29  Vadim Godunko  <godunko@adacore.com>
1959
1960         * g-socket.adb (Receive_Vector): Add comment.
1961
1962 2009-07-29  Javier Miranda  <miranda@adacore.com>
1963
1964         * frontend.adb (Frontend): Code cleanup.
1965         * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
1966         Rewriten as a procedure because it a new out-mode parameters to
1967         keep up-to-date the controlling tag node in the caller.
1968         (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
1969         new out-mode parameter to keep up-to-date the controlling tag node in
1970         the caller.
1971         * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
1972         exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
1973         package Sem_SCIL.
1974         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
1975         available in new package Sem_SCIL.
1976         (Next_Non_SCIL_Node): Ditto.
1977         * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
1978         package Sem_SCIL.
1979         (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
1980         plus complete decoration of SCIL dispatching node.
1981         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1982         * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
1983         package Sem_SCIL.
1984         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1985         * exp_ch3.adb (Build_Init_Procedure): Fix comment.
1986         * sem_scil.ads, sem_scil.adb: New files.
1987         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
1988         Update dependencies.
1989
1990 2009-07-28  Robert Dewar  <dewar@adacore.com>
1991
1992         * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
1993         makeutl.adb: Minor reformatting & code reorganization
1994         * sem_ch3.adb: Minor reformatting.
1995         Fix spelling error (constraint for constrain) in error msg.
1996
1997 2009-07-28  Emmanuel Briot  <briot@adacore.com>
1998
1999         * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
2000         global variable that also exists in makeutl.ads, and that some routines
2001         in that package use already.
2002         (Check): Moved part of the code to makeutl.adb for better sharing with
2003         gprbuild.
2004
2005 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
2006
2007         * gcc-interface/Make-lang.in: Update dependencies.
2008
2009 2009-07-28  Emmanuel Briot  <briot@adacore.com>
2010
2011         * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
2012         importing project does not end up in the list, in the case of extending
2013         projects.
2014         * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
2015         makeutl.ads, for better sharing with gprbuild.
2016
2017 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
2018
2019         * gnat_ugn.texi: Fix typo.
2020
2021 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
2022
2023         * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
2024         derivation that renames some discriminants and constrain others.
2025         * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
2026         prefix is a derived untagged type, convert to the root type to conform
2027         to the signature of the protected operations.
2028
2029 2009-07-28  Robert Dewar  <dewar@adacore.com>
2030
2031         * sinfo.ads: Update comments.
2032         * exp_attr.adb: Minor reformatting
2033
2034 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
2035
2036         * sem_aggr.adb (Get_Value): A named association in a record aggregate
2037         should be treated as a modification of the named component, not as a
2038         reference.
2039
2040 2009-07-28  Quentin Ochem  <ochem@adacore.com>
2041
2042         * prj-tree.ads, prj-tree.adb (Free): Minor editing.
2043         * prj.ads, prj.adb (Image): Ditto.
2044
2045 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
2046
2047         * frontend.adb: Minor reformatting.
2048         (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
2049         for efficiency.
2050
2051 2009-07-28  Bob Duff  <duff@adacore.com>
2052
2053         * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
2054         'Address to get a pointer to the protected body wrapper.
2055
2056 2009-07-28  Javier Miranda  <miranda@adacore.com>
2057
2058         * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
2059         nodes if we are not generating code.
2060         * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
2061         attribute SCIL_Related_Node of SCIL dispatching nodes.
2062         (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
2063         * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
2064         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
2065         (SCIL_Entity): Update documentation.
2066         (SCIL_Related_Node): Update documentation.
2067         (SCIL_Controlling_Tag): New attribute.
2068         (SCIL_Target_Prim): Update documentation.
2069         (N_Null_Statement): Remove attributes associated with SCIL nodes.
2070         (N_SCIL_Dispatch_Table_Object_Init): New node.
2071         (N_SCIL_Dispatch_Table_Tag_Init): New node.
2072         (N_SCIL_Dispatching_Call): New node.
2073         (N_SCIL_Tag_Init): New node.
2074         * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
2075         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
2076         (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
2077         (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
2078         (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
2079         (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
2080         N_SCIL_Dispatching_Call nodes.
2081         * sem.adb (Analyze): No need to analyze SCIL nodes.
2082         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
2083         (Next_Non_SCIL_Node): New subprogram
2084         * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
2085         dispatching nodes.
2086         * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
2087         dispatching node.
2088         * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
2089         dispatching node.
2090         * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
2091         null statement nodes.
2092         (Build_Init_Procedure): Generate new SCIL node.
2093         * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
2094         node.
2095         * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
2096         they are currently implemented as special N_Null_Statement nodes.
2097         * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
2098         procedure call then check if some SCIL node references it and needs
2099         readjustment.
2100         * exp_disp.ads (SCIL_Node_Kind): Removed.
2101         (Adjust_SCIL_Node): New subprogram.
2102         (Find_SCIL_Node): New subprogram.
2103         (Get_SCIL_Node_Kind): Removed.
2104         (New_SCIL_Node): Removed.
2105         * exp_disp.adb (Adjust_SCIL_Node): New subprogram
2106         (Expand_Dispatching_Call): Generate new SCIL dispatching node including
2107         decoration of its new controlling_tag attribute.
2108         (Get_SCIL_Node_Kind): Removed.
2109         (Find_SCIL_Node): New subprogram.
2110         (Make_Secondary_DT): Generate new SCIL nodes.
2111         (Make_Tags): Generate new SCIL nodes.
2112         (New_SCIL_Node): Removed.
2113         * exp_util.adb (Insert_Actions): Handle SCIL nodes.
2114         (Remove_Side_Effects): Check if relocated nodes require readjustment
2115         of some SCIL dispatching node.
2116         * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
2117
2118 2009-07-28  Robert Dewar  <dewar@adacore.com>
2119
2120         * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
2121
2122 2009-07-28  Sergey Rybin  <rybin@adacore.com>
2123
2124         * gnat_ugn.texi: Add section about gnatcheck rule exemption.
2125
2126 2009-07-28  Vadim Godunko  <godunko@adacore.com>
2127
2128         * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
2129         not defined by limits.h.
2130
2131         * g-socket.adb (Receive_Vector): Use minimum length from user's vector
2132         length and maximum supported length of data vector.
2133
2134 2009-07-28  Gary Dismukes  <dismukes@adacore.com>
2135
2136         * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
2137         * make.adb: Call Get_Target_Parameters before calling Usage so that
2138         VM_Target and AAMP_On_Target will be set.
2139
2140 2009-07-28  Olivier Hainque  <hainque@adacore.com>
2141
2142         * g-ssinty.ads: Remove, pointless and just confusing at this stage.
2143         * gnat_rm.texi: Remove documentation.
2144         * g-sse.ads: Minor reorg along the way.
2145         * gcc-interface/Makefile.in: Remove processing for g-ssinty.
2146         * g-ssvety.ads: Minor comment updates.
2147
2148 2009-07-28  Sergey Rybin  <rybin@adacore.com>
2149
2150         * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
2151         for the new format of the report file.
2152
2153 2009-07-28  Sergey Rybin  <rybin@adacore.com>
2154
2155         * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
2156
2157 2009-07-28  Pascal Obry  <obry@adacore.com>
2158
2159         * g-expect.adb: Record standard handles only on Windows.
2160
2161 2009-07-27  Emmanuel Briot  <briot@adacore.com>
2162
2163         * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
2164         Add comments.
2165
2166 2009-07-27  Sergey Rybin  <rybin@adacore.com>
2167
2168         * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
2169         rule definition the paragraph that explains that generic functions and
2170         functions from generic packages are not checked.
2171
2172 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
2173
2174         * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
2175         procedure when determining whether to set the Overridden_Operation
2176         field of a subprogram overriding an inherited subprogram.
2177         
2178 2009-07-27  Robert Dewar  <dewar@adacore.com>
2179
2180         * a-except.adb, a-except-2005.ads: Minor reformatting
2181
2182 2009-07-27  Robert Dewar  <dewar@adacore.com>
2183
2184         * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
2185
2186 2009-07-27  Javier Miranda  <miranda@adacore.com>
2187
2188         * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
2189         add some documentation explaining why the SCIL nodes must be generated
2190         at that point.
2191
2192 2009-07-27  Olivier Hainque  <hainque@adacore.com>
2193
2194         * a-except.adb: Bind to __builtin_longjmp directly.
2195         * a-except-2005.ads: Provide direct binding to __builtin_longjmp
2196         for sjlj variants.
2197         * a-exexpr.adb: Use it.
2198         * a-except-xi.adb: Likewise.
2199         * raise.c (_gnat_builtin_longjmp): Remove and update comments.
2200         * raise.h (_gnat_builtin_longjmp): Remove declaration.
2201
2202 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
2203
2204         * sem_eval.adb (Compile_Time_Compare): More precise handling of
2205         Known_Valid flag, to prevent spurious range deductions when scalar
2206         variables may be uninitialized. New predicate Is_Known_Valid_Operand.
2207
2208 2009-07-27  Robert Dewar  <dewar@adacore.com>
2209
2210         * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
2211         and code clean up.
2212
2213 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
2214
2215         * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
2216         Ravenscar mode. Error has already been posted on specification.
2217
2218         * sem.adb: Further code clean ups.
2219
2220 2009-07-27  Robert Dewar  <dewar@adacore.com>
2221
2222         * g-sse.ads: Minor reformatting
2223
2224 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
2225
2226         * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
2227         alternate ali extension.
2228         * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
2229         account Osint.ALI_Suffix.
2230         * osint.ads (ALI_Suffix): Make visible.
2231         * gnatfind.adb (Gnatfind): Add support for --ext= switch.
2232         * gnat_ugn.texi: Document new gnatfind --ext= switch.
2233
2234 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
2235
2236         * sem.adb (Walk_Library_Items): If main unit is an instance body, do
2237         its spec first.
2238
2239 2009-07-27  Javier Miranda  <miranda@adacore.com>
2240
2241         * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
2242         the dispatching call has is expanded.
2243
2244 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
2245
2246         * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
2247         Is_Known_Valid flag on the temporary created for the value whose
2248         validity is being checked.
2249
2250         * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
2251         handle properly main units that are package specifications.
2252
2253 2009-07-27  Geert Bosch  <bosch@adacore.com>
2254
2255         * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
2256         * sem_aux.ads: Fix typo in comment
2257         * sem_util.ads (Is_LHS): Adjust comment to match body
2258
2259 2009-07-27  Sergey Rybin  <rybin@adacore.com>
2260
2261         * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
2262         rule definition.
2263
2264 2009-07-27  Olivier Hainque  <hainque@adacore.com>
2265
2266         * g-sse.ads, g-ssvety.ads: Update comments.
2267
2268 2009-07-27  Sergey Rybin  <rybin@adacore.com>
2269
2270         * gnat_ugn.texi: Update gnatcheck doc.
2271
2272 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
2273
2274         * lib-xref.ads: Allocate/document 'o' char for use by references to
2275         spark 'own' variables.
2276
2277 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
2278
2279         * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
2280         objects, since these are implicitly referenced by the return statement.
2281         * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
2282         Is_Return_Object in this procedure, as return objects will never make
2283         it here since they're now marked as Referenced.
2284
2285 2009-07-27  Robert Dewar  <dewar@adacore.com>
2286
2287         * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
2288
2289 2009-07-27  Robert Dewar  <dewar@adacore.com>
2290
2291         * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
2292
2293         * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
2294
2295 2009-07-27  Geert Bosch  <bosch@adacore.com>
2296
2297         * checks.adb (Find_Check): Minor streamlining of logic.
2298         * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
2299         * debug.adb: Document -gnatdX debug flag
2300         * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
2301         list information about reads from scalar entities.
2302         Also slightly simplify condition for Expand_Current_Value.
2303         * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
2304         functions.
2305
2306 2009-07-26  Dave Korn  <dave.korn.cygwin@gmail.com>
2307
2308         PR bootstrap/40578
2309         * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
2310         (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
2311         to these.
2312         (__gnat_stat): Adjust reference to STAT in prototype.
2313         * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
2314         __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
2315         __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
2316         __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
2317         __gnat_is_writable_file, __gnat_is_executable_file,
2318         __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
2319         __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
2320         __gnat_copy_attribs): Adjust all references to the above.
2321         * cstreams.c (__gnat_is_regular_file_fd): Likewise.
2322
2323 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2324
2325         * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
2326         done at the same time, guard against listing a body more than once.
2327
2328 2009-07-23  Robert Dewar  <dewar@adacore.com>
2329
2330         * exp_ch6.adb: Minor reformatting
2331
2332 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2333
2334         * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
2335         static expression is known valid.
2336         * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
2337         operands of a subtype with a single value.
2338
2339 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2340
2341         * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
2342         are in the context of the main unit body.
2343
2344 2009-07-23  Sergey Rybin  <rybin@adacore.com>
2345
2346         * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
2347         misprint in rule description.
2348
2349 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
2350
2351         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
2352         test that the object declaration is within an extended return statement
2353         with direct test of whether the declared object associated with the
2354         build-in-place call is a return object, since the enclosing function
2355         might not even be a build-in-place function.
2356
2357 2009-07-23  Robert Dewar  <dewar@adacore.com>
2358
2359         * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
2360         Minor code reorganization
2361
2362 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
2363
2364         * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
2365         for static analysis, only packed arrays are causing troubles.
2366
2367 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
2368
2369         * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
2370         ancestor part is a call to a limited function with an unconstrained
2371         result subtype unless the aggregate has a null extension type.
2372         * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
2373         the parent type declaration to avoid blowups on subtype cases.
2374
2375 2009-07-23  Robert Dewar  <dewar@adacore.com>
2376
2377         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
2378         comma.
2379
2380         * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
2381
2382         * s-regexp.adb: Minor reformatting
2383         * scos.ads: Minor reformatting.
2384
2385 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
2386
2387         * freeze.adb (Set_Small_Size): Remove extra space for consistency with
2388         other similar messages.
2389         * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
2390         messages/implicit packing in CodePeer mode.
2391         (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
2392         * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
2393         CodePeer mode.
2394
2395 2009-07-23  Pascal Obry  <obry@adacore.com>
2396
2397         * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
2398         systems.
2399
2400 2009-07-23  Robert Dewar  <dewar@adacore.com>
2401
2402         * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
2403         Minor reformatting.
2404
2405 2009-07-23  Yannick Moy  <moy@adacore.com>
2406
2407         * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
2408         pattern.
2409         (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
2410         string.
2411         (Raise_Exception): Ditto.
2412
2413 2009-07-23  Olivier Hainque  <hainque@adacore.com>
2414
2415         * g-sse.ads: Simplify comment.
2416
2417 2009-07-23  Olivier Hainque  <hainque@adacore.com>
2418
2419         * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
2420         low level internal type definitions for distinct higher level
2421         binding development activities (user type definitions and
2422         operations).
2423         * gnat_rm.texi: Document it.
2424         * g-ssvety.ads: Use it.
2425         * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
2426         g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
2427         * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
2428         for the "may_alias" attribute.
2429
2430 2009-07-23  Thomas Quinot  <quinot@adacore.com>
2431
2432         * scos.ads: Minor typo fix
2433
2434         * gcc-interface/decl.c (validate_alignment): For the case of an
2435         implicit array base type, look for alignment clause on first subtype.
2436
2437 2009-07-23  Robert Dewar  <dewar@adacore.com>
2438
2439         * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
2440         with tagged parent if tagged parent is fully repped.
2441
2442 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2443
2444         * sem.adb (Walk_Library_Units): Handle properly the case where a unit
2445         in the context depends on the spec of the main unit, by delaying
2446         processing of the main unit body until all other units have been
2447         processed.
2448
2449 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
2450
2451         * a-convec.adb: Add comments about suspicious/subtle code.
2452
2453 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2454
2455         * einfo.ads: Document use of Alias in private overriding
2456
2457 2009-07-23  Thomas Quinot  <quinot@adacore.com>
2458
2459         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
2460         an array type, propagate alignment from first subtype to implicit base
2461         type so that other subtypes (such as the itypes for aggregates of the
2462         type) also receive the expected alignment.
2463
2464         * g-comlin.ads: Minor documentation clarification/rewording. 
2465         * scos.ads: Minor comments update.
2466         * lib-writ.ads: Minor reformatting
2467
2468 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
2469
2470         * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
2471         of a class-wide interface type that is a return object of a
2472         build-in-place function, bypass the interface-related expansions into
2473         renamings with displacement conversions, etc.
2474         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
2475         for the case where a renaming occurs in a build-in-place context, to
2476         assert that the bypassing of the build-in-place treatment only occurs
2477         in the case of a renaming that is an expansion of a return expression
2478         that is itself a build-in-place function call.
2479
2480 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2481
2482         * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
2483         valid candidate interpretation in a prefixed view if it is hidden, but
2484         overrides an inherited operation declared in the visible part.
2485
2486 2009-07-23  Robert Dewar  <dewar@adacore.com>
2487
2488         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2489         division operands to 64-bit at all in any circumstances.
2490
2491 2009-07-23  Robert Dewar  <dewar@adacore.com>
2492
2493         * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
2494         checking ranges for mod/rem to see if conditional jump will be
2495         generated.
2496         (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
2497         generating special -1 test for rem, generate it whenever both
2498         operands can be negative (match circuit in Sem_Res).
2499         (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
2500         destroys memory of positive range.
2501         * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
2502         checking ranges for mod/rem to see if conditional jump will be generated
2503
2504 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2505
2506         * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
2507         scalar components has non-static bounds, the equivalent aggregate
2508         cannot be built, even if the expression is static, because range checks
2509         will be generated.
2510
2511 2009-07-23  Robert Dewar  <dewar@adacore.com>
2512
2513         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2514         division operands to 64-bit inside a conversion if 64-bit division not
2515         available.
2516
2517 2009-07-23  Sergey Rybin  <rybin@adacore.com>
2518
2519         * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
2520
2521 2009-07-23  Javier Miranda  <miranda@adacore.com>
2522
2523         * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
2524         (Entity/Set_Entity): not available in N_Null_Statement nodes
2525         (Is_Scil_Node): renamed as Is_SCIL_Node
2526         (Scil_Nkind): renamed as SCIL_Nkind
2527         (Scil_Related_Node): renamed as SCIL_Related_Node
2528         (Scil_Target_Prim): renamed as SCIL_Target_Prim
2529         (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
2530         (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
2531         (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
2532         Update documentation
2533         * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
2534         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2535         (New_Scil_Node): Renamed as New_SCIL_Node
2536         * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
2537         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2538         (New_Scil_Node): Renamed as New_SCIL_Node
2539         * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
2540
2541 2009-07-23  Robert Dewar  <dewar@adacore.com>
2542
2543         * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
2544         * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
2545         * einfo.adb: Minor reformatting
2546
2547 2009-07-23  Robert Dewar  <dewar@adacore.com>
2548
2549         * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
2550         cross-referencing the new related code in
2551         Exp_Ch4.Expand_N_Type_Conversion.
2552         * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
2553
2554         * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
2555         Add comment.
2556
2557 2009-07-23  Javier Miranda  <miranda@adacore.com>
2558
2559         * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
2560         Scil_Target_Prim, N_Has_Entity): Add missing documentation.
2561         * exp_disp.ads (Scil_Node_Kind): Ditto.
2562         * exp_disp.adb (Make_DT, Make_Tags): Ditto.
2563         * exp_ch3.adb (Build_Init_Procedure): Ditto.
2564
2565 2009-07-23  Javier Miranda  <miranda@adacore.com>
2566
2567         * einfo.adb (Component_Type): Add missing assertion.
2568         * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
2569         reading attribute Component_Size.
2570         * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
2571         before reading attributes Component_Size and Component_Type.
2572         * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
2573         before reading attribute Component_Type.
2574
2575 2009-07-23  Olivier Hainque  <hainque@adacore.com>
2576
2577         * gnat_rm.texi: Document the GNAT.SSE units.
2578
2579 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2580
2581         * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
2582         not null return if it appears on a subunit.
2583
2584 2009-07-23  Robert Dewar  <dewar@adacore.com>
2585
2586         * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
2587         check right away so it does not get skipped for early returns, e.g.
2588         array assignments.
2589         (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
2590         left-side unless we really know the value is valid.
2591
2592         * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
2593         reformatting. Minor code reorganization. Add comments.
2594
2595 2009-07-23  Robert Dewar  <dewar@adacore.com>
2596
2597         * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
2598         complex condition.
2599
2600 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
2601
2602         * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
2603         with test of coverage, to allow specific type objects in extended
2604         returns of class-wide functions. Remove now-unnecessary special-case
2605         tests that allowed this in certain cases of expanded extended returns.
2606
2607 2009-07-23  Javier Miranda  <miranda@adacore.com>
2608
2609         * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
2610         N_Null_Statements (for SCIL nodes).
2611         (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
2612         (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
2613         (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
2614         nodes).
2615         (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
2616         * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
2617         associated with dispatching call.
2618         (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
2619         (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
2620         initialization of dispatch tables and initialization of tags.
2621         (New_Scil_Node): New function that creates a new SCIL node.
2622         (Build_Init_Procedure): Add generation of SCIL node associated with the
2623         initialization of tags done in the IP subprogram.
2624
2625 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2626
2627         * errout.adb (Error_Msg_NEL): If the entity in the initial message has
2628         Warnings_Off, do not emit continuation messages.
2629
2630         * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
2631         spec.
2632
2633 2009-07-23  Emmanuel Briot  <briot@adacore.com>
2634
2635         * ali.adb: Minor comment update
2636
2637 2009-07-23  Vasiliy Fofanov  <fofanov@adacore.com>
2638
2639         * s-win32.ads (HANDLE): Define to be the same size as address type.
2640         Fix copyright.
2641
2642 2009-07-23  Olivier Hainque  <hainque@adacore.com>
2643
2644         * g-sse.ads: New file. Root of the SSE facilities trees, with
2645         general description and common declarations.
2646         * g-ssvety.ads: New file. Expose user level SSE vector types.
2647         * impunit.adb (Non_Imp_File_Names_95): Register new units.
2648         * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
2649         EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
2650
2651 2009-07-23  Ben Brosgol  <brosgol@adacore.com>
2652
2653         * gnat_ugn.texi: Wordsmithing.
2654
2655 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
2656
2657         * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
2658
2659 2009-07-22  Eric Botcazou  <ebotcazou@adacore.com>
2660
2661         * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
2662         they are already of the base type of the index.
2663
2664 2009-07-22  Brett Porter  <porter@adacore.com>
2665
2666         * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
2667
2668 2009-07-22  Robert Dewar  <dewar@adacore.com>
2669
2670         * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
2671         * gnat_ugn.texi: Add documentation for -gnateS switch
2672         * ug_words: Add entry for -gnateS /SCO_OUTPUT
2673         * gcc-interface/Make-lang.in: Update dependencies.
2674
2675         * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
2676         par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
2677         complete information for SCO input/output.
2678
2679 2009-07-22  Sergey Rybin  <rybin@adacore.com>
2680
2681         * gnat_ugn.texi: Update doc for some gnatcheck rules.
2682
2683 2009-07-22  Robert Dewar  <dewar@adacore.com>
2684
2685         * par_sco.adb, par_sco.ads (pscos): New debug routine to output
2686         contents of SCO tables.
2687         * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
2688         scos.adb, scos.ads: New files.
2689         * gcc-interface/Make-lang.in: Update dependencies.
2690
2691         * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
2692         fixes and reformatting.
2693
2694 2009-07-22  Robert Dewar  <dewar@adacore.com>
2695
2696         * g-socket.ads: Minor reformatting
2697
2698 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
2699
2700         * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
2701         include the entity kind for following cases of unreferenced entities:
2702         E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
2703
2704 2009-07-22  Ed Falis  <falis@adacore.com>
2705
2706         * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
2707         with taskSuspend.
2708
2709 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
2710
2711         * adadecode.c: Make this file compilable outside of GCC.
2712
2713 2009-07-22  Thomas Quinot  <quinot@adacore.com>
2714
2715         * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
2716         (partially) default-initialized socket sets are handled properly by
2717         clearing their Set component.
2718
2719 2009-07-22  Bob Duff  <duff@adacore.com>
2720
2721         * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
2722
2723 2009-07-22  Robert Dewar  <dewar@adacore.com>
2724
2725         * gnat_ugn.texi: Minor reformatting
2726
2727 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
2728
2729         * errout.adb (Error_Msg): A style message within an instantiation
2730         should not be labelled as an error.
2731
2732 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
2733
2734         * freeze.adb (Freeze_Entity): Do not generate extra formal for function
2735         in initialization expression if function does not have convention Ada.
2736
2737 2009-07-22  Sergey Rybin  <rybin@adacore.com>
2738
2739         * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
2740         '--separate-label' to control label layout.
2741
2742 2009-07-22  Robert Dewar  <dewar@adacore.com>
2743
2744         * exp_tss.ads, sem_eval.adb: Minor reformatting
2745
2746 2009-07-22  Bob Duff  <duff@adacore.com>
2747
2748         * exp_dist.adb, exp_dist.ads: Update comments.
2749
2750 2009-07-22  Brett Porter  <porter@adacore.com>
2751
2752         * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
2753         FPSCR.
2754         * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
2755
2756 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
2757
2758         * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
2759         exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
2760         Minor reformatting.
2761         * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
2762         used poor terminology.
2763
2764 2009-07-22  Robert Dewar  <dewar@adacore.com>
2765
2766         * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
2767         * sem_eval.adb, exp_tss.adb: Minor comment update.
2768         * stylesw.adb: Code clean up.
2769
2770 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
2771
2772         * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
2773         component size is an exact number of bytes, an array type can have a
2774         size clause that forces packing even though the array type itself is
2775         not bit-packed.
2776
2777 2009-07-22  Thomas Quinot  <quinot@adacore.com>
2778
2779         * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
2780         if there is a previous entity with the same name in the scope, ignore
2781         it if it is the renaming declaration for a generic package introduced
2782         in instances.
2783
2784 2009-07-22  Nicolas Roche  <roche@adacore.com>
2785
2786         * seh_init.c: use RtlAddFunctionTable to register our SEH exception
2787         handler on x86_64 windows.
2788
2789 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
2790
2791         * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
2792         false positives in CodePeer, so ignore this pragma in this mode.
2793
2794 2009-07-22  Thomas Quinot  <quinot@adacore.com>
2795
2796         * sem_util.adb, sem_ch10.adb: Minor reformatting
2797
2798         * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
2799         special handling for the case of no data received and Item'First =
2800         Stream_Element_Offset'First.
2801         (Last_Index): New subprogram factoring the above special handling
2802         over the various locations where it is required.
2803
2804 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
2805
2806         * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
2807         checks in CodePeer_Mode.
2808         * gcc-interface/Make-lang.in: Update dependencies.
2809
2810 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
2811
2812         * sem_aggr.adb: Improve error message.
2813
2814         * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
2815         of an address representation clause.
2816         * freeze.adb (Freeze_Static_Object): An local imported object is legal
2817         if it has an address clause.
2818
2819 2009-07-22  Thomas Quinot  <quinot@adacore.com>
2820
2821         * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
2822         expression to insert an elab check using a conditional expression, be
2823         sure to carry the original list of interpretations to the new location.
2824
2825 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
2826
2827         * gnat1drv.adb: Fix spelling error.
2828
2829 2009-07-22  Javier Miranda  <miranda@adacore.com>
2830
2831         * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
2832         at the library level and fix a hidden bug in its implementation: its
2833         functionality for renaming objects was broken because
2834         N_Object_Renaming_Declarations nodes are not a subclass of
2835         N_Declaration nodes (as documented in sinfo.ads).
2836         * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
2837         check nodes that are actuals of generic instantiations.
2838
2839 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
2840
2841         * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
2842         context of a compilation unit is being analyzed. Used to detect
2843         circularities created by with_clauses that are not detected by the
2844         loading machinery.
2845         * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
2846         analyzing the context of the current compilation unit, to detect
2847         possible circularities created by with_clauses.
2848
2849 2009-07-22  Thomas Quinot  <quinot@adacore.com>
2850
2851         * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
2852
2853 2009-07-22  Robert Dewar  <dewar@adacore.com>
2854
2855         * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
2856         * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
2857         procedure.
2858         * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
2859         * gnat_ugn.texi: Add documentation of -gnatyB
2860         * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
2861
2862 2009-07-22  Robert Dewar  <dewar@adacore.com>
2863
2864         * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
2865         make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
2866         s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
2867         s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
2868         errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
2869         a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
2870         s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
2871         a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
2872         erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
2873         obey short-circuit style rule.
2874
2875 2009-07-20  Bob Duff  <duff@adacore.com>
2876
2877         * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
2878         instead of "and", because otherwise Parent_Last_Bit is read
2879         uninitialized in the case where it's not a tagged type, or the tagged
2880         parent does not have a complete rep clause.
2881
2882 2009-07-20  Robert Dewar  <dewar@adacore.com>
2883
2884         * stylesw.ads: Minor documentation change.
2885
2886         * types.ads: Minor reformatting
2887
2888 2009-07-20  Javier Miranda  <miranda@adacore.com>
2889
2890         * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
2891         generating the tag checks associated with dispatching calls.
2892         * exp_disp.adb (Apply_Access_Checks): New subprogram.
2893         (New_Value): This routine was previously local to expand dispatching
2894         calls but it is now used also by Apply_Access_Checks.
2895         (Expand_Dispatching_Calls): Cleanup code because the functionality of
2896         tag checks is now provided by Apply_Access_Checks. 
2897         * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
2898         case of dispatching calls.
2899
2900 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
2901
2902         * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
2903         CodePeer_Mode.
2904
2905 2009-07-20  Gary Dismukes  <dismukes@adacore.com>
2906
2907         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
2908         for VMS, only rewrite the first component of the associated exception's
2909         aggregate init (as 'V'), and eliminate the bogus rewrites of the second
2910         and third components  that were being replaced with 'M' and 'S'.
2911
2912 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
2913
2914         * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
2915         Also do not generate error when parsing a spec in CodePeer mode.
2916
2917 2009-07-20  Javier Miranda  <miranda@adacore.com>
2918
2919         * checks.adb (Apply_Access_Check): Avoid checks on availability of
2920         runtime function Offset_To_Top_Ptr when compiling with no tagged
2921         types expansion.
2922         * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
2923         adding code to the init proc when compiling for VM backends.
2924
2925 2009-07-20  Vincent Celier  <celier@adacore.com>
2926
2927         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
2928         account switches -gnatw.?
2929
2930 2009-07-20  Thomas Quinot  <quinot@adacore.com>
2931
2932         * sem_dist.adb, exp_dist.adb: Minor reformatting
2933
2934         * Make-generated.in: New file.
2935
2936         * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
2937
2938 2009-07-20  Javier Miranda  <miranda@adacore.com>
2939
2940         * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
2941         subprogram.
2942         * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
2943         dynamically tagged expression.
2944         * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
2945         factorizes code.
2946         * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
2947         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2948
2949 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
2950
2951         * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
2952         CodePeer_Mode is set, to benefit from full front-end expansion
2953         (e.g. generics).
2954
2955 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
2956
2957         * sem_res.adb: Add guard.
2958
2959         * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
2960         for possible attribute definition of External_Tag, in case clause
2961         appears in the private part of a package.
2962
2963 2009-07-20  Jerome Guitton  <guitton@adacore.com>
2964
2965         * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
2966
2967 2009-07-20  Vadim Godunko  <godunko@adacore.com>
2968
2969         * a-coorma.adb: Minor reformatting.
2970
2971 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
2972
2973         * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
2974         access return types.
2975         * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
2976         provide an itype reference to gigi to force elaboration of the subtype
2977         at the proper point.
2978
2979 2009-07-20  Tristan Gingold  <gingold@adacore.com>
2980
2981         * g-expect.adb: Avoid closeing already closed handle.
2982
2983 2009-07-20  Robert Dewar  <dewar@adacore.com>
2984
2985         * sprint.adb (Write_Subprogram_Name): New procedure to output
2986         subprogram name with possible preceding $ (replaces
2987         Note_Implicit_Run_Time_Call).
2988
2989 2009-07-20  Robert Dewar  <dewar@adacore.com>
2990
2991         * vms_data.ads: Minor reformatting
2992
2993         * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
2994         applies to base type.
2995         (Parent_Subtype): Now allowed on record subtype, applies to base type
2996         * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
2997         for case of fully repped tagged type.
2998         (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
2999         tag save/restore for fully repped tagged type case.
3000         * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
3001         * fe.h (Is_Fully_Repped_Tagged_Type): New function
3002         * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
3003         overlap of tagged type components with parent type if parent type is
3004         fully repped.
3005         * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
3006
3007         * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
3008         comparisons.
3009         (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
3010         (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
3011
3012         * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
3013         logical operators (AND/OR/XOR), not comparison operators.
3014
3015         * sprint.ads: Minor reformatting
3016
3017 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
3018
3019         * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
3020         intrinsics, check that argument is a string literal, rather than
3021         checking for staticness.
3022
3023 2009-07-20  Robert Dewar  <dewar@adacore.com>
3024
3025         * sem_ch13.adb: Minor reformatting
3026
3027         * einfo.ads: Minor reformatting
3028         Component_Bit_Offset is no longer considered obsolescent
3029
3030 2009-07-20  Nicolas Roche  <roche@adacore.com>
3031
3032         * a-calend.adb: Redefine time_t as signed integer with same size as
3033         Address type.
3034         * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
3035         Address type
3036         * adaint.h: On Windows 64bits declare OS_Time as long long instead of
3037         long
3038
3039 2009-07-20  Javier Miranda  <miranda@adacore.com>
3040
3041         * exp_tss.adb (Init_Proc): Add missing support for non-default C++
3042         constructors that have anonymous access type formals.
3043
3044         * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
3045         class-wide arguments in case of imported C++ subprograms.
3046
3047         * exp_ch3.adb (Build_Initialization_Call): Add assertion.
3048
3049 2009-07-20  Sergey Rybin  <rybin@adacore.com>
3050
3051         * vms_data.ads: Update qualifiers.
3052
3053 2009-07-20  Robert Dewar  <dewar@adacore.com>
3054
3055         * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
3056         reformatting
3057
3058 2009-07-17  Richard Guenther  <rguenther@suse.de>
3059
3060         PR c/40401
3061         * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
3062         state.  Remove unused parameter.
3063         (gnat_gimplify_function): Do not gimplify here.
3064         Fold into its only caller and remove.
3065         (gnat_builtin_function): Adjust for end_subprog_body signature change.
3066         (gnat_write_global_declarations): Also finalize the CU.
3067         * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
3068         * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
3069         (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
3070         change.
3071         * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
3072
3073 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
3074
3075         * gcc-interface/Make-lang.in: Update dependencies
3076
3077         * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
3078
3079 2009-07-15  Robert Dewar  <dewar@adacore.com>
3080
3081         * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
3082         N_Label. Remove SCO table entry for entry point (not used).
3083
3084         * par_sco.ads: Remove SCO entry point type (not used)
3085
3086         * switch.adb: Minor code clean up.
3087
3088 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
3089
3090         * exp_dbug.ads (Base Record Types): Document enhanced encoding.
3091
3092 2009-07-15  Thomas Quinot  <quinot@adacore.com>
3093
3094         * gnatls.adb: Minor reformatting
3095
3096         * gnatcmd.adb: Minor code reorganization
3097
3098 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
3099
3100         * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
3101         determine whether a component of a private type has a composite type.
3102
3103 2009-07-15  Robert Dewar  <dewar@adacore.com>
3104
3105         * sem_ch10.adb: Minor reformatting throughout
3106         Minor code reorganization (put nested subprograms in alpha order)
3107
3108 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
3109
3110         * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
3111         when compiling a call to a protected function that returns a controlled
3112         object.
3113
3114 2009-07-15  Hristian Kirtchev  <kirtchev@adacore.com>
3115
3116         * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
3117         one. Add task locking and unlocking around the critical region which
3118         mentions localtime_r and global variable timezone for various targets.
3119         Comment reformatting.
3120
3121 2009-07-15  Robert Dewar  <dewar@adacore.com>
3122
3123         * gnat_rm.texi: Document s-ststop.ads
3124
3125         * impunit.ad: (Map_Array): New table of alternative names
3126         (Get_Kind_Of_Unit): Return possible suggested alternative name
3127
3128         * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
3129         alternative name.
3130
3131         * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
3132         alternative unit if an implementation unit is with'ed.
3133
3134 2009-07-15  Robert Dewar  <dewar@adacore.com>
3135
3136         * gnat_ugn.texi: Minor updates.
3137
3138         * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
3139
3140 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
3141
3142         * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
3143         conditions of a derived boolean type.
3144         Minor reformatting
3145
3146 2009-07-15  Robert Dewar  <dewar@adacore.com>
3147
3148         * gnat1drv.adb: Initialize SCO tables
3149
3150         * par-load.adb: Call SCO_Record for main unit spec
3151
3152         * par.adb: Make call to SCO_Record for main unit
3153
3154         * par_sco.adb (Unit_Table): Change format to facilitate sort
3155         (Process_Decisions): New procedure with list argument
3156         (Traverse_Generic_Package_Declaration): New procedure
3157         (Initialize): New procedure, replaces Init
3158         (SCO_Output): Sort unit table before output
3159         (SCO_Record): Avoid duplications
3160         (SCO_Record): Handle remaining cases of units
3161         (Traverse_Declarations_Or_Statements): Handle generics
3162
3163         * par_sco.ads (Initialize): New peocedure (replaces Init)
3164
3165         * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
3166         subunit.
3167
3168 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
3169
3170         * debug.adb: Add -gnatd.J switch for now to support scil generation in
3171         parallel. Add missing doc for -gnatd.I and -gnatd.O
3172
3173 2009-07-15  Robert Dewar  <dewar@adacore.com>
3174
3175         * lib-load.adb: Minor reformatting
3176
3177         * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
3178
3179 2009-07-15  Robert Dewar  <dewar@adacore.com>
3180
3181         * par.adb: Minor reformatting
3182         Add ??? comment for possible bad comment
3183
3184         * par-ch10.adb: Minor reformatting
3185
3186 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
3187
3188         * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
3189         is a literal of a derived boolean type, it appears as an unchecked
3190         conversion. Retrieve actual value from expression of conversion.
3191
3192 2009-07-15  Robert Dewar  <dewar@adacore.com>
3193
3194         * sem_ch3.adb: Minor reformatting
3195
3196         * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
3197         lib-writ.ads, lib-writ.adb: Minor reformatting.
3198         Fix problem with SCO format in ALI files
3199
3200 2009-07-15  Robert Dewar  <dewar@adacore.com>
3201
3202         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
3203         exp_aggr.adb: Minor code reorganization (better calling sequence for
3204         Make_Temporary).
3205
3206 2009-07-15  Thomas Quinot  <quinot@adacore.com>
3207
3208         * opt.ads: Minor comment edits
3209
3210 2009-07-15  Tristan Gingold  <gingold@adacore.com>
3211
3212         * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
3213         needed.
3214
3215 2009-07-15  Robert Dewar  <dewar@adacore.com>
3216
3217         * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
3218         information.
3219
3220         * lib-writ.ads: Document addition of SCO lines to ALI file
3221
3222         * par_sco.ads, par_sco.adb: New files.
3223
3224         * opt.ads (Generate_SCO): New switch
3225
3226         * par.adb (Par): Call SCO_Record to record SCO information
3227
3228         * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
3229
3230         * switch-c.adb: Recognize -gnateS to generate SCO information
3231
3232         * usage.adb: Add line for -gnateS
3233
3234         * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
3235
3236 2009-07-15  Robert Dewar  <dewar@adacore.com>
3237
3238         * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
3239         reformatting.
3240
3241 2009-07-15  Thomas Quinot  <quinot@adacore.com>
3242
3243         * g-socthi-mingw.adb: Minor comment addition
3244
3245         * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
3246
3247 2009-07-15  Robert Dewar  <dewar@adacore.com>
3248
3249         * g-htable.ads, s-htable.ads: Minor reformatting
3250
3251 2009-07-15  Robert Dewar  <dewar@adacore.com>
3252
3253         * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
3254         new switch -gnatw.g.
3255         (Set_GNAT_Mode_Warnings): New procedure.
3256
3257         * lib-xref.adb: Minor reformatting
3258
3259 2009-07-15  Robert Dewar  <dewar@adacore.com>
3260
3261         * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
3262         Minor code reorganization
3263
3264 2009-07-14  Taras Glek  <tglek@mozilla.com>
3265             Rafael Espindola  <espindola@google.com>
3266
3267         * gcc-interface/Make-lang.in (ada.install-plugin): New target for
3268         installing plugin headers.
3269
3270 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3271
3272         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
3273         exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
3274         and link it to the expression whose value it captures.
3275
3276 2009-07-13  Robert Dewar  <dewar@adacore.com>
3277
3278         * output.adb: Minor comment addition for last change
3279
3280         * sinfo.ads: Minor reformatting
3281
3282 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
3283
3284         * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
3285         spawn failed like on all other targets.
3286
3287 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3288
3289         * exp_ch7.adb: Indicate origin of temporary for transient expression.
3290
3291 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3292
3293         * s-oscons-tmplt.c: Add comment.
3294
3295 2009-07-13  Robert Dewar  <dewar@adacore.com>
3296
3297         * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
3298         reformatting. Minor code reorganization (add 9 argument version of
3299         Nkind_In).
3300
3301         * impunit.adb: Remove s-os_lib from list of system extensions.
3302
3303         * sem_util.ads: Minor reformatting
3304
3305         * output.adb: Add warnings off/on around System.OS_Lib.
3306
3307 2009-07-13  Bob Duff  <duff@adacore.com>
3308
3309         * exp_dist.adb: Minor comment updates.
3310
3311 2009-07-13  Gary Dismukes  <dismukes@adacore.com>
3312
3313         * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
3314         several references to CodePeer.
3315
3316 2009-07-13  Bob Duff  <duff@adacore.com>
3317
3318         * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
3319         Build_TypeCode_Function_All): Do not recurse if the type is the base
3320         type.
3321
3322 2009-07-13  Robert Dewar  <dewar@adacore.com>
3323
3324         * exp_ch4.adb: Minor comment change
3325
3326 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3327
3328         * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
3329         type of iteration, to prevent spurious warnings.
3330
3331 2009-07-13  Nicolas Roche  <roche@adacore.com>
3332
3333         * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
3334         included.
3335
3336 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
3337
3338         * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
3339         gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
3340         Generate_SCIL.
3341         (CodePeer_Mode): New -gnatC switch.
3342         (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
3343         CodePeer_Mode.
3344
3345 2009-07-13  Eric Botcazou  <ebotcazou@adacore.com>
3346
3347         * checks.adb (Selected_Range_Checks): Do not consider that a non-static
3348         integer bound forces the check if it is compared to its subtype range.
3349
3350 2009-07-13  Robert Dewar  <dewar@adacore.com>
3351
3352         * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
3353         prj-strt.ads: Minor reformatting
3354
3355 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3356
3357         * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
3358         set the type of the From_Any call to the base type.
3359
3360 2009-07-13  Doug Rupp  <rupp@adacore.com>
3361
3362         * symbols-processing-vms-ia64.adb (Process): Add variables and
3363         constants to retrieve and check for symbol visibility.
3364
3365 2009-07-13  Javier Miranda  <miranda@adacore.com>
3366
3367         * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
3368         the identical type we remove the conversion completely because
3369         it is useless.
3370
3371 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3372
3373         * prj-err.adb (Error_Msg): One more case where a message should be
3374         considered as a warning.
3375
3376         * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
3377
3378 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3379
3380         * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
3381         calling stubs in the (library level) scope of the RCI locator, where it
3382         is attached, not in the caller's scope.
3383
3384 2009-07-13  Javier Miranda  <miranda@adacore.com>
3385
3386         * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
3387         interface object declarations we delay the generation of the equivalent
3388         record type declarations until its expansion because there are cases in
3389         which they are not required.            
3390
3391         * sem_util.adb (Implements_Interface): Add missing support for subtypes.
3392
3393         * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
3394         addition of assertion.
3395
3396         * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
3397         interface types require no equivalent constrained type declarations
3398         because the expanded code only references the tag component associated
3399         with the interface.
3400         (Find_Interface_Tag): Improve management of interfaces that are
3401         ancestors of tagged types.
3402
3403         * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
3404         class-wide object declarations to add missing support to statically
3405         displace the pointer to the object to reference the tag component
3406         associated with the interface.
3407
3408         * exp_disp.adb (Make_Tags) Avoid generation of internally generated
3409         auxiliary types associated with user-defined dispatching calls if the
3410         type has no user-defined primitives.
3411
3412 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
3413
3414         * mingw32.h: Make it explicit that we need XP or later.
3415
3416         * initialize.c: Remove useless extern symbol declaration.
3417
3418         * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
3419         code reuse in expect.c.
3420
3421         * adaint.c: Changes throughout the Windows section to redesign storage
3422         of the child process list and the process identification.
3423
3424         * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
3425         for interfacing, fix errors.
3426         (__gnat_expect_portable_execvp): use function in adaint.c
3427
3428 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3429
3430         * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
3431         prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
3432         prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
3433         errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
3434         (Prj.Nmsc.Report_Error): Removed, no longer needed.
3435         Always use Prj.Err.Report_Message.
3436
3437 2009-07-13  Robert Dewar  <dewar@adacore.com>
3438
3439         * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
3440         & comment edits.
3441
3442 2009-07-13  Robert Dewar  <dewar@adacore.com>
3443
3444         * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3445         prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
3446
3447 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3448
3449         * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
3450         mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
3451         Ada_Prj_Include_File_Set): Removed, since not needed
3452         Code clean up.
3453
3454 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3455
3456         * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
3457         Analyze_Membership_Op.
3458
3459         * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
3460         Resolve_Membership_Op.
3461
3462         * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
3463         Expand_N_In.
3464
3465 2009-07-13  Robert Dewar  <dewar@adacore.com>
3466
3467         * clean.adb: Minor reformattting
3468
3469 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3470
3471         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
3472         gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
3473         prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
3474         prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
3475         and attributes in a project tree.
3476         (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
3477         Remove last remaining mode-specific code (ada_only or
3478         multi_language). This was duplicating code
3479         (Get_Mode, Set_Mode): removed, no longer used.
3480         (Initialize_Project_Path): all tools will now take into account both
3481         GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
3482         Remove some global variables and subprograms no longer used
3483         Make temporary files tree-specific, to avoid interferences between
3484         trees loaded in memory at the same time.
3485         (Prj.Delete_Temporary_File): new subprogram
3486         (Object_Paths, Source_Paths): fields no longer stored in the project
3487         tree, since they are only needed locally in Set_Ada_Paths.
3488         (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
3489         effect in practice.
3490         (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
3491         by local variables in the appropriate subprograms
3492         (Has_Foreign_Sources): removed.
3493
3494         * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
3495
3496 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
3497
3498         * gnat1drv.adb (Adjust_Global_Switches): No longer set
3499         Back_Annotate_Rep_Info in inspector mode.
3500         (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
3501
3502         * opt.ads: Update comment.
3503
3504 2009-07-13  Robert Dewar  <dewar@adacore.com>
3505
3506         * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
3507         prj.ads: Minor reformatting and code reorganization.
3508
3509         * par-ch3.adb (Check_Restricted_Expression): New procedure
3510
3511 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3512
3513         * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
3514         attribute into a call of the corresponding suprogram, create extra
3515         formals for the subprogram, because it may be a renaming whose
3516         analysis does not create extra formals.
3517
3518 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3519
3520         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3521         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3522         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
3523         prj-tree.ads: Minor reformatting.
3524         (Processing_Flags): new record to encapsulate the set of common
3525         parameters to several subprograms in the project manager.
3526         (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
3527         Remove the need for the Current_Dir parameter in subprograms.
3528         (Look_For_Sources): minor refactoring, now that we no longer need to
3529         share subprograms between the two Ada_Only and Multi_Language modes
3530         (Processing_Flags): New field Error_On_Unknown_Language.
3531         Merge tests for library project between gnatmake and gprbuild.
3532
3533 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
3534
3535         * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
3536         Minor reformatting.
3537
3538 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3539
3540         * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
3541         than units.
3542
3543 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3544
3545         * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
3546         Write,Input,Output} from private view to full view.
3547
3548         * sem_type.adb, sem_type.ads: Minor reformatting
3549
3550 2009-07-13  Nicolas Setton  <setton@adacore.com>
3551
3552         * exp_dbug.ads: Add documentation note on the utility of
3553         DW_AT_GNAT_encoding for IDEs.
3554
3555 2009-07-13  Robert Dewar  <dewar@adacore.com>
3556
3557         * g-socthi-vxworks.adb: Minor reformatting
3558
3559         * gnatcmd.adb: Minor reformatting
3560
3561 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3562
3563         * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
3564         removed, not used anymore.
3565         (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
3566         New subprogram, implements copy of an Any value into a limited object.
3567         (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
3568         Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
3569         Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
3570         of parameters of a limited type, use the above new subprogram.
3571
3572 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3573
3574         * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
3575         Location.
3576         (Copy_ALI_Files): Avoid calls to read when pointing outside of the
3577         allocated space.
3578         (Error_Report): Remove global variable, replaced by parameters.
3579
3580 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3581
3582         * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
3583         standard sendto(2) interface for connected sockets (passing a null
3584         destination address). Use send(2) instead for that case.
3585
3586 2009-07-13  Pascal Obry  <obry@adacore.com>
3587
3588         * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
3589
3590 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3591
3592         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3593         prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
3594         variables and tables in prj-nmsc.adb.
3595         (Tree_Processing_Data): Renames Processing_Data, some new fields added
3596         (Project_Processing_Data): New record
3597         Simplify/unify check for missing sources.
3598
3599 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3600
3601         * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
3602         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3603         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
3604         prj-tree.ads (Immediate_Directory_Of): Removed.
3605         (Prj.Pars): Now parse the project simulating a default config file.
3606         (Add_Default_GNAT_Naming_Scheme): New subprogram
3607         (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
3608         Remove gnatmake-specific parsing of source files.
3609         (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
3610         the error itself to provide more precise diagnostics.
3611         (Process_Exceptions_Unit_Based): Avoid duplicate error message when
3612         a unit belongs to several projects.
3613         (Copy_Interface_Sources): Search the full path of files to copy in the
3614         list of sources of the application rather than in the list of units.
3615         (Parse_Project_And_Apply_Config): Do not reset the name of the main
3616         project file.
3617         (Check_File): Use htables to find out whether a source is duplicated.
3618         (Add_Source): check whether the source or unit were already seen earlier
3619
3620         * gcc-interface/Makefile.in: Update gnatmake dependencies.
3621
3622 2009-07-13  Robert Dewar  <dewar@adacore.com>
3623
3624         * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
3625         expression if extensions permitted.
3626
3627         * par-ch4.adb (P_Membership_Test): New procedure (implement membership
3628         set tests).
3629         (P_Relation): Use P_Membership_Test
3630
3631         * par.adb (P_Membership_Test): New procedure (implement membership set
3632         tests).
3633
3634         * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
3635
3636         * sprint.adb (Sprint_Node): Handle set form for membership tests.
3637
3638 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3639
3640         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
3641         Do not attempt to generate stubs for predefined primitives of
3642         synchronized interfaces.
3643         (Add_Stub_Type): Factor some code from the PCS-specific variants of
3644         Build_Stub_Type.
3645
3646 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3647
3648         * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
3649         Controlling_Result flag from the operation they override.
3650
3651 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
3652
3653         * gcc-interface/Make-lang.in: Update dependencies
3654
3655 2009-07-13  Robert Dewar  <dewar@adacore.com>
3656
3657         * gnat_ugn.texi: The gnatf switch no longer is needed to get full
3658         details on unsupported constructs.
3659
3660         * rtsfind.adb: Remove references to All_Errors_Mode, give errors
3661         unconditionally.
3662
3663         * s-trafor-default.adb: Correct some warnings
3664
3665         * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
3666         sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
3667         Minor reformatting.
3668
3669         * par-ch4.adb (Conditional_Expression): Capture proper location for
3670         conditional expression, should point to IF.
3671
3672         * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
3673         s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
3674         g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
3675         reorganization (use conditional expressions).
3676
3677 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3678
3679         * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
3680         build-in-place function that returns an inherently limited type (not
3681         just a task type) create proper object declaration so that extra
3682         build-in-place actuals are properly added to the call.
3683
3684 2009-07-13  Robert Dewar  <dewar@adacore.com>
3685
3686         * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
3687
3688         * gnat_ugn.texi: Add documentation for -gnatw.m/.M
3689
3690         * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
3691
3692         * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
3693         Warn_On_Suspicious_Modulus_Value.
3694
3695         * ug_words: Add entries for -gnatw.m/-gnatw.M.
3696
3697         * usage.adb: Add lines for -gnatw.m/.M switches.
3698
3699         * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
3700
3701 2009-07-13  Javier Miranda  <miranda@adacore.com>
3702
3703         * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
3704         reading the Is_Interface attribute of the dispatching type.
3705
3706 2009-07-13  Robert Dewar  <dewar@adacore.com>
3707
3708         * a-convec.adb: Minor code reorganization (use conditional expressions)
3709
3710 2009-07-13  Robert Dewar  <dewar@adacore.com>
3711
3712         * freeze.adb (Check_Suspicious_Modulus): New procedure.
3713
3714 2009-07-13  Robert Dewar  <dewar@adacore.com>
3715
3716         * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
3717         warning).
3718
3719         * par-ch4.adb: Minor reformatting
3720
3721 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3722
3723         * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
3724         => Is_Atomic_Aggregate
3725
3726 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3727
3728         * prj-nmsc.adb: Avoid traversing the list of source files if
3729         we have already processed all locally removed files.
3730
3731 2009-07-13  Jose Ruiz  <ruiz@adacore.com>
3732
3733         * gnat_ugn.texi: Fix typo.
3734
3735 2009-07-13  Robert Dewar  <dewar@adacore.com>
3736
3737         * freeze.adb: Minor reformatting
3738         Minor code reorganization (use Nkind_In)
3739
3740         * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
3741
3742 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
3743
3744         * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
3745         local variable and do not test it in Compile_Time_Bad_Alignment.
3746         Do not issue size or alignment warnings for the X'Address form.
3747         * sem_util.ads (Find_Overlaid_Object): Delete.
3748         (Find_Overlaid_Entity): New procedure.
3749         * sem_util.adb (Find_Overlaid_Object): Rename to...
3750         (Find_Overlaid_Entity): ...this and turn into a procedure.  Report
3751         whether the address is offseted within the overlaid entity.
3752         (Has_Compatible_Alignment): Track the offset globally instead of
3753         passing it to Check_Offset.  For an indexed component, compute the
3754         full offset when possible.  If the resulting offset is zero, only
3755         check the prefix.
3756         (Check_Offset): Delete.
3757         * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
3758         (Address_Aliased_Entity): Delete.
3759         (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
3760         Find_Overlaid_Entity to find the overlaid entity and the offset.
3761         Adjust throughout for above change.
3762         (Validate_Address_Clauses): Always use attributes of entities, not of
3763         their type.  Tweak message for warning.  Call Has_Compatible_Alignment
3764         if the address is offseted to warn about incompatible alignments.
3765         * gcc-interface/gigi.h (annotate_object): Declare.
3766         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
3767         entity.  Call annotate_object instead of annotating manually objects.
3768         (annotate_object): New function.
3769         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
3770         at the end.
3771
3772 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
3773
3774         * gcc-interface/ada-tree.h: Minor reorganization.
3775         * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
3776         (gnat_print_type): Likewise.
3777
3778 2009-07-11  Thomas Quinot  <quinot@adacore.com>
3779
3780         * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
3781         Lvalue -> lvalue
3782
3783         * exp_ch6.adb: Minor reformatting
3784
3785 2009-07-11  Ed Schonberg  <schonberg@adacore.com>
3786
3787         * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
3788         account possible type qualification to determine whether aggregate
3789         needs a target temporary to respect atomic type or object.
3790
3791         * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
3792         Expand_Atomic_Aggregate.
3793
3794 2009-07-11  Emmanuel Briot  <briot@adacore.com>
3795
3796         * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
3797         algorithm.
3798         (Excluded_Sources_Htable): No longer a global table.
3799         Change error message to indicate which files are illegal in the list
3800         of excluded files, as opposed to only the location in the project
3801         file.
3802         (Find_Source): New subprogram.
3803
3804 2009-07-10  Thomas Quinot  <quinot@adacore.com>
3805
3806         * exp_ch7.adb: Update comments.
3807
3808 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
3809
3810         * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
3811         clause if -gnatI is set instead of crashing.
3812
3813 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3814
3815         * sem_ch11.adb (Same_Expression): Null is always equal to itself.
3816         Additional work to remove redundant successive raise statements, in
3817         this case access checks.
3818
3819 2009-07-10  Vincent Celier  <celier@adacore.com>
3820
3821         * make.adb (Compile): Always create a deep copy of the mapping file
3822         argument (-gnatem=...) as it may be deallocate/reallocate by
3823         Normalize_Arguments.
3824
3825 2009-07-10  Javier Miranda  <miranda@adacore.com>
3826
3827         * einfo.adb (Directly_Designated_Type): Add assertion.
3828         
3829         * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
3830         access types before using attribute Directly_Designated_Type.
3831
3832 2009-07-10  Emmanuel Briot  <briot@adacore.com>
3833
3834         * prj.ads: Minor typo fix
3835
3836 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3837
3838         * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
3839         special treatment.
3840
3841         * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
3842         subprogram is a function call, resolve properly, to ensure that extra
3843         actuals are added as needed.
3844
3845 2009-07-10  Thomas Quinot  <quinot@adacore.com>
3846
3847         * sem_aggr.adb: Minor comments editing
3848
3849         * exp_tss.adb, exp_ch3.adb: Minor reformatting
3850
3851 2009-07-10  Robert Dewar  <dewar@adacore.com>
3852
3853         * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
3854
3855         * exp_ch4.adb: Add ??? comment for conditional expressions on limited
3856         types.
3857
3858         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
3859         replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
3860         case of conditional expressions that may not be elaborated.
3861
3862         * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
3863         conditional expression where we may not execute then then or else
3864         branches.
3865
3866 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
3867
3868         * i-cexten.ads (bool): New type.
3869
3870 2009-07-10  Robert Dewar  <dewar@adacore.com>
3871
3872         * sinfo.ads (N_Short_Circuit): New definition
3873         
3874         * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
3875         treepr.adb: Minor code reorganization (use N_Short_Circuit)
3876
3877 2009-07-10  Javier Miranda  <miranda@adacore.com>
3878
3879         * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
3880         non-tagged record types.
3881
3882         * sem_prag.adb
3883         (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
3884         with non-tagged types. Required to import C++ classes that have no
3885         virtual primitives.
3886         (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
3887         returning non-tagged types. For backward compatibility, if the
3888         constructor returns a class wide type we internally change the
3889         returned type to the corresponding non class-wide type.
3890
3891         * sem_aggr.adb
3892         (Valid_Ancestor_Type): CPP_Constructors code cleanup.
3893         (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
3894         (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
3895         (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
3896
3897         * sem_ch3.adb
3898         (Analyze_Object_Declaration): CPP_Constructors code cleanup.
3899
3900         * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
3901
3902         * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
3903
3904         * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
3905
3906         * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
3907         cleanup.
3908         
3909         * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
3910
3911         * gnat_rm.texi
3912         (pragma CPP_Class): Document that it can be used now with non-tagged
3913         record types.
3914         (pragma CPP_Constructor): Document that it can be used now with
3915         functions returning specific types. For backward compatibility
3916         we also support functions returning class-wide types.
3917
3918         * gnat_ugn.texi
3919         (Interfacing with C++ constructors): Update the examples to incorporate
3920         the new syntax in which the functions used to import C++ constructors
3921         return specific types.
3922         (Interfacing with C++ at the Class Level): Update the examples to
3923         incorporate the new syntax in which the functions used to import
3924         C++ constructors return specific types.
3925
3926 2009-07-10  Thomas Quinot  <quinot@adacore.com>
3927
3928         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
3929         Make_Disp_Conditional_Select_Body,
3930         Make_Disp_Timed_Select_Body): For the case of a type that is neither an
3931         interface nor a concurrent type, the primitive body is empty. Generate
3932         a null statement so that it remains well formed.
3933
3934 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3935
3936         * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
3937         replace references to them in defaulted component expressions with
3938         references to the values of the discriminants of the target object.
3939
3940 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3941
3942         * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
3943         pragma, to capture global references if the context is generic.
3944
3945         * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
3946         appears within the initialization procedure for the corresponding
3947         record, replace it with the proper discriminal.
3948
3949 2009-07-10  Vincent Celier  <celier@adacore.com>
3950
3951         * make.adb: Do not include object directories or library ALI
3952         directories of library projects in the object path.
3953
3954 2009-07-10  Javier Miranda  <miranda@adacore.com>
3955
3956         * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
3957         Typ argument to ensure proper management of access types.
3958
3959 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3960
3961         * exp_ch7.adb (Build_Final_List): If the list is being built for a
3962         Taft-Amendment type, place the finalization list in the package body,
3963         to ensure that the tree for the spec is identical whenever it is
3964         compiled.
3965
3966 2009-07-10  Javier Miranda  <miranda@adacore.com>
3967
3968         * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
3969         inheriting attributes from a private Parent_Base.
3970
3971 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3972
3973         * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
3974         statements with the same condition.
3975
3976 2009-07-10  Robert Dewar  <dewar@adacore.com>
3977
3978         * exp_ch4.adb (Raise_Accessibility_Error): New procedure
3979
3980 2009-07-09  Tom Tromey  <tromey@redhat.com>
3981
3982         * raise-gcc.c: Include dwarf2h (unconditionally).
3983
3984 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3985
3986         * sem_ch10.adb (Install_Context): If the unit is a package body,
3987         install the private with_clauses of the corresponding package
3988         declaration.
3989
3990 2009-07-09  Robert Dewar  <dewar@adacore.com>
3991
3992         * checks.adb: Minor reformatting
3993
3994 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
3995
3996         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3997         into ug_words.
3998
3999 2009-07-09  Thomas Quinot  <quinot@adacore.com>
4000
4001         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
4002         Do not warn for a constant overlaying any constant object
4003
4004 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
4005
4006         * sem_ch10.adb (Install_Context): If the unit is a package body,
4007         install the private with_clauses of the corresponding package
4008         declaration.
4009
4010 2009-07-09  Robert Dewar  <dewar@adacore.com>
4011
4012         * checks.adb: Minor reformatting
4013
4014 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
4015
4016         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
4017         into ug_words.
4018
4019 2009-07-09  Thomas Quinot  <quinot@adacore.com>
4020
4021         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
4022         Do not warn for a constant overlaying any constant object
4023
4024 2009-07-09  Arnaud Charlet  <charlet@adacore.com>
4025
4026         * gcc-interface/Make-lang.in: Update dependencies
4027
4028 2009-07-09  Thomas Quinot  <quinot@adacore.com>
4029
4030         * g-socket.adb (Check_Selector): Do not create local copies of the
4031         socket sets on the stack.
4032
4033 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
4034
4035         * gnat_ugn.texi: Add missing VMS translations.
4036
4037 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
4038
4039         * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
4040         condition, to prevent generation of visible code during expansion,
4041         when Check is not enabled.
4042
4043 2009-07-09  Gary Dismukes  <dismukes@adacore.com>
4044
4045         * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
4046         the check gets registered for any available local handler
4047         (Set_Local_Raise).
4048
4049         * sem_util.adb: Add with and use of Exp_Ch11.
4050         (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
4051         that the check gets registered for any available local handler.
4052
4053         * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
4054         on slice ranges.
4055
4056 2009-07-09  Steve Baird  <baird@adacore.com>
4057
4058         * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
4059         function.
4060         (Expand_N_Exception_Declaration): Fix handling of exceptions
4061         declared in a subprogram.
4062
4063 2009-07-09  Emmanuel Briot  <briot@adacore.com>
4064
4065         * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
4066         multi-unit files.
4067
4068 2009-07-09  Thomas Quinot  <quinot@adacore.com>
4069
4070         * freeze.adb: Minor reformatting
4071
4072         * exp_ch3.adb: Minor comment fix.
4073
4074         * sinfo.ads: Minor comment fix
4075
4076 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
4077
4078         * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
4079
4080 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
4081
4082         * freeze.adb (Freeze_Expression): If the expression is the name of a
4083         function in a call, and the function has not been frozen yet, create
4084         extra formals for it to ensure that the proper actuals are created
4085         when expanding the call.
4086
4087 2009-07-09  Emmanuel Briot  <briot@adacore.com>
4088
4089         * prj-pp.adb (Print): Fix handling of source index when set on a
4090         declaration node.
4091
4092 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
4093
4094         * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
4095         a temporary to the source expression whose value it captures.
4096
4097         * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
4098
4099 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4100
4101         * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
4102         EXPR_LOCATION.
4103
4104 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
4105
4106         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
4107         parameters when the subtype of the actual is not known to be a subrange
4108         of the formal's subtype.
4109         (Expand_Call): Generate a range check only in the E_In_parameter case
4110         (in out parameter range checks are now handled in Expand_Actuals).
4111
4112         * exp_ch4.adb (Expand_N_Slice): Restore code that calls
4113         Enable_Range_Check.
4114
4115 2009-07-07  Robert Dewar  <dewar@adacore.com>
4116
4117         * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
4118
4119 2009-07-07  Javier Miranda  <miranda@adacore.com>
4120
4121         * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
4122         designated type comes from a limited views.
4123
4124 2009-07-07  Emmanuel Briot  <briot@adacore.com>
4125
4126         * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
4127         locally removed files that are later made visible again in an importing
4128         project.
4129
4130 2009-07-07  Robert Dewar  <dewar@adacore.com>
4131
4132         * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
4133
4134 2009-07-07  Sergey Rybin  <rybin@adacore.com>
4135
4136         * gnat_ugn.texi: Add an example to the description of gnatcheck
4137         'Style_Checks' rule option.
4138
4139 2009-07-07  Tristan Gingold  <gingold@adacore.com>
4140
4141         * seh_init.c: Fix inline assembly statement in seh_init.c
4142
4143 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
4144
4145         * sem_warn.adb (Check_References): Do not emit warnings on formals of
4146         an entry body. Only the formals of the entry declaration are traced.
4147
4148 2009-07-07  Robert Dewar  <dewar@adacore.com>
4149
4150         * s-osprim-mingw.adb: Minor code reorganization
4151
4152 2009-07-07  Robert Dewar  <dewar@adacore.com>
4153
4154         * prj-nmsc.adb: Minor reformatting
4155
4156 2009-07-07  Pascal Obry  <obry@adacore.com>
4157
4158         * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
4159         cases where Pattern is longer than Source.
4160
4161 2009-07-07  Pascal Obry  <obry@adacore.com>
4162
4163         * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
4164
4165 2009-07-07  Emmanuel Briot  <briot@adacore.com>
4166
4167         * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
4168         project file.
4169
4170 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
4171
4172         * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
4173         primitive operations, in case one of them is called in the
4174         initialization procedure for the type.
4175
4176 2009-07-07  Robert Dewar  <dewar@adacore.com>
4177
4178         * a-calend.adb: Minor code reorganization (use conditional expressions)
4179
4180         * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
4181         prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
4182         s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
4183         s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
4184         s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
4185         g-comlin.adb, exp_ch11.adb: Minor reformatting.
4186
4187 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
4188
4189         * checks.adb (Generate_Range_Check): Replace type conversions with
4190         unchecked conversions to support the case of performing range checks
4191         on Enum'Val (permits integer values to be converted to enumeration).
4192
4193         * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
4194         Attribute_Succ): Set Do_Range_Check to False before calling
4195         Expand_Pred_Succ, to prevent gigi from generating any range checks.
4196         (Expand_N_Attribute_Reference, case Attribute_Val):
4197         Generate a range check when needed (and set Do_Range_Check to False).
4198
4199         * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
4200         scalar object initialization if needed.
4201
4202         * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
4203         when needed on scalar allocators.
4204         (Expand_N_Qualified_Expression): Generate range check when needed.
4205         (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
4206         Checks on slice ranges handled in Resolve_Slice.
4207
4208         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
4209         when needed, for all scalar assignments, not just discrete.
4210         (Expand_Simple_Function_Return): Resolve the conversion created for a
4211         scalar function return so that the conversion will get expanded to
4212         generate a possible constraint check.
4213
4214         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
4215         in out scalar actuals when subtypes don't match, to ensure generation
4216         of return checks (and set Do_Range_Check to False).
4217         (Expand_Call): Uncomment code to perform range checks, but make it apply
4218         only to in and in out parameters (checks on parameter returns are
4219         handled in Expand_Actuals). If a scalar actual for a call to a derived
4220         subprogram is marked as needing a range check, peform it here (and set
4221         Do_Range_Check to False).
4222
4223         * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
4224         range check on scalar component associations when needed.
4225
4226         * sem_eval.adb (In_Subrange_Of): Return False when the first type has
4227         infinities but the second type does not, as these aren't compatible
4228         floating-point types.
4229
4230         * sem_res.adb (Resolve_Slice): In the case where the prefix of the
4231         slice is itself a slice, pick up the Etype of the prefix. This handles
4232         the case where the prefix was an Image attribute expanded to a slice,
4233         and ensures that we get the subtype with the slice constraint rather
4234         than the unconstrained subbtype of the 'Image.
4235
4236 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
4237
4238         * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
4239         overloaded expressions in a conditional expressions.
4240
4241         * sem_res.adb (Resolve): Handle properly overloaded conditional
4242         expressions.
4243
4244 2009-07-07  Robert Dewar  <dewar@adacore.com>
4245
4246         * scng.adb: Minor reformattting
4247
4248         * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
4249         association allows conditional expression without parens.
4250
4251         * par-ch4.adb (P_Name): Attribute arguments can be conditional
4252         expressions without enclosing parentheses, and also as parameters,
4253         indexing expressions etc.
4254         (P_Conditional_Expression): New procedure
4255         (P_Expression_If_OK): New procedure
4256
4257         * par.adb (P_Conditional_Expression): New procedure
4258         (P_Expression_If_OK): New procedure
4259
4260         * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
4261         form of conditional expression.
4262
4263         * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
4264         missing True argument if ELSE argument missing.
4265
4266         * sinfo.adb (Is_Elsif): New flag
4267
4268         * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
4269         part of the language, and the documentation is modified accordingly.
4270         (Is_Elsif): New flag
4271
4272 2009-07-06  Olivier Hainque  <hainque@adacore.com>
4273
4274         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
4275         setjmp_longjmp): Attach the exception propagation reraise fallback
4276         to the sequence end label location when we have it.
4277
4278 2009-07-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4279
4280         PR ada/40608
4281         * init.c (APPLE): Include <mach/mach_init.h>.
4282         (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
4283
4284 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
4285
4286         * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
4287         (SET_DECL_LANG_SPECIFIC): Likewise.
4288         (TYPE_RM_VALUE): New macro.
4289         (SET_TYPE_RM_VALUE): Likewise.
4290         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
4291         (TYPE_RM_MIN_VALUE): Likewise.
4292         (TYPE_RM_MAX_VALUE): Likewise.
4293         (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
4294         (SET_TYPE_RM_MIN_VALUE): Likewise.
4295         (SET_TYPE_RM_MAX_VALUE): Likewise.
4296         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
4297
4298 2009-07-04  Laurent GUERBY  <laurent@guerby.net>
4299
4300         PR ada/40631
4301         * tracebak.c (__gnat_backtrace): Fix old-style definition.
4302
4303 2009-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4304
4305         * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
4306
4307 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4308
4309         PR ada/40609
4310         * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
4311         ucontext argument.
4312
4313 2009-07-01  Eric Botcazou  <ebotcazou@adacore.com>
4314
4315         * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
4316
4317 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
4318
4319         * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
4320         the type of the left operand if it pads a self-referential type when
4321         the right operand is a constructor.
4322
4323         * gcc-interface/lang-specs.h: Fix copyright date.
4324
4325 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
4326
4327         * gcc-interface/decl.c: Include tree-inline.h.
4328         (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
4329         * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
4330         * gcc-interface/utils2.c: Include tree-inline.
4331         (known_alignment) <CALL_EXPR>: Likewise.
4332
4333 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
4334
4335         * raise-gcc.c: Include dwarf2.h conditionally.
4336         
4337 2009-06-29  Tom Tromey  <tromey@redhat.com>
4338
4339         * raise-gcc.c: Include elf/dwarf2.h.
4340
4341 2009-06-27  Laurent GUERBY  <laurent@guerby.net>
4342
4343         * tb-gcc.c (trace_callback): Add casts to silence warning.
4344
4345 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4346
4347         * tb-gcc.c: Fix copyright notice.
4348
4349 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4350
4351         * init.c (__gnat_set_globals): Add prototype.
4352         * adaint.c (__gnat_binder_supports_auto_init): Likewise.
4353         (__gnat_sals_init_using_constructors): Likewise.
4354         * gcc-interface/utils.c (gnat_pushlevel): Likewise.
4355         (get_block_jmpbuf_decl): Likewise.
4356         (gnat_poplevel): Likewise.
4357         (merge_sizes): Rename local variable.
4358         (copy_type): Likewise.
4359         (build_vms_descriptor32): Likewise.
4360         (build_vms_descriptor): Likewise.
4361         (convert_vms_descriptor64): Likewise.
4362         (convert_vms_descriptor32): Likewise.
4363         (convert_to_fat_pointer): Likewise.
4364         (maybe_unconstrained_array): Likewise.
4365         (def_fn_type): Use promoted type with va_arg.
4366         * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
4367         (substitute_in_type): Rename local variable.
4368         * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
4369
4370 2009-06-26  Laurent GUERBY  <laurent@guerby.net>
4371
4372         * tb-gcc.c (trace_callback): Use char* instead of void*.
4373         * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
4374         * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
4375         (Attribute_to_gnu): Adjust for above change.
4376         (Subprogram_Body_to_gnu): Likewise.
4377         * gcc-interface/utils.c (merge_sizes): Rename local variable.
4378         (copy_type): Likewise.
4379         (build_vms_descriptor32): Likewise.
4380         (build_vms_descriptor): Likewise.
4381         (convert_vms_descriptor64): Likewise.
4382         (convert_vms_descriptor32): Likewise.
4383         (convert_to_fat_pointer): Likewise.
4384         (maybe_unconstrained_array): Likewise.
4385         * gcc-interface/decl.c (substitute_in_type): Likewise.
4386
4387 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4388
4389         * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
4390         (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
4391         of the upper bound of the index types.
4392
4393 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4394
4395         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
4396         out common predicate.  Use the maximum to compute the upper bound of
4397         the index type only when it is not wider than sizetype.  Perform the
4398         comparison in the index type for the generic expression.  Use real
4399         precision to decide whether to generate special types for debugging
4400         information.
4401
4402 2009-06-26  Matthew Gingell  <gingell@adacore.com>
4403
4404         * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
4405
4406 2009-06-26  Vincent Celier  <celier@adacore.com>
4407
4408         * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
4409         default.
4410
4411 2009-06-26  Robert Dewar  <dewar@adacore.com>
4412
4413         * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
4414
4415 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4416
4417         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
4418         correct arguments to create_field_decl.  Remove redundant iteration.
4419         Rewrite computation of the maximum size.
4420         <E_Array_Subtype>: Reorder and simplify handling of special cases.
4421         Rewrite computation of the maximum size.  Use consistent naming.
4422         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
4423         comparison order for consistency.  Use generic integer node to
4424         build the operator and fold the result.
4425
4426 2009-06-25  Vincent Celier  <celier@adacore.com>
4427
4428         * vms_data.ads: Minor comment change
4429
4430 2009-06-25  Gary Dismukes  <dismukes@adacore.com>
4431
4432         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
4433         assignment statement to targeting a caller-provided object when the
4434         result type is an interface type.
4435
4436         * exp_ch6.adb (Expand_Call): Remove redundant test of
4437         Is_Limited_Interface (Is_Inherently_Limited is sufficient).
4438         (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
4439
4440         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
4441         to OK_For_Limited_Init.
4442
4443         * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
4444         condition so that True is returned for all limited interfaces, not
4445         just synchronized ones. Ignore components of an interface type when
4446         checking for limited components (such a component can be a parent
4447         component).
4448
4449         * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
4450         (OK_For_Limited_Init): Add type parameter.
4451
4452         * sem_ch3.adb (Check_Initialization): Add type in call to
4453         OK_For_Limited_Init.
4454         (OK_For_Limited_Init): Add new type param in call to
4455         OK_For_Limited_Init_In_05.
4456         (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
4457         nonlimited type when the context type is a limited interface. Add type
4458         on recursive calls.
4459
4460         * sem_ch4.adb (Analyze_Allocator): Add type in call to
4461         OK_For_Limited_Init.
4462
4463         * sem_ch6.adb (Check_Limited_Return): Add type in call to
4464         OK_For_Limited_Init.
4465
4466         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
4467         OK_For_Limited_Init.
4468         (Instantiate_Object): Add type in call to OK_For_Limited_Init.
4469
4470         * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
4471         class-wide interface, get the base type before applying Etype, in order
4472         to account for class-wide subtypes.
4473
4474 2009-06-25  Emmanuel Briot  <briot@adacore.com>
4475
4476         * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
4477         prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
4478         between gnatmake and gprbuild.
4479         (Naming_Data): Removed, no longer used
4480         (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
4481         needed locally in one subprogram, no need to store forever in the
4482         structure.
4483         (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
4484         a similar role.
4485         (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
4486         Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
4487         Spec_Suffix_Id_Of): removed, no longer used.
4488
4489 2009-06-25  Javier Miranda  <miranda@adacore.com>
4490
4491         * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
4492         types on qualified expression in calls to imported C++ constructors.
4493
4494         * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
4495         imported C++ constructors.
4496
4497 2009-06-25  Sergey Rybin  <rybin@adacore.com>
4498
4499         * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
4500
4501 2009-06-25  Vincent Celier  <celier@adacore.com>
4502
4503         * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
4504         provided, on Windows change all '/' to '\'.
4505
4506         * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
4507         used. Minor comment changes
4508
4509         * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
4510         Remove_Forbidden_File_Name.
4511
4512 2009-06-25  Quentin Ochem  <ochem@adacore.com>
4513
4514         * prj.ads (Unit_Index): Now general access type.
4515
4516 2009-06-25  Pascal Obry  <obry@adacore.com>
4517
4518         * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
4519
4520 2009-06-25  Emmanuel Briot  <briot@adacore.com>
4521
4522         * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
4523         prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
4524         computed efficiently from the other fields.
4525         (Object_To_Global_Archive): New subprogram
4526         (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
4527         (Override_Kind): Fix handling of separates in Ada.
4528         (Create_Mapping_File): Remove duplicate code
4529         (Naming_Data.Implementation_Exception, Specification_Exception):
4530         field removed, since never used.
4531         (Naming_Data.Specs, .Bodies): field removed, since this is only
4532         used while processing the project and is not needed once the tree
4533         is in memory. This brings Naming_Data and Lang_Naming_Data
4534         closer (same content now, but different use still).
4535
4536 2009-06-25  Pascal Obry  <obry@adacore.com>
4537
4538         * sem_ch4.adb: Minor reformatting.
4539
4540         * a-strsea.adb: Fix confusion between 'Length and 'Last.
4541
4542 2009-06-25  Ed Schonberg  <schonberg@adacore.com>
4543
4544         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
4545         Unchecked_Access): If the context is an interface type, and the prefix
4546         is of the corresponding class-wide type, do not insert a conversion
4547         because the pointer displacement has already taken place, and we must
4548         retain the class-wide type in a dispatching context.
4549
4550 2009-06-25  Emmanuel Briot  <briot@adacore.com>
4551
4552         * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
4553         the previous source file.
4554         (Create_Mapping): Iterate on sources rather than on units.
4555
4556 2009-06-25  Emmanuel Briot  <briot@adacore.com>
4557
4558         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
4559         prj-env.adb, prj-env.ads (Slash): removed, no longer used
4560         (Source_Data): no longer use Path.Name to point to a locally removed
4561         file. Instead we use the field Locally_Removed which is clearer
4562
4563 2009-06-25  Arnaud Charlet  <charlet@adacore.com>
4564
4565         * gcc-interface/Make-lang.in: Remove references to sem_maps.o
4566
4567         * sem_maps.adb, sem_maps.ads: Removed, not used.
4568
4569 2009-06-25  Ed Falis  <falis@adacore.com>
4570
4571         * s-vxwext-rtp.ads: Add missing declaration
4572
4573 2009-06-25  Matthew Gingell  <gingell@adacore.com>
4574
4575         * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
4576         speed up unmapped case.
4577
4578 2009-06-25  Vincent Celier  <celier@adacore.com>
4579
4580         * prj-nmsc.adb (Check): Change error message for illegal abstract
4581         projects.
4582
4583 2009-06-25  Robert Dewar  <dewar@adacore.com>
4584
4585         * gnat_ugn.texi: Add note on use of -gnatct for ASIS
4586
4587 2009-06-25  Emmanuel Briot  <briot@adacore.com>
4588
4589         * fmap.ads: Add documentation on mapping files
4590
4591 2009-06-25  Robert Dewar  <dewar@adacore.com>
4592
4593         * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
4594         reformatting
4595
4596 2009-06-24  Robert Dewar  <dewar@adacore.com>
4597
4598         * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
4599
4600         * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
4601         case.
4602         (Index): Ditto.
4603
4604 2009-06-24  Ed Schonberg  <schonberg@adacore.com>
4605
4606         * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
4607         present when checking whether a call may be interpreted as an indexing
4608         of the result of a call.
4609
4610         * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
4611         body for a null procedure on the freeze actions for the procedure, so
4612         that it will be analyzed at the proper place without premature freezing
4613         of actuals.
4614
4615         * sem_ch3.adb (Check_Completion): Code cleanup. 
4616         Do not diagnose a null procedure without a body, if previous errors
4617         have disabled expansion.
4618
4619 2009-06-24  Doug Rupp  <rupp@adacore.com>
4620
4621         * init.c [VMS] Resignal C$_SIGKILL
4622
4623 2009-06-24  Ed Falis  <falis@adacore.com>
4624
4625         * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
4626         Define ERROR in body for VxWorks 6 kernel
4627
4628 2009-06-24  Pascal Obry  <obry@adacore.com>
4629
4630         * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
4631         in [Send/Receive]_Socket.
4632
4633 2009-06-24  Emmanuel Briot  <briot@adacore.com>
4634
4635         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
4636         prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
4637         to several subprograms.
4638         (Source_Data.Other_Part): Removed, since can be computed from the
4639         language.
4640         (Other_Part): New subprogram.
4641
4642 2009-06-24  Emmanuel Briot  <briot@adacore.com>
4643
4644         * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
4645         the full base name of the file when the suffix doesn't start with a '.'.
4646
4647 2009-06-24  Vincent Celier  <celier@adacore.com>
4648
4649         * prj-nmsc.adb (Check): A project declared abstract is legal if no
4650         attribute Source_Dirs, Source_Files, Source_List_File or Languages is
4651         declared.
4652
4653 2009-06-24  Robert Dewar  <dewar@adacore.com>
4654
4655         * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
4656         prj-env.adb: Minor reformatting
4657
4658 2009-06-24  Ed Falis  <falis@adacore.com>
4659
4660         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
4661         s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
4662         s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
4663         support for VxWorks SMP.
4664
4665         * gcc-interface/Make-lang.in: Update dependencies
4666
4667 2009-06-24  Emmanuel Briot  <briot@adacore.com>
4668
4669         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4670         prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
4671         no longer useful.
4672         (Source_Data.Lang_Kind): Removed, since it duplicates information
4673         already available through Language.Config.
4674         (Source_Data.Compile): Removed, since information is already available
4675         through the language.
4676         (Is_Compilable): New subprogram.
4677         (Source_Data.Dependency): Removed, since already available through
4678         the language.
4679         (Source_Data.Object_Exist, Object_Linked): Removed since available
4680         through the language already.
4681         (Unit_Data.File_Names): Is now also set in multi_language mode, to
4682         bring the two modes closer in the resulting data structures.
4683         (Source_Data.Unit): Now a direct pointer to the unit data, rather than
4684         just the name that would point into a hash table.
4685         (Get_Language_From_Name): New subprogram.
4686
4687 2009-06-24  Javier Miranda  <miranda@adacore.com>
4688
4689         * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
4690         visible through limited-with context clauses. In addition, avoid an
4691         extra tag check that is not required when the class-wide
4692         designated types of the operand and target types are
4693         the same entity.
4694         (Tagged_Membership): Handle entities from the limited view.
4695
4696 2009-06-24  Emmanuel Briot  <briot@adacore.com>
4697
4698         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
4699         prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
4700         (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
4701         different vocabularies for similar concepts (Impl/Body_Part and
4702         Spec/Specification).
4703         (Unit_Data): now points directly to a Source_Id, rather than duplicating
4704         some of the information in File_Name_Data. This also saves a bit of
4705         memory. However, since we are now using a pointer we need to test
4706         for null explicitly in several places of the code
4707
4708 2009-06-24  Javier Miranda  <miranda@adacore.com>
4709
4710         * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
4711         from processing the type conversion when the node is
4712         replaced by an N_Raise_Program_Error node.
4713
4714 2009-06-24  Hristian Kirtchev  <kirtchev@adacore.com>
4715
4716         * sem_ch6.adb (Designates_From_With_Type): New routine.
4717         (Process_Formals): Since anonymous access types are no longer flagged
4718         as from with types, traverse the designated type to determine whether
4719         it is coming from a limited view.
4720
4721         * sem_res.adb: Remove with and use clauses for Sem_Ch10.
4722         (Full_Designated_Type): Use Available_View to extract the non-limited /
4723         full view of a type.
4724
4725 2009-06-24  Robert Dewar  <dewar@adacore.com>
4726
4727         * exp_ch6.adb: Minor reformatting
4728
4729         * layout.adb: Minor reformatting
4730
4731         * make.adb: Minor reformatting
4732
4733 2009-06-24  Thomas Quinot  <quinot@adacore.com>
4734
4735         * sem_ch10.adb: Minor code reorganization.
4736
4737 2009-06-24  Eric Botcazou  <ebotcazou@adacore.com>
4738
4739         * ttypes.ads: Minor editing.
4740         
4741 2009-06-24  Robert Dewar  <dewar@adacore.com>
4742
4743         * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
4744         in deciding to do call-by-copy code.
4745
4746 2009-06-24  Vincent Celier  <celier@adacore.com>
4747
4748         * make.adb (Gnatmake): To decide if an executable should be rebuilt,
4749         check if an externally built library file is more current than the
4750         executable.
4751
4752 2009-06-23  Olivier Hainque  <hainque@adacore.com>
4753
4754         * gcc-interface/utils.c (handle_vector_size_attribute): Import from
4755         c-common.c and populate in gnat_internal_attribute_table.
4756         
4757 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4758
4759         * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
4760         Available_View only when designated type of an anonymous access type
4761         is  limited view.
4762
4763 2009-06-23  Robert Dewar  <dewar@adacore.com>
4764
4765         * sem_ch10.adb: Minor reformatting
4766
4767         * ali.ads: Mino reformatting.
4768
4769         * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
4770         turning off inlining if ASIS mode active).
4771         
4772         * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
4773         This belongs in gnat1drv.adb after switches are scanned.
4774
4775 2009-06-23  Hristian Kirtchev  <kirtchev@adacore.com>
4776
4777         * sem_attr.adb: Add with and use clauses for Sem_Ch10.
4778         (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
4779         when dealing with class-wide types. Detect a legal shadow entity and
4780         retrieve its non-limited view.
4781
4782         * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
4783         subprogram to top package level from Intall_Limited_Withed_Unit.
4784         (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
4785         Add check which prevents the installation of a limited view if the
4786         non-limited view is already visible through a with clause.
4787         (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
4788         legal shadow entity which may occur in subprogram formals of anonymous
4789         access type.
4790
4791         * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
4792
4793         * sem_ch3.adb (Access_Definition): Remove the propagation of flag
4794         From_With_Type from the designated type to the generated anonymous
4795         access type. Remove associated comment.
4796
4797         * sem_res.adb Add with and use clauses for Sem_Ch10.
4798         (Full_Designated_Type): Detect a legal shadow entity and retrieve its
4799         non-limited view. Since the shadow entity may replace a regular
4800         incomplete type, return the available full view.
4801
4802 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4803
4804         * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
4805         incomplete type declarations. Previous code was potentially quadratic
4806         in the number of visible declarations in any package appearing in a
4807         limited_with_clause.
4808
4809 2009-06-23  Robert Dewar  <dewar@adacore.com>
4810
4811         * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
4812         xref_lib.adb: Minor reformatting
4813
4814 2009-06-23  Robert Dewar  <dewar@adacore.com>
4815
4816         * a-stzhas.adb: Provide dummy body to avoid build problems with old
4817         versions which did have a body for this unit.
4818
4819 2009-06-23  Vincent Celier  <celier@adacore.com>
4820
4821         * prj-attr.adb: Attribute names Initial_Required_Switches and
4822         Final_Required_Switches changed to Leading_Required_Switches and
4823         Trailing_Required_Switches.
4824
4825         * prj-nmsc.adb (Process_Compiler): Attribute names
4826         Initial_Required_Switches and Final_Required_Switches changed to
4827         Leading_Required_Switches and Trailing_Required_Switches.
4828
4829         * prj.ads (Language_Config): Component Initial_Required_Switches and
4830         Final_Required_Switches changed to Leading_Required_Switches and
4831         Trailing_Required_Switches.
4832
4833         * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
4834         Final_Required_Switches; add standard names Leading_Required_Switches
4835         and Trailing_Required_Switches.
4836
4837 2009-06-23  Thomas Quinot  <quinot@adacore.com>
4838
4839         * prj-conf.adb: Minor reformatting
4840
4841         * xref_lib.adb: Minor cleanup
4842
4843 2009-06-23  Emmanuel Briot  <briot@adacore.com>
4844
4845         * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
4846         prj-conf.ads (Check_Configuration): New parameter
4847         Compiler_Driver_Mandatory.
4848
4849 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4850
4851         * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
4852         context of the current unit has an inline pragma, the instance is not
4853         rewritten as the declaration of the package wrapper. Handle both
4854         possibilities when retrieving the visible subprogram that renames the
4855         instantiation itself.
4856
4857 2009-06-23  Javier Miranda  <miranda@adacore.com>
4858
4859         * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
4860         designated types referencing entities from the limited view.
4861
4862 2009-06-23  Robert Dewar  <dewar@adacore.com>
4863
4864         * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
4865
4866         * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
4867         small values
4868
4869         * prj-conf.ads: Minor reformatting
4870
4871         * prj-conf.adb: Minor reformatting
4872
4873 2009-06-23  Vasiliy Fofanov  <fofanov@adacore.com>
4874
4875         * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
4876         to correspond to the log format that gnatmem now expects.
4877
4878 2009-06-23  Vincent Celier  <celier@adacore.com>
4879
4880         * prj-attr.adb: New attributes Initial_Required_Switches,
4881         Final_Required_Switches and Object_File_Switches
4882         
4883         * prj-nmsc.adb (Process_Compiler): Process new attributes
4884         Name_Final_Required_Switches, Name_Initial_Required_Switches and
4885         Name_Object_File_Switches.
4886
4887         * prj.ads (Language_Config): New component
4888         Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
4889         Compiler_Final_Required_Switches and Object_File_Switches.
4890
4891         * snames.ads-tmpl: New standard names Initial_Required_Switches,
4892         Final_Required_Switches and Object_File_Switches
4893
4894 2009-06-23  Pascal Obry  <obry@adacore.com>
4895
4896         * s-strhas.adb, s-strhas.ads: Minor reformatting.
4897
4898 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4899
4900         * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
4901         not indicate that the enclosing unit needs a body.
4902
4903 2009-06-23  Emmanuel Briot  <briot@adacore.com>
4904
4905         * prj-conf.ads, prj-conf.adb: New files part of the project manager.
4906
4907 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4908
4909         * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
4910         primitive equality include it with its source name even if the
4911         operation is currently invisible, to make sure that the corresponding
4912         slot in the dispatch table is reserved for the internal equality
4913         subsequently generated during expansion.
4914
4915 2009-06-23  Matthew Gingell  <gingell@adacore.com>
4916
4917         * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
4918
4919 2009-06-22  Jose Ruiz  <ruiz@adacore.com>
4920
4921         * sysdep.c (__gnat_localtime_tzoff for RTX):
4922         SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
4923         GetTimeZoneInformation instead.
4924
4925 2009-06-22  Robert Dewar  <dewar@adacore.com>
4926
4927         * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
4928
4929 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
4930
4931         * sem_ch12.adb (Collect_Previous_Instances): Do not collect
4932         instantiations declared in a previous generic package body.
4933
4934 2009-06-22  Robert Dewar  <dewar@adacore.com>
4935
4936         * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
4937         restriction No_Direct_Boolean_Operators.
4938
4939 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4940
4941         * bindusg.adb: Minor fixes to gnatbind usage message
4942
4943         * sem_eval.adb: Minor reformatting
4944
4945 2009-06-22  Javier Miranda  <miranda@adacore.com>
4946
4947         * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
4948         freezing point the check on the use of abstract types in object
4949         declarations. Done to allow the declaration of C++ imported variables
4950         or constants whose type corresponds with an imported C++ classes for
4951         which the constructor is not imported.
4952
4953 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4954
4955         * sem_ch6.adb: Minor reformatting
4956
4957 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
4958
4959         * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
4960         component is constrained with an expression rather than with a
4961         discriminant of the enclosing type, use that expression when building
4962         the call to default-initialize the component, when the call is part of
4963         an aggregate with box initialization.
4964
4965 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
4966
4967         * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
4968         unconditional rather than a style check, because a formal name out of
4969         order is suspicious.
4970
4971 2009-06-22  Vincent Celier  <celier@adacore.com>
4972
4973         * prj-nmsc.adb (Locate_Directory): Indicate the project name when
4974         creating a directory automatically.
4975
4976 2009-06-22  Eric Botcazou  <ebotcazou@adacore.com>
4977
4978         * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
4979         untagged derived type, add a hidden component for every constrained
4980         discriminant of the parent type to keep record layout consistent.
4981
4982 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4983
4984         * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
4985         copy).
4986
4987 2009-06-22  Matthew Gingell  <gingell@adacore.com>
4988
4989         * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
4990         s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
4991         g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
4992         a-swuwha.adb: New unit System.String_Hash.  
4993         Refactor redundant cut and pasted hash functions with instances of a
4994         new generic hash function.
4995         Implement a new string hashing algorithm which appears in testing to
4996         be move effective than to previous approach.
4997
4998 2009-06-22  Ed Falis  <falis@adacore.com>
4999
5000         * sysdep.c: remove include for nfsLib.h and an NFS specific error
5001         message for VxWorks 653 vThreads: not supported by the OS.
5002
5003         * gsocket.h: disable sockets for VxWorks 653 vThreads.
5004
5005 2009-06-22  Robert Dewar  <dewar@adacore.com>
5006
5007         * sem_ch6.adb: Add ??? comment for bad use of Style_Check
5008
5009 2009-06-22  Robert Dewar  <dewar@adacore.com>
5010
5011         * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
5012         by Sloc_Range.
5013
5014         * freeze.adb: Minor comment updates
5015
5016         * s-valrea.adb (Bad_Based_Value): New procedure
5017         (Scan_Real): Raise exceptions with messages
5018
5019 2009-06-22  Matthew Gingell  <gingell@adacore.com>
5020
5021         * adaint.h: Complete previous change.
5022
5023 2009-06-22  Thomas Quinot  <quinot@adacore.com>
5024
5025         * exp_ch7.ads, exp_ch3.adb: Minor reformatting
5026
5027 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
5028
5029         * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
5030         enabled, emit warning when a non-controlling argument of the overriding
5031         operation appears out of place vis-a-vis of the formal of the
5032         overridden operation.
5033
5034 2009-06-22  Vincent Celier  <celier@adacore.com>
5035
5036         * gnatcmd.adb (Check_Files): Close temporary files after all file names
5037         have been written into it.
5038
5039 2009-06-22  Matthew Gingell  <gingell@adacore.com>
5040
5041         * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
5042         available.
5043
5044 2009-06-22  Thomas Quinot  <quinot@adacore.com>
5045
5046         * sem_disp.adb (Check_Direct_Call): Handle the case where the full
5047         view of the root type is visible at the point of the call.
5048
5049 2009-06-22  Pat Rogers  <rogers@adacore.com>
5050
5051         * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
5052
5053 2009-06-22  Jerome Lambourg  <lambourg@adacore.com>
5054
5055         * freeze.adb: Add comments.
5056
5057 2009-06-21  Thomas Quinot  <quinot@adacore.com>
5058
5059         * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
5060         sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
5061         Factor out code to new subprogram...
5062         (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
5063         for a default initialized variable.
5064         (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
5065         entity that has an associated freeze node.
5066         (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
5067         If there is an init call for the object, defer it to the object freeze
5068         point.
5069         (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
5070         name clash with new subprogram introduced in Exp_Util.
5071
5072 2009-06-21  Robert Dewar  <dewar@adacore.com>
5073
5074         * einfo.ads: Minor reformatting
5075
5076 2009-06-21  Ed Falis  <falis@adacore.com>
5077
5078         * env.c (__gnat_environ): return NULL for vThreads - unimplemented
5079
5080 2009-06-21  Eric Botcazou  <ebotcazou@adacore.com>
5081
5082         * einfo.ads: Update comments.
5083
5084 2009-06-21  Hristian Kirtchev  <kirtchev@adacore.com>
5085
5086         * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
5087         where the controlling formal is of private class-wide type whose
5088         completion is a synchronized type can be converted into direct calls.
5089
5090 2009-06-21  Vincent Celier  <celier@adacore.com>
5091
5092         * gnatcmd.adb (Check_Files): When all sources of the project are to be
5093         indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
5094         of sources using -files=, so that the distinction can be made by the
5095         tool of a call with no source (to display the usage) from a call with
5096         a project file that contains no source.
5097
5098 2009-06-21  Jerome Lambourg  <lambourg@adacore.com>
5099
5100         * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
5101         case of VM convention arrays.
5102
5103 2009-06-20  Robert Dewar  <dewar@adacore.com>
5104
5105         * a-nudira.adb: Minor reformatting
5106
5107 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
5108
5109         * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
5110         expressions (possibly from a parent type) indicate that the scope of
5111         the new itypes is the initialization procedure being built.
5112
5113 2009-06-20  Robert Dewar  <dewar@adacore.com>
5114
5115         * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
5116         Needs_64, and now computed without anomolies for some dynamic types.
5117
5118 2009-06-20  Thomas Quinot  <quinot@adacore.com>
5119
5120         * sem_prag.adb: Minor reformatting
5121
5122         * exp_disp.ads: Minor reformatting
5123
5124 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
5125
5126         * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
5127         function call is a legal expression to initialize a limited object.
5128
5129         * exp_ch3.adb: Rename various freeze operations that perform expansion
5130         actions, to prevent confusion with subprograms in the freeze package.
5131
5132 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
5133
5134         * sem.adb (Walk_Library_Units): Check instantiations first.
5135
5136         * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
5137         private primitive if it is a function with a controlling result that is
5138         a type extension with progenitors.
5139
5140         * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
5141         a primitive operation of a synchronized tagged type that has a
5142         controlling result.
5143
5144 2009-06-20  Thomas Quinot  <quinot@adacore.com>
5145
5146         * einfo.ads: Fix typo.
5147
5148 2009-06-20  Ed Falis  <falis@adacore.com>
5149
5150         * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
5151
5152 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
5153
5154         * gcc-interface/trans.c (emit_check): Do not wrap up the result
5155         in a SAVE_EXPR.
5156         (protect_multiple_eval): Always protect complex expressions.
5157
5158 2009-06-19  Emmanuel Briot  <briot@adacore.com>
5159
5160         * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
5161         make sure we always return a name ending with a path separator.
5162
5163 2009-06-19  Javier Miranda  <miranda@adacore.com>
5164
5165         * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
5166         Save and restore the visibility of the parent when installed.
5167
5168 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
5169
5170         * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
5171         by Common which contains all these fields.
5172
5173         * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
5174         Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
5175         Remove code duplication in this package by means of calling the
5176         equivalent code in s-taprob.
5177
5178 2009-06-19  Robert Dewar  <dewar@adacore.com>
5179
5180         * a-einuoc.ads: Minor reformatting
5181
5182 2009-06-19  Ed Falis  <falis@adacore.com>
5183
5184         * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
5185         s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
5186
5187 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
5188
5189         * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
5190
5191 2009-06-19  Robert Dewar  <dewar@adacore.com>
5192
5193         * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
5194         ranges
5195
5196         * checks.adb (Determine_Range): Move the test for generic types later.
5197
5198         * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
5199         cases.
5200         (Eval_Relational_Op): Fold more cases including string compares
5201
5202         * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
5203         function.
5204
5205 2009-06-19  Robert Dewar  <dewar@adacore.com>
5206
5207         * sem_type.ads, sem_ch12.adb: Minor reformatting
5208
5209         * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
5210
5211 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
5212
5213         * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
5214         primitive operation of a rivate extension whose controlling argument
5215         is an out parameter.
5216
5217         * sem.adb (Walk_Library_Units): exclude generic package declarations
5218         from check.
5219
5220 2009-06-19  Thomas Quinot  <quinot@adacore.com>
5221
5222         * i-vxwoio.ads: Add comments
5223
5224 2009-06-19  Thomas Quinot  <quinot@adacore.com>
5225
5226         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5227         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5228         g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
5229         (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
5230         (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
5231         Thin_Common.Socket_Ioctl.
5232         (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
5233         __gnat_socket_ioctl.
5234         (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
5235         argument after the file descriptor and request code.
5236
5237 2009-06-19  Robert Dewar  <dewar@adacore.com>
5238
5239         * checks.adb: Minor reformatting
5240
5241 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
5242
5243         * env.c (__gnat_environ): RTX does not support this functionality.
5244
5245 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
5246
5247         * sem.adb (Walk_Library_Items): Include bodies in the list of units to
5248         traverse, to account for front-end inlining and instantiations in a
5249         spec or in the main unit.
5250
5251 2009-06-19  Robert Dewar  <dewar@adacore.com>
5252
5253         * checks.adb (Determine_Range): Do not attempt to get range of generic
5254         type.
5255
5256 2009-06-19  Sergey Rybin  <rybin@adacore.com>
5257
5258         * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
5259         gnatmetric option for generating the schema file for gnatmetric XML
5260         output. Add corresponding VMS qualifier.
5261
5262 2009-06-19  Robert Dewar  <dewar@adacore.com>
5263
5264         * g-cgi.adb: Minor reformatting
5265
5266 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
5267
5268         * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
5269         signal code for SIGFPE and raise Program_Error for SIGILL.
5270
5271         * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
5272
5273 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
5274
5275         * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
5276         generic package if there is a visibility candidate that is declared in
5277         a regular package.
5278
5279 2009-06-18  Olivier Hainque  <hainque@adacore.com>
5280
5281         * system-aix64.ads: New file.
5282         * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
5283         64bit system.ads for ppc64 multilib variants.
5284
5285 2009-06-16  Robert Dewar  <dewar@adacore.com>
5286             Olivier Hainque  <hainque@adacore.com>
5287
5288         Relax constraints on Machine_Attribute argument types:
5289         * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
5290         missing type.
5291         (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
5292         * gcc-interface/decl.c (prepend_attributes): Accept static
5293         expressions of any type as attribute arguments, not only string
5294         literals.
5295         * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
5296         the relaxation of the restriction on the Info argument type.
5297         
5298 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
5299
5300         * gcc-interface/utils.c (record_builtin_type): Pass location
5301         argument to build_decl.
5302         (create_type_stub_decl): Same.
5303         (create_type_decl): Same.
5304         (create_var_decl_1): Same.
5305         (create_field_decl): Same.
5306         (create_param_decl): Same.
5307         (create_label_decl): Same.
5308         (create_subprog_decl): Same.
5309         * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
5310         * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
5311         argument to create_artificial_label.
5312         (Loop_Statement_to_gnu): Same.
5313         (Subprogram_Body_to_gnu): Same.
5314         (gnat_gimplify_stmt): Same.
5315
5316 2009-06-11  Richard Henderson  <rth@redhat.com>
5317
5318         * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
5319         OPT_gdwarfplus.
5320
5321 2009-06-11  Ed Schonberg  <schonberg@adacore.com>
5322
5323         * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
5324         accessibiliy check on access_to_subprogram in the context of an
5325         anonymous access that is not an access parameter.
5326
5327 2009-06-11  Eric Botcazou  <ebotcazou@adacore.com>
5328
5329         * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
5330         
5331 2009-06-11  Quentin Ochem  <ochem@adacore.com>
5332
5333         * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
5334         comments for message handled by GPS.
5335
5336 2009-06-11  Matthew Gingell  <gingell@adacore.com>
5337
5338         * adaint.c: Use fopen64 instead of fopen on platforms where we know
5339         it's supported.
5340
5341 2009-06-11  Pascal Obry  <obry@adacore.com>
5342
5343         * g-cgi.ads: Fix comment typo.
5344
5345         * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
5346
5347 2009-06-10  Eric Botcazou  <ebotcazou@adacore.com>
5348
5349         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
5350         a reference to the original type for the type of the field of the
5351         XVS type.
5352         (maybe_pad_type): Likewise.
5353
5354         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
5355         common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
5356         Pass correctly typed arguments to create_field_decl.
5357         <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
5358         case of contrained discriminants as well.  Use the padded base type
5359         in the other case as well.  Rename temporary variable.  Tweak test.
5360         Factor common access pattern.  Set GNU_SIZE only once.
5361
5362 2009-06-09  Olivier Hainque  <hainque@adacore.com>
5363
5364         * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
5365         helper for build_call_alloc_dealloc with arguments to be interpreted
5366         identically.  Process the case where a GNAT_PROC to call is provided.
5367         (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
5368         and return an allocator for DATA_SIZE bytes aimed at containing a
5369         DATA_TYPE object, using the default __gnat_malloc allocator.  Honor
5370         DATA_TYPE alignments greater than what the latter offers.
5371         (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
5372         release a DATA_TYPE object designated by DATA_PTR using the
5373         __gnat_free entry point.
5374         (build_call_alloc_dealloc): Expect object data type instead of naked
5375         alignment constraint. Use the new helpers.
5376         (build_allocator): Remove special processing for the super-aligned
5377         case, now handled by build_call_alloc_dealloc.  Pass data
5378         type instead of the former alignment argument, as expected by the new
5379         interface.
5380         * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
5381         and comment.
5382         * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
5383         Remove special processing for the super-aligned case, now handled
5384         by build_call_alloc_dealloc.  Pass data type instead of the former
5385         alignment argument, as expected by the new interface.
5386         
5387 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
5388
5389         * lib-writ.adb (flag_compare_debug): Import.
5390         (Write_ALI): Skip during -fcompare-debug-second.
5391
5392 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
5393
5394         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
5395         adjusting the discriminant nodes in an extension, use the full view
5396         of the parent subtype if it is of a private kind.
5397
5398 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
5399
5400         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
5401         _Parent field, if any, to the record before adding the other fields.
5402         <E_Record_Subtype>: Put the _Controller field before the other fields
5403         except for the _Tag or _Parent fields.
5404         (components_to_record): Likewise.  Retrieve the _Parent field from the
5405         record type.
5406
5407 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
5408
5409         * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
5410         remove unused parameter and simplify.
5411         (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS.  Factor
5412         common predicate.  Rewrite loop for clarity.  Use GNU_TYPE directly
5413         as context for all discriminants.  Fix formatting nits.
5414         <E_Record_Subtype>: Add cosmetic 'break'.  Test Has_Discriminants
5415         before Discriminant_Constraint.  Adjust for above renaming.  Do not
5416         set GNU_TYPE more than once.
5417         (elaborate_entity): Test Has_Discriminants on the entity and use
5418         Implementation_Base_Type.
5419         (components_to_record): Rename component_list to gnat_component_list.
5420         Retrieve the _Parent field from the list.  Fix nits in comments.
5421         Clarify logic in loop.  Pass correct arguments to create_field_decl.
5422
5423 2009-06-02  Eric Botcazou  <ebotcazou@adacore.com>
5424
5425         * gcc-interface/Make-lang.in: Fix formatting.
5426
5427 2009-06-01  Olivier Hainque  <hainque@adacore.com>
5428             Eric Botcazou  <ebotcazou@adacore.com>
5429         
5430         * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
5431         to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
5432         on the result if at least one of the input fields couldn't be output
5433         as a static constant any more.
5434
5435 2009-06-01  Olivier Hainque  <hainque@adacore.com>
5436             Eric Botcazou  <ebotcazou@adacore.com>
5437         
5438         * gcc-interface/utils2.c (gnat_build_constructor): Factor
5439         out code.  Use initializer_constant_valid_for_bitfield_p and
5440         CONSTRUCTOR_BITFIELD_P for bit-fields.
5441
5442 2009-05-26  Ian Lance Taylor  <iant@google.com>
5443
5444         * gcc-interface/Makefile.in (COMPILER): Define.
5445         (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
5446         (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
5447         (seh_init.o, tracebak.o): Likewise.
5448         * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
5449         (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
5450         (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
5451         (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
5452         (ada/utils2.o): Likewise.
5453
5454 2009-05-24  Olivier Hainque  <hainque@adacore.com>
5455
5456         * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
5457         * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
5458         Add -auxbase variants to the list of recognized internal switches.
5459         * back_end.adb (Scan_Back_End_Switches): Use the new functions and
5460         adjust comments.
5461         * lib.ads: Make comment on internal GCC switches more general.
5462         * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
5463         as for C.       
5464         
5465 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5466
5467         * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
5468
5469 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5470
5471         * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
5472         types.
5473
5474 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5475
5476         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
5477         original type because of the alignment when there is an address clause.
5478
5479 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5480
5481         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
5482         discriminants affect the shape of the subtype, retrieve the GCC type
5483         directly from the original field if the GNAT types for the field and
5484         the original field are the same.
5485
5486 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
5487
5488         * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
5489         New macros.
5490         (TYPE_RM_VALUES): Likewise.
5491         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
5492         (SET_TYPE_RM_SIZE): New macro.
5493         (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
5494         (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
5495         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
5496         * gcc-interface/gigi.h (create_range_type): Declare.
5497         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
5498         Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
5499         <E_Signed_Integer_Subtype>: Build a regular integer type first and
5500         then set the RM bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
5501         <E_Floating_Point_Subtype>: Build a regular floating-point type first
5502         and then set the RM bounds.
5503         <E_Array_Type>: Use create_range_type instead of build_range_type.
5504         <E_Array_Subtype>: Build a regular integer type first and then set
5505         the RM bounds for the extra subtype.
5506         <E_String_Literal_Subtype>: Use create_range_type instead of
5507         build_range_type.
5508         <all>: Set the RM bounds for enumeration types and the GCC bounds for
5509         floating-point types.
5510         (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
5511         (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
5512         to set the bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
5513         (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
5514         types and with RM bounds for subtypes.
5515         * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
5516         (gnat_print_type) <REAL_TYPE>: New case.
5517         <ENUMERAL_TYPE>: Fall through to above case.
5518         (gnat_get_subrange_bounds): New function.
5519         * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
5520         TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
5521         * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
5522         for booleans.  Adjust and use SET_TYPE_RM_SIZE to set the RM size.
5523         (create_range_type): New function.
5524         (create_param_decl): Build a regular integer type first and then set
5525         the RM bounds for the extra subtype.
5526         (unchecked_convert): Remove kludge for 'Valid.
5527         * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
5528         the index to sizetype instead of TYPE_DOMAIN.
5529
5530 2009-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5531
5532         * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
5533         parameter and move check for static expression to...
5534         (elaborate_expression): ...here.  Adjust call to above function.
5535         (gnat_to_gnu_entity): Likewise for all calls.  Use correct arguments
5536         in calls to elaborate_expression.
5537         (elaborate_entity): Likewise.
5538         (substitution_list): Likewise.
5539         (maybe_variable): Fix formatting.
5540         (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
5541         missing guard.
5542         * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
5543
5544 2009-05-07  Arnaud Charlet  <charlet@adacore.com>
5545
5546         * gcc-interface/Make-lang.in: Update dependencies.
5547
5548 2009-05-06  Laurent GUERBY  <laurent@guerby.net>
5549
5550         * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
5551         Define sa_handler_pos.
5552         * s-osinte-linux.ads: Use it.
5553         * s-linux-mipsel.ads: New.
5554         * system-linux-mips64el.ads: New.
5555         * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
5556         mips64el-linux.
5557
5558 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
5559
5560         * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
5561         targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
5562         opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
5563         (Tagged_Type_Expansion): New flag.
5564         Replace use of VM_Target related to tagged types expansion by
5565         Tagged_Type_Expansion, since tagged type expansion is not necessarily
5566         linked to VM targets.
5567
5568 2009-05-06  Robert Dewar  <dewar@adacore.com>
5569
5570         * sem_attr.adb: Add processing for Standard'Compiler_Version
5571
5572         * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
5573         skipping.
5574         (Expr_First_Char): Add ??? comment that paren skipping needs work
5575         (Expr_Last_Char): Add ??? comment that paren skipping needs work
5576
5577         * exp_attr.adb: Add processing for Compiler_Version
5578
5579         * sem_attr.adb: New attribute Compiler_Version
5580
5581         * snames.ads-tmpl: Add entries for Compiler_Version attribute
5582
5583         * gnat_rm.texi: Document Compiler_Version attribute
5584
5585 2009-05-06  Robert Dewar  <dewar@adacore.com>
5586
5587         * errout.adb: Minor reformatting
5588
5589         * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
5590         sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
5591         styleg.adb: Add stylized comments to error messages that are included
5592         in the codefix circuitry of IDE's such as GPS.
5593
5594 2009-05-06  Sergey Rybin  <rybin@adacore.com>
5595
5596         * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
5597         new form of the rule parameter that allows to specify the suffix for
5598         access-to-access type names.
5599
5600 2009-05-06  Robert Dewar  <dewar@adacore.com>
5601
5602         * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
5603         out parameter assigned when exception handlers are present.
5604
5605         * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
5606         assignments on exit.
5607
5608         * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
5609         sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
5610         prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
5611         par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
5612         messages that are included in the codefix circuitry of IDE's such as
5613         GPS.
5614
5615         * sinput.ads, sinput.adb (Expr_First_Char): New function
5616         (Expr_Last_Char): New function
5617
5618 2009-05-06  Sergey Rybin  <rybin@adacore.com>
5619
5620         * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
5621         Add formal definition for extra exit point metric
5622
5623 2009-05-06  Pascal Obry  <obry@adacore.com>
5624
5625         * adaint.c: Support for setting attributes on unicode filename on
5626         Windows.
5627
5628 2009-05-06  Robert Dewar  <dewar@adacore.com>
5629
5630         * sem_warn.adb: Minor reformatting
5631
5632 2009-05-06  Javier Miranda  <miranda@adacore.com>
5633
5634         * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
5635         not have discriminants or components with default expressions.
5636         (Analyze_Pragma): For pragma CPP_Class check that imported types
5637         have no discriminants and components have no default expression.
5638
5639         * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
5640         class-wide types in the expression of a record component association.
5641
5642 2009-05-06  Sergey Rybin  <rybin@adacore.com>
5643
5644         * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
5645
5646         * gnat_ugn.texi: Add description for the new extra exit points metric
5647         (gnatmetric section).
5648
5649 2009-05-06  Robert Dewar  <dewar@adacore.com>
5650
5651         * s-fileio.adb: Minor comment update
5652
5653         * sem_ch8.adb: Minor reformatting
5654
5655         * exp_ch3.adb: Update comments.
5656
5657 2009-05-06  Tristan Gingold  <gingold@adacore.com>
5658
5659         * init.c, s-osinte-darwin.ads: Reduce alternate stack size
5660
5661 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
5662
5663         * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
5664         Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
5665
5666         * gcc-interface/Make-lang.in: Update dependencies
5667
5668 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5669
5670         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
5671         change. The context clause of a generic instance declaration must be
5672         preserved until the end of the compilation, because it may have to be
5673         installed/removed repeatedly.
5674         The latest change to sem.adb ensures that the context of both spec and
5675         body of an instance is traversed before the instance itself, making
5676         this patch redundant.
5677
5678 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
5679
5680         * sem_aggr.adb: Fix typo.
5681
5682 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5683
5684         * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
5685         declaration, do not adjust if the declaration is to be rewritten into
5686         a renaming.
5687
5688 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5689
5690         * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
5691         discriminant part.
5692
5693 2009-05-06  Bob Duff  <duff@adacore.com>
5694
5695         * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
5696         otherwise the compiler would be allowed to optimize away the cleanup
5697         code.
5698
5699 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
5700
5701         * gnat_ugn.texi: Fix typo.
5702
5703 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5704
5705         * g-debuti.adb: Minor reformatting
5706
5707         * exp_attr.adb: Minor reformatting
5708
5709 2009-05-06  Robert Dewar  <dewar@adacore.com>
5710
5711         * sem_aggr.adb: Minor reformatting.
5712
5713         * g-socthi-vms.adb: Minor reformatting
5714
5715 2009-05-06  Bob Duff  <duff@adacore.com>
5716
5717         * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
5718         (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
5719
5720 2009-05-06  Bob Duff  <duff@adacore.com>
5721
5722         * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
5723         flags.
5724
5725 2009-05-06  Javier Miranda  <miranda@adacore.com>
5726
5727         * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
5728         (Resolve_Extension_Aggregate): Do not reject C++ constructors in
5729         extension aggregates.
5730         (Resolve_Record_Aggregate): Add support for C++ constructors in
5731         extension aggregates.
5732
5733         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
5734         constructors in extension aggregates.
5735
5736 2009-05-06  Robert Dewar  <dewar@adacore.com>
5737
5738         * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
5739         clause.
5740
5741 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5742
5743         * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
5744         packed type, since on OpenVMS, struct msghdr is packed.
5745
5746 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5747
5748         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5749         call returning an unconstrained composite value, create the proper
5750         subtype for it, as is done for object dclarations with unconstrained
5751         nominal subtypes. Perform this transformation regarless of whether
5752         call comes from source.
5753
5754 2009-05-06  Robert Dewar  <dewar@adacore.com>
5755
5756         * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
5757         records
5758
5759         * gnat_rm.texi:
5760         Add documentation for pragma Implicit_Packing applied to record
5761         types.
5762
5763 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5764
5765         * sem.adb (Walk_Library_Items): Place all with_clauses of an
5766         instantiation on the spec, because late instance bodies may generate
5767         with_clauses for the instance body but are inserted in the instance
5768         spec.
5769
5770 2009-05-06  Emmanuel Briot  <briot@adacore.com>
5771
5772         * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
5773         support for returning the directory even if it doesn't exist. This is
5774         used for the object directory, since we are always setting it to a
5775         non-null value, and we should set it to an absolute name rather than a
5776         relative name for the sake of external tools that might depend on it.
5777         (Check_Library_Attributes): When Project.Library_Dir is known, check
5778         that the directory exists.
5779
5780 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5781
5782         * sem_attr.adb (Check_Dereference): If the prefix of an attribute
5783         reference is an implicit dereference, do not freeze the designated type
5784         if within a default expression or when preanalyzing a pre/postcondtion.
5785
5786 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5787
5788         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5789         call returning an unconstrained composite value, create the proper
5790         subtype for it, as is done for object dclarations with unconstrained
5791         nominal subtypes
5792
5793 2009-05-06  Robert Dewar  <dewar@adacore.com>
5794
5795         * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
5796         improvements
5797
5798         * freeze.adb: Minor reformatting
5799
5800 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5801
5802         * sem_ch3.adb (Access_Type_Declaration): An access type whose
5803         designated type is a limited view from a limited with clause (flagged
5804         From_With_Type) is not itself such a limited view.
5805
5806 2009-05-06  Emmanuel Briot  <briot@adacore.com>
5807
5808         * prj-nmsc.adb: Remove unused variable.
5809
5810         * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
5811         prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
5812         makeutl.ads, since not all users of prj.ads need this.
5813
5814 2009-05-06  Javier Miranda  <miranda@adacore.com>
5815
5816         * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
5817         constructor in case of aggregates whose type is a CPP_Class type.
5818
5819 2009-05-06  Robert Dewar  <dewar@adacore.com>
5820
5821         * sem_ch13.adb: Minor comment additions
5822
5823         * osint.adb: Minor reformatting
5824
5825 2009-05-06  Pascal Obry  <obry@adacore.com>
5826
5827         * initialize.c: On Windows, keep full pathname to expanded command
5828         line patterns.
5829
5830 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5831
5832         * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
5833         an aggregate with box default is of a discriminated private type, do
5834         not build a subaggregate for it.
5835         A proper call to the initialization procedure is generated for it.
5836
5837 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5838
5839         * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
5840         (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
5841         Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
5842         use standard array code for Standard.String.
5843         (Exp_Dist): Bump PolyORB s-parint API version to 3.
5844         (Rtsfind): New entities TA_Std_String, Unbounded_String.
5845
5846 2009-05-06  Robert Dewar  <dewar@adacore.com>
5847
5848         * g-comlin.ads: Minor reformatting
5849
5850         * xoscons.adb: Minor reformatting
5851
5852 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
5853
5854         * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
5855         Underlying_Type before retrieving the type definition for gathering
5856         components, to account for the case where the type is private.
5857
5858 2009-05-06  Tristan Gingold  <gingold@adacore.com>
5859
5860         * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
5861
5862 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5863
5864         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5865         g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
5866         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
5867         (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
5868         Windows versions): Fix incorrect base
5869         address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
5870         (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
5871         System.Address for the To parameter instead of a Sockaddr_In_Access, to
5872         achieve independance from AF_INET family, and also to allow this
5873         parameter to be retrieved from a Msghdr for the Windows case where
5874         these routines are used to implement C_Sendmsg and C_Recvmsg.
5875
5876 2009-05-06  Bob Duff  <duff@adacore.com>
5877
5878         * g-expect.adb, g-expect.ads: Minor reformatting
5879
5880         * sdefault.ads: Minor comment fix
5881
5882         * g-expect-vms.adb: Minor reformatting
5883
5884         * table.ads, table.adb (Append_All): New convenience procedure for
5885         appending a whole array.
5886
5887         * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
5888         box message. Call Osint.Dump_Source_File_Names to print out the file
5889         list, instead of rummaging around in various data structures.
5890
5891         * debug.adb: New switch -gnatd.n, to print source file names as they
5892         are read.
5893
5894         * alloc.ads: Add parameters for Osint.File_Name_Chars.
5895
5896         * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
5897         out source file names during a "bug box".
5898         (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
5899         (Read_Source_File): Print out the file name, if requested via -gnatd.n.
5900         If it's not part of the runtimes, store it for later printing by
5901         Dump_Source_File_Names.
5902
5903 2009-05-06  Javier Miranda  <miranda@adacore.com>
5904
5905         * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
5906         documentation and add reference to the GNAT user guide for further
5907         details.
5908
5909 2009-05-06  Javier Miranda  <miranda@adacore.com>
5910
5911         * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
5912         also wrong examples that use extension aggregates.
5913
5914 2009-05-06  Albert Lee  <lee@adacore.com>
5915
5916         * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
5917         of Msg_Iovlen_T for VMS.
5918
5919 2009-05-04  Laurent GUERBY  <laurent@guerby.net>
5920
5921         PR ada/38874
5922         * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
5923         
5924 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5925
5926         * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
5927         box-defaulted operator in an instantiation, when the type of the
5928         operands is not directly visible.
5929
5930 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
5931
5932         * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
5933         (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
5934         analysis of the ancestor part. Remove prohibition against limited
5935         interpretations of the ancestor expression in the case of Ada 2005.
5936         Revise error message in overloaded case, adding a message to cover
5937         the Ada 2005 case.
5938
5939 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5940
5941         * xoscons.adb: Minor reformatting
5942
5943 2009-04-29  Bob Duff  <duff@adacore.com>
5944
5945         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
5946         attribute_definition_clauses for the following attributes when the
5947         -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
5948         Storage_Size, Write. Otherwise, we get spurious errors (for example,
5949         missing Read attribute on remote types).
5950
5951         * gnat_ugn.texi: Document the change, and add a stern warning.
5952
5953 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5954
5955         * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
5956         disabled not just for the current scope, but for the innermost dynamic
5957         scope as well.
5958
5959 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5960
5961         * gcc-interface/Make-lang.in: Update dependencies
5962
5963 2009-04-29  Vincent Celier  <celier@adacore.com>
5964
5965         * prj-part.adb: Minor comment update
5966
5967 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5968
5969         * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
5970         box-initialized records with discriminated subcomponents that are
5971         constrained by discriminants of enclosing components. New subsidiary
5972         procedures Add_Discriminant_Values, Propagate_Discriminants.
5973
5974 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5975
5976         * g-socket.adb: Code clean up.
5977
5978 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
5979
5980         * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
5981         function entity, to cover the case of a parameterless function call
5982         that has not been resolved.
5983
5984 2009-04-29  Robert Dewar  <dewar@adacore.com>
5985
5986         * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
5987         reformatting and comment updates.
5988
5989 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5990
5991         * gnat_ugn.texi: Update some documentation about interfacing with C++
5992         Mention -fkeep-inline-functions.
5993
5994         * gnat_ugn.texi: Minor edits
5995
5996 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5997
5998         * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
5999         for a defaulted component of an enclosing aggregate, inherit the type
6000         from the component declaration of the enclosing type. 
6001
6002 2009-04-29  Albert Lee  <lee@adacore.com>
6003
6004         * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
6005         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
6006         (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
6007         msg_iovlen field in struct msghdr is 32 or 64 bits wide.
6008         Relocate the Msghdr record type from GNAT.Sockets.Thin to
6009         GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
6010         type for the Msg_Iovlen field.
6011
6012 2009-04-29  Vincent Celier  <celier@adacore.com>
6013
6014         * sinput-l.adb (Load_File): When preprocessing, set temporarily the
6015         Source_File_Index_Table entries for the source, to avoid crash when
6016         reporting an error.
6017
6018         * gnatcmd.adb (Test_If_Relative_Path): Use
6019         Makeutl.Test_If_Relative_Path.
6020         
6021         * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
6022         Including_RTS is True.
6023
6024         * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
6025         Including_RTS defaulted to False.
6026
6027         * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
6028         a default value.
6029
6030 2009-04-29  Javier Miranda  <miranda@adacore.com>
6031
6032         * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
6033
6034 2009-04-29  Javier Miranda  <miranda@adacore.com>
6035
6036         * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
6037         associated with dyamically tagged expressions if the expression
6038         initializing a tagged type corresponds with a non default CPP
6039         constructor.
6040         (OK_For_Limited_Init): CPP constructor calls are OK for initialization
6041         of limited type objects.
6042
6043         * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
6044         when a CPP constructor is called in an assignment. Disable also the
6045         error message associated with dyamically tagged expressions if the
6046         exporession initializing a tagged type corresponds with a non default
6047         CPP constructor.
6048
6049         * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
6050         non-default C++ constructors.
6051
6052         * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
6053
6054         * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
6055         non-default constructors.
6056         (Init_Proc): Add support for non-default constructors.
6057
6058         * exp_disp.adb (Set_Default_Constructor): Removed.
6059         (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
6060         but extending its functionality to handle non-default constructors.
6061
6062         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
6063         constructors. Minor code cleanup removing unrequired label and goto
6064         statement.
6065
6066         * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
6067         constructors.
6068         (Build_Init_Statements): Add support for non-default constructors.
6069         (Expand_N_Object_Declaration): Add support for non-default constructors.
6070         (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
6071         to Set_CPP_Constructors.
6072
6073         * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
6074         non-default constructors.
6075         Required to handle its use in build-in-place statements.
6076
6077         * gnat_rm.texi (CPP_Constructor): Document new extended use of this
6078         pragma for non-default C++ constructors and the new compiler support
6079         that allows the use of these constructors in record components, limited
6080         aggregates, and extended return statements.
6081
6082 2009-04-29  Vincent Celier  <celier@adacore.com>
6083
6084         * prj-part.adb (Parse_Single_Project): Do not attempt to find a
6085         project extending an abstract project.
6086
6087 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
6088
6089         * targparm.ads: Fix oversight.
6090
6091 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
6092
6093         * lib-xref.adb (Output_Overridden_Op): Follow several levels of
6094         derivation when necessary, to find the user-subprogram that is actally
6095         being overridden.
6096
6097 2009-04-29  Robert Dewar  <dewar@adacore.com>
6098
6099         * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
6100         components
6101
6102 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
6103
6104         * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
6105         primitive operation, rather than source line of synchronized type, when
6106         building the wrapper for a primitive operation that overrides an
6107         operation inherited from a progenitor, to improve the error message on
6108         duplicate declarations.
6109
6110         * sem_ch3.adb (Process_Full_View): Use new signature of
6111         Build_Wrapper_Spec.
6112
6113 2009-04-29  Robert Dewar  <dewar@adacore.com>
6114
6115         * prj-nmsc.ads: Minor reformatting
6116
6117 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
6118
6119         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
6120         expression on the existing parent If statement.
6121
6122 2009-04-29  Robert Dewar  <dewar@adacore.com>
6123
6124         * prj-proc.adb, prj.ads: Minor reformatting
6125
6126 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
6127
6128         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
6129         existing parent If statement on the newly created one.
6130
6131 2009-04-29  Emmanuel Briot  <briot@adacore.com>
6132
6133         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
6134         prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
6135         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
6136         (Set_In_Configuration, In_Configuration): Removed.
6137         Replaced by an extra parameter Is_Config_File in several parameter to
6138         avoid global variables to store the state of the parser.
6139
6140 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
6141
6142         * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
6143         with_clauses generated for the same unit through rtsfind, and that
6144         appear in the context of different units.
6145
6146         * rtsfind.adb: New attribute First_Implicit_With, component of the
6147         Unit_Record that stores information about a unit loaded through rtsfind.
6148
6149 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
6150
6151         * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
6152         (other conditions permitting), so that abstract stream subprograms will
6153         be declared for them.
6154
6155 2009-04-29  Bob Duff  <duff@adacore.com>
6156
6157         * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
6158
6159         * g-expect.ads: Minor comment fixes.
6160
6161 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
6162
6163         * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
6164         dispatching operation is a body without previous spec, update the list
6165         of primitive operations to ensure that cross-reference information is
6166         up-to-date.
6167
6168 2009-04-29  Albert Lee  <lee@adacore.com>
6169
6170         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6171         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
6172         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
6173         (GNAT.Sockets.Thin.C_Readv,
6174         GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
6175         (GNAT.Sockets.Thin.C_Recvmsg,
6176         GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
6177         sendmsg(2).  
6178         (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
6179         C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
6180
6181 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
6182
6183         * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
6184         operation is a body without previous spec, update the list of
6185         primitive operations to ensure that cross-reference information is
6186         up-to-date.
6187
6188         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
6189         new compilation unit node for the instance declaration, keep the
6190         context items of the original unit on it, so that the context of the
6191         instance body only holds the context inherited from the generic body.
6192
6193 2009-04-29  Bob Duff  <duff@adacore.com>
6194
6195         * sem_res.adb: Minor comment fix.
6196
6197 2009-04-29  Thomas Quinot  <quinot@adacore.com>
6198
6199         * sem_elim.adb: Minor reformatting
6200
6201 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
6202
6203         * exp_aggr.adb (Convert_To_Positional): if the current unit is a
6204         predefined unit, allow arbitrary number of components in static
6205         aggregate, to ensure that the same level of constant folding applies
6206         for Ada 95 and Ada 05 versions of the file.
6207
6208 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
6209
6210         * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
6211         information: no need for full scope check.
6212         (Eliminate_Error): Do not emit error in a generic context.
6213
6214 2009-04-29  Ed Falis  <falis@adacore.com>
6215
6216         * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
6217         VxWorks 653 POS does not support rmdir.
6218
6219 2009-04-29  Matteo Bordin  <bordin@adacore.com>
6220
6221         * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
6222         results are printed.
6223
6224 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
6225
6226         * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
6227         unused assignment.
6228
6229 2009-04-29  Thomas Quinot  <quinot@adacore.com>
6230
6231         * make.adb: Minor reformatting.
6232         Minor code reorganization throughout.
6233
6234 2009-04-29  Matteo Bordin  <bordin@adacore.com>
6235
6236         * s-stausa.ads: Changed visibility of type Task_Result: moved to
6237         public part to give application visibility over it.
6238         This is for future improvement and to build a public API on top of it.
6239         Changed record components name of type Task_Result to reflect the new
6240         way of reporting. 
6241
6242         * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
6243         reporting Stack usage.
6244
6245         * gnat_ugn.texi: Update doc of stack usage report.
6246
6247         * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
6248
6249         * Makefile.rtl: Add new run-time files.
6250
6251 2009-04-29  Pascal Obry  <obry@adacore.com>
6252
6253         * initialize.c: Do not expand quoted arguments.
6254
6255 2009-04-29  Emmanuel Briot  <briot@adacore.com>
6256
6257         * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
6258
6259         * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
6260          Prj.Ultimate_Extending_Project_Of
6261
6262 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
6263
6264         * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
6265         Amendment type, add the with_clause for Finalization.List_Controller
6266         only if the current context is a package body.
6267
6268 2009-04-29  Thomas Quinot  <quinot@adacore.com>
6269
6270         * sem_ch12.adb: Minor reformatting
6271
6272         * sem_aggr.adb: Minor reformatting
6273
6274         * sem_ch6.adb, sem_cat.ads: Minor reformatting
6275
6276         * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
6277
6278 2009-04-29  Quentin Ochem  <ochem@adacore.com>
6279
6280         * prj.ads (Source_Id): Now general pointer type.
6281
6282 2009-04-29  Thomas Quinot  <quinot@adacore.com>
6283
6284         * exp_ch7.adb, rtsfind.adb: Minor reformatting
6285
6286         * sem_res.adb: Minor reformatting
6287
6288 2009-04-29  Thomas Quinot  <quinot@adacore.com>
6289
6290         * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
6291         operands is static only if it is a predefined concatenation operator.
6292
6293         * sem_util.adb: Minor reformatting
6294
6295         * sem_ch12.adb (Save_References): When propagating semantic information
6296         from generic copy back to generic template, for the case of an
6297         identifier that has been rewritten to an explicit dereference whose
6298         prefix is either an object name or a parameterless funcion call
6299         denoting a global object or function, properly capture the denoted
6300         global entity: perform the corresponding rewriting in the template,
6301         and point the rewritten identifier to the correct global entity (not
6302         to the associated identifier in the generic copy).
6303
6304 2009-04-29  Robert Dewar  <dewar@adacore.com>
6305
6306         * rtsfind.adb, prj-env.adb: Minor reformatting
6307         Minor code reorganization
6308
6309 2009-04-29  Emmanuel Briot  <briot@adacore.com>
6310
6311         * make.adb: Fix comment
6312
6313         * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
6314         is given as argument, as might happen in gnatmake.
6315
6316 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
6317
6318         * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
6319         an abstract operation of a progenitor is not properly overridden by an
6320         operation of a derived synchronized type.
6321
6322 2009-04-29  Robert Dewar  <dewar@adacore.com>
6323
6324         * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
6325         prj-proc.adb: Minor reformatting
6326         Minor code reorganization
6327
6328 2009-04-29  Bob Duff  <duff@adacore.com>
6329
6330         * exp_ch7.adb (Build_Final_List): For an access type that designates a
6331         Taft Amendment type, if the access type needs finalization, make sure
6332         the implicit with clause for List_Controller occurs on the package spec.
6333
6334         * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
6335         with's created for the pseudo-children of Text_IO and friends. In
6336         particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
6337         Ada.Text_IO.Integer_IO both with-ing each other.
6338
6339         * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
6340         oddball cases when pragma Extend_System is used.
6341
6342         * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
6343         the case where a package spec instantiates a generic whose body with's
6344         this package, so Walk_Library_Items won't complain about cyclic with's.
6345
6346 2009-04-29  Emmanuel Briot  <briot@adacore.com>
6347
6348         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
6349         prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
6350         mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
6351         (Project_Id): now a real pointer to Project_Data, instead of an index
6352         into the Projects_Table. This simplifies the API significantly, avoiding
6353         extra lookups in this table and the need to pass the Project_Tree_Ref
6354         parameter in several cases
6355
6356 2009-04-29  Nicolas Setton  <setton@adacore.com>
6357
6358         * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
6359         darwin.
6360
6361 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
6362
6363         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
6364         back kludge.
6365
6366 2009-04-24  Robert Dewar  <dewar@adacore.com>
6367
6368         * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
6369         clean.adb: Minor reformatting.
6370         Minor code reorganization and message improvement.
6371
6372 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6373
6374         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
6375         (Alternate_Languages): now implemented as a malloc-ed list rather
6376         than through a table.
6377
6378 2009-04-24  Thomas Quinot  <quinot@adacore.com>
6379
6380         * sem_res.adb (Static_Concatenation): Simplify predicate to make it
6381         accurately handle cases such as "lit" & "lit" and
6382         "lit" & static_string_constant
6383
6384 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6385
6386         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
6387         prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
6388         removed. Lists of projects are now implemented via standard malloc
6389         rather than through the table.
6390
6391 2009-04-24  Thomas Quinot  <quinot@adacore.com>
6392
6393         * sem_ch12.adb: Minor reformatting
6394
6395         * g-trasym.adb: Minor reformatting
6396
6397         * exp_ch6.adb: Minor reformatting
6398
6399 2009-04-24  Robert Dewar  <dewar@adacore.com>
6400
6401         * layout.adb (Layout_Type): For packed array type, copy unset
6402         size/alignment fields from the referenced Packed_Array_Type.
6403
6404 2009-04-24  Bob Duff  <duff@adacore.com>
6405
6406         * lib-load.adb (Make_Instance_Unit): Revert previous change, no
6407         longer needed after sem_ch12 changes.
6408
6409         * sem.adb (Walk_Library_Items): Include with's in some debugging
6410         printouts.
6411
6412 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6413
6414         * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
6415         only ever using the Project field.
6416
6417 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
6418
6419         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
6420         Body_Required on the generated compilation node. The new node is linked
6421         to its body, but both share the same file, so we do not set this flag
6422         on the new unit so as not to create a spurious dependency on a
6423         non-existent body in the ali file for the instance.
6424
6425 2009-04-24  Robert Dewar  <dewar@adacore.com>
6426
6427         * make.adb: Minor reformatting
6428
6429 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6430
6431         * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
6432         Add_Source): merge some code between those. In particular change where
6433         file normalization is done to avoid a few extra calls to
6434         Canonicalize_File_Name. This also removes the need for passing
6435         Current_Dir in a number of subprograms.
6436
6437 2009-04-24  Bob Duff  <duff@adacore.com>
6438
6439         * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
6440         False, assign the correct unit to the Cunit field of the new table
6441         entry. We want the spec unit, not the body unit.
6442
6443         * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
6444         interface for these.
6445         (Maybe_Add_With): Check whether we're trying to a with on the current
6446         unit, and avoid creating such directly self-referential with clauses.
6447         (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
6448         [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
6449         and matches existing comments in the spec.
6450
6451         * sem.adb (Walk_Library_Items): Add various special cases to make the
6452         assertions pass.
6453
6454         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
6455         instead of Parent (N), for uniformity.
6456
6457 2009-04-24  Robert Dewar  <dewar@adacore.com>
6458
6459         * errout.ads: Minor reformatting
6460
6461 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6462
6463         * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
6464         behavior when the project includes sources from multiple languages
6465
6466 2009-04-24  Vincent Celier  <celier@adacore.com>
6467
6468         * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
6469         is a language other than Ada declared.
6470
6471         * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
6472         Imported_First set to True.
6473
6474 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
6475
6476         * sem_res.adb: additional optimization to inhibit creation of
6477         redundant transient scopes.
6478
6479 2009-04-24  Bob Duff  <duff@adacore.com>
6480
6481         * rtsfind.ads: Minor comment fix
6482
6483 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6484
6485         * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
6486         Get_Path_Name_And_Record_Ada_Sources): merged, since these were
6487         basically doing the same work (for explicit or implicit sources).
6488         (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
6489         role. Rewritten to share some code (testing that all explicit sources
6490         have been found) between ada_only and multi_language modes.
6491
6492 2009-04-24  Jerome Lambourg  <lambourg@adacore.com>
6493
6494         * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
6495         for CLI imported types.
6496         (Analyze_Pragma): Allow CIL or Java imported functions returning
6497         access-to-subprogram types.
6498
6499 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6500
6501         * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
6502         (Project_Data.Dir_Path): field removed, since it can be computed
6503         directly from .Directory, and is needed only once when processing the
6504         project is buildgpr.adb or make.adb
6505
6506 2009-04-24  Robert Dewar  <dewar@adacore.com>
6507
6508         * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
6509         rtsfind.adb: Minor reformatting.
6510         Minor code reorganization
6511
6512 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
6513
6514         * mlib-prj.adb: Use friendlier english identifier.
6515
6516         * gnatcmd.adb, make.adb: Use better english identifiers.
6517
6518 2009-04-24  Robert Dewar  <dewar@adacore.com>
6519
6520         * clean.adb: Minor reformatting
6521
6522 2009-04-24  Robert Dewar  <dewar@adacore.com>
6523
6524         * einfo.adb (OK_To_Rename): New flag
6525
6526         * einfo.ads (OK_To_Rename): New flag
6527
6528         * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
6529         OK_To_Rename set.
6530
6531         * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
6532
6533         * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
6534         OK_To_Rename.
6535
6536 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6537
6538         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
6539         clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
6540         field removed. This is not a property of the
6541         project, just a boolean used to traverse the project tree, and storing
6542         it in the structure prevents doing multiple traversal in parallel.
6543         (Project_Data.Checked): also removed, since it was playing the same role
6544         as Seen when we had two nested loops, and this is no longer necessary
6545         (For_All_Imported_Projects): removed, since in fact there was already
6546         the equivalent in For_Every_Project_Imported. The latter was rewritten
6547         to use a local hash table instead of Project_Data.Seen
6548         Various loops were rewritten to use For_Every_Project_Imported, thus
6549         removing the need for Project_Data.Seen. This avoids a lot of code
6550         duplication
6551
6552 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
6553
6554         * sem_res.adb (Resolve_Actuals): Do not create blocks around code
6555         statements, even though the actual of the call is a concatenation,
6556         because the argument is static, and we want to preserve warning
6557         messages  about sequences of code statements that are not marked
6558         volatile.
6559
6560         * sem_warn.adb: remove obsolete comment about warning being obsolete
6561
6562         * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
6563         requeued and the delay has expired while within the accept statement
6564         that executes the requeue, do not perform the requeue and indicate that
6565         the timed call has been aborted.
6566
6567 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6568
6569         * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6570         (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
6571         (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
6572         since they can be computed from the above.
6573
6574 2009-04-24  Vincent Celier  <celier@adacore.com>
6575
6576         * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
6577
6578         * prj-env.adb: Move all global variables to the private part of the
6579         project tree data.
6580         Access these new components instead of the global variables no longer
6581         in existence.
6582         (Add_To_Path): New Project_Tree_Ref parameter, to access the new
6583         components that were previously global variables.
6584
6585         * prj-env.ads (Initialize): New Project_Tree_Ref parameter
6586         (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
6587         parameter.
6588
6589         * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
6590         be able to call Set_Mapping_File_Initial_State_To_Empty with it.
6591
6592         * prj.adb (Initialize): Do not call Prj.Env.Initialize
6593         (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
6594         components in the private part of the project tree data.
6595
6596         * prj.ads (Private_Project_Tree_Data): new components moved from
6597         Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
6598         Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
6599         Ada_Prj_Objects_File_Set, Fill_Mapping_File.
6600
6601 2009-04-24  Vincent Celier  <celier@adacore.com>
6602
6603         * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
6604
6605         * prj-nmsc.adb (Check_Library): No error for imports by shared library
6606         projects, when --unchecked-shared-lib-imports is used.
6607
6608 2009-04-24  Robert Dewar  <dewar@adacore.com>
6609
6610         * sem_ch7.adb: Minor reformatting
6611
6612 2009-04-24  Tristan Gingold  <gingold@adacore.com>
6613
6614         * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
6615         mach thread id.
6616
6617 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6618
6619         * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
6620         Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
6621         (For_All_Imported_Projects): new procedure
6622         (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
6623         above rather than duplicating code.
6624
6625 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6626
6627         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6628         (Source_Id, Source_Data): use a real list to store sources rather than
6629         using an external table to store the elements. This makes code more
6630         efficient and more readable.
6631
6632 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6633
6634         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6635         (Source_Iterator): new type.
6636         This removes the need for having the sources on three different
6637         lists at the project tree, project and language level. They are now
6638         on a single list.
6639
6640 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6641
6642         * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
6643
6644 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
6645
6646         * sem_warn.adb: Add comment on obsolete warning
6647
6648 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
6649
6650         * s-tassta.adb (Create_Task): Fix violation of locking rule.
6651
6652 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6653
6654         * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
6655         to Language_Ptr to better reflect its new implementation.
6656         (Project_Data.First_Languages_Processing): renamed to Languages now
6657         that the field with that name is no longer used
6658         (Project_Data.Languages): removed, no longer used, and duplicates
6659         information already available through First_Language_Processing.
6660         (Prj.Language_Index): now an actual pointer, instead of an index into
6661         a table. This makes the list somewhat more obvious, but more importantly
6662         removes the need to pass a pointer to the project_tree_data in a few
6663         places, and makes accessing the attributes of a languages more
6664         efficient.
6665
6666 2009-04-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6667             Thomas Quinot  <quinot@adacore.com>
6668
6669         * fe.h (Set_Identifier_Casing): Add const to second parameter.
6670         * gcc-interface/misc.c (internal_error_function): Make copy of return
6671         from pp_formatted_text before assigning BUFFER to it.
6672         (gnat_init): Likewise for main_input_filename and gnat_argv.
6673         (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
6674
6675 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
6676
6677         * ttypes.ads (Target_Double_Float_Alignment): New variable.
6678         (Target_Double_Scalar_Alignment): Likewise.
6679         * get_targ.ads (Get_Strict_Alignment): Adjust external name.
6680         (Get_Double_Float_Alignment): New imported function.
6681         (Get_Double_Scalar_Alignment): Likewise.
6682         * layout.adb (Set_Elem_Alignment): Take into account specific caps for
6683         the alignment of "double" floating-point types and "double" or larger
6684         scalar types, as parameterized by Target_Double_Float_Alignment and
6685         Target_Double_Scalar_Alignment respectively.
6686         * gcc-interface/gigi.h (double_float_alignment): Declare.
6687         (double_scalar_alignment): Likewise.
6688         (is_double_float_or_array): Likewise.
6689         (is_double_scalar_or_array): Likewise.
6690         (get_target_double_float_alignment): Likewise.
6691         (get_target_double_scalar_alignment): Likewise.
6692         * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
6693         (get_target_strict_alignment): ...this.
6694         (get_target_double_float_alignment): New function.
6695         (get_target_double_scalar_alignment): Likewise.
6696         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6697         Test the presence of an alignment clause for under-aligned integer
6698         types.  Take into account specific caps for the alignment of "double"
6699         floating-point types and "double" or larger scalar types, as
6700         parameterized by Target_Double_Float_Alignment and
6701         Target_Double_Scalar_Alignment respectively.
6702         (validate_alignment): Likewise.
6703         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
6704         (gigi): Initialize double_float_alignment and double_scalar_alignment.
6705         * gcc-interface/utils.c (double_float_alignment): New global variable.
6706         (double_scalar_alignment): Likewise.
6707         (is_double_float_or_array): New predicate.
6708         (is_double_scalar_or_array): Likewise.
6709
6710 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
6711
6712         * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
6713         the conditional expression only if it is common to both arms.
6714
6715 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
6716
6717         * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
6718         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
6719         arguments to build_allocator.
6720         * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
6721         Remove code handling special allocator and assert its uselessness.
6722
6723 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
6724
6725         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
6726         alignment is specified, do not promote that of the component type
6727         beyond it.
6728         <E_Array_Subtype>: Likewise.
6729
6730 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6731
6732         * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
6733         * sinfo.ads (Object Declaration): Likewise.
6734         (Assignment Statement): Likewise.
6735         * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
6736         Do not force Is_True_Constant to false on the temporary.
6737         (Freeze_Entity): Do not force Is_True_Constant to false on names on
6738         the RHS of object declarations.
6739         * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
6740         New case.  Return 1 if the object is atomic.
6741         <N_Assignment_Statement>: Likewise.
6742
6743 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6744
6745         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
6746         For packed array types, make the original array type a parallel type
6747         for the modular type and its JM wrapper if the type is bit-packed.
6748         <E_Array_Subtype>: Likewise.  Do not generate the special XA parallel
6749         record type for packed array types.  Remove kludge.
6750
6751 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6752
6753         * gcc-interface/gigi.h (create_index_type): Adjust head comment.
6754         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6755         Use front-end predicates to compute signedness and precision.
6756         <E_String_Literal_Subtype>: Fold range type.
6757         Make sure to set longest_float_type_node to a scalar type.
6758         (elaborate_entity): Use consistent Constraint_Error spelling.
6759         (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
6760         * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
6761         output for the modulus, if any.
6762         <ENUMERAL_TYPE>: Likewise for the RM size.
6763         * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
6764         spelling.
6765         * gcc-interface/utils.c (finish_record_type): Really test the alignment
6766         of BLKmode bit-fields to compute their addressability.
6767         (create_index_type): Adjust comments.
6768         (create_param_decl): Create the biased subtype manually.
6769         * gcc-interface/utils2.c (build_component_ref): Use consistent
6770         Constraint_Error spelling.
6771
6772 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6773
6774         * gcc-interface/cuintp.c: Clean up include directives.
6775         * gcc-interface/targtyps.c: Likewise.
6776         * gcc-interface/decl.c: Likewise.
6777         * gcc-interface/misc.c: Likewise.
6778         * gcc-interface/trans.c: Likewise.
6779         * gcc-interface/utils.c: Likewise.
6780         * gcc-interface/utils2.c: Likewise.
6781         * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
6782
6783 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6784
6785         * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
6786         (SET_TYPE_LANG_SPECIFIC): Likewise.  Fix formatting.
6787         (SET_DECL_LANG_SPECIFIC): Likewise.
6788         Reorder macros.
6789         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6790         Update comment about use of build_range_type.
6791         <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
6792         <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
6793         check for other cases of overloading.
6794         * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
6795         * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
6796         Use size_int in lieu of build_int_cst.
6797         (build_call_alloc_dealloc): Use build_index_2_type in lieu of
6798         build_range_type.
6799
6800 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
6801
6802         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
6803         type is an enumeral or a boolean type, change it to an integer type
6804         with the same mode and signedness.
6805
6806 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
6807
6808         * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
6809         for an external constant whose initializer is not absolute.
6810
6811 2009-04-22  Taras Glek  <tglek@mozilla.com>
6812
6813         * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
6814         * gcc-interface/trans.c: Likewise.
6815         * gcc-interface/utils.c: Likewise.
6816
6817 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
6818
6819         * sem_res.adb: Create block around procedure call when actual is a
6820         concatenation.
6821
6822 2009-04-22  Thomas Quinot  <quinot@adacore.com>
6823
6824         * s-soflin.ads: Fix typos
6825
6826 2009-04-22  Vincent Celier  <celier@adacore.com>
6827
6828         * prj-env.adb: Minor comment change
6829
6830         * prj-nmsc.adb (Check_Common): Add guard to avoid calling
6831         Get_Name_String with No_File.
6832
6833         * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
6834         cannot be created even when not in verbose mode.
6835
6836 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6837
6838         * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
6839         prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
6840         Multi_Language modes, to avoid code duplication.
6841         (Project_Data.Include_Language): Removed.
6842
6843 2009-04-22  Vincent Celier  <celier@adacore.com>
6844
6845         * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
6846         the temporary file cannot be created, indicating the directory when the
6847         creation was attempted.
6848
6849 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6850
6851         * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
6852         the language names, not their indices.
6853
6854 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6855
6856         * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
6857         (Source_Data.Language_Name): Field removed.
6858
6859 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6860
6861         * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
6862         Two fields removed.
6863
6864 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6865
6866         * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
6867         separate_suffix to the same value as the body_suffix.
6868
6869 2009-04-22  Robert Dewar  <dewar@adacore.com>
6870
6871         * prj.adb: Minor code reorganization
6872         Code clean up.
6873
6874         * prj-proc.adb: Minor code reorganization, clean up.
6875
6876         * prj-nmsc.adb: Minor reformatting
6877         Minor code reorganization
6878
6879         * gnat_ugn.texi: Add to doc on strict aliasing
6880
6881 2009-04-22  Pascal Obry  <obry@adacore.com>
6882
6883         * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
6884         SpinCount.
6885
6886         * s-tasini.adb: Minor reformatting.
6887
6888         * s-tassta.adb: Minor reformatting.
6889
6890 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6891
6892         * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
6893         smaller subprograms.
6894         Renamed to Check_File_Naming_Schemes to avoid confusion with the
6895         other Check_Naming_Schemes functions that plays a totally different
6896         role.
6897         (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
6898         extracted from the above. These were partially rewritten to avoid
6899         unnecessary code and temporary variables.
6900         (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
6901         and Get_Unit (which for now still exist since they contain mode-specific
6902         code)
6903
6904 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6905
6906         * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
6907         Remove duplicated code.
6908         (Canonical_Case_File_Name): new subprogram
6909         (Check_And_Normalize_Unit_Names): new subprogram
6910         (Write_Attr): new subprogram
6911         Better sharing of code
6912         (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
6913         split Check_Naming and help find duplicated code
6914         (Check_Common): new subprogram, sharing code between ada_only and
6915         multi_language mode.
6916         (Naming_Data.Dot_Repl_Loc): field removed
6917
6918 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6919
6920         * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
6921         Minor refactoring to reduce the size of
6922         Process_Sources_In_Multi_Language_Mode.
6923         Avoid extra copied of Source_Data, which we found in the past could be
6924         quite slow.
6925         (Mark_Excluded_Sources): new subprogram.
6926         (Remove_Locally_Removed_Files_From_Units): merged into the above
6927         Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
6928         and allow better sharing of code between multi_lang and ada_only modes
6929         (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
6930
6931 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6932
6933         * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
6934         Removed, since unused.
6935
6936 2009-04-22  Vincent Celier  <celier@adacore.com>
6937
6938         * prj-attr.adb: New single project level attribute
6939         Separate_Run_Path_Options.
6940
6941         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6942         attribute Seperate_Run_Path_Options.
6943
6944         * prj.ads: (Project_Configuration): New Boolean component
6945         Separate_Run_Path_Options, defaulted to False.
6946
6947         * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
6948
6949 2009-04-22  Robert Dewar  <dewar@adacore.com>
6950
6951         * sem_type.adb: Minor reformatting
6952
6953         * mlib.adb: Minor reformatting
6954
6955         * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
6956         syntax error.
6957
6958 2009-04-22  Nicolas Setton  <setton@adacore.com>
6959
6960         * link.c: Add flag __gnat_separate_run_path_options.
6961
6962         * mlib.adb (Separate_Run_Path_Options): New subprogram.
6963
6964         * mlib.ads (Separate_Run_Path_Options): Declare.
6965
6966         * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
6967         switch per directory, rather than one "rpath" switch listing all
6968         directories.
6969
6970         * gnatlink.adb (Process_Binder_File): Likewise.
6971
6972         * make.adb (Gnatmake): Likewise.
6973
6974 2009-04-22  Hristian Kirtchev  <kirtchev@adacore.com>
6975
6976         * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
6977         Add a call to Move_Final_List when the target of the assignment is a
6978         return object that needs finalization and the expression is a
6979         controlled build-in-place function.
6980
6981 2009-04-22  Vincent Celier  <celier@adacore.com>
6982
6983         * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
6984         Including_Libraries set to True.
6985
6986 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
6987
6988         * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
6989         create a unit table entry for the subprogram declaration created for a
6990         child suprogram body that has no separate specification.
6991
6992         * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
6993         subprogram body, call Make_Child_Decl_Unit.
6994
6995         * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
6996         table can only be the created specification of a child subprogram body
6997         that is the main unit, which has not been entered in the table yet.
6998
6999         * errout.adb  (Output_Messages): Ignore created specification of a
7000         child subprogram body to prevent repeated listing of error messages.
7001
7002         * gnat1drv.adb (gnat1drv): The generated specification for a child
7003         subprogram body does not generate code.
7004
7005 2009-04-22  Arnaud Charlet  <charlet@adacore.com>
7006
7007         * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
7008         since this unit is now part of bootstrap units, so must use Ada 95
7009         syntax only.
7010
7011 2009-04-22  Thomas Quinot  <quinot@adacore.com>
7012
7013         * a-tasatt.adb: Minor reformatting
7014
7015 2009-04-22  Bob Duff  <duff@adacore.com>
7016
7017         * s-stalib.ads: Remove "with System;" since we're inside System, so
7018         it's unnecessary.
7019
7020 2009-04-22  Vincent Celier  <celier@adacore.com>
7021
7022         * prj-nmsc.adb (Add_Source): Always put the dependency file name in
7023         the source record, as there may be a dependency file even if no object
7024         file is created.
7025
7026 2009-04-22  Robert Dewar  <dewar@adacore.com>
7027
7028         * lib-load.adb: Minor reformatting
7029
7030         * lib-load.ads: Minor reformatting
7031
7032         * sinfo.ads: Minor reformatting
7033
7034 2009-04-22  Bob Duff  <duff@adacore.com>
7035
7036         * exp_pakd.adb: Minor comment fixes.
7037
7038         * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
7039         sem_ch12.adb: Change the meaning of the Library_Unit attribute to
7040         include units containing instantiations, as well as units that are
7041         generic instantiations.
7042
7043         * sem.adb: Include dependents and corresponding specs/bodies in the
7044         unit walk.
7045
7046         * gcc-interface/Make-lang.in:
7047         sem now depends on s-bitops, because of the packed array of Booleans.
7048
7049 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
7050
7051         * gcc-interface/ada-tree.def: Fix formatting nits.
7052         (REGION_STMT): Delete.
7053         (HANDLER_STMT): Likewise.
7054         * gcc-interface/ada-tree.h: Fix formatting nits.
7055         (IS_STMT): Delete.
7056         (REGION_STMT_BODY): Likewise.
7057         (REGION_STMT_HANDLE): Likewise.
7058         (REGION_STMT_BLOCK): Likewise.
7059         (HANDLER_STMT_ARG): Likewise.
7060         (HANDLER_STMT_LIST): Likewise.
7061         (HANDLER_STMT_BLOCK): Likewise.
7062         * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
7063         (fp_size_to_prec): Likewise.
7064         (largest_move_alignment): Delete.
7065         (gnat_compute_largest_alignment): Likewise.
7066         Fix minor nits.
7067         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
7068         Remove redundant code.
7069         <E_Array_Type>: Remove redundant assert.
7070         <E_Array_Subtype>: Exit early from index computation in pathological
7071         cases.
7072         Rewrite conditional assignment.
7073         (make_type_from_size): Likewise.
7074         * gcc-interface/misc.c (largest_move_alignment): Delete.
7075         (gnat_finish_incomplete_decl): Likewise.
7076         (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
7077         (asm_out_file): Likewise
7078         (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
7079         (gnat_dwarf_name): Move around.
7080         * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
7081         (gigi): Remove call to gnat_compute_largest_alignment.
7082         * utils.c (create_field_decl): Rewrite conditional assignment.
7083         Fix minor nits.
7084
7085 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
7086
7087         * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
7088         on entry.  Defer common processing for types.  Reorder and clean up.
7089         Compute the equivalent GNAT node and the default size for types only.
7090         <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
7091         <E_Access_Type>: For an unconstrained designated type, do not pretend
7092         that a dummy type is always made.
7093         <all> Fix nits in comments.
7094         (validate_size): Fix formatting nits and comments.
7095         (set_rm_size): Likewise.
7096         * gcc-interface/utils.c (create_param_decl): Replace bogus argument
7097         passed to TARGET_PROMOTE_PROTOTYPES hook.
7098
7099 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
7100
7101         * fe.h (Get_External_Name): Declare.
7102         * gcc-interface/gigi.h (concat_id_with_name): Rename to...
7103         (concat_name): ...this.
7104         * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
7105         gnu_entity_name and adjust for above renaming.
7106         <E_Access_Type>: Use create_concat_name to get the name of the various
7107         types associated with unconstrained array types.
7108         (make_aligning_type): Adjust for above renaming.
7109         (maybe_pad_type): Likewise.
7110         (components_to_record): Likewise.  Use get_identifier_with_length for
7111         the encoding of the variant.
7112         (get_entity_name): Use get_identifier_with_length.
7113         (create_concat_name): Likewise.  Use Get_External_Name if no suffix.
7114         Do not fiddle with Name_Buffer.
7115         (concat_id_with_name): Rename to...
7116         (concat_name): ...this.  Use get_identifier_with_length.  Do not fiddle
7117         with Name_Buffer.
7118         * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
7119         above renaming.
7120
7121 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
7122
7123         * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
7124         license notices.
7125
7126 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
7127
7128         * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
7129
7130 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
7131
7132         * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
7133         (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
7134         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
7135         Remove useless support code for packed array types and assert its
7136         uselessness.
7137         <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
7138         adjust for TYPE_RM_SIZE change.
7139         <all> Fix nits in comments.  Use Original_Array_Type accessor instead
7140         of Associated_Node_For_Itype accessor for packed array types.
7141         (make_packable_type): Likewise.
7142         (maybe_pad_type): Likewise.
7143         (set_rm_size): Likewise.  Rework conditional statement.  Adjust for
7144         TYPE_RM_SIZE change.
7145         (make_type_from_size): Adjust for TYPE_RM_SIZE change.
7146         (rm_size): Fix nits in comments.  Rework conditional statements.
7147         * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
7148         change.
7149         * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
7150         * gcc-interface/utils.c (gnat_init_decl_processing): Use more
7151         appropriate function to initialize the size_type_node.  Adjust for
7152         TYPE_RM_SIZE change.
7153
7154 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
7155
7156         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
7157         for imported subprograms.
7158
7159 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
7160
7161         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
7162         constant objects covered by 13.3(19) volatile.
7163
7164 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
7165
7166         * gcc-interface/utils.c (create_type_decl): Do not pass declarations
7167         of dummy fat pointer types to the debug back-end.
7168
7169 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7170
7171         * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
7172         <E_Signed_Integer_Subtype>: Set the RM size on the integer type
7173         before wrapping it up in the record type.  Do not overwrite the
7174         Ada size of the record type with the Esize.
7175
7176 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7177
7178         * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
7179         (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
7180         if the conversion is on the LHS of an assignment and a no-op.
7181         <all> Do not convert the result to the result type if the Parent
7182         node is such a conversion.
7183
7184 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7185
7186         * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
7187         * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
7188         of types with unknown discriminants.
7189         (substitute_in_type): Rewrite and restrict to formal substitutions.
7190         * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
7191         (update_pointer_to): Update comment.
7192
7193 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7194
7195         * sem_ch8.adb (Use_One_Package): In an instance, if two
7196         potentially_use_visible and non-overloadable homonyms are available
7197         from  the actuals of distinct formal packages, retain the current one,
7198         which was visible in the generic, to prevent spurious visibility
7199         errors.
7200         (End_Use_Package): Restore use_visibility when needed.
7201
7202 2009-04-20  Sergey Rybin  <rybin@adacore.com>
7203
7204         * gnat_ugn.texi, vms_data.ads: Update doc.
7205
7206 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7207
7208         * gcc-interface/Make-lang.in: Update dependencies
7209
7210         * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
7211         Windows.
7212
7213 2009-04-20  Robert Dewar  <dewar@adacore.com>
7214
7215         * checks.ads: Fix documentation of range check handling
7216
7217 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7218
7219         * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
7220         a redundant use_type clause.
7221
7222 2009-04-20  Robert Dewar  <dewar@adacore.com>
7223
7224         * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
7225         this attribute can be evaluated at compile time.
7226         (Eval_Attribute, case Range_Length): Same improvement
7227
7228         * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
7229
7230 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7231
7232         * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
7233         for better handling of null procedures.
7234         (Check_Overriding_Indicator): Do not emit a warning on a missing
7235         overriding indicator on an operator when the type of which the operator
7236         is a primitive is private.
7237
7238 2009-04-20  Bob Duff  <duff@adacore.com>
7239
7240         * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
7241         debugging output.
7242
7243 2009-04-20  Robert Dewar  <dewar@adacore.com>
7244
7245         * sem_attr.adb: Minor reformatting
7246
7247         * gnatcmd.adb: Minor reformatting
7248
7249 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7250
7251         * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
7252         overloaded and one interpretation matches the context, label the
7253         operand with the type of first formal.
7254
7255 2009-04-20  Bob Duff  <duff@adacore.com>
7256
7257         * debug.ads: Minor comment fix.
7258
7259         * debug.adb: Minor comment fixes.
7260
7261 2009-04-20  Javier Miranda  <miranda@adacore.com>
7262
7263         * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
7264
7265         * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
7266
7267         * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
7268         is expanded into a call to Raise_Exception, avoid passing the
7269         exception-name'identity in runtimes in which this argument
7270         is not used.
7271
7272 2009-04-20  Jerome Lambourg  <lambourg@adacore.com>
7273
7274         * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
7275         generated bindings for cil.
7276
7277 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7278
7279         * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
7280         discriminants, collect components from the Underlying_Record_View,
7281         which will be used in the expansion of the aggregate into assignments.
7282
7283         * sem_ch3.adb: Do not label derived type with unknown discriminants as
7284         having a private declaration.
7285
7286 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7287
7288         * exp_util.adb (Expand_Subtype_From_Expr): use the
7289         underlying_record_view when available, to create the proper constrained
7290         subtype for an object of a derived type with unknown discriminants.
7291
7292 2009-04-20  Javier Miranda  <miranda@adacore.com>
7293
7294         * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
7295         formals that have pragma unreferenced.
7296
7297 2009-04-20  Pascal Obry  <obry@adacore.com>
7298
7299         * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
7300         Remove all calls to To_Lower_If_Case_Insensitive to preserve
7301         the pathname original casing.
7302
7303 2009-04-20  Robert Dewar  <dewar@adacore.com>
7304
7305         * g-trasym.adb: Minor reformatting
7306
7307         * s-os_lib.adb: Minor reformatting
7308
7309         * sem.adb: Minor reformatting
7310         Minor code reorganization
7311
7312         * sem_ch3.adb: Minor reformatting
7313
7314         * sem_ch4.adb: Minor reformatting
7315
7316         * sem_ch8.adb: Minor reformatting
7317
7318         * sem_type.adb: Minor reformatting
7319
7320 2009-04-20  Javier Miranda  <miranda@adacore.com>
7321
7322         * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
7323         generated by derivations of tagged types use the aliased subprogram a
7324         reference to locate their controlling type.
7325
7326 2009-04-20  Tristan Gingold  <gingold@adacore.com>
7327
7328         * g-trasym.adb: Set size of result buffer before calling
7329         convert_address.
7330
7331 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7332
7333         * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
7334         to a function returning an array can be interpreted as a call with
7335         defaulted parameters whose result is indexed, take into account the
7336         types of all the indices of the array result type.
7337
7338 2009-04-20  Pascal Obry  <obry@adacore.com>
7339
7340         * a-direct.adb, s-os_lib.adb: Minor reformatting.
7341
7342 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7343
7344         * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
7345         null exclusion qualifiers for object renaming declarations.
7346
7347 2009-04-20  Nicolas Roche  <roche@adacore.com>
7348
7349         * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
7350         unsigned long long. So compare local_time and utc_time before computing
7351         the difference.
7352
7353 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7354
7355         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7356         of the Underlying_Record_View before that of the derived type.
7357
7358         * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
7359         with unknown discriminants with regard to the parent subtype.
7360
7361 2009-04-20  Bob Duff  <duff@adacore.com>
7362
7363         * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
7364         that are not included. This is necessary if the main unit is a generic
7365         instantiation.
7366
7367         * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
7368         because it doesn't work if -gnatn is used.
7369
7370 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7371
7372         * rtsfind.adb (RTE, RTE_Record_Component): In
7373         Configurable_Run_Time_Mode, do not enable front-end inlining.
7374
7375 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7376
7377         * g-socthi-vms.adb: Remove now unnecessary WITH clause on
7378         System.Address_To_Access_Conversions.
7379
7380 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7381
7382         * sem.adb: Guard against ill-formed subunits.
7383
7384 2009-04-20  Bob Duff  <duff@adacore.com>
7385
7386         * output.adb (Flush_Buffer): Do not indent blank lines.
7387         (Ignore_Output): New procedure for output suppression.
7388
7389 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
7390
7391         * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
7392         when it is positive.  This avoids a potential constraint error raised
7393         by the conversion to Natural.
7394
7395 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
7396
7397         * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
7398         involves a target that has a specified address, don't set Forward_OK
7399         and Backward_OK to False if the rhs is an aggregate, since overlap
7400         can't occur.
7401
7402 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7403
7404         * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
7405         in an object renaming declaration when the expected type is an
7406         anonymous access type.
7407
7408         * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
7409         ambiguity when one interpretation is an anonymous access type and the
7410         other is a named access type, and the context itself is anonymous
7411
7412 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7413
7414         * einfo.ads: Minor comment rewording
7415
7416         * sem_aggr.adb: Minor comment rewording
7417
7418         * sem_ch3.adb, sem_ch6.adb: Minor reformatting
7419
7420 2009-04-20  Pascal Obry  <obry@adacore.com>
7421
7422         * adaint.c (__gnat_is_readable_file): Check for file existence
7423         when not using ACL (always the case on remote drives).
7424
7425 2009-04-20  Robert Dewar  <dewar@adacore.com>
7426
7427         * sinfo.ads: Minor comment fixes
7428
7429         * exp_disp.adb: Minor reformatting
7430
7431         * gnat1drv.adb: Minor reformatting
7432
7433         * output.adb: Minor reformatting
7434
7435         * s-vxwext-kernel.ads: Minor reformatting
7436
7437         * sem.ads: Minor reformatting
7438
7439         * sem.adb: Minor reformatting
7440
7441         * sem_elim.adb: Minor reformatting
7442
7443         * uname.ads: Minor reformatting
7444
7445 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7446
7447         * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
7448         a small dope of 4 words to the adjustment to the stack pointer.
7449
7450 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7451
7452         * xoscons.adb: generate C header s-oscons.h in
7453         addition to s-oscons.ads.
7454
7455         * socket.c: On VMS, use s-oscons.h.
7456
7457         * sem_ch3.adb: Minor reformatting
7458
7459         * exp_ch9.adb: Minor reformatting
7460
7461 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7462
7463         * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
7464         (Attribute_to_gnu): Do not call check_for_eliminated_entity.
7465         (call_to_gnu): Likewise.
7466
7467 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7468
7469         * gcc-interface/trans.c (gigi): Declare the name of the compilation
7470         unit as the first global name at the very beginning.
7471
7472 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7473
7474         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7475         s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
7476         g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
7477         since HP-UX supports neither inet_aton nor inet_pton (altough the
7478         latter is part of the Single UNIX Specification!).
7479         So reorganize code, and share C implementation based on inet_addr(3)
7480         with VMS (instead of having a VMS specific Ada implementation in
7481         g-socthi-vms.adb).
7482
7483 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
7484
7485         * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
7486         to return the object file name saved by Set_Object_Output_File_Name.
7487
7488 2009-04-20  Emmanuel Briot  <briot@adacore.com>
7489
7490         * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
7491         for the standard command line, when argc has been modified since the
7492         start of the application.
7493
7494 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7495
7496         * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
7497         WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
7498
7499 2009-04-20  Bob Duff  <duff@adacore.com>
7500
7501         * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
7502         pragma Debug.
7503
7504 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7505
7506         * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
7507         subprogram as Eliminated when source operation is.
7508         (Expand_N_Protected_Type_Declaration): Generate protected and
7509         unprotected specs for the internal operations, even if the source
7510         operation is eliminated.
7511
7512 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
7513
7514         * exp_ch3.adb (Make_Predefined_Primitive_Specs,
7515         Predefined_Primitive_Bodies): Do not create the declarations and bodies
7516         of the primitive subprograms associated with dispatching select
7517         statements when the runtime is in configurable mode.
7518
7519 2009-04-20  Ed Falis  <falis@adacore.com>
7520
7521         * s-vxwext-kernel.ads (tickGet): Use tick64Get.
7522
7523 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7524
7525         * s-oscons-tmplt.c: Add support for generating a dummy version of
7526         s-oscons.ads providing all possible constants.
7527
7528         * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
7529
7530         * socket.c (__gnat_inet_pton): On Windows make sure we always use the
7531         ANSI version (not the UNICODE version) of WSAStringToAddress.
7532
7533 2009-04-20  Pascal Obry  <obry@adacore.com>
7534
7535         * adaint.c (__gnat_set_OWNER_ACL): properly free memory
7536         allocated for the security descriptor and make sure all
7537         handles are closed before leaving this procedure.
7538
7539 2009-04-20  Javier Miranda  <miranda@adacore.com>
7540
7541         * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
7542         (Set_Is_Underlying_Record_View): New subprogram
7543
7544         * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
7545         private types with unknown discriminants use the underlying record view
7546         if available.
7547
7548         * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
7549         underlying record view in the full view of private types whose parent
7550         has unknown discriminants.
7551         (Build_Derived_Record_Type): Avoid generating the class-wide entity
7552         associated with an underlying record view.
7553         (Derived_Type_Declaration): Avoid deriving parent primitives in
7554         underlying record views.
7555
7556         * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
7557         records with unknown discriminants.
7558
7559         * sem_type.adb (Covers): Handle underlying record views.
7560         (Is_Ancestor): Add support for underlying record views.
7561
7562         * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
7563         dispatching call if the type of the target object is tagged and has
7564         unknown discriminants.
7565
7566         * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
7567         unknown discriminants.
7568
7569         * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
7570         tables for internally built underlying record views.
7571
7572         * sprint.adb (sprint_node_actual): Improve output of aggregates with an
7573         empty list of component associations.
7574
7575 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7576
7577         * sem_ch10.adb: Minor reformatting
7578
7579         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7580         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
7581         (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
7582         standard inet_pton API (and emulate it on platforms that do not
7583         support it).
7584         (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
7585         DECC$INET_ADDR, imported in Ada.
7586         (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
7587         implementation provided by GNAT runtime.
7588         (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
7589         Windows.
7590
7591 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7592
7593         * gnat_ugn.texi: Add documentation for -fno-ivopts.
7594
7595 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7596
7597         * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
7598         with_clause if it is the main unit.
7599
7600 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7601
7602         * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
7603         (no behaviour change): Use Append instead of Increment_Last followed
7604         by assignment.
7605
7606 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
7607
7608         * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
7609         declarations of all primitives associated with dispatching asynchronous,
7610         conditional and timed selects when dispaching calls are forbidden and
7611         select statements are not allowed (such as in Ravenscar).
7612         (Predefined_Primitive_Bodies): Ditto for bodies.
7613
7614         * exp_disp.ad (Make_DT): Do not create and populate the
7615         Select_Specific_Data of the dispatch table when dispatching calls are
7616         forbidden and select statements are not allowed (such as in Ravenscar).
7617
7618 2009-04-20  Robert Dewar  <dewar@adacore.com>
7619
7620         * a-tifiio.adb: Minor reformatting
7621
7622 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7623
7624         * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
7625         other C library functions, report *failure* with a zero status, and
7626         success with a non-zero status.
7627
7628 2009-04-20  Bob Duff  <duff@adacore.com>
7629
7630         * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
7631         (Semantics): After analyzing each unit, Append it to the
7632         Comp_Unit_List, if appropriate.
7633
7634         * gnat1drv.adb (Check_Library_Items): New procedure for debugging
7635         purposes.
7636         (Gnat1drv): Correct comment regarding Back_End_Mode.
7637
7638 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7639
7640         * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
7641
7642 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7643
7644         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7645         output.adb, output.ads, s-taprop-hpux-dce.adb,
7646         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
7647         reformatting.
7648
7649 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7650
7651         * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
7652         g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
7653         (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
7654         (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
7655         except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
7656         (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
7657
7658         * debug.adb: Fix typo
7659
7660         * gnat_rm.texi: Minor doc fix.
7661
7662         * sem_ch7.adb, freeze.adb: Minor reformatting
7663
7664 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7665
7666         * g-socket.ads: Add new constants:
7667           Loopback_Inet_Addr
7668           Unspecified_Group_Inet_Addr
7669           All_Hosts_Group_Inet_Addr
7670           All_Routers_Group_Inet_Addr
7671
7672         * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
7673         ERANGE (Result too large).
7674         (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
7675         propagation of errno to caller.
7676
7677 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
7678
7679         * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
7680         to 24. Increment Leap_Seconds_Count and add an entry to aggregate
7681         Leap_Second_Times.
7682
7683 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
7684
7685         * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
7686         checking for references to eliminated subprograms that should be
7687         flagged.
7688         (Eliminate_Error_Message): Update comment to say "references" rather
7689         than "calls" (since attribute cases are handled here as well).
7690
7691         * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
7692         checking for references to eliminated subprograms that should be
7693         flagged.  Add with and use of Sem and Sem_Util.
7694
7695         * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
7696         Add with and use of Sem_Elim.
7697
7698         * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
7699         applied to eliminated subprograms.
7700         (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
7701         eliminated subprograms.
7702         Add with and use of Sem_Elim.
7703
7704         * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
7705         to eliminated subprograms, now handled during Resolve_Call.
7706         Remove with and use of Sem_Elim.
7707
7708         * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
7709         testing Is_Eliminated, for proper handling of primitive derived from
7710         eliminated subprograms.
7711
7712 2009-04-20  Vincent Celier  <celier@adacore.com>
7713
7714         * mlib-prj.adb (Build_Library): Use the shared library linker, if one
7715         has been declared (Library_GCC or Linker'Driver), for the driver name.
7716
7717         * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
7718         Linker'Driver is, use Linker'Driver as the shared library linker.
7719         (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
7720         Library_GCC is declared.
7721         (Check_Library_Attributes): Set up the shared linker driver: either
7722         Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
7723         declared.
7724
7725 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7726
7727         * g-socket.ads (Send_Socket): Fix misleading comment.
7728
7729 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7730
7731         * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
7732         ASIS mode.
7733
7734 2009-04-20  Geert Bosch  <bosch@adacore.com>
7735
7736         * a-tifiio.adb (Put): Avoid generating too many digits for certain
7737         fixed types with smalls that are neither integer or the reciprocal
7738         of an integer.
7739
7740 2009-04-20  Bob Duff  <duff@adacore.com>
7741
7742         * uname.ads: Minor comment fix.
7743
7744         * types.ads: Minor comment fix.
7745
7746 2009-04-20  Pascal Obry  <obry@adacore.com>
7747
7748         * adaint.c (__gnat_get_libraries_from_registry): Fix code to
7749         avoid warning. At the same time fix a memory leak.
7750
7751         * osint.adb (Get_Libraries_From_Registry): Properly free memory
7752         returned by the above routine.
7753
7754 2009-04-20  Robert Dewar  <dewar@adacore.com>
7755
7756         * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
7757         s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
7758         s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
7759         s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
7760
7761         * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
7762
7763 2009-04-20  Pascal Obry  <obry@adacore.com>
7764
7765         * initialize.c (__gnat_initialize): Add braces to kill warning.
7766
7767         * adaint.c: Minor reformatting, remove trailing spaces.
7768
7769 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
7770
7771         * gcc-interface/Make-lang.in: Update dependencies.
7772
7773 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7774
7775         * adaint.h (__gnat_lwp_self): Declare on Linux.
7776
7777         * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
7778
7779 2009-04-20  Robert Dewar  <dewar@adacore.com>
7780
7781         * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
7782         front-end part of -fpreserve-control-flow switch.
7783
7784 2009-04-20  Bob Duff  <duff@adacore.com>
7785
7786         * rtsfind.adb: Minor comment fix
7787
7788 2009-04-20  Robert Dewar  <dewar@adacore.com>
7789
7790         * exp_aggr.adb: Minor reformatting
7791         Minor code reorganization (use Nkind_In)
7792
7793         * g-socket.adb: Minor reformatting
7794
7795         * g-socket.ads: Minor comment fix
7796
7797         * s-auxdec.ads: Minor comment and organization update.
7798
7799         * s-auxdec-vms_64.ads: Minor comment and organization update.
7800
7801         * sem_ch10.adb: Minor addition of ??? comment
7802
7803         * sem_disp.adb: Minor reformatting
7804
7805 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7806
7807         * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
7808         list a caller of an inlined subprogram, if the caller itself is not
7809         called.
7810
7811 2009-04-20  Pascal Obry  <obry@adacore.com>
7812
7813         * adaint.c: Disable use of ACL on network drives.
7814
7815 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7816
7817         * gnat_ugn.texi: Add examples.
7818
7819 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7820
7821         * g-socket.ads (Abort_Selector): Clarify documentation.
7822
7823 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7824
7825         * opt.ads (Inspector_Mode): Update documentation of this flag.
7826
7827 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7828
7829         * g-socket.ads: Minor reformatting
7830
7831         * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
7832         consider S_resolvLib error codes since we only use the hostLib wrappers.
7833
7834 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7835
7836         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7837         of the Underlying_Record_View after that of the derived type.
7838
7839 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7840
7841         * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
7842         in inspector mode.
7843
7844 2009-04-20  Javier Miranda  <miranda@adacore.com>
7845
7846         * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
7847
7848         * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
7849         documentation.
7850
7851         * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
7852
7853         * sem_disp.adb
7854         (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
7855         in internally built overriding subprograms.
7856
7857 2009-04-20  Doug Rupp  <rupp@adacore.com>
7858
7859         * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
7860
7861         * s-auxdec.ads: Likewise
7862
7863 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7864
7865         * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
7866         type by an interface.
7867
7868         * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
7869         minimze difference in expanded tree when compiled as spec of the main
7870         unit, or as a spec in the context of another unit.
7871
7872 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
7873
7874         * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
7875         (localtime_tzoff): This routine no longer accepts an actual of type
7876         tm_Pointer.
7877         (UTC_Time_Offset): Remove local variable Secs_TM.
7878
7879         * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
7880         actual of type struct tm*. Add local variable of type struct tm for all
7881         targets that provide localtime_r and need to invoke it.
7882
7883 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7884
7885         * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
7886         (GNAT.Sockets.Resolve_Error): Add case of EPIPE
7887         Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
7888
7889 2009-04-20  Robert Dewar  <dewar@adacore.com>
7890
7891         * sem_ch3.adb: Minor reformatting
7892
7893         * lib-load.adb: Minor reformatting
7894
7895         * sem_ch4.adb: Minor reformatting
7896
7897 2009-04-20  Robert Dewar  <dewar@adacore.com>
7898
7899         * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
7900         (equal values => False).
7901
7902 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7903
7904         * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
7905         to null procedures can be inlined unconditionally.
7906
7907 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7908
7909         * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
7910         non-addressable parameter passed by reference, do not convert the
7911         actual if its type is already the nominal type, unless it is of
7912         self-referential size.
7913
7914 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7915
7916         * gnat_ugn.texi: Fix typos.
7917
7918 2009-04-20  Robert Dewar  <dewar@adacore.com>
7919
7920         * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
7921         Validate_Unchecked_Warnings to suppress warnings about size or
7922         alignment or extra bits if either type involved has pragma Warnings
7923         (Off) set for the type entity.
7924
7925 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
7926
7927         * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
7928         a builtin type and give it a name.
7929
7930 2009-04-17  Diego Novillo  <dnovillo@google.com>
7931
7932         * gcc-interface/misc.c (gnat_expand_expr): Remove.
7933         (LANG_HOOKS_EXPAND_EXPR): Remove.
7934
7935 2009-04-17  Robert Dewar  <dewar@adacore.com>
7936
7937         * sem_ch3.adb: Minor reformatting
7938
7939 2009-04-17  Pascal Obry  <obry@adacore.com>
7940
7941         * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
7942
7943 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7944
7945         * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
7946         illegal constraints on type derived from formal discrete types.
7947
7948 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7949
7950         PR ada/35953
7951
7952         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7953         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7954         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
7955         g-socket.ads (GNAT.Sockets.Thin.C_Send,
7956         GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
7957         Replace calls to send(2) with equivalent sendto(2) calls.
7958         (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
7959         (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
7960         report an error in that case. Factor code common to the two versions
7961         (datagram and stream) in common routine Stream_Write.
7962
7963 2009-04-17  Robert Dewar  <dewar@adacore.com>
7964
7965         * exp_disp.adb: Minor reformatting
7966         Minor code reorganization (use Nkind_In)
7967
7968         * prepcomp.adb: Minor reformatting
7969
7970         * sem_ch3.adb: Minor reformatting
7971
7972         * sem_res.adb: Minor comment addition
7973
7974         * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
7975         for address clause
7976
7977         * lib-xref.adb (Generate_Reference): Exclude recursive calls from
7978         setting Is_Referenced
7979
7980         * types.ads: Minor reformatting
7981
7982 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
7983
7984         * gnat_ugn.texi: Initial documentation on binding generator.
7985
7986 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7987
7988         * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
7989         type extensions whose parent is a type with unknown discriminants.
7990
7991         * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
7992         aggregate has unknown discriminants, use the Underlying_Record_View to
7993         obtain the discriminants of the ancestor part.
7994
7995         * exp_disp.adb (Build_Dispatch_Tables): Types that are
7996         Underlying_Record_Views share the dispatching information of the
7997         original record extension.
7998
7999         * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
8000         discriminants, propagate dispach table information to the
8001         Underlying_Record_View.
8002
8003         * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
8004         discriminants and declaration is not a completion, generate
8005         Underlying_Record_View to provide proper discriminant information to
8006         the front-end and to gigi.
8007
8008 2009-04-17  Robert Dewar  <dewar@adacore.com>
8009
8010         * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
8011         s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
8012         s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
8013         g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
8014         s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
8015         s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
8016         g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
8017         s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
8018         g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
8019         s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
8020         s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
8021         s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
8022         s-conca3.ads: Remove unneeded pragma Warnings
8023
8024 2009-04-17  Robert Dewar  <dewar@adacore.com>
8025
8026         * g-moreex.adb: Add comments.
8027
8028         * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
8029
8030         * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
8031         Warnings (Off)
8032
8033         * prepcomp.adb: Add ??? comment
8034
8035         * a-tasatt.adb: Minor reformatting
8036
8037         * g-trasym-vms-alpha.adb: Add ??? comment
8038
8039         * g-trasym-vms-ia64.adb: Add ??? comment
8040
8041         * xoscons.adb: Minor reformatting
8042
8043         * s-tassta.adb: Minor reformatting
8044
8045         * s-scaval.adb: Add ??? comment
8046
8047         * stand.ads: Minor code clean up (remove junk with of Namet)
8048
8049         * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
8050         s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
8051         s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
8052         s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
8053         s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
8054         s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
8055         s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
8056         s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
8057         Warnings off pragmas.
8058
8059 2009-04-17  Pascal Obry  <obry@adacore.com>
8060
8061         * initialize.c: Fix test for reallocating the arguments array.
8062
8063 2009-04-17  Geert Bosch  <bosch@adacore.com>
8064
8065         * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
8066         conversion truncate only for decimal fixed point types.
8067
8068 2009-04-17  Jerome Lambourg  <lambourg@adacore.com>
8069
8070         * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
8071         reinitialized.
8072
8073 2009-04-17  Robert Dewar  <dewar@adacore.com>
8074
8075         * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
8076         Backwards_OK if either operand has an address clause.
8077
8078 2009-04-17  Pascal Obry  <obry@adacore.com>
8079
8080         * initialize.c: Code clean up, use realloc.
8081
8082 2009-04-17  Pascal Obry  <obry@adacore.com>
8083
8084         * initialize.c: Do not get Unicode command line if Unicode support not
8085         activated.
8086         Add support for wildcard expansion for Unicode parameters on Win32.
8087
8088         * mingw32.h: Add missing macros when Unicode support not activated.
8089
8090 2009-04-17  Javier Miranda  <miranda@adacore.com>
8091
8092         * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
8093         avoid generating code that references the Current_Master
8094         when compiling without tasks.
8095
8096 2009-04-17  Vincent Celier  <celier@adacore.com>
8097
8098         * prj-attr.adb: New project level attribute Target
8099         
8100         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
8101         attribute Target
8102         
8103         * prj.ads (Project_Configuration): New component Target
8104
8105 2009-04-17  Thomas Quinot  <quinot@adacore.com>
8106
8107         * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
8108         case for the case of an aggregate component, the attach call for the
8109         result is actually needed.
8110
8111         * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
8112         an array aggregate must be disabled if the component type requires
8113         controlled actions.
8114
8115         * exp_ch3.adb: Minor reformatting
8116
8117 2009-04-17  Bob Duff  <duff@adacore.com>
8118
8119         * output.ads (Indent,Outdent): New procedures for indenting the output.
8120         (Write_Char): Correct comment -- LF _is_ allowed.
8121
8122         * output.adb (Indent,Outdent): New procedures for indenting the output.
8123         Keep track of the indentation level, and make sure it doesn't get too
8124         high.
8125         (Flush_Buffer): Insert spaces at the beginning of each line, if
8126         indentation level is nonzero.
8127         (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
8128         indentation level.
8129         (Set_Standard_Error,Set_Standard_Output): Remove superfluous
8130         "Next_Col := 1;".  Flush_Buffer does that.
8131
8132         * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
8133         controlled by the -gnatdc switch. It now occurs on entry/exit to the
8134         relevant analysis routines, and calls Indent/Outdent to make the
8135         indentation reflect the nesting level.  Add "helper" routines, since
8136         otherwise lots of "return;" statements would skip the debugging output.
8137
8138 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
8139
8140         * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
8141         s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
8142         s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
8143
8144 2009-04-17  Thomas Quinot  <quinot@adacore.com>
8145
8146         * exp_aggr.adb: Minor code reorganization, no behaviour change.
8147
8148 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
8149
8150         * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
8151         clause in a unit that is a package body or a subunit, when the previous
8152         clause appears in a spec or a parent.
8153
8154 2009-04-17  Thomas Quinot  <quinot@adacore.com>
8155
8156         * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
8157
8158         * exp_ch7.adb: Minor reformatting
8159
8160 2009-04-17  Bob Duff  <duff@adacore.com>
8161
8162         * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
8163         allocator, check that the expression of the qualified expression obeys
8164         the constraints of the subtype of the qualified expression.
8165
8166 2009-04-17  Thomas Quinot  <quinot@adacore.com>
8167
8168         * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
8169
8170 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
8171
8172         * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
8173         aggregate, using context imposed by subtype mark in allocator.
8174
8175 2009-04-17  Pascal Obry  <obry@adacore.com>
8176
8177         * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
8178
8179 2009-04-17  Nicolas Roche  <roche@adacore.com>
8180
8181         * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
8182         argument length.
8183
8184 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
8185
8186         * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
8187         cover both calls and attribute references ("call" => "reference").
8188
8189 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
8190
8191         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
8192         type for which Storage_Size is set to 0 is legal in a pure unit.
8193
8194 2009-04-17  Thomas Quinot  <quinot@adacore.com>
8195
8196         * exp_ch7.adb: Minor reformatting
8197
8198 2009-04-17  Robert Dewar  <dewar@adacore.com>
8199
8200         * restrict.adb (Check_Restriction_No_Dependence): Don't check
8201         restriction if outside main extended source unit.
8202
8203         * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
8204         for parents of child units as well as the child unit itself.
8205
8206 2009-04-17  Bob Duff  <duff@adacore.com>
8207
8208         * checks.ads: Minor comment fix
8209
8210         * exp_aggr.ads: Minor comment fix
8211
8212 2009-04-17  Nicolas Roche  <roche@adacore.com>
8213
8214         * adaint.c: Improve cross compiler detection and handling.
8215
8216 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8217
8218         * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
8219
8220 2009-04-17  Pascal Obry  <obry@adacore.com>
8221
8222         * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
8223         CurrentCodePage.
8224
8225         * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
8226         value when no encoding form paramter is set on Text_IO services.
8227
8228         * adaint.c: CurrentCodePage new variable on Windows.
8229         Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
8230         ones.
8231
8232         * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
8233         ones.
8234
8235         * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
8236         environment variable value. Default is UTF-8.
8237
8238         * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
8239         fopen and freopen encoding parameter is now set to Unspecified.
8240         The default value is in this case UTF-8 (as it was before) but
8241         use the new macros that convert to/from the code page set
8242         at runtime (CurrentCodePage).
8243
8244         * s-fileio.adb: When no encoding specified use Unspecified value.
8245
8246 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
8247
8248         * atree.adb, atree.ads: Remove dead code.
8249
8250 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
8251
8252         * gcc-interface/Make-lang.in: Update dependencies.
8253
8254 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
8255
8256         * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
8257         illegal uses of incomplete types in formal parts and return types.
8258
8259         * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
8260         access to subprograms.
8261
8262         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
8263         Taft-amendment types as the return type of an access_to_function type.
8264
8265         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
8266         type for access_to_subprograms. The check is performed on package exit.
8267
8268 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
8269
8270         * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
8271
8272         * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
8273         
8274         * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
8275
8276         * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
8277         semantic units, because the handling of itypes in the copied tree
8278         requires semantic information that does not belong in atree.
8279
8280 2009-04-17  Robert Dewar  <dewar@adacore.com>
8281
8282         * par-ch6.adb: Minor reformatting
8283
8284         * prj.adb: Minor reformatting
8285
8286 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
8287
8288         * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
8289         on protected subprogram bodies, so exclude the case where Pf_Flags is
8290         Pf_Decl_Pbod from the error check.
8291
8292         * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
8293         indicators on subprograms in protected bodies, and proceed with parsing
8294         the subprogram.
8295
8296         * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
8297         subprograms from the check for primitiveness on subprograms with
8298         overriding indicators.
8299         (Check_Overriding_Indicator): Include protected subprograms in the
8300         style check for missing overriding indicators.
8301
8302 2009-04-17  Tristan Gingold  <gingold@adacore.com>
8303
8304         * init.c: Fix stack checking for x86 Darwin.
8305
8306 2009-04-17  Vincent Celier  <celier@adacore.com>
8307
8308         * prj-attr.adb: New project level attribute Object_File_Suffix
8309         (<language>).
8310         
8311         * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
8312         object file name
8313         (Process_Compiler): Process attribute Object_File_Suffix
8314
8315         * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
8316         platform suffix, when specified.
8317
8318         * prj.ads (Language_Config): New component Object_File_Suffix,
8319         defaulted to No_Name.
8320         (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
8321
8322         * snames.ads-tmpl: New standard name Object_File_Suffix
8323
8324 2009-04-17  Robert Dewar  <dewar@adacore.com>
8325
8326         * gnat_rm.texi: Add documentation about No_Streams restriction
8327
8328         * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
8329         attributes when checking No_Streams restriction.
8330
8331 2009-04-17  Thomas Quinot  <quinot@adacore.com>
8332
8333         * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
8334
8335         * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
8336         missing calls to RE_Request_Destroy to deallocate request objects after
8337         use.
8338
8339 2009-04-17  Nicolas Setton  <setton@adacore.com>
8340
8341         * link.c: Fix support for passing a response file under Darwin.
8342
8343 2009-04-17  Emmanuel Briot  <briot@adacore.com>
8344
8345         * prj.adb (Free): new subprogram.
8346
8347 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
8348
8349         * sem_ch3.adb: additional initialization on incomplete subtypes.
8350         
8351         * sem_ch6.adb (Process_Formals): if the subprogram is in the private
8352         part and one of the formals is an incomplete tagged type, attach to
8353         list of private dependends of the type for later validation.
8354
8355         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
8356         primitive operations of a Taft-amendmment type.
8357
8358         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
8359         type. The check is performed on package exit, possibly after the
8360         subprogram is frozen.
8361
8362 2009-04-17  Vincent Celier  <celier@adacore.com>
8363
8364         * prj-nmsc.adb (Get_Directories): Get the object and exec directory
8365         before looking for source directories, but make sure that there are nil
8366         if they are not explicitely declared and there is explicitely no
8367         sources in the project.
8368
8369 2009-04-17  Pascal Obry  <obry@adacore.com>
8370
8371         * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
8372
8373         * init.c: Fix minor typo and style fix.
8374
8375 2009-04-17  Robert Dewar  <dewar@adacore.com>
8376
8377         * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
8378
8379         * sem_attr.adb (Analyze_Attribute, case Address): Use
8380         PE_Address_Of_Intrinsic.
8381
8382         * types.ads: Add PE_Address_Of_Intrinsic
8383
8384         * types.h: Add PE_Address_Of_Intrinsic
8385
8386 2009-04-17  Nicolas Setton  <setton@adacore.com>
8387
8388         * gcc-interface/Makefile.in: Under darwin, build shared libraries
8389         with install_name starting with "@rpath/".
8390
8391 2009-04-17  Nicolas Setton  <setton@adacore.com>
8392
8393         * link.c: Add darwin section
8394
8395 2009-04-16  Robert Dewar  <dewar@adacore.com>
8396
8397         * g-pehage.adb: Minor reformatting
8398
8399         * sem_ch12.adb: Minor reformatting
8400
8401         * exp_dist.adb: Minor reformatting
8402
8403         * bindgen.adb: Minor style fixes.
8404
8405 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8406
8407         * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
8408         indexed components to the case where the prefix is a static string
8409         literal.
8410
8411 2009-04-16  Javier Miranda  <miranda@adacore.com>
8412
8413         * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
8414         objects avoid any further expansion of the expression initializing the
8415         object.
8416
8417 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8418
8419         * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
8420         that hides an outer homograph, make that homograph invisible when
8421         analyzing the actuals, to to prevent illegal direct visibility on it.
8422
8423 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
8424
8425         * g-pehage.adb (Initialize): Fix off-by-one error.
8426
8427 2009-04-16  Tristan Gingold  <gingold@adacore.com>
8428
8429         * init.c: Detect real stack overflow on Darwin.
8430
8431         * system-darwin-x86.ads: Use stack probing on darwin x86.
8432
8433 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8434
8435         * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
8436         take the address of an intrinsic subprogram.
8437
8438 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
8439
8440         * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
8441         for the targets where GNAT.Traceback.Symbolic is not supported.
8442
8443 2009-04-16  Vincent Celier  <celier@adacore.com>
8444
8445         * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
8446
8447         * g-trasym.ads: Update comments.
8448
8449 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
8450
8451         * tracebak.c (STOP_FRAME): Verify validity of the current address
8452         before dereferencing.
8453
8454 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8455
8456         * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
8457         the original location of the index expressions and the index subtypes,
8458         to prevent spurious out-of-scope references in gigi.
8459
8460 2009-04-16  Tristan Gingold  <gingold@adacore.com>
8461
8462         * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
8463         Add support for stack checking on darwin.
8464
8465 2009-04-16  Vincent Celier  <celier@adacore.com>
8466
8467         * prj-attr.adb: New attribute Runtime_Source_Dir
8468
8469         * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
8470         attribute Runtime_Source_Dir.
8471         (Check_Naming_Schemes): Give default values to out parameters to avoid
8472         invalid data.
8473
8474         * prj.ads (Language_Config): New component Runtime_Source_Dir
8475
8476         * snames.ads-tmpl: New standard name Runtime_Source_Dir
8477
8478 2009-04-16  Pascal Obry  <obry@adacore.com>
8479
8480         * adaint.h, adaint.c (__gnat_rmdir): New routine.
8481         Simple wrapper routines used to convert to proper encoding on
8482         Windows.
8483
8484         * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
8485
8486         * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
8487         twice.
8488
8489 2009-04-16  Pascal Obry  <obry@adacore.com>
8490
8491         * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
8492
8493 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8494
8495         * snames.ads-tmpl (Name_Defined): New predefined name for use by the
8496         integrated preprocessor.
8497
8498         * prep.ads, prep.adb (Setup_Hooks): New subprogram.
8499         (Initialize): Split into two subprograms, Initialize (to be called
8500         prior to compiler command line processing) and Setup_Hooks (to be called
8501         later on when the first source file is loaded).
8502
8503         * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
8504         Add call to Prep.Initialize.
8505
8506         * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
8507         to Prep.Setup_Hooks.
8508
8509 2009-04-16  Pascal Obry  <obry@adacore.com>
8510
8511         * adaint.h, adaint.c (__gnat_chdir): New routine.
8512         Simple wrapper routines used to convert to proper encoding on
8513         Windows.
8514
8515         * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
8516
8517         * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
8518
8519 2009-04-16  Quentin Ochem  <ochem@adacore.com>
8520
8521         * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
8522         of Source.Init.
8523
8524 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
8525
8526         * a-convec.ads (Is_Empty): Mark inline.
8527
8528 2009-04-16  Nicolas Roche  <roche@adacore.com>
8529
8530         * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
8531
8532 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8533
8534         * prepcomp.adb: Minor reformatting
8535
8536 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
8537
8538         * sem_prag.adb (Process_Import_Or_Interface): With .NET,
8539         Access_Subprogram types can also be imported.
8540         (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
8541         names.
8542
8543 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8544
8545         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8546         preserve homonym chain when the declaration is rewritten into a
8547         renaming declaration, in order to preserve visibility structure.
8548
8549 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
8550
8551         * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
8552         taken into account for VM targets.
8553
8554 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
8555
8556         * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
8557         Year_Week_In_Year.
8558         (Year_Week_In_Year): New routine which contains the original code from
8559         Week_In_Year. Add the missing special case for January 1st falling on
8560         a Monday.
8561
8562 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8563
8564         * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
8565         actual type, use the base type to build the To_Any function.
8566         (Build_From_Any_Function): Remove junk, useless subtype conversion.
8567
8568 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8569
8570         * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
8571         restrict.adb: Minor code reorganization (use
8572         Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
8573
8574 2009-04-16  Bob Duff  <duff@adacore.com>
8575
8576         * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
8577         unused.
8578
8579 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8580
8581         * sem_ch4.adb: Minor reformatting
8582
8583         * adaint.c: Remove junk duplicated code.
8584
8585         * sem_ch3.adb: Minor reformatting
8586
8587         * exp_dist.adb: Minor comment rewording
8588
8589 2009-04-16  Robert Dewar  <dewar@adacore.com>
8590
8591         * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
8592         used together.
8593
8594 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8595
8596         * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
8597         usable before calling Add_One_Interp, to resolve spurious ambiguities.
8598
8599 2009-04-16  Robert Dewar  <dewar@adacore.com>
8600
8601         * Make-lang.in: Add entries for s-conca?.o
8602
8603         * Makefile.rtl: Add entries for s-conca?
8604
8605         * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
8606         of concatenation expansion
8607
8608         * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
8609         string cases instead of expanding assignments inline.
8610
8611         * opt.ads (Optimize_Size): New flag
8612
8613         * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
8614         s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
8615         s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
8616         s-conca9.adb, s-conca9.ads: New file.
8617
8618 2009-04-16  Robert Dewar  <dewar@adacore.com>
8619
8620         * exp_ch6.adb: Add comments
8621
8622         * rtsfind.ads: Add entries for s-conca? routines
8623
8624 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
8625
8626         * gcc-interface/Make-lang.in: Update dependencies.
8627
8628         * gcc-interface/Makefile.in: Update translation for vms.
8629
8630 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8631
8632         * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
8633         and made global, to be used when installing parents of a child
8634         instance, to provide mappings for entities declared in formal packages
8635         of ancestor units. Now called from Install_Formal_Packages.
8636
8637 2009-04-16  Doug Rupp  <rupp@adacore.com>
8638
8639         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
8640         notation for clarity.
8641
8642         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8643         s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
8644         s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
8645         (Initialize): Initialize Known_Tasks with Environment task.
8646
8647         * s-taskin.ads (Task_States): Move new states to end for the sake of
8648         GDB compatibility.
8649
8650         * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
8651
8652 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8653
8654         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
8655         operation has an inline pragma, propagate the flag to the internal
8656         unprotected subprogram.
8657
8658 2009-04-16  Doug Rupp  <rupp@adacore.com>
8659
8660         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
8661         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb, 
8662         s-taprop-hpux-dce.adb, s-taprop-posix.adb
8663         (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
8664
8665         * s-taprop-vms.adb (Enter_Task): Likewise.
8666         (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
8667
8668         * s-tassta.adb (Activate_Tasks): After task creation set state to
8669         Activating, vice Runnable. Initialize Known_Tasks, moved here from
8670         s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
8671         Set state to Runnable after above.
8672         (Task_Wrapper): Set Debug_Event_Run. In exception block set
8673         Debug_Event_Terminated.
8674
8675         * s-taskin.ads (Task_States): Add new states Activiting and
8676         Activator_Delay_Sleep.
8677         (Bit_Array, Debug_Event_Array): New types.
8678         (Global_Task_Debug_Event_Set: New flag.
8679         (Common_ATCB): New field Debug_Events.
8680
8681         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
8682
8683         * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
8684         Activator_Sleep.
8685
8686         * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
8687         Activating and when Acceptor_Delay_Sleep.
8688
8689         * s-tasdeb.ads: Add constants for Debug_Events.
8690         (Debug_Event_Kind_Type): New subtype.
8691         (Signal_Debug_Event): New subprogram.
8692
8693         * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
8694
8695 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8696
8697         * sem_elim.adb: Minor reformatting
8698
8699         * freeze.adb: Minor reformatting
8700
8701         * exp_ch4.adb: Minor reformatting
8702
8703 2009-04-16  Emmanuel Briot  <briot@adacore.com>
8704
8705         * prj-nmsc.adb (Path_Name_Of): fix memory leak
8706
8707 2009-04-16  Robert Dewar  <dewar@adacore.com>
8708
8709         * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
8710
8711 2009-04-16  Vincent Celier  <celier@adacore.com>
8712
8713         * fmap.adb (Initialize): Show the current line when the mapping file
8714         is detected as "incorrectly formatted".
8715
8716 2009-04-16  Robert Dewar  <dewar@adacore.com>
8717
8718         * sem_ch12.adb: Minor reformatting
8719
8720         * sem_ch5.adb: Minor comment addition
8721
8722         * sem_util.adb: Minor reformatting
8723
8724         * sinput-p.adb: Minor reformatting
8725         Add missing pragma Warnings (On)
8726
8727 2009-04-16  Ed Falis  <falis@adacore.com>
8728
8729         * s-vxwext-kernel.adb: (ERROR): deleted unused constant
8730
8731 2009-04-16  Vincent Celier  <celier@adacore.com>
8732
8733         * ali-util.adb: Minor comment spelling error fix
8734
8735 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
8736
8737         * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
8738         generate an assignment loop in case of overlap.
8739
8740 2009-04-16  Olivier Hainque  <hainque@adacore.com>
8741
8742         * gnat_ugn.texi (gnatmem description): Make it explicit that
8743         gnatmem is designed to work in association with static runtime
8744         library only.
8745
8746 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8747
8748         * sem_type.adb: Minor reformatting
8749
8750 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
8751
8752         * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
8753         concerning return codes of gettimeofday and return value check.
8754
8755 2009-04-16  Ed Falis  <falis@adacore.com>
8756
8757         * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
8758         body can be renaming of imported routines.
8759
8760 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
8761
8762         * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
8763         targeted fashion.
8764
8765 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8766
8767         * exp_ch9.adb: Comment improvements.
8768         (Build_Entry_Family_Name): Add parentheses around the index of a entry
8769         family member.
8770
8771 2009-04-15  Bob Duff  <duff@adacore.com>
8772
8773         * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
8774         "while X /= null loop" where X is unchanged inside the loop. We were
8775         not warning in this case, because of the pointers -- we feared that the
8776         loop variable could be updated via a pointer, if there are any pointers
8777         around the place. But that is impossible in this case.
8778
8779         * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
8780         the case of dereferences. In X.all, X cannot be an l-value. We now
8781         catch that case (and implicit dereferences, too).
8782
8783 2009-04-15  Vincent Celier  <celier@adacore.com>
8784
8785         * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
8786
8787 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8788
8789         * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
8790         From code reading.
8791         (Analyze_Package_Instantiation): If generic unit in child instance is
8792         the same as generic unit in parent instance, look for an outer homonym
8793         to locate the desired generic.
8794
8795 2009-04-15  Bob Duff  <duff@adacore.com>
8796
8797         * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
8798         warnings unless the loop comes from source, because checking generated
8799         loops is a waste of time, and makes it harder to debug
8800         Check_Infinite_Loop_Warning.
8801
8802         * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
8803         tested in the while loop is a renaming, do not warn. Otherwise, we get
8804         false alarms, because it's usually renaming something that we can't
8805         deal with (an indexed component, a global variable, ...).
8806
8807         * gnat_rm.texi: Fix typo
8808
8809 2009-04-15  Thomas Quinot  <quinot@adacore.com>
8810
8811         * sem_ch6.adb: Minor reformatting
8812
8813 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8814
8815         * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
8816         immediate parent of the controlled function call is a component
8817         association.
8818
8819 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8820
8821         * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
8822         corresponding class-wide type is also in use.
8823
8824 2009-04-15  Thomas Quinot  <quinot@adacore.com>
8825
8826         * frontend.adb: Minor comment fix
8827
8828 2009-04-15  Robert Dewar  <dewar@adacore.com>
8829
8830         * gnatchop.adb (BOM_Length): New global variable
8831         (Write_Unit): Add new parameter Write_BOM
8832         (Write_Chopped_Files): Check for BOM and set Write_BOM for call
8833         to Write_Unit
8834
8835         * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
8836
8837 2009-04-15  Geert Bosch  <bosch@adacore.com>
8838
8839         * system-mingw-x86_64.ads, system-darwin-x86_64.ads
8840         (Backend_Overflow_Checks): Set to True.
8841
8842 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
8843
8844         * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
8845         keyword is given in a record extension.
8846
8847 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8848
8849         * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
8850         of a controlled function call in the context of a record aggregate.
8851         This does not apply to array aggregates since the call will be expanded
8852         into assignments.
8853
8854 2009-04-15  Ed Falis  <falis@adacore.com>
8855
8856         * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
8857         s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
8858         s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
8859         s-osinte-vxworks* and s-vxwext*.
8860
8861 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
8862
8863         * gcc-interface/Make-lang.in: Update dependencies.
8864
8865         * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
8866         and s-vxwext*.
8867
8868 2009-04-15  Robert Dewar  <dewar@adacore.com>
8869
8870         * sem_ch13.adb (Unchecked_Conversions): Store source location instead
8871         of node for location for warning messages.
8872
8873         * gnatchop.adb: Minor reformatting
8874
8875 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8876
8877         * exp_ch6.adb: additional guard for renaming declarations for in
8878         parameters of an array type.
8879
8880 2009-04-15  Robert Dewar  <dewar@adacore.com>
8881
8882         * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
8883         in case they were rewritten by expander (Force_Evaluation).
8884
8885         * targparm.adb (Get_Target_Parameters): Correct check for
8886         Suppress_Exception_Locations.
8887
8888 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8889
8890         * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
8891         inlined  is of an array type that is not bit-packed, use a renaming
8892         declaration to capture its value, rather than a constant declaration.
8893
8894 2009-04-15  Robert Dewar  <dewar@adacore.com>
8895
8896         * rtsfind.adb: Minor reformatting.
8897
8898 2009-04-15  Emmanuel Briot  <briot@adacore.com>
8899
8900         * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
8901         Restore, and free the saved context.
8902
8903 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
8904
8905         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
8906         for illegal private extension from a synchronized interface parent in
8907         front of check for illegal limited extension so that limited extension
8908         from a synchronized interface will be rejected.
8909         (Check_Ifaces): Check that a private extension that has a synchronized
8910         interface as a progenitor must be explicitly declared synchronized.
8911         Also check that a record extension cannot derive from a synchronized
8912         interface.
8913
8914 2009-04-15  Pascal Obry  <obry@adacore.com>
8915
8916         * adaint.h (__gnat_unlink): Add spec.
8917         (__gnat_rename): Likewise.
8918
8919 2009-04-15  Vincent Celier  <celier@adacore.com>
8920
8921         * prj-nmsc.adb: Minor spelling error corrections in error messages
8922
8923 2009-04-15  Robert Dewar  <dewar@adacore.com>
8924
8925         * sinfo.ads: Minor comment update
8926
8927         * opt.ads: Minor comment updates
8928
8929         * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
8930         modular type.
8931
8932 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8933
8934         * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
8935         that generates the code needed to update a dispatch table when a
8936         primitive operation is declared with a subprogram body without previous
8937         spec. Insertion of the generated code is responsibility of the caller.
8938         (Make_DT): When building static tables, append the code created by
8939         Register_Primitive to update a secondary table after it has been
8940         constructed.
8941
8942         * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
8943
8944         * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
8945         on an overriding operation that implements an interface operation only
8946         if not building static dispatch tables.
8947
8948 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8949
8950         * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
8951         does not cause overflow when converted to Duration. Use the safe value
8952         as the maximum allowable time delay..
8953
8954 2009-04-15  Jerome Lambourg  <lambourg@adacore.com>
8955
8956         * g-comlin.adb (Set_Command_Line): When adding a switch with attached
8957         parameter, specify that the delimiter is NUL, otherwise "-j2" will be
8958         translated to "-j 2".
8959
8960 2009-04-15  Bob Duff  <duff@adacore.com>
8961
8962         * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
8963         with_clauses, to avoid code duplication. Change this processing so we
8964         always add a with_clause on the main unit if needed.
8965
8966 2009-04-15  Pascal Obry  <obry@adacore.com>
8967
8968         Add support for Win32 native encoding for delete/rename routines.
8969         
8970         * adaint.c (__gnat_unlink): New routine.
8971         (__gnat_rename): New routine.
8972         Simple wrapper routines used to convert to proper encoding on
8973         Windows.
8974
8975         * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
8976         call to the C library.
8977
8978         * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
8979
8980 2009-04-15  Robert Dewar  <dewar@adacore.com>
8981
8982         * s-tassta.adb: Minor reformatting
8983
8984 2009-04-15  Robert Dewar  <dewar@adacore.com>
8985
8986         * frontend.adb (Frontend): Set proper default for
8987         Warn_On_Non_Local_Exception.
8988
8989         * opt.ads (Exception_Handler_Encountered): New flag
8990         (No_Warn_On_Non_Local_Exception): New flag
8991
8992         * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
8993
8994         * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8995         (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8996
8997 2009-04-15  Cyrille Comar  <comar@adacore.com>
8998
8999         * s-tassta.adb, a-exextr.adb, a-elchha.adb
9000         (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
9001         message when exception traces are active since it would generate
9002         redundant information.
9003         (Exception_Traces.Notify_Exception): put message output by a critical
9004         section to avoid unsynchronized output.
9005         (Trace_Unhandled_Exception_In_Task): put message output by a critical
9006         section to avoid unsynchronized output.
9007
9008 2009-04-15  Emmanuel Briot  <briot@adacore.com>
9009
9010         * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
9011         (Free): New subprogram.
9012
9013 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
9014
9015         * a-calend.adb: Add new constant Nanos_In_Four_Years.
9016         (Formatting_Operations.Time_Of): Change the way four year chunks of
9017         nanoseconds are added to the intermediate result.
9018
9019 2009-04-15  Nicolas Setton  <setton@adacore.com>
9020
9021         * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
9022         does not need to wait for a carriage return.
9023
9024 2009-04-15  Tristan Gingold  <gingold@adacore.com>
9025
9026         * bindgen.adb: Do not generate adafinal if No_Finalization restriction
9027         is set.
9028
9029 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
9030
9031         * freeze.adb (Freeze_Entity): improve error message for improper use of
9032         incomplete types.
9033         Diagnose additional illegal uses of incomplete types in formal parts.
9034         appearing in formal parts.
9035
9036         * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
9037
9038 2009-04-15  Robert Dewar  <dewar@adacore.com>
9039
9040         * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
9041
9042 2009-04-15  Nicolas Roche  <roche@adacore.com>
9043
9044         * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
9045         current thread.
9046
9047         * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
9048
9049         * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
9050
9051 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
9052
9053         * sem_ch4.adb: improve error message on exponentiation.
9054
9055 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
9056
9057         * a-calend.adb: Move constant Epoch_Offset from package
9058         Conversion_Operations to top level.
9059         (Delay_Operations.To_Duration): Define a constant which represents
9060         "end of time" and use it as a guard against very distant delay dates.
9061         Protect the code against overflow when performing the origin shift to
9062         Unix time.
9063
9064 2009-04-15  Robert Dewar  <dewar@adacore.com>
9065
9066         * sem_prag.adb: Minor reformatting.
9067
9068         * sem_type.adb: Minor reformatting
9069
9070 2009-04-15  Javier Miranda  <miranda@adacore.com>
9071
9072         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
9073         support to check eliminated subprograms.
9074
9075         * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
9076
9077         * sem_elim.adb (Set_Eliminated): Add support for elimination of
9078         dispatching subprograms.
9079
9080         * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
9081         operations. Initialize with "null" the slots of eliminated dispaching
9082         primitives.
9083         (Write_DT): Add output for eliminated primitives.
9084
9085         * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
9086
9087 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
9088
9089         * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
9090         the second is redundant, regardless of scopes.
9091
9092 2009-04-15  Vincent Celier  <celier@adacore.com>
9093
9094         * prj-nmsc.adb (Get_Directories): Check for sources before checking
9095         the object directory as when there are no sources, they may not be any
9096         object directory.
9097
9098         * make.adb (Gnatmake): Do not attempt to get the path name of the exec
9099         directory, when there are no exec directory.
9100
9101 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
9102
9103         * sem_type.adb (Remove_Conversions): In order to resolve spurious
9104         ambiguities, refine removal of universal interpretations from complex
9105         expressions with literal arguments, when some numeric operators have
9106         been declared abstract.
9107
9108 2009-04-15  Ed Falis  <falis@adacore.com>
9109
9110         * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
9111         and backward compatibility for targets using probing for stack overflow
9112
9113 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
9114
9115         * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
9116         after any declaration, including renaming declarations.
9117
9118 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
9119
9120         * gcc-interface/Make-lang.in: Update dependencies.
9121
9122         * gcc-interface/Makefile.in: Fix VxWorks target pairs.
9123         Update xenomai target pairs.
9124
9125 2009-04-15  Javier Miranda  <miranda@adacore.com>
9126
9127         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9128
9129         * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
9130         functions returning anonymous access to class-wide limited types. Mark
9131         also the containing scope as a task master.
9132
9133         * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
9134         limited-withed packages. Required to restore their visibility after
9135         processing packages associated with implicit with-clauses.
9136
9137         * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
9138         associated with return statements because this work is now done by
9139         Check_Anonymous_Return.
9140         (Build_Master): Code cleanup.
9141
9142 2009-04-15  Thomas Quinot  <quinot@adacore.com>
9143
9144         * sem_warn.ads: Minor reformatting
9145
9146 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
9147
9148         * sem_ch3.adb: better error message for illegal interfaces
9149
9150         * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
9151         formal is an incomplete type from a limited_with clause.
9152
9153 2009-04-15  Vincent Celier  <celier@adacore.com>
9154
9155         * prj-nmsc.adb (Locate_Directory): New Boolean parameter
9156         Externally_Built indicating if the project is externally built. If it
9157         is, and --subdirs is specified, but the subdir does not exist, look
9158         for the specified directory, without the subdir.
9159
9160 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
9161
9162         * a-tasatt.adb: Fix typo, plus minor reformatting
9163
9164         * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
9165
9166         * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
9167
9168 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
9169
9170         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
9171         private extension whose parent is a synchronized interface carries an
9172         explicit synchronized keyword.
9173
9174 2009-04-15  Thomas Quinot  <quinot@adacore.com>
9175
9176         * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
9177         instantiate generic shared object package with the corresponding
9178         record type.
9179
9180 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
9181
9182         * system-linux-sparc.ads: Remove obsolete entries.
9183
9184 2009-04-15  Thomas Quinot  <quinot@adacore.com>
9185
9186         * s-tasuti.ads: Add ??? comment
9187
9188 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
9189
9190         * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
9191         type even if the designated type comes from a limited_with clause, to
9192         ensure that the symbol for the finalization list of the access type is
9193         created.
9194
9195 2009-04-10  Robert Dewar  <dewar@adacore.com>
9196
9197         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
9198         for warning suppression.
9199
9200 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9201
9202         * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
9203         identical, there is no redudancy to check.
9204
9205 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
9206
9207         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
9208         calls initializing SS_Allocator (which is initialized in following
9209         code).
9210         (Expand_Simple_Function_Return): Add comment about False value for
9211         Comes_From_Source on secondary-stack allocator.
9212
9213         * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
9214         (Build_Entry_Name): Add comment.
9215
9216 2009-04-10  Robert Dewar  <dewar@adacore.com>
9217
9218         * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
9219
9220         * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
9221         bound tested, since this is now done more generally in Sem_Res.
9222
9223         * sem_res.adb (Resolve_Comparison_Op): Add call to
9224         Check_Lower_Bound_Tested.
9225         (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
9226
9227         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
9228         (Low_Bound_Tested): New name for Low_Bound_Known flag
9229
9230         * exp_ch5.adb: Minor reformatting
9231
9232         * exp_ch4.adb:
9233         Add comments on copying the Comes_From_Source flag for allocators
9234
9235         * sinfo.ads:
9236         Add comments on copying the Comes_From_Source flag for allocators
9237
9238         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
9239         Comes_From_Source flag from old allocator to new one.
9240
9241 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9242
9243         * sem_ch6.ads: Address missing documentation query
9244
9245 2009-04-10  Vincent Celier  <celier@adacore.com>
9246
9247         * prj-attr.adb:
9248         Add new Linker attributes Max_Command_Line_Length, Response_File_Format
9249         and Response_File_Switches.
9250
9251         * prj-nmsc.adb (Process_Linker): Process new attributes
9252         Max_Command_Line_Length, Response_File_Format and
9253         Response_File_Switches.
9254
9255         * prj.ads (Response_File_Format): New enumeration type
9256         (Project_Configuration): New componants Max_Command_Line_Length,
9257         Resp_File_Format and Resp_File_Options.
9258
9259         * snames.ads-tmpl: Add new standard names for linking response files
9260         for gprbuild: GNU, None, Object_List, Option_List,
9261         Max_Command_Line_Length, Response_File_Format and
9262         Response_File_Switches.
9263
9264 2009-04-10  Geert Bosch  <bosch@adacore.com>
9265
9266         * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
9267         system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
9268         system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
9269         system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
9270         system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
9271         system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
9272         system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
9273         system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
9274         system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
9275         system-vxworks-arm.ads, system-vxworks-m68k.ads,
9276         system-vxworks-mips.ads, system-vxworks-ppc.ads,
9277         system-vxworks-sparcv9.ads, system-vxworks-x86.ads
9278         (Backend_Overflow_Checks): Set to True.
9279
9280 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9281
9282         * exp_attr.adb: Minor reformatting
9283
9284 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9285
9286         * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
9287         analyze the expression for a postcondition, even if the compiler mode
9288         is Generate_Code.
9289
9290 2009-04-10  Robert Dewar  <dewar@adacore.com>
9291
9292         * sem_aux.adb: Minor reformatting
9293
9294 2009-04-10  Ed Falis  <falis@adacore.com>
9295
9296         * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
9297
9298         * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
9299
9300 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9301
9302         * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
9303         undocumented formal.
9304         Minor reformatting
9305
9306         * a-direio.ads: Fix typo in comment
9307
9308         * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
9309         errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
9310         Use uniform phrasing for comment at start of subprogram body.
9311
9312         * xsnamest.adb: Add note to explain why we use specific names for the
9313         newly generated files instead of generating snames.{ads,adb,h} directly
9314
9315 2009-04-10  Sergey Rybin  <rybin@adacore.com>
9316
9317         * vms_data.ads:
9318         Add qualifier for new gnatstub option '--no-exception'
9319
9320         * gnat_ugn.texi:
9321         Add the description of the new gnatstub option '--no-exception'
9322
9323 2009-04-10  Robert Dewar  <dewar@adacore.com>
9324
9325         * rtsfind.adb: Minor reformatting
9326
9327 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9328
9329         * sem_disp.adb: Minor reformatting.
9330         Add comment pointing to RM clause for the case of warning against a
9331         (failed) attempt at declaring a primitive operation elsewhere than in a
9332         package spec.
9333
9334 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9335
9336         * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
9337         an actual for a previous formal package of the current instance.
9338
9339 2009-04-10  Bob Duff  <duff@adacore.com>
9340
9341         * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
9342         them first, rather than on the extended main unit.
9343
9344 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9345
9346         * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
9347         specification of full view carries a null exclusion indicator, create
9348         an itype for it, to check for conformance with partial view.
9349
9350 2009-04-10  Bob Duff  <duff@adacore.com>
9351
9352         * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
9353
9354         * rtsfind.adb: Minor comment changes, and remove useless code.
9355
9356         * sinfo.ads: Add ??? comment.
9357
9358 2009-04-10  Vincent Celier  <celier@adacore.com>
9359
9360         * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
9361
9362 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9363
9364         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
9365         type is a synchronized type, retrieve tag information from the
9366         corresponding record, which has the dispatch table link.
9367
9368 2009-04-10  Jerome Lambourg  <lambourg@adacore.com>
9369
9370         * g-comlin.adb (Group_Analysis): Take care of switches that might be
9371         decomposed afterwards, but are present as-is in the command line
9372         configuration, and thus should be kept as-is.
9373
9374 2009-04-10  Robert Dewar  <dewar@adacore.com>
9375
9376         * gnat_rm.texi: Document that postconditions are tested on implicit
9377         returns.
9378
9379         * sem_aux.adb: Minor reformatting
9380
9381 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
9382
9383         * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
9384         setting Etype.
9385         
9386         * par-ch3.adb (P_Access_Type_Definition): Set new attribute
9387         Null_Exclusion_In_Return_Present when an access-to-function type has a
9388         result type with an explicit not null.
9389
9390         * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
9391         given on the result type, then create a null-excluding itype for the
9392         function.
9393
9394         * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
9395         the case where a null exclusion is imposed on a named access type.
9396         (Analyze_Subprogram_Specification): Push and pop the scope of the
9397         function around the call to Analyze_Return_Type in the case of no
9398         formals, for consistency with handling when formals are present
9399         (Process_Formals does this). Ensures that any itype created for the
9400         return type will be associated with the proper scope.
9401
9402         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
9403         exclusion is given on a generic function's result type, then create a
9404         null-excluding itype for the generic function.
9405         (Instantiate_Object): Set Null_Exclusion_Present of a constant created
9406         for an actual for a formal in object according to the setting on the
9407         formal. Ensures null exclusion checks are done when the association is
9408         elaborated.
9409
9410         * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
9411         N_Access_Function_Definition.
9412
9413         * sinfo.adb: Add Get_ and Set_ operations for
9414         Null_Exclusion_In_Return_Present.
9415
9416 2009-04-10  Bob Duff  <duff@adacore.com>
9417
9418         * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
9419         call to the _Postconditions procedure in the case of implicit returns
9420         from analysis to expansion. This eliminates some duplicated code. Use
9421         the Postcondition_Proc to find the identity of this procedure during
9422         expansion.
9423
9424 2009-04-10  Robert Dewar  <dewar@adacore.com>
9425
9426         * sem_ch6.adb: Minor code clean up.
9427
9428         * einfo.ads, sem_attr.adb: Minor comment fixes.
9429
9430 2009-04-10  Robert Dewar  <dewar@adacore.com>
9431
9432         * sem_ch8.adb: Minor reformatting
9433
9434 2009-04-10  Robert Dewar  <dewar@adacore.com>
9435
9436         * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
9437         procedures.
9438
9439         * sem_ch6.adb: Minor code clean up.
9440
9441 2009-04-10  Robert Dewar  <dewar@adacore.com>
9442
9443         * mlib-tgt-specific-xi.adb: Minor reformatting
9444
9445 2009-04-10  Bob Duff  <duff@adacore.com>
9446
9447         * einfo.ads: Minor comment fixes
9448
9449 2009-04-10  Vincent Celier  <celier@adacore.com>
9450
9451         * snames.ads-tmpl: Remove names that are no longer used in the
9452         Project Manager.
9453         Mark specifically those that are used only in gprbuild
9454
9455 2009-04-10  Eric Botcazou  <ebotcazou@adacore.com>
9456
9457         * init.c: Adjust EH support code on Alpha/Tru64.
9458
9459 2009-04-10  Bob Duff  <duff@adacore.com>
9460
9461         * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
9462         procedure on every path that could return implicitly (not via a return
9463         statement) from a procedure.
9464
9465 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9466
9467         * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
9468         valid scope for a task declarations and therefore for a master id.
9469
9470 2009-04-10  Robert Dewar  <dewar@adacore.com>
9471
9472         * sem_aux.adb: Minor reformatting
9473
9474 2009-04-10  Vincent Celier  <celier@adacore.com>
9475
9476         * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
9477         True.
9478         (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
9479         (Set_Obsolescent_Check): New procedure to change the value of
9480         Obsolescent_Check_Flag.
9481
9482         * scn.ads (Set_Obsolescent_Check): New procedure to control
9483         Obsolescent_Check.
9484
9485         * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
9486         obsolescent features while preprocessing.
9487
9488 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9489
9490         * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
9491         generated files on all platforms.
9492
9493 2009-04-10  Robert Dewar  <dewar@adacore.com>
9494
9495         * sem_aux.adb: Minor reformatting
9496
9497 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9498
9499         * sem_ch3.adb (Access_Definition): Handle properly the case of a
9500         protected function with formals that returns an anonymous access type.
9501
9502 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9503
9504         * sem_disp.adb: Minor reformatting
9505
9506 2009-04-10  Vasiliy Fofanov  <fofanov@adacore.com>
9507
9508         * seh_init.c: Do not use the 32-bit specific implementation of
9509         __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
9510         version TBD).
9511
9512 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
9513
9514         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
9515         a '/' at the end so we better use the complete target name to determine
9516         whether it is a PowerPC 55xx target.
9517
9518 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9519
9520         * sem_eval.adb: Minor reformatting
9521
9522 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9523
9524         * snames.h, snames.ads, snames.adb: Remove files, now generated from
9525         templates.
9526
9527         * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
9528         above.
9529
9530         * xsnamest.adb: New file.
9531
9532         * gcc-interface/Make-lang.in: New target for automated generation of
9533         snames.ads, snames.adb and snames.h
9534
9535 2009-04-10  Tristan Gingold  <gingold@adacore.com>
9536
9537         * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
9538         avoid compile time warnings.
9539         Do not add gcc/config in include search list while compiling the RTS.
9540         Pragma Thread_Local_Storage is available on any target.
9541
9542 2009-04-10  Bob Duff  <duff@adacore.com>
9543
9544         * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
9545
9546 2009-04-10  Tristan Gingold  <gingold@adacore.com>
9547
9548         * init.c: Install signal handler on Darwin.
9549
9550 2009-04-10  Robert Dewar  <dewar@adacore.com>
9551
9552         * sem_prag.adb: Minor reformatting
9553
9554         * exp_util.adb (Make_Non_Empty_Check): New function
9555         (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
9556         (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
9557
9558 2009-04-10  Arnaud Charlet  <charlet@adacore.com>
9559
9560         * make.adb, gnatlink.adb: Rename JGNAT toolchain.
9561
9562 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
9563
9564         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
9565         tool prefix for AVR and PowerPC 55xx targets.
9566
9567 2009-04-10  Robert Dewar  <dewar@adacore.com>
9568
9569         * sem_warn.adb (Within_Postcondition): New function
9570         (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
9571
9572 2009-04-10  Robert Dewar  <dewar@adacore.com>
9573
9574         * sem_warn.adb: Minor reformatting
9575
9576         * make.adb: Minor reformatting.
9577
9578 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
9579
9580         * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
9581         entity and the scope is a subprogram, retrieve the Sloc of the
9582         subprogram's body rather than using the sloc of the spec, for better
9583         line-stepping behavior in gdb.
9584         (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
9585         controller, use the Sloc of the first declaration of the containing list
9586         rather than that of the node that triggered creation of the list
9587         controller.
9588
9589 2009-04-10  Vincent Celier  <celier@adacore.com>
9590
9591         * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
9592         to avoid gcc warning.
9593
9594 2009-04-10  Robert Dewar  <dewar@adacore.com>
9595
9596         * g-comlin.adb: Add ??? comment
9597
9598 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9599
9600         * sem_warn.adb (Check_Unused_Withs): Do not emit message about
9601         unreferenced entities for a package with no visible declarations.
9602
9603 2009-04-10  Robert Dewar  <dewar@adacore.com>
9604
9605         * exp_ch9.adb: Minor reformatting
9606
9607 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9608
9609         * sem_prag.adb: Minor reformatting
9610
9611 2009-04-10  Vincent Celier  <celier@adacore.com>
9612
9613         * prj-nmsc.adb:
9614         (Check_Library_Attributes): For a project qualified as a library project
9615         that is not a library project, indicate in the error message which
9616         attributes are missing (Library_Dir and/or Library_Name).
9617
9618 2009-04-10  Bob Duff  <duff@adacore.com>
9619
9620         * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
9621         generated nodes, because it might confuse various circuits in the FE.
9622
9623 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9624
9625         * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
9626         of pragma. It will be recopied and analyzed when used in call to
9627         Create_Task.
9628
9629         * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
9630         initialization operations and recognize use of it in procedure calls
9631         within init_procs.
9632
9633         * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
9634         argument, because it may have side-effects.
9635
9636         * exp_ch2.adb: Remove obsolete comments on default functions
9637
9638 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
9639
9640         * adaint.c (RTX section): Do for RTX the same thing as we do for
9641         Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
9642
9643 2009-04-10  Robert Dewar  <dewar@adacore.com>
9644
9645         * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
9646
9647         * sem_res.adb (Resolve_Call): Fix test for
9648         Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
9649         a non-dynamic scope).
9650
9651 2009-04-10  Robert Dewar  <dewar@adacore.com>
9652
9653         * make.adb: Add comment.
9654         Minor reformatting
9655
9656 2009-04-10  Nicolas Setton  <setton@adacore.com>
9657
9658         * s-osprim-darwin.adb: New file.
9659
9660         * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
9661
9662 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9663
9664         * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
9665
9666 2009-04-09  Nick Clifton  <nickc@redhat.com>
9667
9668         * adadecode.h: Change copyright header to refer to version
9669         3 of the GNU General Public License with version 3.1 of the
9670         GCC Runtime Library Exception and to point readers at the
9671         COPYING3 and COPYING3.RUNTIME files and the FSF's license web
9672         page.
9673         * 9drpc.adb: Likewise.
9674         * a-assert.adb: Likewise.
9675         * a-astaco.adb: Likewise.
9676         * a-calari.adb: Likewise.
9677         * a-calcon.adb: Likewise.
9678         * a-calcon.ads: Likewise.
9679         * a-caldel.ads: Likewise.
9680         * a-calend-vms.adb: Likewise.
9681         * a-calend-vms.ads: Likewise.
9682         * a-calend.adb: Likewise.
9683         * a-calend.ads: Likewise.
9684         * a-calfor.adb: Likewise.
9685         * a-catizo.adb: Likewise.
9686         * a-cdlili.adb: Likewise.
9687         * a-cdlili.ads: Likewise.
9688         * a-cgaaso.adb: Likewise.
9689         * a-cgaaso.ads: Likewise.
9690         * a-cgarso.adb: Likewise.
9691         * a-cgcaso.adb: Likewise.
9692         * a-chacon.adb: Likewise.
9693         * a-chacon.ads: Likewise.
9694         * a-chahan.adb: Likewise.
9695         * a-chahan.ads: Likewise.
9696         * a-chlat9.ads: Likewise.
9697         * a-chtgke.adb: Likewise.
9698         * a-chtgke.ads: Likewise.
9699         * a-chtgop.adb: Likewise.
9700         * a-chtgop.ads: Likewise.
9701         * a-chzla1.ads: Likewise.
9702         * a-chzla9.ads: Likewise.
9703         * a-cidlli.adb: Likewise.
9704         * a-cidlli.ads: Likewise.
9705         * a-cihama.adb: Likewise.
9706         * a-cihama.ads: Likewise.
9707         * a-cihase.adb: Likewise.
9708         * a-cihase.ads: Likewise.
9709         * a-ciorma.adb: Likewise.
9710         * a-ciorma.ads: Likewise.
9711         * a-ciormu.adb: Likewise.
9712         * a-ciormu.ads: Likewise.
9713         * a-ciorse.adb: Likewise.
9714         * a-ciorse.ads: Likewise.
9715         * a-clrefi.adb: Likewise.
9716         * a-clrefi.ads: Likewise.
9717         * a-cohama.adb: Likewise.
9718         * a-cohama.ads: Likewise.
9719         * a-cohase.adb: Likewise.
9720         * a-cohase.ads: Likewise.
9721         * a-cohata.ads: Likewise.
9722         * a-coinve.adb: Likewise.
9723         * a-coinve.ads: Likewise.
9724         * a-colien.adb: Likewise.
9725         * a-colien.ads: Likewise.
9726         * a-colire.adb: Likewise.
9727         * a-colire.ads: Likewise.
9728         * a-comlin.adb: Likewise.
9729         * a-comlin.ads: Likewise.
9730         * a-convec.adb: Likewise.
9731         * a-convec.ads: Likewise.
9732         * a-coorma.adb: Likewise.
9733         * a-coorma.ads: Likewise.
9734         * a-coormu.adb: Likewise.
9735         * a-coormu.ads: Likewise.
9736         * a-coorse.adb: Likewise.
9737         * a-coorse.ads: Likewise.
9738         * a-coprnu.adb: Likewise.
9739         * a-coprnu.ads: Likewise.
9740         * a-crbltr.ads: Likewise.
9741         * a-crbtgk.adb: Likewise.
9742         * a-crbtgk.ads: Likewise.
9743         * a-crbtgo.adb: Likewise.
9744         * a-crbtgo.ads: Likewise.
9745         * a-crdlli.adb: Likewise.
9746         * a-crdlli.ads: Likewise.
9747         * a-cwila1.ads: Likewise.
9748         * a-cwila9.ads: Likewise.
9749         * a-decima.adb: Likewise.
9750         * a-decima.ads: Likewise.
9751         * a-diocst.adb: Likewise.
9752         * a-diocst.ads: Likewise.
9753         * a-direct.adb: Likewise.
9754         * a-direct.ads: Likewise.
9755         * a-direio.adb: Likewise.
9756         * a-direio.ads: Likewise.
9757         * a-dirval-mingw.adb: Likewise.
9758         * a-dirval-vms.adb: Likewise.
9759         * a-dirval.adb: Likewise.
9760         * a-dirval.ads: Likewise.
9761         * a-dynpri.adb: Likewise.
9762         * a-einuoc.adb: Likewise.
9763         * a-einuoc.ads: Likewise.
9764         * a-elchha.adb: Likewise.
9765         * a-elchha.ads: Likewise.
9766         * a-envvar.adb: Likewise.
9767         * a-excach.adb: Likewise.
9768         * a-except-2005.adb: Likewise.
9769         * a-except-2005.ads: Likewise.
9770         * a-except.adb: Likewise.
9771         * a-except.ads: Likewise.
9772         * a-excpol-abort.adb: Likewise.
9773         * a-excpol.adb: Likewise.
9774         * a-exctra.adb: Likewise.
9775         * a-exctra.ads: Likewise.
9776         * a-exetim-mingw.adb: Likewise.
9777         * a-exetim-mingw.ads: Likewise.
9778         * a-exexda.adb: Likewise.
9779         * a-exexpr-gcc.adb: Likewise.
9780         * a-exexpr.adb: Likewise.
9781         * a-exextr.adb: Likewise.
9782         * a-exstat.adb: Likewise.
9783         * a-filico.adb: Likewise.
9784         * a-filico.ads: Likewise.
9785         * a-finali.adb: Likewise.
9786         * a-finali.ads: Likewise.
9787         * a-interr.ads: Likewise.
9788         * a-intnam-aix.ads: Likewise.
9789         * a-intnam-darwin.ads: Likewise.
9790         * a-intnam-dummy.ads: Likewise.
9791         * a-intnam-freebsd.ads: Likewise.
9792         * a-intnam-hpux.ads: Likewise.
9793         * a-intnam-irix.ads: Likewise.
9794         * a-intnam-linux.ads: Likewise.
9795         * a-intnam-lynxos.ads: Likewise.
9796         * a-intnam-mingw.ads: Likewise.
9797         * a-intnam-rtems.ads: Likewise.
9798         * a-intnam-solaris.ads: Likewise.
9799         * a-intnam-tru64.ads: Likewise.
9800         * a-intnam-vms.ads: Likewise.
9801         * a-intnam-vxworks.ads: Likewise.
9802         * a-intsig.adb: Likewise.
9803         * a-intsig.ads: Likewise.
9804         * a-ngcefu.adb: Likewise.
9805         * a-ngcoar.adb: Likewise.
9806         * a-ngcoty.adb: Likewise.
9807         * a-ngcoty.ads: Likewise.
9808         * a-ngelfu.adb: Likewise.
9809         * a-ngrear.adb: Likewise.
9810         * a-ngrear.ads: Likewise.
9811         * a-nudira.adb: Likewise.
9812         * a-nudira.ads: Likewise.
9813         * a-nuflra.adb: Likewise.
9814         * a-nuflra.ads: Likewise.
9815         * a-numaux-darwin.adb: Likewise.
9816         * a-numaux-darwin.ads: Likewise.
9817         * a-numaux-libc-x86.ads: Likewise.
9818         * a-numaux-vxworks.ads: Likewise.
9819         * a-numaux-x86.adb: Likewise.
9820         * a-numaux-x86.ads: Likewise.
9821         * a-numaux.ads: Likewise.
9822         * a-rbtgso.adb: Likewise.
9823         * a-rbtgso.ads: Likewise.
9824         * a-reatim.ads: Likewise.
9825         * a-retide.adb: Likewise.
9826         * a-retide.ads: Likewise.
9827         * a-rttiev.adb: Likewise.
9828         * a-rttiev.ads: Likewise.
9829         * a-secain.adb: Likewise.
9830         * a-secain.ads: Likewise.
9831         * a-sequio.adb: Likewise.
9832         * a-sequio.ads: Likewise.
9833         * a-shcain.adb: Likewise.
9834         * a-shcain.ads: Likewise.
9835         * a-siocst.adb: Likewise.
9836         * a-siocst.ads: Likewise.
9837         * a-slcain.adb: Likewise.
9838         * a-slcain.ads: Likewise.
9839         * a-ssicst.adb: Likewise.
9840         * a-ssicst.ads: Likewise.
9841         * a-stboha.adb: Likewise.
9842         * a-stmaco.ads: Likewise.
9843         * a-storio.adb: Likewise.
9844         * a-strbou.adb: Likewise.
9845         * a-strbou.ads: Likewise.
9846         * a-stream.ads: Likewise.
9847         * a-strfix.adb: Likewise.
9848         * a-strhas.adb: Likewise.
9849         * a-strmap.adb: Likewise.
9850         * a-strmap.ads: Likewise.
9851         * a-strsea.adb: Likewise.
9852         * a-strsea.ads: Likewise.
9853         * a-strsup.adb: Likewise.
9854         * a-strsup.ads: Likewise.
9855         * a-strunb.adb: Likewise.
9856         * a-strunb.ads: Likewise.
9857         * a-ststio.adb: Likewise.
9858         * a-ststio.ads: Likewise.
9859         * a-stunau.adb: Likewise.
9860         * a-stunau.ads: Likewise.
9861         * a-stunha.adb: Likewise.
9862         * a-stwibo.adb: Likewise.
9863         * a-stwibo.ads: Likewise.
9864         * a-stwifi.adb: Likewise.
9865         * a-stwiha.adb: Likewise.
9866         * a-stwima.adb: Likewise.
9867         * a-stwima.ads: Likewise.
9868         * a-stwise.adb: Likewise.
9869         * a-stwise.ads: Likewise.
9870         * a-stwisu.adb: Likewise.
9871         * a-stwisu.ads: Likewise.
9872         * a-stwiun.adb: Likewise.
9873         * a-stwiun.ads: Likewise.
9874         * a-stzbou.adb: Likewise.
9875         * a-stzbou.ads: Likewise.
9876         * a-stzfix.adb: Likewise.
9877         * a-stzhas.adb: Likewise.
9878         * a-stzmap.adb: Likewise.
9879         * a-stzmap.ads: Likewise.
9880         * a-stzsea.adb: Likewise.
9881         * a-stzsea.ads: Likewise.
9882         * a-stzsup.adb: Likewise.
9883         * a-stzsup.ads: Likewise.
9884         * a-stzunb.adb: Likewise.
9885         * a-stzunb.ads: Likewise.
9886         * a-suteio.adb: Likewise.
9887         * a-suteio.ads: Likewise.
9888         * a-swbwha.adb: Likewise.
9889         * a-swmwco.ads: Likewise.
9890         * a-swunau.adb: Likewise.
9891         * a-swunau.ads: Likewise.
9892         * a-swuwha.adb: Likewise.
9893         * a-swuwti.adb: Likewise.
9894         * a-swuwti.ads: Likewise.
9895         * a-sytaco.adb: Likewise.
9896         * a-sytaco.ads: Likewise.
9897         * a-szbzha.adb: Likewise.
9898         * a-szmzco.ads: Likewise.
9899         * a-szunau.adb: Likewise.
9900         * a-szunau.ads: Likewise.
9901         * a-szuzha.adb: Likewise.
9902         * a-szuzti.adb: Likewise.
9903         * a-szuzti.ads: Likewise.
9904         * a-tags.adb: Likewise.
9905         * a-tags.ads: Likewise.
9906         * a-tasatt.ads: Likewise.
9907         * a-taside.adb: Likewise.
9908         * a-taside.ads: Likewise.
9909         * a-taster.adb: Likewise.
9910         * a-teioed.adb: Likewise.
9911         * a-teioed.ads: Likewise.
9912         * a-textio.adb: Likewise.
9913         * a-textio.ads: Likewise.
9914         * a-tiboio.adb: Likewise.
9915         * a-ticoau.adb: Likewise.
9916         * a-ticoau.ads: Likewise.
9917         * a-ticoio.adb: Likewise.
9918         * a-ticoio.ads: Likewise.
9919         * a-tideau.adb: Likewise.
9920         * a-tideau.ads: Likewise.
9921         * a-tideio.adb: Likewise.
9922         * a-tideio.ads: Likewise.
9923         * a-tienau.adb: Likewise.
9924         * a-tienau.ads: Likewise.
9925         * a-tienio.adb: Likewise.
9926         * a-tienio.ads: Likewise.
9927         * a-tifiio.adb: Likewise.
9928         * a-tifiio.ads: Likewise.
9929         * a-tiflau.adb: Likewise.
9930         * a-tiflau.ads: Likewise.
9931         * a-tiflio.adb: Likewise.
9932         * a-tiflio.ads: Likewise.
9933         * a-tigeau.adb: Likewise.
9934         * a-tigeau.ads: Likewise.
9935         * a-tiinau.adb: Likewise.
9936         * a-tiinau.ads: Likewise.
9937         * a-tiinio.adb: Likewise.
9938         * a-tiinio.ads: Likewise.
9939         * a-timoau.adb: Likewise.
9940         * a-timoau.ads: Likewise.
9941         * a-timoio.adb: Likewise.
9942         * a-timoio.ads: Likewise.
9943         * a-tiocst.adb: Likewise.
9944         * a-tiocst.ads: Likewise.
9945         * a-titest.adb: Likewise.
9946         * a-wichun.adb: Likewise.
9947         * a-wichun.ads: Likewise.
9948         * a-witeio.adb: Likewise.
9949         * a-witeio.ads: Likewise.
9950         * a-wtcoau.adb: Likewise.
9951         * a-wtcoau.ads: Likewise.
9952         * a-wtcoio.adb: Likewise.
9953         * a-wtcstr.adb: Likewise.
9954         * a-wtcstr.ads: Likewise.
9955         * a-wtdeau.adb: Likewise.
9956         * a-wtdeau.ads: Likewise.
9957         * a-wtdeio.adb: Likewise.
9958         * a-wtdeio.ads: Likewise.
9959         * a-wtedit.adb: Likewise.
9960         * a-wtedit.ads: Likewise.
9961         * a-wtenau.adb: Likewise.
9962         * a-wtenau.ads: Likewise.
9963         * a-wtenio.adb: Likewise.
9964         * a-wtenio.ads: Likewise.
9965         * a-wtfiio.adb: Likewise.
9966         * a-wtfiio.ads: Likewise.
9967         * a-wtflau.adb: Likewise.
9968         * a-wtflau.ads: Likewise.
9969         * a-wtflio.adb: Likewise.
9970         * a-wtflio.ads: Likewise.
9971         * a-wtgeau.adb: Likewise.
9972         * a-wtgeau.ads: Likewise.
9973         * a-wtinau.adb: Likewise.
9974         * a-wtinau.ads: Likewise.
9975         * a-wtinio.adb: Likewise.
9976         * a-wtmoau.adb: Likewise.
9977         * a-wtmoau.ads: Likewise.
9978         * a-wtmoio.adb: Likewise.
9979         * a-wtmoio.ads: Likewise.
9980         * a-wttest.adb: Likewise.
9981         * a-wwboio.adb: Likewise.
9982         * a-zchuni.adb: Likewise.
9983         * a-zchuni.ads: Likewise.
9984         * a-ztcoau.adb: Likewise.
9985         * a-ztcoau.ads: Likewise.
9986         * a-ztcoio.adb: Likewise.
9987         * a-ztcstr.adb: Likewise.
9988         * a-ztcstr.ads: Likewise.
9989         * a-ztdeau.adb: Likewise.
9990         * a-ztdeau.ads: Likewise.
9991         * a-ztdeio.adb: Likewise.
9992         * a-ztdeio.ads: Likewise.
9993         * a-ztedit.adb: Likewise.
9994         * a-ztedit.ads: Likewise.
9995         * a-ztenau.adb: Likewise.
9996         * a-ztenau.ads: Likewise.
9997         * a-ztenio.adb: Likewise.
9998         * a-ztenio.ads: Likewise.
9999         * a-ztexio.adb: Likewise.
10000         * a-ztexio.ads: Likewise.
10001         * a-ztfiio.adb: Likewise.
10002         * a-ztfiio.ads: Likewise.
10003         * a-ztflau.adb: Likewise.
10004         * a-ztflau.ads: Likewise.
10005         * a-ztflio.adb: Likewise.
10006         * a-ztflio.ads: Likewise.
10007         * a-ztgeau.adb: Likewise.
10008         * a-ztgeau.ads: Likewise.
10009         * a-ztinau.adb: Likewise.
10010         * a-ztinau.ads: Likewise.
10011         * a-ztinio.adb: Likewise.
10012         * a-ztmoau.adb: Likewise.
10013         * a-ztmoau.ads: Likewise.
10014         * a-ztmoio.adb: Likewise.
10015         * a-ztmoio.ads: Likewise.
10016         * a-zttest.adb: Likewise.
10017         * a-zzboio.adb: Likewise.
10018         * adadecode.c: Likewise.
10019         * adaint.c: Likewise.
10020         * adaint.h: Likewise.
10021         * alloc.ads: Likewise.
10022         * argv.c: Likewise.
10023         * arit64.c: Likewise.
10024         * atree.adb: Likewise.
10025         * atree.ads: Likewise.
10026         * aux-io.c: Likewise.
10027         * cal.c: Likewise.
10028         * casing.adb: Likewise.
10029         * casing.ads: Likewise.
10030         * cio.c: Likewise.
10031         * csets.adb: Likewise.
10032         * csets.ads: Likewise.
10033         * cstreams.c: Likewise.
10034         * ctrl_c.c: Likewise.
10035         * debug.adb: Likewise.
10036         * debug.ads: Likewise.
10037         * dec.ads: Likewise.
10038         * einfo.adb: Likewise.
10039         * einfo.ads: Likewise.
10040         * elists.adb: Likewise.
10041         * elists.ads: Likewise.
10042         * env.c: Likewise.
10043         * env.h: Likewise.
10044         * errno.c: Likewise.
10045         * exit.c: Likewise.
10046         * fe.h: Likewise.
10047         * final.c: Likewise.
10048         * fname.adb: Likewise.
10049         * fname.ads: Likewise.
10050         * g-allein.ads: Likewise.
10051         * g-alleve.adb: Likewise.
10052         * g-alleve.ads: Likewise.
10053         * g-altcon.adb: Likewise.
10054         * g-altcon.ads: Likewise.
10055         * g-altive.ads: Likewise.
10056         * g-alveop.adb: Likewise.
10057         * g-alveop.ads: Likewise.
10058         * g-alvety.ads: Likewise.
10059         * g-alvevi.ads: Likewise.
10060         * g-arrspl.adb: Likewise.
10061         * g-arrspl.ads: Likewise.
10062         * g-calend.ads: Likewise.
10063         * g-comlin.adb: Likewise.
10064         * g-debpoo.adb: Likewise.
10065         * g-debpoo.ads: Likewise.
10066         * g-eacodu-vms.adb: Likewise.
10067         * g-eacodu.adb: Likewise.
10068         * g-excact.adb: Likewise.
10069         * g-excact.ads: Likewise.
10070         * g-locfil.adb: Likewise.
10071         * g-os_lib.ads: Likewise.
10072         * g-rannum.adb: Likewise.
10073         * g-rannum.ads: Likewise.
10074         * g-regist.adb: Likewise.
10075         * g-regist.ads: Likewise.
10076         * g-signal.adb: Likewise.
10077         * g-signal.ads: Likewise.
10078         * g-soccon.ads: Likewise.
10079         * g-string.adb: Likewise.
10080         * g-string.ads: Likewise.
10081         * g-strspl.ads: Likewise.
10082         * g-timsta.adb: Likewise.
10083         * g-timsta.ads: Likewise.
10084         * g-trasym-vms-alpha.adb: Likewise.
10085         * g-trasym-vms-ia64.adb: Likewise.
10086         * g-utf_32.adb: Likewise.
10087         * g-utf_32.ads: Likewise.
10088         * g-wistsp.ads: Likewise.
10089         * g-zstspl.ads: Likewise.
10090         * gmem.c: Likewise.
10091         * gnatvsn.adb: Likewise.
10092         * gnatvsn.ads: Likewise.
10093         * gsocket.h: Likewise.
10094         * hostparm.ads: Likewise.
10095         * i-c.adb: Likewise.
10096         * i-cexten.ads: Likewise.
10097         * i-cobol.adb: Likewise.
10098         * i-cobol.ads: Likewise.
10099         * i-cpoint.adb: Likewise.
10100         * i-cpoint.ads: Likewise.
10101         * i-cpp.adb: Likewise.
10102         * i-cpp.ads: Likewise.
10103         * i-cstrea-vms.adb: Likewise.
10104         * i-cstrea.adb: Likewise.
10105         * i-cstrea.ads: Likewise.
10106         * i-cstrin.adb: Likewise.
10107         * i-cstrin.ads: Likewise.
10108         * i-forbla-darwin.adb: Likewise.
10109         * i-forbla-unimplemented.ads: Likewise.
10110         * i-forbla.adb: Likewise.
10111         * i-forbla.ads: Likewise.
10112         * i-forlap.ads: Likewise.
10113         * i-fortra.adb: Likewise.
10114         * i-pacdec.adb: Likewise.
10115         * i-pacdec.ads: Likewise.
10116         * i-vxwoio.adb: Likewise.
10117         * i-vxwoio.ads: Likewise.
10118         * indepsw-aix.adb: Likewise.
10119         * indepsw-gnu.adb: Likewise.
10120         * indepsw-mingw.adb: Likewise.
10121         * indepsw.adb: Likewise.
10122         * indepsw.ads: Likewise.
10123         * init.c: Likewise.
10124         * initialize.c: Likewise.
10125         * interfac.ads: Likewise.
10126         * krunch.adb: Likewise.
10127         * krunch.ads: Likewise.
10128         * lib-list.adb: Likewise.
10129         * lib-sort.adb: Likewise.
10130         * lib.adb: Likewise.
10131         * lib.ads: Likewise.
10132         * link.c: Likewise.
10133         * math_lib.adb: Likewise.
10134         * memtrack.adb: Likewise.
10135         * mingw32.h: Likewise.
10136         * mkdir.c: Likewise.
10137         * namet-sp.adb: Likewise.
10138         * namet-sp.ads: Likewise.
10139         * namet.adb: Likewise.
10140         * namet.ads: Likewise.
10141         * nlists.adb: Likewise.
10142         * nlists.ads: Likewise.
10143         * opt.adb: Likewise.
10144         * opt.ads: Likewise.
10145         * output.adb: Likewise.
10146         * output.ads: Likewise.
10147         * raise-gcc.c: Likewise.
10148         * raise.c: Likewise.
10149         * raise.h: Likewise.
10150         * repinfo.adb: Likewise.
10151         * repinfo.ads: Likewise.
10152         * repinfo.h: Likewise.
10153         * rident.ads: Likewise.
10154         * s-addima.adb: Likewise.
10155         * s-addima.ads: Likewise.
10156         * s-addope.adb: Likewise.
10157         * s-addope.ads: Likewise.
10158         * s-arit64.adb: Likewise.
10159         * s-arit64.ads: Likewise.
10160         * s-assert.adb: Likewise.
10161         * s-assert.ads: Likewise.
10162         * s-asthan-vms-alpha.adb: Likewise.
10163         * s-asthan.adb: Likewise.
10164         * s-asthan.ads: Likewise.
10165         * s-atacco.adb: Likewise.
10166         * s-atacco.ads: Likewise.
10167         * s-auxdec-empty.adb: Likewise.
10168         * s-auxdec-empty.ads: Likewise.
10169         * s-auxdec-vms_64.ads: Likewise.
10170         * s-auxdec.adb: Likewise.
10171         * s-auxdec.ads: Likewise.
10172         * s-bitops.adb: Likewise.
10173         * s-bitops.ads: Likewise.
10174         * s-boarop.ads: Likewise.
10175         * s-carsi8.adb: Likewise.
10176         * s-carsi8.ads: Likewise.
10177         * s-carun8.adb: Likewise.
10178         * s-carun8.ads: Likewise.
10179         * s-casi16.adb: Likewise.
10180         * s-casi16.ads: Likewise.
10181         * s-casi32.adb: Likewise.
10182         * s-casi32.ads: Likewise.
10183         * s-casi64.adb: Likewise.
10184         * s-casi64.ads: Likewise.
10185         * s-casuti.ads: Likewise.
10186         * s-caun16.adb: Likewise.
10187         * s-caun16.ads: Likewise.
10188         * s-caun32.adb: Likewise.
10189         * s-caun32.ads: Likewise.
10190         * s-caun64.adb: Likewise.
10191         * s-caun64.ads: Likewise.
10192         * s-chepoo.ads: Likewise.
10193         * s-crc32.adb: Likewise.
10194         * s-crc32.ads: Likewise.
10195         * s-crtl.ads: Likewise.
10196         * s-direio.adb: Likewise.
10197         * s-direio.ads: Likewise.
10198         * s-dsaser.ads: Likewise.
10199         * s-except.adb: Likewise.
10200         * s-except.ads: Likewise.
10201         * s-exctab.adb: Likewise.
10202         * s-exctab.ads: Likewise.
10203         * s-exnint.adb: Likewise.
10204         * s-exnint.ads: Likewise.
10205         * s-exnllf.adb: Likewise.
10206         * s-exnllf.ads: Likewise.
10207         * s-exnlli.adb: Likewise.
10208         * s-exnlli.ads: Likewise.
10209         * s-expint.adb: Likewise.
10210         * s-expint.ads: Likewise.
10211         * s-explli.adb: Likewise.
10212         * s-explli.ads: Likewise.
10213         * s-expllu.adb: Likewise.
10214         * s-expllu.ads: Likewise.
10215         * s-expmod.adb: Likewise.
10216         * s-expmod.ads: Likewise.
10217         * s-expuns.adb: Likewise.
10218         * s-expuns.ads: Likewise.
10219         * s-fatflt.ads: Likewise.
10220         * s-fatgen.adb: Likewise.
10221         * s-fatgen.ads: Likewise.
10222         * s-fatlfl.ads: Likewise.
10223         * s-fatllf.ads: Likewise.
10224         * s-fatsfl.ads: Likewise.
10225         * s-ficobl.ads: Likewise.
10226         * s-fileio.adb: Likewise.
10227         * s-fileio.ads: Likewise.
10228         * s-filofl.ads: Likewise.
10229         * s-finimp.adb: Likewise.
10230         * s-finimp.ads: Likewise.
10231         * s-finroo.adb: Likewise.
10232         * s-finroo.ads: Likewise.
10233         * s-fishfl.ads: Likewise.
10234         * s-fore.adb: Likewise.
10235         * s-fore.ads: Likewise.
10236         * s-fvadfl.ads: Likewise.
10237         * s-fvaffl.ads: Likewise.
10238         * s-fvagfl.ads: Likewise.
10239         * s-gearop.adb: Likewise.
10240         * s-gearop.ads: Likewise.
10241         * s-gecobl.adb: Likewise.
10242         * s-gecobl.ads: Likewise.
10243         * s-gecola.adb: Likewise.
10244         * s-gecola.ads: Likewise.
10245         * s-gerebl.adb: Likewise.
10246         * s-gerebl.ads: Likewise.
10247         * s-gerela.adb: Likewise.
10248         * s-gerela.ads: Likewise.
10249         * s-geveop.adb: Likewise.
10250         * s-geveop.ads: Likewise.
10251         * s-gloloc.adb: Likewise.
10252         * s-gloloc.ads: Likewise.
10253         * s-hibaen.ads: Likewise.
10254         * s-imenne.adb: Likewise.
10255         * s-imenne.ads: Likewise.
10256         * s-imgbiu.adb: Likewise.
10257         * s-imgbiu.ads: Likewise.
10258         * s-imgboo.adb: Likewise.
10259         * s-imgboo.ads: Likewise.
10260         * s-imgcha.adb: Likewise.
10261         * s-imgcha.ads: Likewise.
10262         * s-imgdec.adb: Likewise.
10263         * s-imgdec.ads: Likewise.
10264         * s-imgenu.adb: Likewise.
10265         * s-imgenu.ads: Likewise.
10266         * s-imgint.adb: Likewise.
10267         * s-imgint.ads: Likewise.
10268         * s-imgllb.adb: Likewise.
10269         * s-imgllb.ads: Likewise.
10270         * s-imglld.adb: Likewise.
10271         * s-imglld.ads: Likewise.
10272         * s-imglli.adb: Likewise.
10273         * s-imglli.ads: Likewise.
10274         * s-imgllu.adb: Likewise.
10275         * s-imgllu.ads: Likewise.
10276         * s-imgllw.adb: Likewise.
10277         * s-imgllw.ads: Likewise.
10278         * s-imgrea.adb: Likewise.
10279         * s-imgrea.ads: Likewise.
10280         * s-imguns.adb: Likewise.
10281         * s-imguns.ads: Likewise.
10282         * s-imgwch.adb: Likewise.
10283         * s-imgwch.ads: Likewise.
10284         * s-imgwiu.adb: Likewise.
10285         * s-imgwiu.ads: Likewise.
10286         * s-inmaop-dummy.adb: Likewise.
10287         * s-inmaop-vms.adb: Likewise.
10288         * s-inmaop.ads: Likewise.
10289         * s-interr-hwint.adb: Likewise.
10290         * s-interr-sigaction.adb: Likewise.
10291         * s-interr-vms.adb: Likewise.
10292         * s-interr.adb: Likewise.
10293         * s-interr.ads: Likewise.
10294         * s-intman-dummy.adb: Likewise.
10295         * s-intman-mingw.adb: Likewise.
10296         * s-intman-posix.adb: Likewise.
10297         * s-intman-solaris.adb: Likewise.
10298         * s-intman-vms.adb: Likewise.
10299         * s-intman-vms.ads: Likewise.
10300         * s-intman-vxworks.adb: Likewise.
10301         * s-intman-vxworks.ads: Likewise.
10302         * s-intman.ads: Likewise.
10303         * s-io.adb: Likewise.
10304         * s-io.ads: Likewise.
10305         * s-linux-alpha.ads: Likewise.
10306         * s-linux-hppa.ads: Likewise.
10307         * s-linux.ads: Likewise.
10308         * s-maccod.ads: Likewise.
10309         * s-mantis.adb: Likewise.
10310         * s-mantis.ads: Likewise.
10311         * s-mastop-irix.adb: Likewise.
10312         * s-mastop.adb: Likewise.
10313         * s-mastop.ads: Likewise.
10314         * s-memcop.ads: Likewise.
10315         * s-memory-mingw.adb: Likewise.
10316         * s-memory.adb: Likewise.
10317         * s-memory.ads: Likewise.
10318         * s-os_lib.ads: Likewise.
10319         * s-oscons-tmplt.c: Likewise.
10320         * s-osinte-aix.adb: Likewise.
10321         * s-osinte-darwin.adb: Likewise.
10322         * s-osinte-freebsd.adb: Likewise.
10323         * s-osinte-irix.adb: Likewise.
10324         * s-osinte-lynxos-3.adb: Likewise.
10325         * s-osinte-rtems.ads: Likewise.
10326         * s-osinte-tru64.adb: Likewise.
10327         * s-osinte-vxworks-kernel.adb: Likewise.
10328         * s-osinte-vxworks.adb: Likewise.
10329         * s-osprim-mingw.adb: Likewise.
10330         * s-osprim-posix.adb: Likewise.
10331         * s-osprim-solaris.adb: Likewise.
10332         * s-osprim-unix.adb: Likewise.
10333         * s-osprim-vms.adb: Likewise.
10334         * s-osprim-vms.ads: Likewise.
10335         * s-osprim-vxworks.adb: Likewise.
10336         * s-osprim.ads: Likewise.
10337         * s-pack03.adb: Likewise.
10338         * s-pack03.ads: Likewise.
10339         * s-pack05.adb: Likewise.
10340         * s-pack05.ads: Likewise.
10341         * s-pack06.adb: Likewise.
10342         * s-pack06.ads: Likewise.
10343         * s-pack07.adb: Likewise.
10344         * s-pack07.ads: Likewise.
10345         * s-pack09.adb: Likewise.
10346         * s-pack09.ads: Likewise.
10347         * s-pack10.adb: Likewise.
10348         * s-pack10.ads: Likewise.
10349         * s-pack11.adb: Likewise.
10350         * s-pack11.ads: Likewise.
10351         * s-pack12.adb: Likewise.
10352         * s-pack12.ads: Likewise.
10353         * s-pack13.adb: Likewise.
10354         * s-pack13.ads: Likewise.
10355         * s-pack14.adb: Likewise.
10356         * s-pack14.ads: Likewise.
10357         * s-pack15.adb: Likewise.
10358         * s-pack15.ads: Likewise.
10359         * s-pack17.adb: Likewise.
10360         * s-pack17.ads: Likewise.
10361         * s-pack18.adb: Likewise.
10362         * s-pack18.ads: Likewise.
10363         * s-pack19.adb: Likewise.
10364         * s-pack19.ads: Likewise.
10365         * s-pack20.adb: Likewise.
10366         * s-pack20.ads: Likewise.
10367         * s-pack21.adb: Likewise.
10368         * s-pack21.ads: Likewise.
10369         * s-pack22.adb: Likewise.
10370         * s-pack22.ads: Likewise.
10371         * s-pack23.adb: Likewise.
10372         * s-pack23.ads: Likewise.
10373         * s-pack24.adb: Likewise.
10374         * s-pack24.ads: Likewise.
10375         * s-pack25.adb: Likewise.
10376         * s-pack25.ads: Likewise.
10377         * s-pack26.adb: Likewise.
10378         * s-pack26.ads: Likewise.
10379         * s-pack27.adb: Likewise.
10380         * s-pack27.ads: Likewise.
10381         * s-pack28.adb: Likewise.
10382         * s-pack28.ads: Likewise.
10383         * s-pack29.adb: Likewise.
10384         * s-pack29.ads: Likewise.
10385         * s-pack30.adb: Likewise.
10386         * s-pack30.ads: Likewise.
10387         * s-pack31.adb: Likewise.
10388         * s-pack31.ads: Likewise.
10389         * s-pack33.adb: Likewise.
10390         * s-pack33.ads: Likewise.
10391         * s-pack34.adb: Likewise.
10392         * s-pack34.ads: Likewise.
10393         * s-pack35.adb: Likewise.
10394         * s-pack35.ads: Likewise.
10395         * s-pack36.adb: Likewise.
10396         * s-pack36.ads: Likewise.
10397         * s-pack37.adb: Likewise.
10398         * s-pack37.ads: Likewise.
10399         * s-pack38.adb: Likewise.
10400         * s-pack38.ads: Likewise.
10401         * s-pack39.adb: Likewise.
10402         * s-pack39.ads: Likewise.
10403         * s-pack40.adb: Likewise.
10404         * s-pack40.ads: Likewise.
10405         * s-pack41.adb: Likewise.
10406         * s-pack41.ads: Likewise.
10407         * s-pack42.adb: Likewise.
10408         * s-pack42.ads: Likewise.
10409         * s-pack43.adb: Likewise.
10410         * s-pack43.ads: Likewise.
10411         * s-pack44.adb: Likewise.
10412         * s-pack44.ads: Likewise.
10413         * s-pack45.adb: Likewise.
10414         * s-pack45.ads: Likewise.
10415         * s-pack46.adb: Likewise.
10416         * s-pack46.ads: Likewise.
10417         * s-pack47.adb: Likewise.
10418         * s-pack47.ads: Likewise.
10419         * s-pack48.adb: Likewise.
10420         * s-pack48.ads: Likewise.
10421         * s-pack49.adb: Likewise.
10422         * s-pack49.ads: Likewise.
10423         * s-pack50.adb: Likewise.
10424         * s-pack50.ads: Likewise.
10425         * s-pack51.adb: Likewise.
10426         * s-pack51.ads: Likewise.
10427         * s-pack52.adb: Likewise.
10428         * s-pack52.ads: Likewise.
10429         * s-pack53.adb: Likewise.
10430         * s-pack53.ads: Likewise.
10431         * s-pack54.adb: Likewise.
10432         * s-pack54.ads: Likewise.
10433         * s-pack55.adb: Likewise.
10434         * s-pack55.ads: Likewise.
10435         * s-pack56.adb: Likewise.
10436         * s-pack56.ads: Likewise.
10437         * s-pack57.adb: Likewise.
10438         * s-pack57.ads: Likewise.
10439         * s-pack58.adb: Likewise.
10440         * s-pack58.ads: Likewise.
10441         * s-pack59.adb: Likewise.
10442         * s-pack59.ads: Likewise.
10443         * s-pack60.adb: Likewise.
10444         * s-pack60.ads: Likewise.
10445         * s-pack61.adb: Likewise.
10446         * s-pack61.ads: Likewise.
10447         * s-pack62.adb: Likewise.
10448         * s-pack62.ads: Likewise.
10449         * s-pack63.adb: Likewise.
10450         * s-pack63.ads: Likewise.
10451         * s-parame-ae653.ads: Likewise.
10452         * s-parame-hpux.ads: Likewise.
10453         * s-parame-rtems.adb: Likewise.
10454         * s-parame-vms-alpha.ads: Likewise.
10455         * s-parame-vms-ia64.ads: Likewise.
10456         * s-parame-vms-restrict.ads: Likewise.
10457         * s-parame-vxworks.adb: Likewise.
10458         * s-parame-vxworks.ads: Likewise.
10459         * s-parame.adb: Likewise.
10460         * s-parame.ads: Likewise.
10461         * s-parint.adb: Likewise.
10462         * s-parint.ads: Likewise.
10463         * s-pooglo.adb: Likewise.
10464         * s-pooglo.ads: Likewise.
10465         * s-pooloc.adb: Likewise.
10466         * s-pooloc.ads: Likewise.
10467         * s-poosiz.adb: Likewise.
10468         * s-poosiz.ads: Likewise.
10469         * s-powtab.ads: Likewise.
10470         * s-proinf-irix-athread.adb: Likewise.
10471         * s-proinf-irix-athread.ads: Likewise.
10472         * s-proinf.adb: Likewise.
10473         * s-proinf.ads: Likewise.
10474         * s-purexc.ads: Likewise.
10475         * s-rannum.adb: Likewise.
10476         * s-rannum.ads: Likewise.
10477         * s-restri.adb: Likewise.
10478         * s-restri.ads: Likewise.
10479         * s-rident.ads: Likewise.
10480         * s-rpc.adb: Likewise.
10481         * s-rpc.ads: Likewise.
10482         * s-scaval.adb: Likewise.
10483         * s-scaval.ads: Likewise.
10484         * s-secsta.adb: Likewise.
10485         * s-secsta.ads: Likewise.
10486         * s-sequio.adb: Likewise.
10487         * s-sequio.ads: Likewise.
10488         * s-shasto.adb: Likewise.
10489         * s-shasto.ads: Likewise.
10490         * s-soflin.adb: Likewise.
10491         * s-soflin.ads: Likewise.
10492         * s-solita.adb: Likewise.
10493         * s-solita.ads: Likewise.
10494         * s-sopco3.adb: Likewise.
10495         * s-sopco3.ads: Likewise.
10496         * s-sopco4.adb: Likewise.
10497         * s-sopco4.ads: Likewise.
10498         * s-sopco5.adb: Likewise.
10499         * s-sopco5.ads: Likewise.
10500         * s-stache.adb: Likewise.
10501         * s-stache.ads: Likewise.
10502         * s-stalib.adb: Likewise.
10503         * s-stalib.ads: Likewise.
10504         * s-stausa.adb: Likewise.
10505         * s-stausa.ads: Likewise.
10506         * s-stchop-limit.ads: Likewise.
10507         * s-stchop-rtems.adb: Likewise.
10508         * s-stchop-vxworks.adb: Likewise.
10509         * s-stchop.adb: Likewise.
10510         * s-stchop.ads: Likewise.
10511         * s-stoele.adb: Likewise.
10512         * s-stoele.ads: Likewise.
10513         * s-stopoo.adb: Likewise.
10514         * s-stopoo.ads: Likewise.
10515         * s-stratt.adb: Likewise.
10516         * s-stratt.ads: Likewise.
10517         * s-strcom.adb: Likewise.
10518         * s-strcom.ads: Likewise.
10519         * s-string.adb: Likewise.
10520         * s-string.ads: Likewise.
10521         * s-strops.adb: Likewise.
10522         * s-strops.ads: Likewise.
10523         * s-strxdr.adb: Likewise.
10524         * s-ststop.adb: Likewise.
10525         * s-ststop.ads: Likewise.
10526         * s-taasde.adb: Likewise.
10527         * s-taasde.ads: Likewise.
10528         * s-tadeca.adb: Likewise.
10529         * s-tadeca.ads: Likewise.
10530         * s-tadert.adb: Likewise.
10531         * s-tadert.ads: Likewise.
10532         * s-taenca.adb: Likewise.
10533         * s-taenca.ads: Likewise.
10534         * s-taprob.ads: Likewise.
10535         * s-taprop-dummy.adb: Likewise.
10536         * s-taprop-hpux-dce.adb: Likewise.
10537         * s-taprop-irix.adb: Likewise.
10538         * s-taprop-linux.adb: Likewise.
10539         * s-taprop-lynxos.adb: Likewise.
10540         * s-taprop-mingw.adb: Likewise.
10541         * s-taprop-posix.adb: Likewise.
10542         * s-taprop-solaris.adb: Likewise.
10543         * s-taprop-tru64.adb: Likewise.
10544         * s-taprop-vms.adb: Likewise.
10545         * s-taprop-vxworks.adb: Likewise.
10546         * s-taprop.ads: Likewise.
10547         * s-tarest.adb: Likewise.
10548         * s-tarest.ads: Likewise.
10549         * s-tasdeb.adb: Likewise.
10550         * s-tasdeb.ads: Likewise.
10551         * s-tasinf-irix.ads: Likewise.
10552         * s-tasinf-linux.adb: Likewise.
10553         * s-tasinf-linux.ads: Likewise.
10554         * s-tasinf-mingw.adb: Likewise.
10555         * s-tasinf-mingw.ads: Likewise.
10556         * s-tasinf-solaris.adb: Likewise.
10557         * s-tasinf-solaris.ads: Likewise.
10558         * s-tasinf-tru64.ads: Likewise.
10559         * s-tasinf.adb: Likewise.
10560         * s-tasinf.ads: Likewise.
10561         * s-tasini.adb: Likewise.
10562         * s-tasini.ads: Likewise.
10563         * s-taskin.adb: Likewise.
10564         * s-taskin.ads: Likewise.
10565         * s-taspri-dummy.ads: Likewise.
10566         * s-taspri-hpux-dce.ads: Likewise.
10567         * s-taspri-mingw.ads: Likewise.
10568         * s-taspri-solaris.ads: Likewise.
10569         * s-taspri-tru64.ads: Likewise.
10570         * s-taspri-vms.ads: Likewise.
10571         * s-taspri-vxworks.ads: Likewise.
10572         * s-tasque.adb: Likewise.
10573         * s-tasque.ads: Likewise.
10574         * s-tasren.adb: Likewise.
10575         * s-tasren.ads: Likewise.
10576         * s-tasres.ads: Likewise.
10577         * s-tassta.adb: Likewise.
10578         * s-tassta.ads: Likewise.
10579         * s-tasuti.adb: Likewise.
10580         * s-tasuti.ads: Likewise.
10581         * s-tfsetr-default.adb: Likewise.
10582         * s-tfsetr-vxworks.adb: Likewise.
10583         * s-tpinop.adb: Likewise.
10584         * s-tpinop.ads: Likewise.
10585         * s-tpoben.adb: Likewise.
10586         * s-tpoben.ads: Likewise.
10587         * s-tpobop.adb: Likewise.
10588         * s-tpobop.ads: Likewise.
10589         * s-tpopde-vms.adb: Likewise.
10590         * s-tpopde-vms.ads: Likewise.
10591         * s-tpopsp-lynxos.adb: Likewise.
10592         * s-tpopsp-posix-foreign.adb: Likewise.
10593         * s-tpopsp-posix.adb: Likewise.
10594         * s-tpopsp-solaris.adb: Likewise.
10595         * s-tpopsp-vxworks.adb: Likewise.
10596         * s-tporft.adb: Likewise.
10597         * s-tposen.adb: Likewise.
10598         * s-tposen.ads: Likewise.
10599         * s-traceb.adb: Likewise.
10600         * s-traceb.ads: Likewise.
10601         * s-traces-default.adb: Likewise.
10602         * s-traces.adb: Likewise.
10603         * s-traces.ads: Likewise.
10604         * s-traent-vms.adb: Likewise.
10605         * s-traent-vms.ads: Likewise.
10606         * s-traent.adb: Likewise.
10607         * s-traent.ads: Likewise.
10608         * s-trafor-default.adb: Likewise.
10609         * s-trafor-default.ads: Likewise.
10610         * s-tratas-default.adb: Likewise.
10611         * s-tratas.adb: Likewise.
10612         * s-tratas.ads: Likewise.
10613         * s-unstyp.ads: Likewise.
10614         * s-utf_32.adb: Likewise.
10615         * s-utf_32.ads: Likewise.
10616         * s-vaflop-vms-alpha.adb: Likewise.
10617         * s-vaflop.adb: Likewise.
10618         * s-vaflop.ads: Likewise.
10619         * s-valboo.adb: Likewise.
10620         * s-valboo.ads: Likewise.
10621         * s-valcha.adb: Likewise.
10622         * s-valcha.ads: Likewise.
10623         * s-valdec.adb: Likewise.
10624         * s-valdec.ads: Likewise.
10625         * s-valenu.adb: Likewise.
10626         * s-valenu.ads: Likewise.
10627         * s-valint.adb: Likewise.
10628         * s-valint.ads: Likewise.
10629         * s-vallld.adb: Likewise.
10630         * s-vallld.ads: Likewise.
10631         * s-vallli.adb: Likewise.
10632         * s-vallli.ads: Likewise.
10633         * s-valllu.adb: Likewise.
10634         * s-valllu.ads: Likewise.
10635         * s-valrea.adb: Likewise.
10636         * s-valrea.ads: Likewise.
10637         * s-valuns.adb: Likewise.
10638         * s-valuns.ads: Likewise.
10639         * s-valuti.adb: Likewise.
10640         * s-valuti.ads: Likewise.
10641         * s-valwch.adb: Likewise.
10642         * s-valwch.ads: Likewise.
10643         * s-veboop.adb: Likewise.
10644         * s-veboop.ads: Likewise.
10645         * s-vector.ads: Likewise.
10646         * s-vercon.adb: Likewise.
10647         * s-vercon.ads: Likewise.
10648         * s-vmexta.adb: Likewise.
10649         * s-vmexta.ads: Likewise.
10650         * s-vxwext-kernel.ads: Likewise.
10651         * s-vxwext-rtp.adb: Likewise.
10652         * s-vxwext-rtp.ads: Likewise.
10653         * s-vxwext.ads: Likewise.
10654         * s-vxwork-arm.ads: Likewise.
10655         * s-vxwork-m68k.ads: Likewise.
10656         * s-vxwork-mips.ads: Likewise.
10657         * s-vxwork-ppc.ads: Likewise.
10658         * s-vxwork-sparcv9.ads: Likewise.
10659         * s-vxwork-x86.ads: Likewise.
10660         * s-wchcnv.adb: Likewise.
10661         * s-wchcnv.ads: Likewise.
10662         * s-wchcon.adb: Likewise.
10663         * s-wchcon.ads: Likewise.
10664         * s-wchjis.adb: Likewise.
10665         * s-wchjis.ads: Likewise.
10666         * s-wchstw.adb: Likewise.
10667         * s-wchstw.ads: Likewise.
10668         * s-wchwts.adb: Likewise.
10669         * s-wchwts.ads: Likewise.
10670         * s-widboo.adb: Likewise.
10671         * s-widboo.ads: Likewise.
10672         * s-widcha.adb: Likewise.
10673         * s-widcha.ads: Likewise.
10674         * s-widenu.adb: Likewise.
10675         * s-widenu.ads: Likewise.
10676         * s-widlli.adb: Likewise.
10677         * s-widlli.ads: Likewise.
10678         * s-widllu.adb: Likewise.
10679         * s-widllu.ads: Likewise.
10680         * s-widwch.adb: Likewise.
10681         * s-widwch.ads: Likewise.
10682         * s-win32.ads: Likewise.
10683         * s-winext.ads: Likewise.
10684         * s-wwdcha.adb: Likewise.
10685         * s-wwdcha.ads: Likewise.
10686         * s-wwdenu.adb: Likewise.
10687         * s-wwdenu.ads: Likewise.
10688         * s-wwdwch.adb: Likewise.
10689         * s-wwdwch.ads: Likewise.
10690         * scans.adb: Likewise.
10691         * scans.ads: Likewise.
10692         * seh_init.c: Likewise.
10693         * sfn_scan.adb: Likewise.
10694         * sinfo.adb: Likewise.
10695         * sinfo.ads: Likewise.
10696         * sinput.adb: Likewise.
10697         * sinput.ads: Likewise.
10698         * snames.adb: Likewise.
10699         * snames.ads: Likewise.
10700         * socket.c: Likewise.
10701         * stand.adb: Likewise.
10702         * stand.ads: Likewise.
10703         * stringt.adb: Likewise.
10704         * stringt.ads: Likewise.
10705         * sysdep.c: Likewise.
10706         * system-aix.ads: Likewise.
10707         * system-darwin-ppc.ads: Likewise.
10708         * system-darwin-x86.ads: Likewise.
10709         * system-darwin-x86_64.ads: Likewise.
10710         * system-freebsd-x86.ads: Likewise.
10711         * system-hpux-ia64.ads: Likewise.
10712         * system-hpux.ads: Likewise.
10713         * system-irix-n32.ads: Likewise.
10714         * system-irix-n64.ads: Likewise.
10715         * system-irix-o32.ads: Likewise.
10716         * system-linux-alpha.ads: Likewise.
10717         * system-linux-hppa.ads: Likewise.
10718         * system-linux-ia64.ads: Likewise.
10719         * system-linux-mips.ads: Likewise.
10720         * system-linux-mipsel.ads: Likewise.
10721         * system-linux-ppc.ads: Likewise.
10722         * system-linux-ppc64.ads: Likewise.
10723         * system-linux-s390.ads: Likewise.
10724         * system-linux-s390x.ads: Likewise.
10725         * system-linux-sh4.ads: Likewise.
10726         * system-linux-sparc.ads: Likewise.
10727         * system-linux-sparcv9.ads: Likewise.
10728         * system-linux-x86.ads: Likewise.
10729         * system-linux-x86_64.ads: Likewise.
10730         * system-lynxos-ppc.ads: Likewise.
10731         * system-lynxos-x86.ads: Likewise.
10732         * system-mingw-x86_64.ads: Likewise.
10733         * system-mingw.ads: Likewise.
10734         * system-rtems.ads: Likewise.
10735         * system-solaris-sparc.ads: Likewise.
10736         * system-solaris-sparcv9.ads: Likewise.
10737         * system-solaris-x86.ads: Likewise.
10738         * system-solaris-x86_64.ads: Likewise.
10739         * system-tru64.ads: Likewise.
10740         * system-vms-ia64.ads: Likewise.
10741         * system-vms-zcx.ads: Likewise.
10742         * system-vms.ads: Likewise.
10743         * system-vms_64.ads: Likewise.
10744         * system-vxworks-arm.ads: Likewise.
10745         * system-vxworks-m68k.ads: Likewise.
10746         * system-vxworks-mips.ads: Likewise.
10747         * system-vxworks-ppc.ads: Likewise.
10748         * system-vxworks-sparcv9.ads: Likewise.
10749         * system-vxworks-x86.ads: Likewise.
10750         * system.ads: Likewise.
10751         * table.adb: Likewise.
10752         * table.ads: Likewise.
10753         * targext.c: Likewise.
10754         * targparm.ads: Likewise.
10755         * tree_in.adb: Likewise.
10756         * tree_in.ads: Likewise.
10757         * tree_io.adb: Likewise.
10758         * tree_io.ads: Likewise.
10759         * types.adb: Likewise.
10760         * types.ads: Likewise.
10761         * uintp.adb: Likewise.
10762         * uintp.ads: Likewise.
10763         * uname.adb: Likewise.
10764         * uname.ads: Likewise.
10765         * urealp.adb: Likewise.
10766         * urealp.ads: Likewise.
10767         * vx_stack_info.c: Likewise.
10768         * widechar.adb: Likewise.
10769         * widechar.ads: Likewise.
10770         * exp_attr.adb: Change copyright header to refer to version
10771         3 of the GNU General Public License and to point readers at the
10772         COPYING3 file and the FSF's license web page.
10773         * sem.adb: Likewise.
10774         * sem_attr.ads: Likewise.
10775         * freeze.adb: Likewise.
10776         * freeze.ads: Likewise.
10777         * errout.ads: Likewise.
10778         * erroutc.adb: Likewise.
10779         * exp_ch11.ads: Likewise.
10780
10781 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
10782
10783         * config-lang.in: Change copyright header to refer to version
10784         3 of the GNU General Public License and to point readers at the
10785         COPYING3 file and the FSF's license web page.
10786         * gcc-interface/trans.c: Likewise.
10787         * gnathtml.pl: Likewise.
10788         * gcc-interface/ada.h: Likewise.  Remove runtime exception.
10789         * gcc-interface/gigi.h: Likewise.
10790         * gcc-interface/misc.c: Likewise.
10791         * gcc-interface/targtyps.c: Likewise.
10792
10793 2009-04-09  Nicolas Setton  <setton@adacore.com>
10794
10795         * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
10796
10797         * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
10798         struct_timeval.
10799
10800 2009-04-09  Bob Duff  <duff@adacore.com>
10801
10802         * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
10803         internally-generated nodes related to select statements to avoid
10804         confusing the debugger.
10805
10806 2009-04-09  Pascal Obry  <obry@adacore.com>
10807
10808         * make.adb: Ensure that all linker arguments are duplicated.
10809
10810 2009-04-09  Robert Dewar  <dewar@adacore.com>
10811
10812         * sem_ch5.adb: Minor reformatting
10813
10814 2009-04-09  Vincent Celier  <celier@adacore.com>
10815
10816         * vms_data.ads:
10817         Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
10818         New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
10819         New qualifier /LXDEBUG=nnn for -gnatDnnn
10820         For H820-010
10821
10822         * gnat_ugn.texi:
10823         Update documentation for VMS qualifiers equivalent to -gnatGnn and
10824         -gnatDnn
10825
10826 2009-04-09  Nicolas Setton  <setton@adacore.com>
10827
10828         * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
10829         to match layout of siginfo_t in sys/signal.h.
10830
10831         * gcc-interface/Makefile.in: Add section for x86_64 darwin.
10832
10833 2009-04-09  Thomas Quinot  <quinot@adacore.com>
10834
10835         * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
10836
10837 2009-04-09  Nicolas Setton  <setton@adacore.com>
10838
10839         * s-oscons-tmplt.c: Allow long lines in the generated spec.
10840         Add generation of Darwin-specific constants needed when binding to the
10841         pthread library.
10842
10843 2009-04-09  Robert Dewar  <dewar@adacore.com>
10844
10845         * checks.adb:
10846         (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
10847         when no invalid values exist, Avoid duplicate read of atomic variable.
10848
10849         * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
10850         (Standard_Unsigned): Set Is_Known_Valid
10851
10852         * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
10853         subtype declaration if no constraint.
10854         (Set_Modular_Size): Set Is_Known_Valid if appropriate
10855         (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
10856
10857 2009-04-09  Robert Dewar  <dewar@adacore.com>
10858
10859         * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
10860         switch.ads: for numeric switches, an optional equal sign is always
10861         allowed.
10862
10863 2009-04-09  Vincent Celier  <celier@adacore.com>
10864
10865         * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
10866         the case of file names is not significant.
10867
10868 2009-04-09  Vincent Celier  <celier@adacore.com>
10869
10870         * errout.adb: Remove dependency on package Style
10871
10872         * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
10873         moved to Stylesw.
10874         
10875         * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
10876         Styleg.
10877
10878         * errutil.adb, par.adb: Import Stylesw
10879
10880 2009-04-09  Arnaud Charlet  <charlet@adacore.com>
10881
10882         * opt.ads: Fix typos.
10883
10884 2009-04-09  Robert Dewar  <dewar@adacore.com>
10885
10886         * einfo.adb: Minor reformatting
10887
10888 2009-04-09  Robert Dewar  <dewar@adacore.com>
10889
10890         * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
10891         units.
10892
10893         * styleg-c.ads, styleg-c.adb: Removed, no longer used.
10894
10895 2009-04-09  Robert Dewar  <dewar@adacore.com>
10896
10897         * g-comver.adb: Minor reformatting.
10898
10899 2009-04-09  Thomas Quinot  <quinot@adacore.com>
10900
10901         * lib-load.ads (Load_Unit): Update documentation.
10902
10903 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
10904
10905         * lib-load.adb (Load_Unit): When loading the parent of a child unit
10906         named in a with_clause, retain the with_clause to preserve a
10907         limited_with indication.
10908
10909 2009-04-09  Robert Dewar  <dewar@adacore.com>
10910
10911         * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
10912         exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
10913         sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
10914         possible to replace an OR of two separate tests.
10915
10916 2009-04-09  Robert Dewar  <dewar@adacore.com>
10917
10918         * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
10919         Maximum_Messages.
10920         
10921         * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
10922         warning status as well.
10923         
10924         * opt.ads (Maximum_Messages): New name for Maximum_Errors.
10925         
10926         * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
10927         Maximum_Messages.
10928         
10929         * bindusg.adb, usage.adb: Update line for -gnatm switch
10930
10931         * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
10932         -mnn binder switch.
10933
10934 2009-04-09  Robert Dewar  <dewar@adacore.com>
10935
10936         * sem_ch10.adb: Minor reformatting.
10937
10938 2009-04-09  Bob Duff  <duff@adacore.com>
10939
10940         * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
10941         Set Sloc of generated nodes for calls to Undefer_Aborts and
10942         Save_Occurrence to No_Location, so the debugger ignores them and
10943         therefore does not jump back and forth when single stepping.
10944
10945 2009-04-09  Robert Dewar  <dewar@adacore.com>
10946
10947         * switch-b.adb: Minor reformatting.
10948
10949 2009-04-09  Robert Dewar  <dewar@adacore.com>
10950
10951         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
10952         sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
10953         exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
10954         sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
10955         einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
10956         tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
10957         exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
10958         sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
10959         sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
10960         sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
10961         Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
10962
10963 2009-04-09  Robert Dewar  <dewar@adacore.com>
10964
10965         * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
10966
10967         * atree.h: Add Elist26
10968
10969         * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
10970         backends.
10971
10972 2009-04-09  Javier Miranda  <miranda@adacore.com>
10973
10974         * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
10975         retrieve from the Dispatch_Table_Wrappers list the external name.
10976         Addition of documentation.
10977         (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
10978         used to export secondary dispatch tables (in the previous version of
10979         the frontend only primary dispatch tables were exported). Addition of
10980         documentation.
10981         (Import_DT): New subprogram (internal of Make_Tags). Used to import a
10982         dispatch table of a given tagged type. 
10983         (Make_Tags): Modified to import secondary dispatch tables.
10984
10985         * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
10986         (Constant_Redeclaration): Code cleanup.
10987
10988         * einfo.ads (Dispatch_Table_Wrapper): Renamed to
10989         Dispatch_Table_Wrappers.  Update documentation.
10990
10991         * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
10992         Renamed to Dispatch_Table_Wrappers.
10993
10994         * sem_util.adb (Collect_Interface_Components): Improve handling of
10995         private types.
10996
10997         * atree.ads (Elist26, Set_Elist26): New subprograms
10998
10999         * atree.adb (Elist26, Set_Elist26): New subprograms
11000
11001 2009-04-09  Javier Miranda  <miranda@adacore.com>
11002
11003         * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
11004         (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
11005         tagged types.
11006
11007 2009-04-09  Robert Dewar  <dewar@adacore.com>
11008
11009         * s-direio.adb: Minor reformatting
11010
11011         * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
11012
11013 2009-04-09  Robert Dewar  <dewar@adacore.com>
11014
11015         * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
11016
11017 2009-04-09  Pascal Obry  <obry@adacore.com>
11018
11019         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
11020         s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
11021         a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
11022         a-filico.ads: Add some missing overriding keywords.
11023
11024 2009-04-09  Pascal Obry  <obry@adacore.com>
11025
11026         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
11027         a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
11028         a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
11029         reformatting.
11030
11031 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
11032
11033         * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
11034         missing overriding indicator if the new declaration is not seen as
11035         primitive.
11036
11037 2009-04-09  Thomas Quinot  <quinot@adacore.com>
11038
11039         * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
11040         overflows in computation of bounds.
11041
11042 2009-04-09  Pascal Obry  <obry@adacore.com>
11043
11044         * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
11045         typos in comment.
11046
11047 2009-04-09  Robert Dewar  <dewar@adacore.com>
11048
11049         * sem_attr.adb (Check_Stream_Attribute): Check violation of
11050         restriction No_Streams
11051
11052         * gnat_rm.texi: Clarify No_Streams restriction
11053
11054         * g-socket.adb: Minor reformatting.
11055
11056 2009-04-09  Thomas Quinot  <quinot@adacore.com>
11057
11058         * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
11059
11060 2009-04-09  Geert Bosch  <bosch@adacore.com>
11061
11062         * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
11063         (Set_Result): Likewise.
11064         (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
11065         conversion, as required by RM 4.6(31).
11066
11067 2009-04-08  Robert Dewar  <dewar@adacore.com>
11068
11069         * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
11070         suppressed.
11071         
11072         * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
11073         resolution steps.
11074
11075 2009-04-08  Robert Dewar  <dewar@adacore.com>
11076
11077         * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
11078         No_Local_Allocators restriction preventing local instantiation.
11079
11080 2009-04-08  Thomas Quinot  <quinot@adacore.com>
11081
11082         * sem_eval.adb: Minor comment fix
11083
11084 2009-04-08  Thomas Quinot  <quinot@adacore.com>
11085
11086         * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
11087         New limited controlled type used to automate the initialization and
11088         finalization of the sockets implementation.
11089         (GNAT.Sockets.Initialize, Finalize): Make these no-ops
11090
11091 2009-04-08  Vincent Celier  <celier@adacore.com>
11092
11093         * prj-attr.adb: New read-only project-level attribute Project_Dir
11094
11095         * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
11096         read-only attribute of the same name.
11097         (Process_Declarative_Items): Call Add_Attributes with Project_Dir
11098         (Recursive_Process): Ditto
11099
11100         * snames.adb: Add new standard name Project_Dir
11101
11102         * snames.ads: Add new standard name Project_Dir
11103
11104 2009-04-08  Thomas Quinot  <quinot@adacore.com>
11105
11106         * checks.adb: Minor reformatting
11107
11108 2009-04-08  Vincent Celier  <celier@adacore.com>
11109
11110         * vms_data.ads: Add documentation for new style keyword
11111         OVERRIDING_INDICATORS
11112
11113 2009-04-08  Robert Dewar  <dewar@adacore.com>
11114
11115         * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
11116         spec is in the current unit.
11117
11118 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
11119
11120         * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
11121         presence of entity.
11122
11123         * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
11124
11125 2009-04-08  Vincent Celier  <celier@adacore.com>
11126
11127         * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
11128
11129 2009-04-08  Thomas Quinot  <quinot@adacore.com>
11130
11131         * checks.ads: Minor reformatting
11132
11133 2009-04-08  Robert Dewar  <dewar@adacore.com>
11134
11135         * gnat_rm.texi: Update documentation of pragma Obsolescent
11136         
11137         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
11138         be omitted, and allow Entity parameter to be omitted.
11139
11140 2009-04-08  Thomas Quinot  <quinot@adacore.com>
11141
11142         * exp_util.adb: Minor comment fix
11143
11144 2009-04-08  Robert Dewar  <dewar@adacore.com>
11145
11146         * g-socket.ads: Fix bad syntax in pragma Obsolescent
11147
11148         * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
11149         argument with no identifier following one that has an identifier. Was
11150         missed in some cases.
11151
11152         * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
11153         identifier.
11154         (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
11155
11156         * snames.adb: Add Name_Policy
11157
11158         * snames.ads: Add Name_Policy
11159
11160 2009-04-08  Robert Dewar  <dewar@adacore.com>
11161
11162         * gnat_rm.texi: Minor reformatting
11163
11164         * par-ch2.adb: Minor reformatting
11165
11166 2009-04-08  Robert Dewar  <dewar@adacore.com>
11167
11168         * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
11169
11170 2009-04-08  Robert Dewar  <dewar@adacore.com>
11171
11172         * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
11173         properly in the presence of Remote_Types or Remote_Call_Interface.
11174
11175         * sem_util.adb: Add comment.
11176
11177 2009-04-08  Robert Dewar  <dewar@adacore.com>
11178
11179         * ug_words: Add /ASSUME_VALID for -gnatB
11180
11181         * vms_data.ads: Add /ASSUME_VALID for -gnatB
11182
11183         * sem_cat.adb: Add clarifying commment
11184
11185         * a-direio.ads (Bytes): Make sure value is non-zero
11186
11187 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
11188
11189         * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
11190         that does not come from source, check for a rewritten function call in
11191         prefixed notation before other forms of rewriting.
11192
11193 2009-04-08  Robert Dewar  <dewar@adacore.com>
11194
11195         * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
11196         these are now obsolescent units used only for bootrapping with an
11197         older compiler.
11198
11199 2009-04-08  Robert Dewar  <dewar@adacore.com>
11200
11201         * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
11202
11203         * sem_ch3.adb: Minor comment updates
11204
11205 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
11206
11207         * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
11208         that come from source.
11209
11210 2009-04-08  Tristan Gingold  <gingold@adacore.com>
11211
11212         * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
11213         * gcc-interface/decl.c (prepend_attributes): New case
11214         Pragma_Thread_Local_Storage.
11215         * gcc-interface/utils.c (process_attributes): New case
11216         ATTR_THREAD_LOCAL_STORAGE.
11217
11218 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
11219
11220         * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
11221         by the back-end if it contains a call to a subprogram without a
11222         previous spec that is declared in the same unit.
11223
11224         * errout.ads: Update comments on uses of dirs
11225
11226 2009-04-08  Robert Dewar  <dewar@adacore.com>
11227
11228         * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
11229
11230 2009-04-08  Tristan Gingold  <gingold@adacore.com>
11231
11232         * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
11233         variables.
11234         Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
11235
11236 2009-04-08  Vincent Celier  <celier@adacore.com>
11237
11238         * prj-nmsc.adb:
11239         (Add_Source): Add the mapping of the unit name to source file name in
11240         the Unit_Sources_HT hash table, if the unit name is not null.
11241
11242         * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
11243
11244         * prj.ads (Unit_Sources_Htable): New hash table instantiation
11245         (Project_Tree_Data): New component Unit_Sources_HT
11246
11247 2009-04-08  Thomas Quinot  <quinot@adacore.com>
11248
11249         * sem_ch8.adb: Minor reformatting.
11250         Minor code reorganization.
11251
11252 2009-04-08  Robert Dewar  <dewar@adacore.com>
11253
11254         * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
11255         snames.ads, freeze.adb, par-prag.adb: Add implementation of
11256         pragma Thread_Local_Storage, setting new flag
11257         Has_Pragma_Thread_Local_Storage in corresponding entities.
11258
11259 2009-04-08  Emmanuel Briot  <briot@adacore.com>
11260
11261         * prj.ads: Update comment on switches file
11262
11263         * prj-nmsc.adb: Code clean up. Use renaming clauses.
11264
11265 2009-04-08  Robert Dewar  <dewar@adacore.com>
11266
11267         * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
11268
11269 2009-04-08  Thomas Quinot  <quinot@adacore.com>
11270
11271         * ali-util.adb: Minor comment fix
11272
11273 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
11274
11275         * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
11276         appears in a context clause, and the enclosing package is mentioned in
11277         a limited_with_clause.
11278         (Use_One_Type): Reject clause if type is still incomplete.
11279
11280 2009-04-08  Emmanuel Briot  <briot@adacore.com>
11281
11282         * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
11283         avoid copies of Source_Data variables when possible, since these
11284         involve calls to memcpy() which are done too many times.
11285
11286 2009-04-08  Robert Dewar  <dewar@adacore.com>
11287
11288         * exp_ch4.adb (Expand_Concatenate): Clean up code
11289
11290 2009-04-07  Thomas Quinot  <quinot@adacore.com>
11291
11292         * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
11293         type for the case of concatenating a constrained array indexed by an
11294         enumeration type.
11295
11296 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11297
11298         * sem_ch6.adb (Check_Conformance): when checking conformance of an
11299         operation that overrides an abstract operation inherited from an
11300         interface, return False if only one of the controlling formals is an
11301         access parameter.
11302
11303 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11304
11305         * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
11306         mandated by AI05-105.
11307
11308 2009-04-07  Vincent Celier  <celier@adacore.com>
11309
11310         * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
11311
11312 2009-04-07  Thomas Quinot  <quinot@adacore.com>
11313
11314         * usage.adb: Minor fix in usage message.
11315
11316         * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
11317         match declaration; the correct subtype is Node_Id, not Entity_Id,
11318         because the expected node kind is an identifier, not a defining
11319         identifier.
11320
11321         * switch-c.adb: Minor reformatting.
11322
11323         * uintp.adb: Minor reformatting.
11324
11325 2009-04-07  Robert Dewar  <dewar@adacore.com>
11326
11327         * exp_ch13.adb: Minor reformatting
11328
11329 2009-04-07  Robert Dewar  <dewar@adacore.com>
11330
11331         * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
11332         against missing parent.
11333
11334 2009-04-07  Thomas Quinot  <quinot@adacore.com>
11335
11336         * xoscons.adb: Minor reformatting
11337
11338 2009-04-07  Robert Dewar  <dewar@adacore.com>
11339
11340         * rtsfind.ads: Remove obsolete string concatenation entries
11341
11342 2009-04-07  Robert Dewar  <dewar@adacore.com>
11343
11344         * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
11345
11346 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11347
11348         * sem_ch10.adb (Check_Body_Required): Handle properly imported
11349         subprograms.
11350
11351 2009-04-07  Gary Dismukes  <dismukes@adacore.com>
11352
11353         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
11354         Attribute_Address): When Init_Or_Norm_Scalars is True and the object
11355         is of a scalar or string type then suppress the setting of the
11356         expression to Empty.
11357
11358         * freeze.adb (Warn_Overlay): Also emit the warnings about default
11359         initialization for the cases of scalar and string objects when
11360         Init_Or_Norm_Scalars is True.
11361
11362 2009-04-07  Bob Duff  <duff@adacore.com>
11363
11364         * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
11365
11366 2009-04-07  Bob Duff  <duff@adacore.com>
11367
11368         * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
11369         Form parameter of Text_Translation=No allows binary mode for Text_IO
11370         files.
11371
11372         * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
11373
11374 2009-04-07  Javier Miranda  <miranda@adacore.com>
11375
11376         * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
11377         processing the bounds for bit packed arrays or VM target machines.
11378
11379 2009-04-07  Thomas Quinot  <quinot@adacore.com>
11380
11381         * g-sothco.ads (Int_Access): Remove extraneous access type (use
11382         anonymous access instead).
11383         (Get_Socket_From_Set): Fix incorrectly reverted formals
11384         Last and Socket to match the underlying C routine.
11385
11386         * g-socket.adb, g-socket.ads
11387         (Get): Use named parameter associations instead of positional ones in
11388         call go Get_Socket_From_Set, since this routine has two formals of the
11389         same type.
11390         (Image): New procedure.
11391
11392         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11393         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
11394         (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
11395         for type of Arg formal.
11396
11397         * sem_warn.adb: Minor reformatting
11398
11399 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11400
11401         * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
11402         over record components.
11403
11404 2009-04-07  Nicolas Roche  <roche@adacore.com>
11405
11406         * gsocket.h:
11407         Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
11408         has disappeared between VxWorks 6.4 and VxWorks 6.5
11409         In RTP mode use time.h instead of times.h
11410
11411 2009-04-07  Robert Dewar  <dewar@adacore.com>
11412
11413         * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
11414
11415 2009-04-07  Kevin Pouget  <pouget@adacore.com>
11416
11417         * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
11418         expanded code for constrained types.
11419
11420 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11421
11422         * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
11423         AI05-105: in an object renaming declaration, anonymousness is a name
11424         resolution rule.
11425
11426         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
11427
11428 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
11429
11430         * g-comlin.adb (Expansion): Fix old regression: also return directory
11431         names when matching.
11432
11433 2009-04-07  Robert Dewar  <dewar@adacore.com>
11434
11435         * exp_ch4.adb:
11436         (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
11437         (Expand_Concatenate): New name for Expand_Concatenate_String which has
11438         been rewritten to handle all types.
11439         (Expand_Concatenate_Other): Remove
11440
11441 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11442
11443         * lib-xref.adb (Generate_Reference): A default subprogram in an
11444         instance appears within the tree for the instance, but generates an
11445         implicit reference in the ALI.
11446
11447 2009-04-07  Javier Miranda  <miranda@adacore.com>
11448
11449         * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
11450         derived type that has discriminants, propagate the list of interfaces
11451         to the corresponding new base type. In addition, propagate also
11452         attribute Limited_Present (found working in this patch).
11453
11454 2009-04-07  Robert Dewar  <dewar@adacore.com>
11455
11456         * exp_ch4.adb: Rewrite concatenation expansion.
11457
11458 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11459
11460         * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
11461         relevant to packages.
11462
11463 2009-04-07  Robert Dewar  <dewar@adacore.com>
11464
11465         * sem_attr.adb: Minor reformatting
11466
11467         * sem_ch6.adb: Minor reformatting
11468
11469 2009-04-07  Tristan Gingold  <gingold@adacore.com>
11470
11471         * socket.c: Add more protections against S_resolvLib_ macros.
11472
11473 2009-04-07  Thomas Quinot  <quinot@adacore.com>
11474
11475         * sem_attr.adb: Minor reformatting
11476
11477 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11478
11479         * sem_ch6.adb (New_Overloaded_Entity): New predicate
11480         Is_Overriding_Alias to handle properly types that inherit two homonym
11481         operations that have distinct dispatch table entries.
11482
11483 2009-04-07  Emmanuel Briot  <briot@adacore.com>
11484
11485         * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
11486         looking for the end of a parenthesis group
11487
11488 2009-04-07  Tristan Gingold  <gingold@adacore.com>
11489
11490         * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
11491
11492         * socket.c Don't use resolvLib_ macros if not defined.
11493
11494 2009-04-07  Robert Dewar  <dewar@adacore.com>
11495
11496         * g-socket.adb: Minor reformatting.
11497
11498         * g-socthi-mingw.adb: Minor reformatting
11499
11500         * g-sothco.ads: Minor reformatting
11501
11502         * exp_ch4.adb:
11503         (Expand_Concatenate_String): Complete rewrite to generate efficient code
11504         inline instead of relying on external library routines.
11505
11506         * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
11507         s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
11508         obsolescent
11509
11510 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11511
11512         * sem_attr.adb:
11513         (Eval_Attribute): for attributes of array objects that are not strings,
11514         attributes are not static if nominal subtype of object is unconstrained.
11515
11516 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11517
11518         * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
11519         operations for a type T in an instance do not override each other,
11520         when T is derived from a formal private type, the corresponding
11521         operations inherited by a type derived from T outside
11522         of the instance do not override each other either.
11523
11524 2009-04-07  Robert Dewar  <dewar@adacore.com>
11525
11526         (Osint.Fail): Change calling sequence to have one string arg
11527         (Make.Make_Failed): Same change
11528         All callers are adjusted to use concatenation
11529
11530 2009-04-07  Robert Dewar  <dewar@adacore.com>
11531
11532         * exp_ch4.adb: Fix documentation typo
11533
11534 2009-04-07  Robert Dewar  <dewar@adacore.com>
11535
11536         * tbuild.ads: Minor reformatting
11537
11538 2009-04-07  Javier Miranda  <miranda@adacore.com>
11539
11540         * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
11541         when compiling under ZFP runtime.
11542
11543 2009-04-07  Robert Dewar  <dewar@adacore.com>
11544
11545         * g-comlin.adb: Minor reformatting
11546
11547 2009-04-07  Thomas Quinot  <quinot@adacore.com>
11548
11549         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11550         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
11551         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
11552         Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
11553
11554 2009-04-07  Robert Dewar  <dewar@adacore.com>
11555
11556         * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
11557
11558         * opt.ads (Sprint_Line_Limit): New parameter
11559         
11560         * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
11561         
11562         * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
11563         
11564         * usage.adb: Output information for -gnatGnn -gnatDnn
11565
11566 2009-04-07  Robert Dewar  <dewar@adacore.com>
11567
11568         * make.adb: Minor reformatting
11569
11570 2009-04-07  Robert Dewar  <dewar@adacore.com>
11571
11572         * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
11573
11574 2009-04-07  Robert Dewar  <dewar@adacore.com>
11575
11576         * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
11577
11578 2009-04-07  Robert Dewar  <dewar@adacore.com>
11579
11580         * checks.adb:
11581         Remove Assume_Valid parameter from In_Subrange_Of calls
11582         
11583         * sem_eval.adb:
11584         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11585         (Is_In_Range): Remove incorrect use of Assume_Valid
11586         (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
11587         
11588         * sem_eval.ads:
11589         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11590         (Is_In_Range): Documentation cleanup
11591         (Is_Out_Of_Range): Documentation cleanup
11592
11593         * gnat_rm.texi:
11594         Add documentation for Assume_No_Invalid_Values pragma
11595
11596         * sem_ch12.adb: Minor reformatting
11597
11598         * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
11599
11600         * sem_prag.adb: Improve error message.
11601
11602         * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
11603         LF/CR no longer recognized as line terminator
11604
11605         * switch.ads: Minor documentation improvement
11606
11607         * vms_data.ads: Minor reformatting
11608
11609 2009-04-07  Robert Dewar  <dewar@adacore.com>
11610
11611         * checks.adb (Determine_Range): Add Assume_Valid parameter
11612         
11613         * checks.ads (Determine_Range): Add Assume_Valid parameter
11614         
11615         * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
11616          Is_Null_Loop to suppress warnings in a loop body.
11617         
11618         * exp_ch4.adb:
11619         (Rewrite_Comparison): Major rewrite to accomodate invalid values
11620         
11621         * exp_ch5.adb:
11622         (Expand_N_Loop_Statement): Delete loop known not to execute
11623         
11624         * opt.ads:
11625         (Assume_No_Invalid_Values): Now set to False, and as documented, this
11626          fully enables the proper handling of invalid values.
11627         
11628         * sem_attr.adb:
11629         New calling sequence for Is_In_Range
11630         
11631         * sem_ch5.adb:
11632         (Analyze_Iteration_Scheme): Accomodate possible invalid values
11633          in determining if a loop range is null.
11634         
11635         * sem_eval.adb:
11636         (Is_In_Range): Add Assume_Valid parameter
11637         (Is_Out_Of_Range): Add Assume_Valid_Parameter
11638         (Compile_Time_Compare): Major rewrite to accomodate invalid values and
11639          also to do more accurate and complete range analysis, catching more
11640          cases.
11641         
11642         * sem_eval.ads:
11643         (Is_In_Range): Add Assume_Valid parameter
11644         (Is_Out_Of_Range): Add Assume_Valid_Parameter
11645         
11646         * sem_util.adb:
11647         New calling sequence for Is_In_Range
11648         
11649         * sinfo.adb:
11650         (Suppress_Loop_Warnings): New flag
11651         
11652         * sinfo.ads:
11653         (Is_Null_Loop): Update documentation
11654         (Suppress_Loop_Warnings): New flag
11655         
11656         * gnat_ugn.texi: Document -gnatB switch
11657
11658 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
11659
11660         * gnatvsn.ads: Bump version number.
11661
11662 2009-04-07  Thomas Quinot  <quinot@adacore.com>
11663
11664         * exp_ch3.adb: Minor rewording (comments)
11665
11666 2009-04-07  Robert Dewar  <dewar@adacore.com>
11667
11668         * exp_disp.adb: Minor reformatting
11669
11670 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11671
11672         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
11673         underlying type.
11674         * gcc-interface/trans.c (lvalue_required_p): Likewise.
11675
11676 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11677
11678         * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
11679         Do not convert the result.  Remove obsolete comment.
11680
11681 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11682
11683         * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
11684         DECL_CONTEXT.
11685         (Subprogram_Body_to_gnu): Fix pasto.
11686
11687 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11688
11689         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
11690         (void_type_decl_node): Remove.
11691         (init_gigi_decls): Likewise.
11692         (gnat_install_builtins): Declare.
11693         (record_builtin_type): Likewise.
11694         (create_type_stub_decl): Likewise.
11695         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
11696         (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
11697         artificial.
11698         <E_Array_Subtype>: Use the index types, not only their name, in the
11699         record giving the names of the bounds, if any.
11700         For a packed array type, make it artificial only if the base type
11701         was artificial as well.  Remove redundant statement.
11702         (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
11703         dummy types.
11704         Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
11705         (rest_of_type_decl_compilation_no_defer): Likewise.
11706         * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
11707         * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
11708         and use create_type_stub_decl to build it.
11709         (gnat_pushdecl): Rewrite condition.
11710         (gnat_install_builtins): Remove bogus declaration.
11711         (record_builtin_type): New function.
11712         (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
11713         of types.
11714         (create_type_stub_decl): New function.
11715         (create_type_decl): Assert that the type is not dummy.  If the type
11716         hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
11717         (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
11718         (build_vms_descriptor): Likewise.
11719         (init_gigi_decls): Delete and move bulk of code to...
11720         * gcc-interface/trans.c (gigi): ...here.  Use record_builtin_type.
11721         (emit_range_check): Add gnat_node parameter.
11722         (emit_index_check): Likewise.
11723         (emit_check): Likewise.
11724         (build_unary_op_trapv): Likewise.
11725         (build_binary_op_trapv): Likewise.
11726         (convert_with_check): Likewise.
11727         (Attribute_to_gnu): Adjust calls for above changes.
11728         (call_to_gnu): Likewise.
11729         (gnat_to_gnu): Likewise.
11730         (assoc_to_constructor): Likewise.
11731         (pos_to_constructor): Likewise.
11732         (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
11733         (process_type): Do not create TYPE_DECL for dummy types.
11734
11735 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11736
11737         * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
11738         * gcc-interface/trans.c: Fix formatting throughout.  Fix comments.
11739         * gcc-interface/utils.c: Fix comments.
11740
11741 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11742
11743         * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
11744         move around.
11745         (gnat_to_gnu_type): Move around.
11746         (get_unpadded_type): Likewise.
11747         * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
11748         Tidy comments.
11749
11750 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11751
11752         * gcc-interface/trans.c (check_for_eliminated_entity): New function.
11753         (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
11754         (call_to_gnu): Invoke it instead of manually checking.
11755
11756 2009-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11757
11758         * gcc-interface/utils.c (finish_record_type): Force structural equality
11759         checks if the record type is discriminated.
11760
11761 2009-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11762
11763         * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
11764         * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
11765         * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
11766         * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
11767         * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
11768         * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
11769         * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
11770
11771 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11772
11773         * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
11774         of TREE_CONSTANT_OVERFLOW.
11775
11776 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
11777
11778         PR rtl-optimization/323
11779         * gcc-interface/misc.c (gnat_post_options): Set
11780         flag_excess_precision_cmdline.  Give an error for
11781         -fexcess-precision=standard for processors where the option is
11782         significant.
11783
11784 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11785
11786         PR c/39323
11787         * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
11788         on bit_align.
11789
11790 2009-03-11  Olivier Hainque  <hainque@adacore.com>
11791
11792         * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
11793         checks processing, remove unintended TREE_TYPE walk on index type.
11794
11795 2009-03-01  Eric Botcazou  <ebotcazou@adacore.com>
11796
11797         PR ada/39264
11798         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
11799         call make_packable_type on fat pointer types.
11800         <E_Array_Subtype>: Likewise.
11801         <E_Record_Subtype>: Call make_packable_type on all record types
11802         except for fat pointer types.
11803         (make_packable_type): Likewise.
11804         (gnat_to_gnu_field): Likewise.
11805
11806 2009-02-28  Eric Botcazou  <ebotcazou@adacore.com>
11807
11808         * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
11809         EH_MECHANISM change made on 2007-12-06.
11810
11811 2009-02-26  Andreas Schwab  <schwab@suse.de>
11812
11813         PR ada/39172
11814         * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
11815         * gcc-interface/Makefile.in: Change all uses of $(srcdir),
11816         $(fsrcdir) and $(fsrcpfx) to add ada subdir.
11817         (AWK): Substitute.
11818         (target_cpu_default): Substitute.
11819
11820 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
11821
11822         PR ada/39221
11823         * a-teioed.adb (Expand): Fix Result overflow.
11824
11825 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
11826
11827         * gcc-interface/Makefile.in: Fix multilib handling for
11828         sparc64-linux.
11829
11830 2009-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11831
11832         * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
11833
11834 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11835
11836         * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
11837
11838 2009-02-16  Eric Botcazou  <ebotcazou@adacore.com>
11839
11840         * gcc-interface/deftarg.c: Remove.
11841
11842 2009-02-10  Olivier Hainque  <hainque@adacore.com>
11843             Eric Botcazou  <ebotcazou@adacore.com>
11844
11845         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
11846         (copy_alias_set): Rename into...
11847         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
11848         underlying array of unconstrained arrays for the new type as well.
11849         If the old and new alias sets don't conflict, make one a subset of
11850         the other as per the OP parameter.
11851         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
11852         <E_Record_Type>: Do not copy the alias set for derived types.
11853         For all types, make the alias set of derived types a superset of
11854         that of their parent type.
11855         (make_aligning_type): Adjust calls to copy_alias_set.
11856         (make_packable_type): Likewise.
11857         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
11858         Check for alias set conflict instead of strict equality to issue the
11859         warning.
11860
11861 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
11862
11863         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11864         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
11865         (copy_alias_set): Assert that arrays have the same aliasing settings.
11866         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
11867
11868 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
11869
11870         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11871         Set TYPE_NONALIASED_COMPONENT on the array type.
11872
11873 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
11874
11875         * gcc-interface/Makefile.in: Fix mipsel linux handling.
11876
11877 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
11878
11879         * gcc-interface/Makefile.in: Fix multilib handling for
11880         powerpc64-linux.
11881
11882 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
11883
11884         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
11885         only useless conversions around renamed objects.
11886
11887 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
11888
11889         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
11890         the _Tag field before any discriminants in the field list.
11891         (components_to_record): Remove obsolete comment.
11892
11893
11894 \f
11895 Copyright (C) 2009 Free Software Foundation, Inc.
11896
11897 Copying and distribution of this file, with or without modification,
11898 are permitted in any medium without royalty provided the copyright
11899 notice and this notice are preserved.