OSDN Git Service

2009-11-30 Arnaud Charlet <charlet@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2009-11-30  Arnaud Charlet  <charlet@adacore.com>
2
3         * s-taprop-posix.adb: Fix casing.
4         * s-osinte-tru64.adb: Complete previous check-in.
5
6 2009-11-30  Robert Dewar  <dewar@adacore.com>
7
8         * gnat_rm.texi: Document pragma Compiler_Unit
9         * s-bitops.adb, s-restri.adb, g-htable.adb, s-restri.ads,
10         a-comlin.ads, a-strhas.ads, s-strhas.adb, s-parame.adb,
11         s-parame.ads, a-clrefi.adb, a-clrefi.ads, a-ioexce.ads: Supply missing
12         Compiler_Unit pragmas.
13         * freeze.adb (Freeze_Entity): Improve message for 8-bit boolean passed
14         to C.
15
16 2009-11-30  Robert Dewar  <dewar@adacore.com>
17
18         * makeutl.adb, makeutl.ads, prj-proc.adb, prj.adb, prj.ads: Minor
19         reformatting.
20
21 2009-11-30  Thomas Quinot  <quinot@adacore.com>
22
23         * osint.adb: Minor reformatting
24
25 2009-11-30  Vincent Celier  <celier@adacore.com>
26
27         * makeutl.ads, makeutl.adb (Base_Name_Index_For): New function to get
28         the base name of a main without the extension, with an eventual source
29         index.
30         (Mains.Get_Index): New procedure to set the source index of a main
31         (Mains.Get_Index): New function to get the source index of a main
32         * prj-attr.adb: New attributes Config_Body_File_Name_Index,
33         Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
34         Multi_Unit_Switches.
35         * prj-nmsc.adb (Process_Compiler): Takle into account new attributes
36         Config_Body_File_Name_Index, Config_Spec_File_Name_Index,
37         Multi_Unit_Object_Separator and Multi_Unit_Switches.
38         Allow only one character for Multi_Unit_Object_Separator.
39         * prj-proc.adb (Process_Declarative_Items): Take into account the
40         source indexes in indexes of associative array attribute declarations.
41         * prj.adb (Object_Name): New function to get the object file name for
42         units in multi-unit sources.
43         * prj.ads (Language_Config): New components Multi_Unit_Switches,
44         Multi_Unit_Object_Separator Config_Body_Index and Config_Spec_Index.
45         (Object_Name): New function to get the object file name for units in
46         multi-unit sources.
47         * snames.ads-tmpl: New standard names Config_Body_File_Name_Index,
48         Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
49         Multi_Unit_Switches.
50
51 2009-11-30  Arnaud Charlet  <charlet@adacore.com>
52
53         * s-tassta.adb: Update comment.
54
55 2009-11-30  Robert Dewar  <dewar@adacore.com>
56
57         * a-ngelfu.adb: Minor code reorganization.
58
59 2009-11-30  Robert Dewar  <dewar@adacore.com>
60
61         * osint.ads, prj.adb, prj.ads: Minor reformatting
62         * s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
63         s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
64         s-strxdr.adb, s-taprop-irix.adb, s-osinte-hpux-dce.adb,
65         s-osinte-tru64.adb, s-taenca.adb, s-taprop-hpux-dce.adb, s-stausa.adb,
66         s-taprop-posix.adb: Minor code reorganization (use conditional
67         expressions).
68
69 2009-11-30  Bob Duff  <duff@adacore.com>
70
71         * g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change.
72
73 2009-11-30  Bob Duff  <duff@adacore.com>
74
75         * socket.c: Add more accessor functions for struct servent (need
76         setters as well as getters).
77         * g-sothco.ads (Servent): Declare interfaces to C setter functions for
78         struct servent.
79         * g-sttsne-locking.adb (Copy_Service_Entry): Use setter functions for
80         struct servent.
81
82 2009-11-30  Robert Dewar  <dewar@adacore.com>
83
84         * s-stchop-vxworks.adb: Add comment.
85
86 2009-11-30  Emmanuel Briot  <briot@adacore.com>
87
88         * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Now acts
89         on the whole tree, to better share code with gprbuild.
90         (Length): New subprogram, to share code in gprbuild.
91         (Project_Data): Remove fields that are only needed when compiling a
92         project in gprbuild (where we use local variables instead)
93         * osint.adb, osint.ads: Added minor comment on memory management
94
95 2009-11-30  Sergey Rybin  <rybin@adacore.com>
96
97         * gnat_ugn.texi: Update gnatcheck doc.
98
99 2009-11-30  Robert Dewar  <dewar@adacore.com>
100
101         make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting
102         * s-taprop-dummy.adb: Minor code reorganization (raise with msgs start
103         with lower case).
104         * i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb,
105         g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb,
106         s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb,
107         g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb,
108         g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code
109         reorganization (use conditional expressions).
110
111 2009-11-30  Vincent Celier  <celier@adacore.com>
112
113         * prj-makr.adb (Source_Files): New hash table to keep track of source
114         file names.
115         (Finalize): Avoid putting several times the same source file name
116         in the source list file.
117         * prj-pp.adb (Print): Fix a bug in the placement of "at nn" for
118         associative array indexes.
119
120 2009-11-30  Robert Dewar  <dewar@adacore.com>
121
122         * g-dyntab.ads: Add missing pragma Compiler_Unit
123
124 2009-11-30  Thomas Quinot  <quinot@adacore.com>
125
126         * s-crtrun.ads, s-crtl.ads, g-stseme.adb, Makefile.rtl, s-fileio.adb
127         (System.CRTL.Runtime): New unit, to contain parts of s-crtl that are
128         used in the Ada runtime but can't be used in the compiler because of
129         bootstrap issues.
130         * socket.c, s-oscons-tmplt.c, g-sothco.ads
131         (System.OS_Constants.SIZEOF_struct_servent): New constant.
132         Use s-oscons constant instead of external variable to get size of
133         struct hostent.
134
135 2009-11-30  Thomas Quinot  <quinot@adacore.com>
136
137         * s-crtl.ads, g-stseme.adb, s-fileio.adb (System.CRTL.strerror): Change
138         return type to Interfaces.C.Strings.chars_ptr to eliminate need for
139         dubious unchecked conversion at call sites.
140         * s-errrep.adb, s-errrep.ads, Makefile.rtl (System.Error_Reporting):
141         Remove obsolete, unused runtime unit.
142         * gcc-interface/Make-lang.in: Update dependencies.
143         * gcc-interface/Makefile.in: Remove VMS specialization of s-crtl, not
144         required anymore.
145
146 2009-11-30  Vincent Celier  <celier@adacore.com>
147
148         * gnatlink.adb: Delete an eventual existing executable file, in case it
149         is a symbolic link, to avoid modifying the target of the symbolic link.
150
151 2009-11-30  Bob Duff  <duff@adacore.com>
152
153         * socket.c: Add accessor functions for struct servent.
154         * g-sothco.ads (Servent): Declare interfaces to C accessor functions
155         for struct servent.
156         * g-socket.adb (To_Service_Entry): Use accessor functions for struct
157         servent.
158
159 2009-11-30  Robert Dewar  <dewar@adacore.com>
160
161         * g-arrspl.adb: Minor reformatting
162         * g-dyntab.adb: Add missing pragma Compiler_Unit
163
164 2009-11-30  Thomas Quinot  <quinot@adacore.com>
165
166         * s-crtl.ads, s-oscons-tmplt.c: Fix support for VMS
167         * make.adb, g-comlin.ads, exp_ch6.adb: Minor reformatting
168
169 2009-11-30  Robert Dewar  <dewar@adacore.com>
170
171         * bcheck.adb, gnatlink.adb, make.adb, makeutl.adb, osint.adb,
172         osint.ads, prj-ext.adb, sem_case.adb: Minor reformatting
173         * g-alleve.adb: Minor code reorganization (use conditional expressions)
174
175 2009-11-30  Matthew Heaney  <heaney@adacore.com>
176
177         * a-crbtgo.adb (Delete_Fixup): Changed always-true predicates to
178         assertions.
179
180 2009-11-30  Thomas Quinot  <quinot@adacore.com>
181
182         * a-tasatt.adb, s-crtl.ads, s-taprop-dummy.adb (System.CRTL.malloc32,
183         System.CRTL.realloc32): Remove VMS-specific routines.
184         (Ada.Task_Attributes.Reference): Remove unreachable code.
185         (System.Task_Primitives.Operations.Initialize, dummy version):
186         Use plain Program_Error rather than call to
187         System.Error_Reporting.Shutdown.
188
189 2009-11-30  Thomas Quinot  <quinot@adacore.com>
190
191         * s-oscons-tmplt.c, xoscons.adb: Add new constants in preparation for
192         sharing s-crtl across all platforms.
193
194 2009-11-30  Thomas Quinot  <quinot@adacore.com>
195
196         * s-commun.adb, s-commun.ads: New internal support unit,
197         allowing code sharing between GNAT.Sockets and
198         GNAT.Serial_Communication.
199         * g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb,
200         g-socket.adb (GNAT.Sockets.Last_Index): Move to System.Communication.
201         (GNAT.Serial_Communication.Read): Handle correctly the case where no
202         data was read, and Buffer'First = Stream_Element_Offset'First.
203         * Makefile.rtl: Add entry for s-commun
204         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
205         g-socthi-vxworks.ads, g-stseme.adb, g-socthi-mingw.ads,
206         g-socthi.adb, g-socthi.ads (GNAT.Sockets.Thin.Socket_Error_Message):
207         Reimplement in terms of System.CRTL.strerror.
208
209 2009-11-26  Eric Botcazou  <ebotcazou@adacore.com>
210
211         * gcc-interface/utils.c (copy_type): Unshare the language-specific data
212         and the contents of the language-specific slot if needed.
213
214 2009-11-26  Eric Botcazou  <ebotcazou@adacore.com>
215
216         * gcc-interface/trans.c (gnat_to_gnu) <N_In>: Set the source location
217         of the operator on both branches of the test in the generic case.
218
219 2009-11-25  Eric Botcazou  <ebotcazou@adacore.com>
220
221         * gcc-interface/trans.c (unchecked_conversion_lhs_nop): Rename into...
222         (unchecked_conversion_nop): ...this.  Handle actual parameters.
223         (gnat_to_gnu): Adjust for above renaming.
224
225 2009-11-25  Eric Botcazou  <ebotcazou@adacore.com>
226
227         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
228         Translate regular boolean types into BOOLEAN_TYPEs.
229
230 2009-11-24  Eric Botcazou  <ebotcazou@adacore.com>
231
232         * sem_util.adb (Set_Debug_Info_Needed): For an E_Class_Wide_Subtype,
233         also set the flag on the Equivalent_Type.
234         * gcc-interface/utils.c (finish_record_type): Replace DO_NOT_FINALIZE
235         parameter with DEBUG_INFO_P.  Rename FIELDLIST into FIELD_LIST.
236         (rest_of_record_type_compilation): Rename FIELDLIST into FIELD_LIST.
237         (build_vms_descriptor32): Adjust call to finish_record_type.
238         (build_vms_descriptor): Likewise.
239         (build_unc_object_type): Likewise.
240         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust calls to
241         finish_record_type and components_to_record.
242         (make_packable_type): Adjust call to finish_record_type.
243         (maybe_pad_type): Likewise.  Tweak condition.
244         (components_to_record): Likewise.  Replace DO_NOT_FINALIZE parameter
245         with MAYBE_UNUSED.  Adjust recursive call.
246         (create_variant_part_from): Adjust call to finish_record_type.  Do not
247         call rest_of_record_type_compilation on the new record types.
248         * gcc-interface/trans.c (gigi): Adjust call to finish_record_type.
249         * gcc-interface/gigi.h (finish_record_type): Adjust prototype and
250         comment.
251         (rest_of_record_type_compilation): Adjust comment.
252
253 2009-11-24  Eric Botcazou  <ebotcazou@adacore.com>
254
255         * exp_util.adb (Make_CW_Equivalent_Type): Do not mark the type as
256         frozen for targets that do not require front-end layout.
257         (New_Class_Wide_Subtype): Always reset the freezing status to False.
258         * exp_ch8.adb: Do not 'with' Targparm.
259         (Expand_N_Object_Renaming_Declaration): Always freeze a class-wide
260         subtype that has been built from the expression.
261         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
262         class wide, freeze the implicit type that has been built from the
263         expression at the dereference point.
264         * freeze.adb (Freeze_Entity): Adjust comment.
265         * gcc-interface/decl.c (Gigi_Equivalent_Type) <E_Class_Wide_Type>:
266         Remove useless test.
267         * gcc-interface/trans.c (process_freeze_entity): Do not special-case
268         class-wide subtypes.
269
270         * s-osinte-aix.adb (clock_gettime): Fix comment.
271         * s-osinte-darwin.adb (clock_gettime): Likewise.
272
273 2009-11-23  Eric Botcazou  <ebotcazou@adacore.com>
274
275         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Pass the list
276         of attributes when building the corresponding variable of a constant.
277         * gcc-interface/utils.c (create_var_decl_1): Do not process attributes
278         for constants.
279
280 2009-11-23  Laurent GUERBY  <laurent@guerby.net>
281             Eric Botcazou  <ebotcazou@adacore.com>
282
283         PR ada/42153
284         * s-osinte-linux.ads (struct_timeval): Delete.
285         * s-osinte-hpux.ads (struct_timeval, To_Duration, To_Timeval): Delete.
286         * s-osinte-kfreebsd-gnu.ads: Likewise.
287         * s-osinte-rtems.ads: Likewise.
288         * s-osinte-aix.ads: Likewise.
289         * s-osinte-hpux-dce.ads: Likewise.
290         * s-osinte-darwin.ads: Likewise.
291         * s-osinte-solaris-posix.ads: Likewise.
292         * s-osinte-irix.ads: Likewise.
293         * s-osinte-solaris.ads: Likewise.
294         * s-osinte-hpux-dce.adb (To_Duration, To_Timeval): Delete.
295         * s-osinte-irix.adb: Likewise.
296         * s-osinte-solaris.adb: Likewise.
297         * s-osinte-rtems.adb: Likewise.  Minor reformatting.
298         * s-osinte-aix.adb (To_Duration, To_Timeval): Delete.
299         (clock_gettime): Use cal.c's timeval_to_duration.
300         * s-osinte-darwin.adb: Likewise.
301
302 2009-11-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
303
304         * adaint.h: Assume large file support on IRIX only if _LFAPI.
305
306 2009-11-21  Laurent GUERBY  <laurent@guerby.net>
307             Eric Botcazou  <ebotcazou@adacore.com>
308
309         * s-osinte-linux.ads (struct_timeval, To_Duration, To_Timeval,
310         gettimeofday): Delete.
311         * s-osinte-posix.adb (To_Duration, To_Timeval): Delete.
312         * s-osprim-posix.adb (struct_timezone, struct_timeval, gettimeofday):
313         Delete.
314         (Clock): Use cal.c's timeval_to_duration.
315         * s-taprop-linux.adb (Monotonic_Clock): Likewise.
316
317 2009-11-12  Eric Botcazou  <ebotcazou@adacore.com>
318             Laurent GUERBY  <laurent@guerby.net>
319
320         * init.c (GNU/Linux Section): Enable for all architectures.
321
322 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
323
324         PR ada/20548
325         * system-linux-alpha.ads (Stack_Check_Probes): Set to true.
326         * system-linux-hppa.ads (Stack_Check_Probes): Likewise.
327         * system-linux-sparc.ads (Stack_Check_Probes): Likewise.
328         * system-linux-sparcv9.ads (Stack_Check_Probes): Likewise.
329
330 2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>
331
332         * system-linux-alpha.ads (AAMP, Compiler_System_Version, OpenVMS,
333         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
334         Delete.
335         (Stack_Check_Limits, Always_Compatible_Rep): New.
336         * system-linux-mips.ads (AAMP, Compiler_System_Version, OpenVMS,
337         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
338         Delete.
339         (Stack_Check_Limits, Always_Compatible_Rep): New.
340         * system-linux-mips64el.ads (AAMP, Compiler_System_Version, OpenVMS,
341         Functions_Return_By_DSP, Front_End_ZCX_Support, High_Integrity_Mode,
342         Long_Shifts_Inlined): Delete.
343         (Stack_Check_Limits, Always_Compatible_Rep): New.
344         * system-linux-mipsel.ads (AAMP, Compiler_System_Version, OpenVMS,
345         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
346         Delete.
347         (Stack_Check_Limits, Always_Compatible_Rep): New.
348         * system-linux-s390.ads (AAMP, Compiler_System_Version, OpenVMS,
349         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
350         Delete.
351         (Stack_Check_Limits, Always_Compatible_Rep): New.
352         * system-linux-s390x.ads (AAMP, Compiler_System_Version, OpenVMS,
353         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
354         Delete.
355         (Stack_Check_Limits, Always_Compatible_Rep): New.
356         * system-linux-sh4.ads (Stack_Check_Limits, Always_Compatible_Rep):
357         New.
358         * system-linux-sparc.ads (AAMP, Compiler_System_Version, OpenVMS,
359         Front_End_ZCX_Support): Delete.
360         (Stack_Check_Limits, Always_Compatible_Rep): New.
361         * system-linux-sparcv9.ads (AAMP, Compiler_System_Version, OpenVMS,
362         Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
363         Delete.
364         (Stack_Check_Limits, Always_Compatible_Rep): New.
365         * system-rtems.ads (OpenVMS): Delete.
366         (Stack_Check_Limits, Always_Compatible_Rep): New.
367
368 2009-11-08  Eric Botcazou  <ebotcazou@adacore.com>
369
370         * gcc-interface/decl.c (make_packable_type): Fix oversight.
371         (gnat_to_gnu_field): Do not attempt to change the form of the type
372         if the field requires strict alignment.  Always change the form of
373         the type if the specified size is smaller than its size.
374
375 2009-11-05  Eric Botcazou  <ebotcazou@adacore.com>
376
377         * gcc-interface/utils.c (gnat_type_for_mode): Handle vector modes.
378
379 2009-11-05  Eric Botcazou  <ebotcazou@adacore.com>
380
381         * gcc-interface/trans.c (lvalue_required_p) <N_Unchecked_Conversion>:
382         New case.
383
384 2009-10-30  Eric Botcazou  <ebotcazou@adacore.com>
385
386         * gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete.
387         (create_field_decl): Update description.  In a packed record, round
388         the size up to a byte boundary only if the field's type has BLKmode.
389         * gcc-interface/gigi.h (create_field_decl): Update description.
390
391 2009-10-30  Emmanuel Briot  <briot@adacore.com>
392
393         * make.adb (Start_Compile_If_Possible): Compute location of resulting
394         ALI file in this procedure instead of after the compilation itself,
395         since the current directory might have changed in between when using
396         -j<n>.
397
398         * osint.ads: Addded missing alignment clause.
399
400         * adaint.c, adaint.h, osint.adb (__gnat_reset_attributes,
401         __gnat_size_of_file_attributes): Rename reset_attributes and
402         size_of_file_attributes.
403
404 2009-10-30  Javier Miranda  <miranda@adacore.com>
405
406         * sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences
407         of statements when searching for SCIL nodes.
408
409 2009-10-30  Tristan Gingold  <gingold@adacore.com>
410
411         * gnatlink.adb, link.c: By default use shared libgcc on darwin.
412
413 2009-10-30  Emmanuel Briot  <briot@adacore.com>
414
415         * make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is
416         already in the list.
417         This saves system calls when looking for ALI files
418         (Scan_Make_Args): The parameter to gnatmake's -D is now converted to an
419         absolute PATH (so that the above improvement properly occurs if both
420         -D<dir> and -aO<dir> are specified).
421
422 2009-10-30  Thomas Quinot  <quinot@adacore.com>
423
424         * a-direct.adb: Minor reformatting
425
426 2009-10-30  Emmanuel Briot  <briot@adacore.com>
427
428         * make.adb, adaint.c, adaint.h, osint.adb, osint.ads, bcheck.adb
429         (*_attr): new subprograms.
430         (File_Length, File_Time_Stamp, Is_Writable_File): new subprograms
431         (Read_Library_Info_From_Full, Full_Library_Info_Name,
432         Full_Source_Name): Now benefit from a previous cache of the file
433         attributes, to further save on system calls.
434         (Smart_Find_File): now also cache the file attributes. This makes the
435         package File_Stamp_Hash_Table useless, and it was removed.
436         (Compile_Sources): create subprograms for the various steps of the main
437         loop, for readibility and to avoid sharing variables between the
438         various steps.
439
440 2009-10-30  Emmanuel Briot  <briot@adacore.com>
441
442         * make.adb, osint.adb, osint.ads (Library_File_Stamp): Removed, since
443         unused.
444         (Read_Library_Info_From_Full): New subprogram.
445
446 2009-10-30  Robert Dewar  <dewar@adacore.com>
447
448         * a-tideio.adb: Minor reformatting
449         * a-wtdeio.adb, a-ztdeio.adb: Update comments, code clean up.
450
451         * a-reatim.adb, a-tideau.adb, a-ngelfu.adb, a-ztdeau.adb, a-ngrear.adb,
452         a-wtedit.adb, a-ststio.adb, a-ztedit.adb: Minor code reorganization
453         (use conditional expressions).
454
455 2009-10-30  Ed Schonberg  <schonberg@adacore.com>
456
457         * gnat_ugn.texi: Additional info on gnatw.i and gnatw.I
458
459         * sem_case.adb: Improved error message.
460
461 2009-10-30  Emmanuel Briot  <briot@adacore.com>
462
463         * a-direct.adb, gnatcmd.adb, gnatname.adb, makeutl.adb, opt.ads,
464         osint.adb, prj-ext.adb, switch-m.adb (Follow_Links_For_Dirs): Now
465         defaults to False, and controlled by -eL.
466         * a-direct.adb: Add comments.
467         * osint.adb (File_Stamp): Avoid unneeded duplicate system call
468
469 2009-10-30  Robert Dewar  <dewar@adacore.com>
470
471         * sem_res.adb (Resolve_Type_Conversion): Avoid false positive when
472         converting non-static subtype to "identical" static subtype.
473
474 2009-10-30  Ed Schonberg  <schonberg@adacore.com>
475
476         * usage.adb: Add -gnatw.i switch.
477
478 2009-10-30  Vincent Celier  <celier@adacore.com>
479
480         * xsnamest.adb: Update comments with regards to the template files
481         snames.*.tmpl
482
483 2009-10-30  Bob Duff  <duff@adacore.com>
484
485         * s-fileio.adb (Errno_Message): Suppress VMS-specific warning.
486
487 2009-10-30  Ed Schonberg  <schonberg@adacore.com>
488
489         * sem_case.adb (Check_Choices): Add explanatory message when there are
490         missing alternatives when the required range of alternatives is given
491         by the base type of the case expression or discriminant in a variant
492         part.
493
494         * opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially
495         dangerous overlap between actuals in a call, activated by -gnatw.i
496         * sem_warn.adb (Set_Dot_Warning_Switch): set flag.
497         (Warn_On_Overlapping_Actuals): use new flag.
498
499         * gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals
500
501 2009-10-30  Robert Dewar  <dewar@adacore.com>
502
503         * exp_aggr.adb, exp_ch9.adb: Minor reformatting
504
505 2009-10-29  Eric Botcazou  <ebotcazou@adacore.com>
506
507         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
508         create integer types with precision 0.
509
510 2009-10-29  Eric Botcazou  <ebotcazou@adacore.com>
511
512         PR ada/41870
513         * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
514         parameters and rewrite comments.  For a derived type, return the
515         setting of its parent type.
516         (gnat_to_gnu_entity): Do an alias set copy for derived types if they
517         are composite.  Adjust calls to above function.
518
519 2009-10-29  Eric Botcazou  <ebotcazou@adacore.com>
520
521         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not
522         return the RM size for padded types.
523
524 2009-10-28  Robert Dewar  <dewar@adacore.com>
525
526         * sem_type.adb: Minor reformatting
527
528 2009-10-28  Arnaud Charlet  <charlet@adacore.com>
529
530         * exp_ch9.adb (Build_Task_Proc_Specification): Generate a different
531         suffix for task type bodies.
532
533 2009-10-28  Ed Schonberg  <schonberg@adacore.com>
534
535         * exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a
536         finalization list if the designated type requires no control actions,
537         to prevent a useless semantic dependence on ada.tags.
538
539 2009-10-28  Bob Duff  <duff@adacore.com>
540
541         * s-fileio.adb: Give more information in exception messages.
542
543 2009-10-28  Robert Dewar  <dewar@adacore.com>
544
545         * gnat_ugn.texi: Document new -gnatyt requirement for space after right
546         paren if next token starts with digit or letter.
547         * styleg.adb (Check_Right_Paren): New rule for space after if next
548         character is a letter or digit.
549
550 2009-10-28  Thomas Quinot  <quinot@adacore.com>
551
552         * s-crtl.ads (System.CRTL.strerror): New function.
553
554 2009-10-28  Ed Schonberg  <schonberg@adacore.com>
555
556         * sem_type.adb: Add guard to recover some type errors.
557
558 2009-10-28  Vincent Celier  <celier@adacore.com>
559
560         * prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
561         Add_If_Not_In_List to account to the fact that a directory may be
562         removed from the list. Only remove directory if Removed is True.
563
564 2009-10-28  Gary Dismukes  <dismukes@adacore.com>
565
566         * a-textio.ads, a-textio.ads: Put back function EOF_Char in private
567         part. Put back body of function EOF_Char.
568         * a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
569         to EOF_Char.
570
571 2009-10-28  Emmanuel Briot  <briot@adacore.com>
572
573         * prj-tree.adb (Free): Fix memory leak.
574
575 2009-10-28  Thomas Quinot  <quinot@adacore.com>
576
577         * s-fileio.adb: Minor reformatting
578
579 2009-10-28  Arnaud Charlet  <charlet@adacore.com>
580
581         * gcc-interface/Make-lang.in: Update dependencies.
582
583 2009-10-28  Robert Dewar  <dewar@adacore.com>
584
585         * exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
586         types.ads: Minor reformatting
587
588 2009-10-28  Tristan Gingold  <gingold@adacore.com>
589
590         * init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
591
592 2009-10-28  Thomas Quinot  <quinot@adacore.com>
593
594         * exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
595         the operand of the unary minus and ABS operators.
596
597         * sem_type.adb (Covers): A concurrent type and its corresponding record
598         type are compatible.
599         * exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
600         attribute reference for the current instance of a protected type while
601         analyzing an access discriminant constraint in a component definition.
602         Such a reference is handled in the corresponding record's init proc,
603         while initializing the constrained component.
604         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
605         corresponding record type, propagate components'
606         Has_Per_Object_Constraint flag.
607         * exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
608         For a concurrent type, set up concurrent aspects before initializing
609         components with a per object constrain, because they may be controlled,
610         and their initialization may call entries or protected subprograms of
611         the enclosing concurrent object.
612
613 2009-10-28  Emmanuel Briot  <briot@adacore.com>
614
615         * prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
616         of code.
617         (Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
618         processing the directories specified explicitly in the project file.
619
620 2009-10-28  Robert Dewar  <dewar@adacore.com>
621
622         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
623         a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
624         to body).
625         (Initialize_Standard_Files): New procedure.
626         * a-tienau.adb: Minor change to make EOF directly visible
627         * a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
628         a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
629         * gnat_rm.texi: Add documentation for
630         Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
631         * Makefile.rtl: Add entries for
632         Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
633
634 2009-10-28  Thomas Quinot  <quinot@adacore.com>
635
636         * exp_ch9.ads: Minor reformatting
637         * sem_ch3.adb: Minor reformatting
638         * sem_aggr.adb: Minor reformatting.
639         * sem_attr.adb: Minor reformatting
640         * tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
641         New subprogram.
642         Minor code reorganization/factoring.
643
644 2009-10-27  Eric Botcazou  <ebotcazou@adacore.com>
645
646         * gcc-interface/decl.c (purpose_member_field): New static function.
647         (annotate_rep): Use it instead of purpose_member.
648
649 2009-10-27  Eric Botcazou  <ebotcazou@adacore.com>
650
651         * raise-gcc (db_region_for): Use _Unwind_GetIPInfo instead of
652         _Unwind_GetIP if HAVE_GETIPINFO is defined.
653         (db_action_for): Likewise.
654
655 2009-10-27  Robert Dewar  <dewar@adacore.com>
656
657         * s-fileio.adb, s-fileio.ads, sem_util.adb, sem_warn.adb,
658         sem_warn.ads: Minor reformatting
659
660 2009-10-27  Robert Dewar  <dewar@adacore.com>
661
662         * sem_warn.adb, sem_util.adb, sem_util.ads: Minor reformatting. Add
663         comments.
664
665 2009-10-27  Robert Dewar  <dewar@adacore.com>
666
667         * s-os_lib.ads, s-os_lib.adb, prj-err.adb, makeutl.adb: Minor
668         reformatting.
669
670 2009-10-27  Ed Schonberg  <schonberg@adacore.com>
671
672         * sem.util.ads, sem_util.adb (Denotes_Same_Object,
673         Denotes_Same_Prefix): New functions to detect overlap between actuals
674         that are not by-copy in a call, when one of them is in-out.
675         * sem_warn.ads, sem_warn.adb (Warn_On_Overlapping_Actuals): New
676         procedure,  called on a subprogram call to warn when an in-out actual
677         that is not by-copy overlaps with another actual, thus leadind to
678         potentially dangerous aliasing in the body of the called subprogram.
679         Currently the warning is under control of the -gnatX switch.
680         * sem_res.adb (resolve_call): call Warn_On_Overlapping_Actuals.
681
682 2009-10-27  Thomas Quinot  <quinot@adacore.com>
683
684         * sem_ch12.adb (Install_Formal_Packages): Do not omit installation of
685         visible entities when the formal package doesn't have a box.
686
687         * checks.adb: Minor reformatting.
688
689 2009-10-27  Vincent Celier  <celier@adacore.com>
690
691         * prj-part.adb (Parse): Catch exception Types.Unrecoverable_Error and
692         set Project to Empty_Node.
693
694 2009-10-27  Robert Dewar  <dewar@adacore.com>
695
696         * gnatbind.adb: Minor reformatting
697
698 2009-10-27  Arnaud Charlet  <charlet@adacore.com>
699
700         * exp_aggr.adb: Fix comment.
701
702 2009-10-27  Emmanuel Briot  <briot@adacore.com>
703
704         * prj-err.adb (Error_Msg): take into account continuation lines when
705         computing whether we have a warning.
706
707 2009-10-27  Vasiliy Fofanov  <fofanov@adacore.com>
708
709         * make.adb, s-os_lib.adb, s-os_lib.ads (Create_Temp_Output_File): New
710         routine that is designed to create temp file descriptor specifically
711         for redirecting an output stream.
712
713 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
714
715         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
716         processing the parent type, build the COMPONENT_REF for a discriminant
717         with the proper type.
718
719 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
720
721         * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo.
722         * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO.
723         Pass GNATLIBCFLAGS_FOR_C to recursive invocations.
724
725 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
726
727         * gcc-interfaces/decl.c (build_subst_list): Convert the expression of
728         the constraint to the type of the discriminant.
729
730 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
731
732         * gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
733         TYPE_DECL when a type is padded if there is already one and reset
734         TYPE_STUB_DECL in this case.
735
736 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
737
738         * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
739         main_identifier_node.
740
741 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
742
743         * gcc-interface/utils.c (convert): When converting to a padded type
744         with an inner type of self-referential size, pad the expression before
745         doing the unchecked conversion.
746
747 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
748
749         * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
750         sure the element type is consistent.
751
752 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
753
754         * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
755
756 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
757
758         * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
759         (TYPE_IS_FAT_POINTER_P): ...this.
760         (TYPE_THIN_POINTER_P): Rename into...
761         (TYPE_IS_THIN_POINTER_P): ...this.
762         (TYPE_FAT_OR_THIN_POINTER_P): Rename into...
763         (TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
764         (TYPE_IS_PADDING_P): Change definition, move old one to...
765         (TYPE_PADDING_P): ...this.
766         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
767         (get_unpadded_type): Likewise.
768         (gnat_to_gnu_component_type): Likewise.
769         (gnat_to_gnu_param): Likewise.
770         (relate_alias_sets): Likewise.
771         (make_packable_type): Likewise.
772         (maybe_pad_type): Likewise.
773         (gnat_to_gnu_field): Likewise.
774         (is_variable_size): Likewise.
775         (annotate_object): Likewise.
776         (validate_size): Likewise.
777         (set_rm_size): Likewise.
778         (make_type_from_size): Likewise.
779         (rm_size): Likewise.
780         * gcc-interface/misc.c (gnat_print_type): Likewise.
781         (gnat_get_alias_set): Likewise.
782         * gcc-interface/trans.c (Identifier_to_gnu): Likewise.
783         (Attribute_to_gnu): Likewise.
784         (call_to_gnu): Likewise.
785         (gnat_to_gnu): Likewise.
786         (add_decl_expr): Likewise.
787         (convert_with_check): Likewise.
788         (addressable_p): Likewise.
789         (maybe_implicit_deref): Likewise.
790         (protect_multiple_eval): Likewise.
791         (gnat_stabilize_reference_1): Likewise.
792         * gcc-interface/utils.c (gnat_pushdecl): Likewise.
793         (finish_record_type): Likewise.
794         (rest_of_record_type_compilation): Likewise.
795         (create_type_decl): Likewise.
796         (gnat_types_compatible_p): Likewise.
797         (build_template): Likewise.
798         (convert_vms_descriptor64): Likewise.
799         (convert_vms_descriptor32): Likewise.
800         (build_unc_object_type_from_ptr): Likewise.
801         (update_pointer_to): Likewise.
802         (convert_to_fat_pointer): Likewise.
803         (convert_to_fat_pointer): Likewise.
804         (convert): Likewise.
805         (remove_conversions): Likewise.
806         (maybe_unconstrained_array): Likewise.
807         (unchecked_convert): Likewise.
808         (handle_vector_type_attribute): Likewise.
809         * gcc-interface/utils2.c (build_binary_op): Likewise.
810         (build_unary_op): Likewise.
811         (build_allocator): Likewise.
812
813 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
814
815         * exp_dbug.ads: Adjust type names in comments.
816         * gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
817         add new IS_COMPONENT_TYPE parameter.  Adjust.  Remove dead code.
818         (gnat_to_gnu_entity): Adjust for above change.
819         (gnat_to_gnu_component_type): Likewise.
820         (gnat_to_gnu_field): Likewise.
821         * gcc-interface/trans.c (call_to_gnu): Likewise.  Do not unnecessarily
822         call max_size.
823         * gcc-interface/utils.c (finish_record_type): Remove obsolete code.
824         * gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.
825
826 2009-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
827
828         * s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
829         * s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.
830
831 2009-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
832
833         * env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
834
835 2009-10-10  Samuel Tardieu  <sam@rfc1149.net>
836
837         * sem_eval.adb: Give a more precise error message.
838
839 2009-10-06  Samuel Tardieu  <sam@rfc1149.net>
840
841         PR ada/41383
842         * a-rttiev.adb (Time_Of_Event): Return Time_First for unset event.
843
844 2009-10-06  Samuel Tardieu  <sam@rfc1149.net>
845
846         PR ada/38333
847         * sem_prag.adb (Process_Import_Or_Interface): Forbid an abstract
848         subprogram to be completed with a "pragma Import".
849
850 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
851
852         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>:
853         Generate an XVZ variable alongside the XVS type if the size is
854         not constant.
855         (maybe_pad_type): Minor tweak.
856
857 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
858
859         * gcc-interface/decl.c (check_ok_for_atomic): Do nothing if the type
860         doesn't come from source.
861
862 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
863
864         * gcc-interface/decl.c (gnat_to_gnu_component_type): Force at least
865         unit size for the component size of an array with aliased components.
866         (maybe_pad_type): Do not warn for MAX_EXPR.
867
868 2009-09-29  Eric Botcazou  <ebotcazou@adacore.com>
869
870         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
871         common code processing the component type into...
872         <E_Array_Subtype>: Likewise.
873         (gnat_to_gnu_component_type): ...this new static function.
874         (maybe_pad_type): Minor cleanup.
875
876 2009-09-29  Eric Botcazou  <ebotcazou@adacore.com>
877
878         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
879         the handling of constrained discriminated record subtypes.
880         (components_to_record): Declare the type of the variants and of the
881         qualified union.
882         (build_subst_list): Move around.
883         (compute_field_positions): Rename into...
884         (build_position_list): ...this.  Return a TREE_VEC.
885         (annotate_rep): Adjust for above renaming.
886         (build_variant_list): New static function.
887         (create_field_decl_from): Likewise.
888         (get_rep_part): Likewise.
889         (get_variant_part): Likewise.
890         (create_variant_part_from): Likewise.
891         (copy_and_substitute_in_size): Likewise.
892
893 2009-09-28  Olivier Hainque  <hainque@adacore.com>
894
895         PR ada/41100
896         * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
897         Account for observable alignments out of default allocators.
898
899 2009-09-28  Richard Henderson  <rth@redhat.com>
900
901         * gcc-interface/utils.c (gnat_install_builtins): Update call to
902         build_common_builtin_nodes.
903
904 2009-09-26  Eric Botcazou  <ebotcazou@adacore.com>
905
906         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
907         negative size for the array dimensions like in the constrained case.
908         <E_Array_Subtype>: Do not create an artificially non-constant high
909         bound if the low bound is non-constant.  Minor tweaks.
910
911         * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
912         and turn ALIASED into a boolean parameter.  Adjust calls to self.
913         <N_Attribute_Reference>: Return 1 for more attributes.
914         <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
915         <N_Assignment_Statement>: Return 1 for the LHS.
916         (Identifier_to_gnu): Adjust calls to lvalue_required_p.
917         (call_to_gnu): Be prepared for wrapped boolean rvalues.
918
919 2009-09-25  Olivier Hainquqe  <hainque@adacore.com>
920             Eric Botcazou  <ebotcazou@adacore.com>
921
922         * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
923         specific node.  Representative array type for VECTOR_TYPE entities.
924         * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
925         Turn an ARRAY_TYPE entity into a VECTOR_TYPE.   
926         (gnat_types_compatible_p): Handle VECTOR_TYPEs.
927         (convert): Likewise.  Arrange to produce VECTOR_CST out of constant
928         array aggregates for VECTOR_TYPE entities.
929         (unchecked_convert): Likewise.
930         (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
931         converted to the associated TYPE_REPRESENTATIVE_ARRAY.
932         (handle_pure_attribute, handle_sentinel_attribute,
933         handle_noreturn_attribute, handle_malloc_attribute,
934         handle_vector_size_attribute): Replace uses of qE format by qs.
935         Remove GCC_DIAG_STYLE definition.
936         * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
937         vector input to representative array type on entry.
938         <N_Op_Eq, etc>: Likewise.
939         * gcc-interface/gigi.h (maybe_vector_array): Declare.
940         (VECTOR_TYPE_P): New predicate.
941         * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
942
943 2009-09-24  Eric Botcazou  <ebotcazou@adacore.com>
944
945         * gcc-interface/ada.h: Fix outdated comment.
946         * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
947         lieu of mark_visited.
948         * gcc-interface/gigi.h (mark_visited): Change type of parameter.
949         (MARK_VISITED): New macro.
950         (gnat_truthvalue_conversion): Delete.
951         * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
952         of mark_visited.
953         (annotate_rep): Fix formatting and tidy.
954         (compute_field_positions): Get rid of useless variable.
955         * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
956         node only once.  Use IN operator for the Nkind in more cases.
957         Remove calls to gnat_truthvalue_conversion.
958         (mark_visited): Change type of parameter and adjust.
959         (mark_visited_r): Dereference TP only once.
960         (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
961         * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
962         (build_binary_op): Remove calls to gnat_truthvalue_conversion.
963         (build_unary_op): Likewise.
964
965 2009-09-24  Dave Korn  <dave.korn.cygwin@gmail.com>
966
967         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
968         a-except% in target pairs list; don't (implicitly) compare whitespace.
969
970 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
971
972         * gcc-interface/utils.c (gnat_pushdecl): Don't set
973         DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
974         nested functions.
975
976 2009-09-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
977
978         * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
979         Bind to getpagesize() in RTEMS 4.10 and newer.
980
981 2009-09-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
982
983         * env.c [__alpha__ && __osf__] (_BSD): Define.
984         * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
985         to const char *.
986
987 2009-09-18  Pascal Obry  <obry@adacore.com>
988
989         * mingw32.h: Activate Unicode support for x86-64 Windows platform.
990
991 2009-09-18  Vadim Godunko  <godunko@adacore.com>
992
993         * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
994
995 2009-09-18  Javier Miranda  <miranda@adacore.com>
996
997         * exp_aggr.adb (Backend_Processing_Possible): Disable backend
998         processing for array aggregates in the VM backend if the array has
999         aliased components.
1000
1001 2009-09-18  Ed Schonberg  <schonberg@adacore.com>
1002
1003         * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
1004         the prefix indicates a previous semantic error, and this is the first
1005         error in the program.
1006
1007 2009-09-18  Bob Duff  <duff@adacore.com>
1008
1009         * gnat_ugn.texi: Minor editing.
1010
1011 2009-09-18  Vincent Celier  <celier@adacore.com>
1012
1013         * prj.ads, prj.adb (Project_Data): New component
1014         Imported_Directories_Switches.
1015
1016 2009-09-18  Pascal Obry  <obry@adacore.com>
1017
1018         * mingw32.h: Include standard _mingw.h file.
1019         Define _WIN32_WINNT only if not already defined.
1020
1021 2009-09-18  Thomas Quinot  <quinot@adacore.com>
1022
1023         * g-socket.adb (Is_Open): New function indicating whether a
1024         Selector_Type object is open.
1025
1026 2009-09-18  Vincent Celier  <celier@adacore.com>
1027
1028         * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
1029         is deleted before creating it.
1030
1031 2009-09-18  Robert Dewar  <dewar@adacore.com>
1032
1033         * bindgen.adb: Minor reformatting
1034
1035 2009-09-18  Arnaud Charlet  <charlet@adacore.com>
1036
1037         * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
1038         s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
1039         signal handler is installed.
1040         * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
1041         tasks if Abort_Task_Interrupt cannot be used.
1042
1043 2009-09-18  Vincent Celier  <celier@adacore.com>
1044
1045         * prj-tree.ads: Minor comment update
1046
1047 2009-09-17  Bob Duff  <duff@adacore.com>
1048
1049         * g-socket.ads: Document the fact that Close_Selector has no effect on
1050         a closed selector.
1051         * g-socket.adb: Raise an exception when a Selector that should be open
1052         is closed.
1053         (Check_Selector): Declare RSig as a constant rather than a renames,
1054         less confusing.
1055
1056 2009-09-17  Robert Dewar  <dewar@adacore.com>
1057
1058         * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
1059         prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
1060         prj-tree.ads: Minor reformatting
1061
1062 2009-09-17  Emmanuel Briot  <briot@adacore.com>
1063
1064         * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
1065         spec.
1066         (Do_Autoconf): If the object directory does not exists, create auto.cgpr
1067         in a temporary directory instead
1068
1069 2009-09-17  Bob Duff  <duff@adacore.com>
1070
1071         * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
1072         terminated.
1073         (Get_Priority): Correct message for "terminated" case -- it said "null".
1074
1075 2009-09-17  Robert Dewar  <dewar@adacore.com>
1076
1077         * exp_ch6.adb: Minor reformatting
1078
1079 2009-09-17  Emmanuel Briot  <briot@adacore.com>
1080
1081         * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
1082         switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
1083         (Project_Node_Tree_Data.Project_Path): New field.
1084
1085         * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
1086
1087 2009-09-17  Emmanuel Briot  <briot@adacore.com>
1088
1089         * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
1090         Remove duplicate code.
1091         (Prj.Ext): Fix memory leak
1092         (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
1093         variable. This was previously allowed in the code in
1094         Is_External_Assignment, and some tests rely on it
1095
1096 2009-09-17  Bob Duff  <duff@adacore.com>
1097
1098         * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
1099
1100 2009-09-17  Emmanuel Briot  <briot@adacore.com>
1101
1102         * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
1103         makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
1104         prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
1105         prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
1106         Scenario variables are now specific to each project tree loaded in
1107         memory.
1108         Code clean ups.
1109
1110 2009-09-17  Javier Miranda  <miranda@adacore.com>
1111
1112         * exp_disp.adb (Make_DT): Remove wrong line of code that was
1113         undocumented and probably added by mistake.
1114
1115 2009-09-16  Eric Botcazou  <ebotcazou@adacore.com>
1116
1117         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
1118         conversions between original and packable version of types from
1119         the expression.
1120
1121 2009-09-16  Eric Botcazou  <ebotcazou@adacore.com>
1122
1123         * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
1124         If a padding type was made for the field, declare it.
1125         (components_to_record): Add DEBUG_INFO_P parameter.  Adjust call
1126         to gnat_to_gnu_field and call to self.
1127         (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
1128         <E_Array_Subtype>: Likewise.
1129         Adjust calls to gnat_to_gnu_field and components_to_record.
1130
1131 2009-09-16  Robert Dewar  <dewar@adacore.com>
1132
1133         * prj-nmsc.adb: Minor reformatting
1134
1135 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
1136
1137         * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
1138         expression is a by-reference type (tagged or inherently limited)
1139         introduce an access type to capture references to the values of each
1140         branch of the conditional.
1141
1142 2009-09-16  Emmanuel Briot  <briot@adacore.com>
1143
1144         * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
1145         (Project_Name_And_Node.Display_Name): new field
1146         The display name of a project (as written in the .gpr file) is now
1147         computed when the project file itself is parsed, not when it is
1148         processed.
1149
1150 2009-09-16  Thomas Quinot  <quinot@adacore.com>
1151
1152         * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
1153         intrinsics untouched (to be expanded later on by gigi) if an external
1154         name has been specified.
1155         (Freeze_Entity): Do not generate a default external name for
1156         imported subprograms with convention Intrinsic (so that the above code
1157         can identify the case where an external name has been explicitly
1158         provided).
1159
1160         * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
1161         replaced by something else due to an existing #define clause.
1162
1163 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
1164
1165         * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
1166         Parameter_Association node, created for the extra actual generated for
1167         an access parameter of a function that dispatches on result, to prevent
1168         double generation of such actuals when the call is rewritten is a
1169         dispatching call.
1170         * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
1171         * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
1172         that carry this flag when rewriting the original call as a dispatching
1173         call, after propagating the controlling tag.
1174
1175 2009-09-16  Vincent Celier  <celier@adacore.com>
1176
1177         * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
1178         in the source data.
1179         (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
1180         source is allowed.
1181         (Find_Source_Dirs): New parameter Rank to be recorded with the source
1182         directories.
1183         (Search_Directories): Call Check_File with the rank of the directory
1184         * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
1185         (Free): Free also Number_Lists
1186         (Reset): Init also Number_Lists
1187         * prj.ads (Number_List_Table): New dynamic table for lists of numbers
1188         (Source_Data): New component Source_Dir_Rank. Remove component
1189         Known_Order_Of_Source_Dirs, no longer needed.
1190         (Project_Data): New component Source_Dir_Ranks
1191         (Project_Tree_Data): New components Number_Lists
1192
1193 2009-09-16  Vincent Celier  <celier@adacore.com>
1194
1195         * gprep.adb (Yes_No): New global constant
1196         Unix_Line_Terminators: New global Boolean variable
1197         (Process_One_File): Create the out file with a "Text_Translation=" form
1198         that depends on the use of option -T.
1199         (Scan_Command_Line): Add option -T
1200         (Usage): Add line for option -T
1201
1202 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
1203
1204         * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
1205         predicate that describes a proper subset of
1206         Is_Predefined_Dispatching_Operation and excludes stream operations,
1207         which can be overridden by the user.
1208         * sem_ch6.adb (Create_Extra_Formals): use
1209         Is_Predefined_Internal_Operation, so that stream operations get extra
1210         formals.
1211         * exp_ch6.adb (Prevent double generation of extra actuals in calls to
1212         'Input, which may be expanded twice, first as a function call and then
1213         as a dispatching call.
1214
1215 2009-09-16  Thomas Quinot  <quinot@adacore.com>
1216
1217         * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
1218         * g-expect.adb (Set_Up_Child_Communications): Use
1219         System.OS_Constants.Target_OS to determine whether running on Windows.
1220
1221 2009-09-14  Richard Henderson  <rth@redhat.com>
1222
1223         * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
1224
1225 2009-09-14  Eric Botcazou  <ebotcazou@adacore.com>
1226
1227         * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
1228         the unconstrained case.
1229         * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
1230         the encoding.  Do not give a name to the pointer type to the XUT type.
1231         * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
1232         for fat pointer types, if any.  Make sure DECL_ARTIFICIAL is cleared
1233         on nodes with DECL_ORIGINAL_TYPE set.
1234         (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
1235         for fat pointer types.  Make sure DECL_ARTIFICIAL is cleared.
1236
1237 2009-09-14  Richard Henderson  <rth@redhat.com>
1238
1239         * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
1240         default_init_unwind_resume_libfunc.
1241         * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
1242         __builtin_eh_pointer.
1243         * gcc-interface/utils.c (gnat_install_builtins): Update call
1244         to build_common_builtin_nodes.
1245
1246 2009-09-13  Richard Guenther  <rguenther@suse.de>
1247             Rafael Avila de Espindola  <espindola@google.com>
1248
1249         * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
1250         eh_personality_libfunc and lang_eh_runtime_type.
1251         (LANG_HOOKS_EH_PERSONALITY): Define.
1252         (gnat_eh_personality_decl): New static variable.
1253         (gnat_eh_personality): New static function.
1254         Include gt-ada-misc.h.
1255         * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
1256         * gcc-interface/config-lang.in (gtfiles): Add misc.c.
1257
1258 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1259
1260         PR ada/18302
1261         * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
1262
1263 2009-09-08  Eric Botcazou  <ebotcazou@adacore.com>
1264
1265         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
1266         flow of control.
1267         Avoid useless work when processing the Treat_As_Volatile flag.
1268
1269 2009-09-08  Eric Botcazou  <ebotcazou@adacore.com>
1270
1271         * gcc-interface/targtyps.c: Reorder include directives.
1272
1273 2009-09-07  Laurent GUERBY  <laurent@guerby.net>
1274
1275         * gcc-interface/targtyps.c: Add missing include for tm_p.h.
1276         * gcc-interface/Make-lang.in: Update dependencies.
1277
1278 2009-09-07  Laurent GUERBY  <laurent@guerby.net>
1279
1280         * make.adb: Add missing documentation for multilib handling.
1281         
1282 2009-09-03  Diego Novillo  <dnovillo@google.com>
1283
1284         * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
1285
1286 2009-09-02  Richard Henderson  <rth@redhat.com>
1287
1288         * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
1289
1290 2009-09-02  Olivier Hainque  <hainque@adacore.com>
1291
1292         * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
1293         and uc arguments.
1294         
1295 2009-09-02  Olivier Hainque  <hainque@adacore.com>
1296
1297         * gcc-interface/decl.c (cannot_be_superflat_p): Handle
1298         Signed_Integer_Type_Definition Scalar_Ranges.
1299
1300 2009-09-02  Eric Botcazou  <ebotcazou@adacore.com>
1301
1302         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
1303         SAVE_EXPR built for misaligned arguments.  Remove redundant stuff.
1304         (addressable_p): Return true for more rvalues.
1305
1306 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1307
1308         * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
1309         POINTER_SIZE to HOST_WIDE_INT.
1310
1311 2009-09-01  Richard Guenther  <rguenther@suse.de>
1312
1313         * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1314
1315 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
1316
1317         * gcc-interface/trans.c (call_to_gnu): Tidy.
1318         (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
1319         non-constant size but the array itself has constant size.
1320         * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
1321         consistency error.
1322         (convert_vms_descriptor32): Likewise.
1323
1324 2009-08-22  Aurelien Jarno  <aurelien@aurel32.net>
1325
1326         * gcc-interface/Makefile.in: Add Ada support for 
1327         GNU/kFreeBSD x86_64.
1328         * system-freebsd-x86_64.ads: New file based on 
1329         system-freebsd-x86.ads.
1330
1331 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
1332
1333         * gcc-interface/utils.c (convert): In the padded case, do the final
1334         conversion as an unchecked conversion if the underlying types are
1335         array types with variable size.
1336
1337 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
1338
1339         * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
1340         as visited.
1341         * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
1342         bounds.
1343         * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
1344         fields.
1345         (gnat_gimplify_expr) <DECL_EXPR>: New case.
1346
1347 2009-08-17  Aurelien Jarno  <aurelien@aurel32.net>
1348
1349         * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
1350         (stack_t): New record type.
1351         (sigaltstack): New imported function.
1352         (Alternate_Stack): New imported variable.
1353         (Alternate_Stack_Size): New constant.
1354
1355 2009-08-17  Vasiliy Fofanov  <fofanov@adacore.com>
1356
1357         * a-calend-vms.adb: Fix typo.
1358
1359 2009-08-17  Tristan Gingold  <gingold@adacore.com>
1360
1361         * s-taprop-posix.adb: Round up the stack size to avoid failure on
1362         Darwin.
1363
1364 2009-08-17  Gary Dismukes  <dismukes@adacore.com>
1365
1366         * sem_cat.adb (Validate_Static_Object_Name): Update comment.
1367
1368 2009-08-17  Vincent Celier  <celier@adacore.com>
1369
1370         * make.adb (Arguments_Collected): Unneeded, removed
1371         (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
1372         ensure caller does not pass in No_Project.
1373         (Compile): Add new parameter Project. Let procedure
1374         Collect_Arguments_And_Compile provide the proper value.
1375
1376         * switch-c.adb: Add documentation for -gnatea and -gnatez
1377
1378 2009-08-17  Ben Brosgol  <brosgol@adacore.com>
1379
1380         * gnat_ugn.texi: Changed name of package in SAL example, to avoid
1381         clash with Ada 2005 reserved word (interface).
1382
1383 2009-08-17  Robert Dewar  <dewar@adacore.com>
1384
1385         * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
1386         a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
1387         a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
1388         (use conditional expressions).
1389
1390 2009-08-17  Robert Dewar  <dewar@adacore.com>
1391
1392         * make.adb: Add ??? comment
1393         * tbuild.adb: Minor reformatting
1394
1395 2009-08-17  Thomas Quinot  <quinot@adacore.com>
1396
1397         * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
1398         Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
1399         Use Tbuild.Make_Temporary to create entity for the temporary.
1400
1401 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
1402
1403         * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
1404         and ignore -mieee switch to avoid spawning an extra gcc in this case.
1405
1406 2009-08-17  Thomas Quinot  <quinot@adacore.com>
1407
1408         * tbuild.adb: Minor reformatting
1409
1410 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
1411
1412         * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
1413         exist, as is the case for synchronized types, use the type of the
1414         discriminal in the parameter specification, to prevent a spurious
1415         subtype mismatch in gigi.
1416
1417 2009-08-17  Robert Dewar  <dewar@adacore.com>
1418
1419         * prj-env.adb: Minor reformatting
1420         * make.adb: Minor reformatting
1421         Comment updates
1422
1423 2009-08-17  Javier Miranda  <miranda@adacore.com>
1424
1425         * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
1426
1427 2009-08-17  Emmanuel Briot  <briot@adacore.com>
1428
1429         * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
1430         (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
1431         object directories must be present. In the case of gprclean at least,
1432         these are optional (if they do not exist there is nothing to clean)
1433
1434 2009-08-17  Robert Dewar  <dewar@adacore.com>
1435
1436         * prj-env.adb: Minor reformatting
1437         * sem_ch3.adb: Minor reformatting
1438
1439 2009-08-17  Hristian Kirtchev  <kirtchev@adacore.com>
1440
1441         * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
1442         the time zone since VxWorks chose positive values to represent west
1443         time zones and negative for east zones.
1444
1445 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
1446
1447         * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
1448         an anonymous access type whose designated type is generic.
1449
1450 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
1451
1452         * comperr.adb (Compiler_Abort): Do not generate a bug box when in
1453         codepeer mode, friendlier.
1454
1455 2009-08-10  Laurent GUERBY  <laurent@guerby.net>
1456
1457         * make.adb: Handle multilib
1458         
1459 2009-08-10  Vincent Celier  <celier@adacore.com>
1460
1461         * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
1462         the temporary file name in the error message when the temporary file
1463         cannot be created.
1464
1465 2009-08-10  Yannick Moy  <moy@adacore.com>
1466
1467         * gnat_ugn.texi: Fix typo
1468
1469 2009-08-10  Robert Dewar  <dewar@adacore.com>
1470
1471         * exp_ch7.adb: Add ??? comment for last change
1472
1473 2009-08-10  Vincent Celier  <celier@adacore.com>
1474
1475         * prj-env.adb (Add_To_Buffer): New procedure
1476         (Create_Config_Pragmas_File): Write to temporary file in one shot
1477         (Create_Mapping_File): Ditto
1478         (Set_Ada_Paths): Ditto
1479
1480 2009-08-10  Vincent Celier  <celier@adacore.com>
1481
1482         PR ada/17566
1483         * xref_lib.adb (Print_Xref): Make sure that there is at least one space
1484         between a declaration name and its type.
1485
1486 2009-08-07  Javier Miranda  <miranda@adacore.com>
1487
1488         * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
1489         SCIL node.
1490
1491 2009-08-07  Robert Dewar  <dewar@adacore.com>
1492
1493         * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
1494
1495 2009-08-07  Vincent Celier  <celier@adacore.com>
1496
1497         * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
1498         specified on the command line and there are switches in the Compiler
1499         package of the project file, use these compilation switches to invoke
1500         the tool.
1501
1502 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
1503
1504         * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
1505
1506 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
1507
1508         * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
1509         even if not in main unit, to simplify debugging.
1510
1511 2009-08-07  Arnaud Charlet  <charlet@adacore.com>
1512
1513         * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
1514         * gcc-interface/Make-lang.in: Update dependencies.
1515
1516 2009-08-07  Robert Dewar  <dewar@adacore.com>
1517
1518         * types.ads: Minor reformatting
1519         * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
1520         * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
1521         Output_Non_Modified_In_Out_Warnings.
1522         * sem_ch13.adb: Remove ??? comment.
1523
1524 2009-08-07  Vincent Celier  <celier@adacore.com>
1525
1526         * mlib-prj.adb (Build_Library): Include binder generate object file
1527         for SAL when library name is only one character.
1528
1529 2009-08-07  Thomas Quinot  <quinot@adacore.com>
1530
1531         * targparm.adb: Minor reformatting
1532         * sem.adb: Minor reformatting
1533         * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
1534
1535 2009-08-07  Emmanuel Briot  <briot@adacore.com>
1536
1537         * prj-conf.adb: Remove duplicate directory separator in the output when
1538         an object directory does not exist.
1539
1540 2009-08-07  Robert Dewar  <dewar@adacore.com>
1541
1542         * exp_util.adb: Minor reformatting
1543
1544 2009-08-07  Vincent Celier  <celier@adacore.com>
1545
1546         * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
1547         length used).
1548
1549 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
1550
1551         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
1552         detect non-static private components that will violate restriction
1553         No_Implicit_Heap_Allocation.
1554
1555 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
1556
1557         * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
1558
1559 2009-08-02  Eric Botcazou  <ebotcazou@adacore.com>
1560
1561         * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
1562         * gcc-interface/utils.c (end_subprog_body): Likewise.
1563         * gcc-interface/trans.c (gigi): Likewise.
1564         (gnat_to_gnu): Likewise.
1565
1566 2009-07-30  Ben Brosgol  <brosgol@adacore.com>
1567
1568         * gnat_ugn.texi: Correct minor texi glitch.
1569
1570 2009-07-30  Ed Schonberg  <schonberg@adacore.com>
1571
1572         * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
1573         expression has an underlying representation that is an unchecked union,
1574         there is no subtype to build.
1575
1576 2009-07-30  Robert Dewar  <dewar@adacore.com>
1577
1578         * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
1579         s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
1580         sem_ch7.adb, adaint.c: Minor reformatting
1581
1582 2009-07-29  Javier Miranda  <miranda@adacore.com>
1583
1584         * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
1585         moved from the expander to the semantic analyzer to allow the
1586         generation of these internal entities when compiling with no code
1587         generation. Required by ASIS.
1588         * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
1589         * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
1590         * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
1591         (Expand_Freeze_Record_Type): Remove call to
1592         Add_Internal_Interface_Entities because this routine is now called at
1593         early stage --when the freezing node is analyzed.
1594
1595 2009-07-29  Robert Dewar  <dewar@adacore.com>
1596
1597         * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
1598         exp_disp.adb, g-socket.adb: Minor reformatting
1599
1600 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
1601
1602         * sem_ch7.adb (New_Private_Type): Create class-wide type after other
1603         attributes have been established, so that they are all inherited by the
1604         class-wide type.
1605         * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
1606         properly named subtypes of class-wide types.
1607
1608 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
1609
1610         * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
1611         indicators on user-defined operators.
1612
1613 2009-07-29  Vadim Godunko  <godunko@adacore.com>
1614
1615         * g-socket.adb (Receive_Vector): Add comment.
1616
1617 2009-07-29  Javier Miranda  <miranda@adacore.com>
1618
1619         * frontend.adb (Frontend): Code cleanup.
1620         * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
1621         Rewriten as a procedure because it a new out-mode parameters to
1622         keep up-to-date the controlling tag node in the caller.
1623         (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
1624         new out-mode parameter to keep up-to-date the controlling tag node in
1625         the caller.
1626         * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
1627         exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
1628         package Sem_SCIL.
1629         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
1630         available in new package Sem_SCIL.
1631         (Next_Non_SCIL_Node): Ditto.
1632         * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
1633         package Sem_SCIL.
1634         (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
1635         plus complete decoration of SCIL dispatching node.
1636         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1637         * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
1638         package Sem_SCIL.
1639         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1640         * exp_ch3.adb (Build_Init_Procedure): Fix comment.
1641         * sem_scil.ads, sem_scil.adb: New files.
1642         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
1643         Update dependencies.
1644
1645 2009-07-28  Robert Dewar  <dewar@adacore.com>
1646
1647         * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
1648         makeutl.adb: Minor reformatting & code reorganization
1649         * sem_ch3.adb: Minor reformatting.
1650         Fix spelling error (constraint for constrain) in error msg.
1651
1652 2009-07-28  Emmanuel Briot  <briot@adacore.com>
1653
1654         * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
1655         global variable that also exists in makeutl.ads, and that some routines
1656         in that package use already.
1657         (Check): Moved part of the code to makeutl.adb for better sharing with
1658         gprbuild.
1659
1660 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
1661
1662         * gcc-interface/Make-lang.in: Update dependencies.
1663
1664 2009-07-28  Emmanuel Briot  <briot@adacore.com>
1665
1666         * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
1667         importing project does not end up in the list, in the case of extending
1668         projects.
1669         * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
1670         makeutl.ads, for better sharing with gprbuild.
1671
1672 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
1673
1674         * gnat_ugn.texi: Fix typo.
1675
1676 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
1677
1678         * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
1679         derivation that renames some discriminants and constrain others.
1680         * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
1681         prefix is a derived untagged type, convert to the root type to conform
1682         to the signature of the protected operations.
1683
1684 2009-07-28  Robert Dewar  <dewar@adacore.com>
1685
1686         * sinfo.ads: Update comments.
1687         * exp_attr.adb: Minor reformatting
1688
1689 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
1690
1691         * sem_aggr.adb (Get_Value): A named association in a record aggregate
1692         should be treated as a modification of the named component, not as a
1693         reference.
1694
1695 2009-07-28  Quentin Ochem  <ochem@adacore.com>
1696
1697         * prj-tree.ads, prj-tree.adb (Free): Minor editing.
1698         * prj.ads, prj.adb (Image): Ditto.
1699
1700 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
1701
1702         * frontend.adb: Minor reformatting.
1703         (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
1704         for efficiency.
1705
1706 2009-07-28  Bob Duff  <duff@adacore.com>
1707
1708         * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
1709         'Address to get a pointer to the protected body wrapper.
1710
1711 2009-07-28  Javier Miranda  <miranda@adacore.com>
1712
1713         * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
1714         nodes if we are not generating code.
1715         * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
1716         attribute SCIL_Related_Node of SCIL dispatching nodes.
1717         (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
1718         * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1719         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1720         (SCIL_Entity): Update documentation.
1721         (SCIL_Related_Node): Update documentation.
1722         (SCIL_Controlling_Tag): New attribute.
1723         (SCIL_Target_Prim): Update documentation.
1724         (N_Null_Statement): Remove attributes associated with SCIL nodes.
1725         (N_SCIL_Dispatch_Table_Object_Init): New node.
1726         (N_SCIL_Dispatch_Table_Tag_Init): New node.
1727         (N_SCIL_Dispatching_Call): New node.
1728         (N_SCIL_Tag_Init): New node.
1729         * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1730         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1731         (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
1732         (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
1733         (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
1734         (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
1735         N_SCIL_Dispatching_Call nodes.
1736         * sem.adb (Analyze): No need to analyze SCIL nodes.
1737         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
1738         (Next_Non_SCIL_Node): New subprogram
1739         * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
1740         dispatching nodes.
1741         * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
1742         dispatching node.
1743         * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
1744         dispatching node.
1745         * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
1746         null statement nodes.
1747         (Build_Init_Procedure): Generate new SCIL node.
1748         * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
1749         node.
1750         * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
1751         they are currently implemented as special N_Null_Statement nodes.
1752         * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
1753         procedure call then check if some SCIL node references it and needs
1754         readjustment.
1755         * exp_disp.ads (SCIL_Node_Kind): Removed.
1756         (Adjust_SCIL_Node): New subprogram.
1757         (Find_SCIL_Node): New subprogram.
1758         (Get_SCIL_Node_Kind): Removed.
1759         (New_SCIL_Node): Removed.
1760         * exp_disp.adb (Adjust_SCIL_Node): New subprogram
1761         (Expand_Dispatching_Call): Generate new SCIL dispatching node including
1762         decoration of its new controlling_tag attribute.
1763         (Get_SCIL_Node_Kind): Removed.
1764         (Find_SCIL_Node): New subprogram.
1765         (Make_Secondary_DT): Generate new SCIL nodes.
1766         (Make_Tags): Generate new SCIL nodes.
1767         (New_SCIL_Node): Removed.
1768         * exp_util.adb (Insert_Actions): Handle SCIL nodes.
1769         (Remove_Side_Effects): Check if relocated nodes require readjustment
1770         of some SCIL dispatching node.
1771         * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
1772
1773 2009-07-28  Robert Dewar  <dewar@adacore.com>
1774
1775         * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
1776
1777 2009-07-28  Sergey Rybin  <rybin@adacore.com>
1778
1779         * gnat_ugn.texi: Add section about gnatcheck rule exemption.
1780
1781 2009-07-28  Vadim Godunko  <godunko@adacore.com>
1782
1783         * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
1784         not defined by limits.h.
1785
1786         * g-socket.adb (Receive_Vector): Use minimum length from user's vector
1787         length and maximum supported length of data vector.
1788
1789 2009-07-28  Gary Dismukes  <dismukes@adacore.com>
1790
1791         * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
1792         * make.adb: Call Get_Target_Parameters before calling Usage so that
1793         VM_Target and AAMP_On_Target will be set.
1794
1795 2009-07-28  Olivier Hainque  <hainque@adacore.com>
1796
1797         * g-ssinty.ads: Remove, pointless and just confusing at this stage.
1798         * gnat_rm.texi: Remove documentation.
1799         * g-sse.ads: Minor reorg along the way.
1800         * gcc-interface/Makefile.in: Remove processing for g-ssinty.
1801         * g-ssvety.ads: Minor comment updates.
1802
1803 2009-07-28  Sergey Rybin  <rybin@adacore.com>
1804
1805         * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
1806         for the new format of the report file.
1807
1808 2009-07-28  Sergey Rybin  <rybin@adacore.com>
1809
1810         * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
1811
1812 2009-07-28  Pascal Obry  <obry@adacore.com>
1813
1814         * g-expect.adb: Record standard handles only on Windows.
1815
1816 2009-07-27  Emmanuel Briot  <briot@adacore.com>
1817
1818         * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
1819         Add comments.
1820
1821 2009-07-27  Sergey Rybin  <rybin@adacore.com>
1822
1823         * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
1824         rule definition the paragraph that explains that generic functions and
1825         functions from generic packages are not checked.
1826
1827 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
1828
1829         * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
1830         procedure when determining whether to set the Overridden_Operation
1831         field of a subprogram overriding an inherited subprogram.
1832         
1833 2009-07-27  Robert Dewar  <dewar@adacore.com>
1834
1835         * a-except.adb, a-except-2005.ads: Minor reformatting
1836
1837 2009-07-27  Robert Dewar  <dewar@adacore.com>
1838
1839         * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
1840
1841 2009-07-27  Javier Miranda  <miranda@adacore.com>
1842
1843         * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
1844         add some documentation explaining why the SCIL nodes must be generated
1845         at that point.
1846
1847 2009-07-27  Olivier Hainque  <hainque@adacore.com>
1848
1849         * a-except.adb: Bind to __builtin_longjmp directly.
1850         * a-except-2005.ads: Provide direct binding to __builtin_longjmp
1851         for sjlj variants.
1852         * a-exexpr.adb: Use it.
1853         * a-except-xi.adb: Likewise.
1854         * raise.c (_gnat_builtin_longjmp): Remove and update comments.
1855         * raise.h (_gnat_builtin_longjmp): Remove declaration.
1856
1857 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
1858
1859         * sem_eval.adb (Compile_Time_Compare): More precise handling of
1860         Known_Valid flag, to prevent spurious range deductions when scalar
1861         variables may be uninitialized. New predicate Is_Known_Valid_Operand.
1862
1863 2009-07-27  Robert Dewar  <dewar@adacore.com>
1864
1865         * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
1866         and code clean up.
1867
1868 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
1869
1870         * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
1871         Ravenscar mode. Error has already been posted on specification.
1872
1873         * sem.adb: Further code clean ups.
1874
1875 2009-07-27  Robert Dewar  <dewar@adacore.com>
1876
1877         * g-sse.ads: Minor reformatting
1878
1879 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
1880
1881         * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
1882         alternate ali extension.
1883         * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
1884         account Osint.ALI_Suffix.
1885         * osint.ads (ALI_Suffix): Make visible.
1886         * gnatfind.adb (Gnatfind): Add support for --ext= switch.
1887         * gnat_ugn.texi: Document new gnatfind --ext= switch.
1888
1889 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
1890
1891         * sem.adb (Walk_Library_Items): If main unit is an instance body, do
1892         its spec first.
1893
1894 2009-07-27  Javier Miranda  <miranda@adacore.com>
1895
1896         * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
1897         the dispatching call has is expanded.
1898
1899 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
1900
1901         * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
1902         Is_Known_Valid flag on the temporary created for the value whose
1903         validity is being checked.
1904
1905         * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
1906         handle properly main units that are package specifications.
1907
1908 2009-07-27  Geert Bosch  <bosch@adacore.com>
1909
1910         * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
1911         * sem_aux.ads: Fix typo in comment
1912         * sem_util.ads (Is_LHS): Adjust comment to match body
1913
1914 2009-07-27  Sergey Rybin  <rybin@adacore.com>
1915
1916         * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
1917         rule definition.
1918
1919 2009-07-27  Olivier Hainque  <hainque@adacore.com>
1920
1921         * g-sse.ads, g-ssvety.ads: Update comments.
1922
1923 2009-07-27  Sergey Rybin  <rybin@adacore.com>
1924
1925         * gnat_ugn.texi: Update gnatcheck doc.
1926
1927 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
1928
1929         * lib-xref.ads: Allocate/document 'o' char for use by references to
1930         spark 'own' variables.
1931
1932 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
1933
1934         * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
1935         objects, since these are implicitly referenced by the return statement.
1936         * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
1937         Is_Return_Object in this procedure, as return objects will never make
1938         it here since they're now marked as Referenced.
1939
1940 2009-07-27  Robert Dewar  <dewar@adacore.com>
1941
1942         * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
1943
1944 2009-07-27  Robert Dewar  <dewar@adacore.com>
1945
1946         * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
1947
1948         * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
1949
1950 2009-07-27  Geert Bosch  <bosch@adacore.com>
1951
1952         * checks.adb (Find_Check): Minor streamlining of logic.
1953         * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
1954         * debug.adb: Document -gnatdX debug flag
1955         * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
1956         list information about reads from scalar entities.
1957         Also slightly simplify condition for Expand_Current_Value.
1958         * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
1959         functions.
1960
1961 2009-07-26  Dave Korn  <dave.korn.cygwin@gmail.com>
1962
1963         PR bootstrap/40578
1964         * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
1965         (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
1966         to these.
1967         (__gnat_stat): Adjust reference to STAT in prototype.
1968         * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
1969         __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
1970         __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
1971         __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
1972         __gnat_is_writable_file, __gnat_is_executable_file,
1973         __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
1974         __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
1975         __gnat_copy_attribs): Adjust all references to the above.
1976         * cstreams.c (__gnat_is_regular_file_fd): Likewise.
1977
1978 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1979
1980         * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
1981         done at the same time, guard against listing a body more than once.
1982
1983 2009-07-23  Robert Dewar  <dewar@adacore.com>
1984
1985         * exp_ch6.adb: Minor reformatting
1986
1987 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1988
1989         * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
1990         static expression is known valid.
1991         * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
1992         operands of a subtype with a single value.
1993
1994 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1995
1996         * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
1997         are in the context of the main unit body.
1998
1999 2009-07-23  Sergey Rybin  <rybin@adacore.com>
2000
2001         * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
2002         misprint in rule description.
2003
2004 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
2005
2006         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
2007         test that the object declaration is within an extended return statement
2008         with direct test of whether the declared object associated with the
2009         build-in-place call is a return object, since the enclosing function
2010         might not even be a build-in-place function.
2011
2012 2009-07-23  Robert Dewar  <dewar@adacore.com>
2013
2014         * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
2015         Minor code reorganization
2016
2017 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
2018
2019         * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
2020         for static analysis, only packed arrays are causing troubles.
2021
2022 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
2023
2024         * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
2025         ancestor part is a call to a limited function with an unconstrained
2026         result subtype unless the aggregate has a null extension type.
2027         * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
2028         the parent type declaration to avoid blowups on subtype cases.
2029
2030 2009-07-23  Robert Dewar  <dewar@adacore.com>
2031
2032         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
2033         comma.
2034
2035         * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
2036
2037         * s-regexp.adb: Minor reformatting
2038         * scos.ads: Minor reformatting.
2039
2040 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
2041
2042         * freeze.adb (Set_Small_Size): Remove extra space for consistency with
2043         other similar messages.
2044         * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
2045         messages/implicit packing in CodePeer mode.
2046         (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
2047         * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
2048         CodePeer mode.
2049
2050 2009-07-23  Pascal Obry  <obry@adacore.com>
2051
2052         * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
2053         systems.
2054
2055 2009-07-23  Robert Dewar  <dewar@adacore.com>
2056
2057         * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
2058         Minor reformatting.
2059
2060 2009-07-23  Yannick Moy  <moy@adacore.com>
2061
2062         * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
2063         pattern.
2064         (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
2065         string.
2066         (Raise_Exception): Ditto.
2067
2068 2009-07-23  Olivier Hainque  <hainque@adacore.com>
2069
2070         * g-sse.ads: Simplify comment.
2071
2072 2009-07-23  Olivier Hainque  <hainque@adacore.com>
2073
2074         * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
2075         low level internal type definitions for distinct higher level
2076         binding development activities (user type definitions and
2077         operations).
2078         * gnat_rm.texi: Document it.
2079         * g-ssvety.ads: Use it.
2080         * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
2081         g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
2082         * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
2083         for the "may_alias" attribute.
2084
2085 2009-07-23  Thomas Quinot  <quinot@adacore.com>
2086
2087         * scos.ads: Minor typo fix
2088
2089         * gcc-interface/decl.c (validate_alignment): For the case of an
2090         implicit array base type, look for alignment clause on first subtype.
2091
2092 2009-07-23  Robert Dewar  <dewar@adacore.com>
2093
2094         * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
2095         with tagged parent if tagged parent is fully repped.
2096
2097 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2098
2099         * sem.adb (Walk_Library_Units): Handle properly the case where a unit
2100         in the context depends on the spec of the main unit, by delaying
2101         processing of the main unit body until all other units have been
2102         processed.
2103
2104 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
2105
2106         * a-convec.adb: Add comments about suspicious/subtle code.
2107
2108 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2109
2110         * einfo.ads: Document use of Alias in private overriding
2111
2112 2009-07-23  Thomas Quinot  <quinot@adacore.com>
2113
2114         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
2115         an array type, propagate alignment from first subtype to implicit base
2116         type so that other subtypes (such as the itypes for aggregates of the
2117         type) also receive the expected alignment.
2118
2119         * g-comlin.ads: Minor documentation clarification/rewording. 
2120         * scos.ads: Minor comments update.
2121         * lib-writ.ads: Minor reformatting
2122
2123 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
2124
2125         * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
2126         of a class-wide interface type that is a return object of a
2127         build-in-place function, bypass the interface-related expansions into
2128         renamings with displacement conversions, etc.
2129         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
2130         for the case where a renaming occurs in a build-in-place context, to
2131         assert that the bypassing of the build-in-place treatment only occurs
2132         in the case of a renaming that is an expansion of a return expression
2133         that is itself a build-in-place function call.
2134
2135 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2136
2137         * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
2138         valid candidate interpretation in a prefixed view if it is hidden, but
2139         overrides an inherited operation declared in the visible part.
2140
2141 2009-07-23  Robert Dewar  <dewar@adacore.com>
2142
2143         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2144         division operands to 64-bit at all in any circumstances.
2145
2146 2009-07-23  Robert Dewar  <dewar@adacore.com>
2147
2148         * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
2149         checking ranges for mod/rem to see if conditional jump will be
2150         generated.
2151         (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
2152         generating special -1 test for rem, generate it whenever both
2153         operands can be negative (match circuit in Sem_Res).
2154         (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
2155         destroys memory of positive range.
2156         * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
2157         checking ranges for mod/rem to see if conditional jump will be generated
2158
2159 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2160
2161         * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
2162         scalar components has non-static bounds, the equivalent aggregate
2163         cannot be built, even if the expression is static, because range checks
2164         will be generated.
2165
2166 2009-07-23  Robert Dewar  <dewar@adacore.com>
2167
2168         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2169         division operands to 64-bit inside a conversion if 64-bit division not
2170         available.
2171
2172 2009-07-23  Sergey Rybin  <rybin@adacore.com>
2173
2174         * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
2175
2176 2009-07-23  Javier Miranda  <miranda@adacore.com>
2177
2178         * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
2179         (Entity/Set_Entity): not available in N_Null_Statement nodes
2180         (Is_Scil_Node): renamed as Is_SCIL_Node
2181         (Scil_Nkind): renamed as SCIL_Nkind
2182         (Scil_Related_Node): renamed as SCIL_Related_Node
2183         (Scil_Target_Prim): renamed as SCIL_Target_Prim
2184         (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
2185         (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
2186         (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
2187         Update documentation
2188         * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
2189         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2190         (New_Scil_Node): Renamed as New_SCIL_Node
2191         * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
2192         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2193         (New_Scil_Node): Renamed as New_SCIL_Node
2194         * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
2195
2196 2009-07-23  Robert Dewar  <dewar@adacore.com>
2197
2198         * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
2199         * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
2200         * einfo.adb: Minor reformatting
2201
2202 2009-07-23  Robert Dewar  <dewar@adacore.com>
2203
2204         * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
2205         cross-referencing the new related code in
2206         Exp_Ch4.Expand_N_Type_Conversion.
2207         * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
2208
2209         * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
2210         Add comment.
2211
2212 2009-07-23  Javier Miranda  <miranda@adacore.com>
2213
2214         * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
2215         Scil_Target_Prim, N_Has_Entity): Add missing documentation.
2216         * exp_disp.ads (Scil_Node_Kind): Ditto.
2217         * exp_disp.adb (Make_DT, Make_Tags): Ditto.
2218         * exp_ch3.adb (Build_Init_Procedure): Ditto.
2219
2220 2009-07-23  Javier Miranda  <miranda@adacore.com>
2221
2222         * einfo.adb (Component_Type): Add missing assertion.
2223         * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
2224         reading attribute Component_Size.
2225         * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
2226         before reading attributes Component_Size and Component_Type.
2227         * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
2228         before reading attribute Component_Type.
2229
2230 2009-07-23  Olivier Hainque  <hainque@adacore.com>
2231
2232         * gnat_rm.texi: Document the GNAT.SSE units.
2233
2234 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2235
2236         * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
2237         not null return if it appears on a subunit.
2238
2239 2009-07-23  Robert Dewar  <dewar@adacore.com>
2240
2241         * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
2242         check right away so it does not get skipped for early returns, e.g.
2243         array assignments.
2244         (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
2245         left-side unless we really know the value is valid.
2246
2247         * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
2248         reformatting. Minor code reorganization. Add comments.
2249
2250 2009-07-23  Robert Dewar  <dewar@adacore.com>
2251
2252         * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
2253         complex condition.
2254
2255 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
2256
2257         * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
2258         with test of coverage, to allow specific type objects in extended
2259         returns of class-wide functions. Remove now-unnecessary special-case
2260         tests that allowed this in certain cases of expanded extended returns.
2261
2262 2009-07-23  Javier Miranda  <miranda@adacore.com>
2263
2264         * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
2265         N_Null_Statements (for SCIL nodes).
2266         (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
2267         (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
2268         (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
2269         nodes).
2270         (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
2271         * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
2272         associated with dispatching call.
2273         (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
2274         (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
2275         initialization of dispatch tables and initialization of tags.
2276         (New_Scil_Node): New function that creates a new SCIL node.
2277         (Build_Init_Procedure): Add generation of SCIL node associated with the
2278         initialization of tags done in the IP subprogram.
2279
2280 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
2281
2282         * errout.adb (Error_Msg_NEL): If the entity in the initial message has
2283         Warnings_Off, do not emit continuation messages.
2284
2285         * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
2286         spec.
2287
2288 2009-07-23  Emmanuel Briot  <briot@adacore.com>
2289
2290         * ali.adb: Minor comment update
2291
2292 2009-07-23  Vasiliy Fofanov  <fofanov@adacore.com>
2293
2294         * s-win32.ads (HANDLE): Define to be the same size as address type.
2295         Fix copyright.
2296
2297 2009-07-23  Olivier Hainque  <hainque@adacore.com>
2298
2299         * g-sse.ads: New file. Root of the SSE facilities trees, with
2300         general description and common declarations.
2301         * g-ssvety.ads: New file. Expose user level SSE vector types.
2302         * impunit.adb (Non_Imp_File_Names_95): Register new units.
2303         * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
2304         EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
2305
2306 2009-07-23  Ben Brosgol  <brosgol@adacore.com>
2307
2308         * gnat_ugn.texi: Wordsmithing.
2309
2310 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
2311
2312         * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
2313
2314 2009-07-22  Eric Botcazou  <ebotcazou@adacore.com>
2315
2316         * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
2317         they are already of the base type of the index.
2318
2319 2009-07-22  Brett Porter  <porter@adacore.com>
2320
2321         * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
2322
2323 2009-07-22  Robert Dewar  <dewar@adacore.com>
2324
2325         * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
2326         * gnat_ugn.texi: Add documentation for -gnateS switch
2327         * ug_words: Add entry for -gnateS /SCO_OUTPUT
2328         * gcc-interface/Make-lang.in: Update dependencies.
2329
2330         * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
2331         par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
2332         complete information for SCO input/output.
2333
2334 2009-07-22  Sergey Rybin  <rybin@adacore.com>
2335
2336         * gnat_ugn.texi: Update doc for some gnatcheck rules.
2337
2338 2009-07-22  Robert Dewar  <dewar@adacore.com>
2339
2340         * par_sco.adb, par_sco.ads (pscos): New debug routine to output
2341         contents of SCO tables.
2342         * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
2343         scos.adb, scos.ads: New files.
2344         * gcc-interface/Make-lang.in: Update dependencies.
2345
2346         * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
2347         fixes and reformatting.
2348
2349 2009-07-22  Robert Dewar  <dewar@adacore.com>
2350
2351         * g-socket.ads: Minor reformatting
2352
2353 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
2354
2355         * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
2356         include the entity kind for following cases of unreferenced entities:
2357         E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
2358
2359 2009-07-22  Ed Falis  <falis@adacore.com>
2360
2361         * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
2362         with taskSuspend.
2363
2364 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
2365
2366         * adadecode.c: Make this file compilable outside of GCC.
2367
2368 2009-07-22  Thomas Quinot  <quinot@adacore.com>
2369
2370         * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
2371         (partially) default-initialized socket sets are handled properly by
2372         clearing their Set component.
2373
2374 2009-07-22  Bob Duff  <duff@adacore.com>
2375
2376         * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
2377
2378 2009-07-22  Robert Dewar  <dewar@adacore.com>
2379
2380         * gnat_ugn.texi: Minor reformatting
2381
2382 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
2383
2384         * errout.adb (Error_Msg): A style message within an instantiation
2385         should not be labelled as an error.
2386
2387 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
2388
2389         * freeze.adb (Freeze_Entity): Do not generate extra formal for function
2390         in initialization expression if function does not have convention Ada.
2391
2392 2009-07-22  Sergey Rybin  <rybin@adacore.com>
2393
2394         * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
2395         '--separate-label' to control label layout.
2396
2397 2009-07-22  Robert Dewar  <dewar@adacore.com>
2398
2399         * exp_tss.ads, sem_eval.adb: Minor reformatting
2400
2401 2009-07-22  Bob Duff  <duff@adacore.com>
2402
2403         * exp_dist.adb, exp_dist.ads: Update comments.
2404
2405 2009-07-22  Brett Porter  <porter@adacore.com>
2406
2407         * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
2408         FPSCR.
2409         * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
2410
2411 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
2412
2413         * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
2414         exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
2415         Minor reformatting.
2416         * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
2417         used poor terminology.
2418
2419 2009-07-22  Robert Dewar  <dewar@adacore.com>
2420
2421         * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
2422         * sem_eval.adb, exp_tss.adb: Minor comment update.
2423         * stylesw.adb: Code clean up.
2424
2425 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
2426
2427         * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
2428         component size is an exact number of bytes, an array type can have a
2429         size clause that forces packing even though the array type itself is
2430         not bit-packed.
2431
2432 2009-07-22  Thomas Quinot  <quinot@adacore.com>
2433
2434         * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
2435         if there is a previous entity with the same name in the scope, ignore
2436         it if it is the renaming declaration for a generic package introduced
2437         in instances.
2438
2439 2009-07-22  Nicolas Roche  <roche@adacore.com>
2440
2441         * seh_init.c: use RtlAddFunctionTable to register our SEH exception
2442         handler on x86_64 windows.
2443
2444 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
2445
2446         * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
2447         false positives in CodePeer, so ignore this pragma in this mode.
2448
2449 2009-07-22  Thomas Quinot  <quinot@adacore.com>
2450
2451         * sem_util.adb, sem_ch10.adb: Minor reformatting
2452
2453         * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
2454         special handling for the case of no data received and Item'First =
2455         Stream_Element_Offset'First.
2456         (Last_Index): New subprogram factoring the above special handling
2457         over the various locations where it is required.
2458
2459 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
2460
2461         * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
2462         checks in CodePeer_Mode.
2463         * gcc-interface/Make-lang.in: Update dependencies.
2464
2465 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
2466
2467         * sem_aggr.adb: Improve error message.
2468
2469         * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
2470         of an address representation clause.
2471         * freeze.adb (Freeze_Static_Object): An local imported object is legal
2472         if it has an address clause.
2473
2474 2009-07-22  Thomas Quinot  <quinot@adacore.com>
2475
2476         * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
2477         expression to insert an elab check using a conditional expression, be
2478         sure to carry the original list of interpretations to the new location.
2479
2480 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
2481
2482         * gnat1drv.adb: Fix spelling error.
2483
2484 2009-07-22  Javier Miranda  <miranda@adacore.com>
2485
2486         * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
2487         at the library level and fix a hidden bug in its implementation: its
2488         functionality for renaming objects was broken because
2489         N_Object_Renaming_Declarations nodes are not a subclass of
2490         N_Declaration nodes (as documented in sinfo.ads).
2491         * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
2492         check nodes that are actuals of generic instantiations.
2493
2494 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
2495
2496         * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
2497         context of a compilation unit is being analyzed. Used to detect
2498         circularities created by with_clauses that are not detected by the
2499         loading machinery.
2500         * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
2501         analyzing the context of the current compilation unit, to detect
2502         possible circularities created by with_clauses.
2503
2504 2009-07-22  Thomas Quinot  <quinot@adacore.com>
2505
2506         * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
2507
2508 2009-07-22  Robert Dewar  <dewar@adacore.com>
2509
2510         * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
2511         * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
2512         procedure.
2513         * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
2514         * gnat_ugn.texi: Add documentation of -gnatyB
2515         * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
2516
2517 2009-07-22  Robert Dewar  <dewar@adacore.com>
2518
2519         * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
2520         make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
2521         s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
2522         s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
2523         errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
2524         a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
2525         s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
2526         a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
2527         erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
2528         obey short-circuit style rule.
2529
2530 2009-07-20  Bob Duff  <duff@adacore.com>
2531
2532         * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
2533         instead of "and", because otherwise Parent_Last_Bit is read
2534         uninitialized in the case where it's not a tagged type, or the tagged
2535         parent does not have a complete rep clause.
2536
2537 2009-07-20  Robert Dewar  <dewar@adacore.com>
2538
2539         * stylesw.ads: Minor documentation change.
2540
2541         * types.ads: Minor reformatting
2542
2543 2009-07-20  Javier Miranda  <miranda@adacore.com>
2544
2545         * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
2546         generating the tag checks associated with dispatching calls.
2547         * exp_disp.adb (Apply_Access_Checks): New subprogram.
2548         (New_Value): This routine was previously local to expand dispatching
2549         calls but it is now used also by Apply_Access_Checks.
2550         (Expand_Dispatching_Calls): Cleanup code because the functionality of
2551         tag checks is now provided by Apply_Access_Checks. 
2552         * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
2553         case of dispatching calls.
2554
2555 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
2556
2557         * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
2558         CodePeer_Mode.
2559
2560 2009-07-20  Gary Dismukes  <dismukes@adacore.com>
2561
2562         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
2563         for VMS, only rewrite the first component of the associated exception's
2564         aggregate init (as 'V'), and eliminate the bogus rewrites of the second
2565         and third components  that were being replaced with 'M' and 'S'.
2566
2567 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
2568
2569         * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
2570         Also do not generate error when parsing a spec in CodePeer mode.
2571
2572 2009-07-20  Javier Miranda  <miranda@adacore.com>
2573
2574         * checks.adb (Apply_Access_Check): Avoid checks on availability of
2575         runtime function Offset_To_Top_Ptr when compiling with no tagged
2576         types expansion.
2577         * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
2578         adding code to the init proc when compiling for VM backends.
2579
2580 2009-07-20  Vincent Celier  <celier@adacore.com>
2581
2582         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
2583         account switches -gnatw.?
2584
2585 2009-07-20  Thomas Quinot  <quinot@adacore.com>
2586
2587         * sem_dist.adb, exp_dist.adb: Minor reformatting
2588
2589         * Make-generated.in: New file.
2590
2591         * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
2592
2593 2009-07-20  Javier Miranda  <miranda@adacore.com>
2594
2595         * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
2596         subprogram.
2597         * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
2598         dynamically tagged expression.
2599         * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
2600         factorizes code.
2601         * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
2602         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2603
2604 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
2605
2606         * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
2607         CodePeer_Mode is set, to benefit from full front-end expansion
2608         (e.g. generics).
2609
2610 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
2611
2612         * sem_res.adb: Add guard.
2613
2614         * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
2615         for possible attribute definition of External_Tag, in case clause
2616         appears in the private part of a package.
2617
2618 2009-07-20  Jerome Guitton  <guitton@adacore.com>
2619
2620         * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
2621
2622 2009-07-20  Vadim Godunko  <godunko@adacore.com>
2623
2624         * a-coorma.adb: Minor reformatting.
2625
2626 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
2627
2628         * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
2629         access return types.
2630         * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
2631         provide an itype reference to gigi to force elaboration of the subtype
2632         at the proper point.
2633
2634 2009-07-20  Tristan Gingold  <gingold@adacore.com>
2635
2636         * g-expect.adb: Avoid closeing already closed handle.
2637
2638 2009-07-20  Robert Dewar  <dewar@adacore.com>
2639
2640         * sprint.adb (Write_Subprogram_Name): New procedure to output
2641         subprogram name with possible preceding $ (replaces
2642         Note_Implicit_Run_Time_Call).
2643
2644 2009-07-20  Robert Dewar  <dewar@adacore.com>
2645
2646         * vms_data.ads: Minor reformatting
2647
2648         * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
2649         applies to base type.
2650         (Parent_Subtype): Now allowed on record subtype, applies to base type
2651         * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
2652         for case of fully repped tagged type.
2653         (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
2654         tag save/restore for fully repped tagged type case.
2655         * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
2656         * fe.h (Is_Fully_Repped_Tagged_Type): New function
2657         * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
2658         overlap of tagged type components with parent type if parent type is
2659         fully repped.
2660         * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
2661
2662         * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
2663         comparisons.
2664         (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
2665         (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
2666
2667         * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
2668         logical operators (AND/OR/XOR), not comparison operators.
2669
2670         * sprint.ads: Minor reformatting
2671
2672 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
2673
2674         * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
2675         intrinsics, check that argument is a string literal, rather than
2676         checking for staticness.
2677
2678 2009-07-20  Robert Dewar  <dewar@adacore.com>
2679
2680         * sem_ch13.adb: Minor reformatting
2681
2682         * einfo.ads: Minor reformatting
2683         Component_Bit_Offset is no longer considered obsolescent
2684
2685 2009-07-20  Nicolas Roche  <roche@adacore.com>
2686
2687         * a-calend.adb: Redefine time_t as signed integer with same size as
2688         Address type.
2689         * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
2690         Address type
2691         * adaint.h: On Windows 64bits declare OS_Time as long long instead of
2692         long
2693
2694 2009-07-20  Javier Miranda  <miranda@adacore.com>
2695
2696         * exp_tss.adb (Init_Proc): Add missing support for non-default C++
2697         constructors that have anonymous access type formals.
2698
2699         * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
2700         class-wide arguments in case of imported C++ subprograms.
2701
2702         * exp_ch3.adb (Build_Initialization_Call): Add assertion.
2703
2704 2009-07-20  Sergey Rybin  <rybin@adacore.com>
2705
2706         * vms_data.ads: Update qualifiers.
2707
2708 2009-07-20  Robert Dewar  <dewar@adacore.com>
2709
2710         * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
2711         reformatting
2712
2713 2009-07-17  Richard Guenther  <rguenther@suse.de>
2714
2715         PR c/40401
2716         * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
2717         state.  Remove unused parameter.
2718         (gnat_gimplify_function): Do not gimplify here.
2719         Fold into its only caller and remove.
2720         (gnat_builtin_function): Adjust for end_subprog_body signature change.
2721         (gnat_write_global_declarations): Also finalize the CU.
2722         * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
2723         * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
2724         (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
2725         change.
2726         * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
2727
2728 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
2729
2730         * gcc-interface/Make-lang.in: Update dependencies
2731
2732         * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
2733
2734 2009-07-15  Robert Dewar  <dewar@adacore.com>
2735
2736         * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
2737         N_Label. Remove SCO table entry for entry point (not used).
2738
2739         * par_sco.ads: Remove SCO entry point type (not used)
2740
2741         * switch.adb: Minor code clean up.
2742
2743 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
2744
2745         * exp_dbug.ads (Base Record Types): Document enhanced encoding.
2746
2747 2009-07-15  Thomas Quinot  <quinot@adacore.com>
2748
2749         * gnatls.adb: Minor reformatting
2750
2751         * gnatcmd.adb: Minor code reorganization
2752
2753 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
2754
2755         * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
2756         determine whether a component of a private type has a composite type.
2757
2758 2009-07-15  Robert Dewar  <dewar@adacore.com>
2759
2760         * sem_ch10.adb: Minor reformatting throughout
2761         Minor code reorganization (put nested subprograms in alpha order)
2762
2763 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
2764
2765         * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
2766         when compiling a call to a protected function that returns a controlled
2767         object.
2768
2769 2009-07-15  Hristian Kirtchev  <kirtchev@adacore.com>
2770
2771         * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
2772         one. Add task locking and unlocking around the critical region which
2773         mentions localtime_r and global variable timezone for various targets.
2774         Comment reformatting.
2775
2776 2009-07-15  Robert Dewar  <dewar@adacore.com>
2777
2778         * gnat_rm.texi: Document s-ststop.ads
2779
2780         * impunit.ad: (Map_Array): New table of alternative names
2781         (Get_Kind_Of_Unit): Return possible suggested alternative name
2782
2783         * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
2784         alternative name.
2785
2786         * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
2787         alternative unit if an implementation unit is with'ed.
2788
2789 2009-07-15  Robert Dewar  <dewar@adacore.com>
2790
2791         * gnat_ugn.texi: Minor updates.
2792
2793         * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
2794
2795 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
2796
2797         * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
2798         conditions of a derived boolean type.
2799         Minor reformatting
2800
2801 2009-07-15  Robert Dewar  <dewar@adacore.com>
2802
2803         * gnat1drv.adb: Initialize SCO tables
2804
2805         * par-load.adb: Call SCO_Record for main unit spec
2806
2807         * par.adb: Make call to SCO_Record for main unit
2808
2809         * par_sco.adb (Unit_Table): Change format to facilitate sort
2810         (Process_Decisions): New procedure with list argument
2811         (Traverse_Generic_Package_Declaration): New procedure
2812         (Initialize): New procedure, replaces Init
2813         (SCO_Output): Sort unit table before output
2814         (SCO_Record): Avoid duplications
2815         (SCO_Record): Handle remaining cases of units
2816         (Traverse_Declarations_Or_Statements): Handle generics
2817
2818         * par_sco.ads (Initialize): New peocedure (replaces Init)
2819
2820         * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
2821         subunit.
2822
2823 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
2824
2825         * debug.adb: Add -gnatd.J switch for now to support scil generation in
2826         parallel. Add missing doc for -gnatd.I and -gnatd.O
2827
2828 2009-07-15  Robert Dewar  <dewar@adacore.com>
2829
2830         * lib-load.adb: Minor reformatting
2831
2832         * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
2833
2834 2009-07-15  Robert Dewar  <dewar@adacore.com>
2835
2836         * par.adb: Minor reformatting
2837         Add ??? comment for possible bad comment
2838
2839         * par-ch10.adb: Minor reformatting
2840
2841 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
2842
2843         * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
2844         is a literal of a derived boolean type, it appears as an unchecked
2845         conversion. Retrieve actual value from expression of conversion.
2846
2847 2009-07-15  Robert Dewar  <dewar@adacore.com>
2848
2849         * sem_ch3.adb: Minor reformatting
2850
2851         * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
2852         lib-writ.ads, lib-writ.adb: Minor reformatting.
2853         Fix problem with SCO format in ALI files
2854
2855 2009-07-15  Robert Dewar  <dewar@adacore.com>
2856
2857         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2858         exp_aggr.adb: Minor code reorganization (better calling sequence for
2859         Make_Temporary).
2860
2861 2009-07-15  Thomas Quinot  <quinot@adacore.com>
2862
2863         * opt.ads: Minor comment edits
2864
2865 2009-07-15  Tristan Gingold  <gingold@adacore.com>
2866
2867         * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
2868         needed.
2869
2870 2009-07-15  Robert Dewar  <dewar@adacore.com>
2871
2872         * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
2873         information.
2874
2875         * lib-writ.ads: Document addition of SCO lines to ALI file
2876
2877         * par_sco.ads, par_sco.adb: New files.
2878
2879         * opt.ads (Generate_SCO): New switch
2880
2881         * par.adb (Par): Call SCO_Record to record SCO information
2882
2883         * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
2884
2885         * switch-c.adb: Recognize -gnateS to generate SCO information
2886
2887         * usage.adb: Add line for -gnateS
2888
2889         * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
2890
2891 2009-07-15  Robert Dewar  <dewar@adacore.com>
2892
2893         * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
2894         reformatting.
2895
2896 2009-07-15  Thomas Quinot  <quinot@adacore.com>
2897
2898         * g-socthi-mingw.adb: Minor comment addition
2899
2900         * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
2901
2902 2009-07-15  Robert Dewar  <dewar@adacore.com>
2903
2904         * g-htable.ads, s-htable.ads: Minor reformatting
2905
2906 2009-07-15  Robert Dewar  <dewar@adacore.com>
2907
2908         * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
2909         new switch -gnatw.g.
2910         (Set_GNAT_Mode_Warnings): New procedure.
2911
2912         * lib-xref.adb: Minor reformatting
2913
2914 2009-07-15  Robert Dewar  <dewar@adacore.com>
2915
2916         * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
2917         Minor code reorganization
2918
2919 2009-07-14  Taras Glek  <tglek@mozilla.com>
2920             Rafael Espindola  <espindola@google.com>
2921
2922         * gcc-interface/Make-lang.in (ada.install-plugin): New target for
2923         installing plugin headers.
2924
2925 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2926
2927         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2928         exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
2929         and link it to the expression whose value it captures.
2930
2931 2009-07-13  Robert Dewar  <dewar@adacore.com>
2932
2933         * output.adb: Minor comment addition for last change
2934
2935         * sinfo.ads: Minor reformatting
2936
2937 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
2938
2939         * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
2940         spawn failed like on all other targets.
2941
2942 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2943
2944         * exp_ch7.adb: Indicate origin of temporary for transient expression.
2945
2946 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2947
2948         * s-oscons-tmplt.c: Add comment.
2949
2950 2009-07-13  Robert Dewar  <dewar@adacore.com>
2951
2952         * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
2953         reformatting. Minor code reorganization (add 9 argument version of
2954         Nkind_In).
2955
2956         * impunit.adb: Remove s-os_lib from list of system extensions.
2957
2958         * sem_util.ads: Minor reformatting
2959
2960         * output.adb: Add warnings off/on around System.OS_Lib.
2961
2962 2009-07-13  Bob Duff  <duff@adacore.com>
2963
2964         * exp_dist.adb: Minor comment updates.
2965
2966 2009-07-13  Gary Dismukes  <dismukes@adacore.com>
2967
2968         * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
2969         several references to CodePeer.
2970
2971 2009-07-13  Bob Duff  <duff@adacore.com>
2972
2973         * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
2974         Build_TypeCode_Function_All): Do not recurse if the type is the base
2975         type.
2976
2977 2009-07-13  Robert Dewar  <dewar@adacore.com>
2978
2979         * exp_ch4.adb: Minor comment change
2980
2981 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2982
2983         * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
2984         type of iteration, to prevent spurious warnings.
2985
2986 2009-07-13  Nicolas Roche  <roche@adacore.com>
2987
2988         * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
2989         included.
2990
2991 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2992
2993         * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
2994         gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
2995         Generate_SCIL.
2996         (CodePeer_Mode): New -gnatC switch.
2997         (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
2998         CodePeer_Mode.
2999
3000 2009-07-13  Eric Botcazou  <ebotcazou@adacore.com>
3001
3002         * checks.adb (Selected_Range_Checks): Do not consider that a non-static
3003         integer bound forces the check if it is compared to its subtype range.
3004
3005 2009-07-13  Robert Dewar  <dewar@adacore.com>
3006
3007         * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
3008         prj-strt.ads: Minor reformatting
3009
3010 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3011
3012         * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
3013         set the type of the From_Any call to the base type.
3014
3015 2009-07-13  Doug Rupp  <rupp@adacore.com>
3016
3017         * symbols-processing-vms-ia64.adb (Process): Add variables and
3018         constants to retrieve and check for symbol visibility.
3019
3020 2009-07-13  Javier Miranda  <miranda@adacore.com>
3021
3022         * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
3023         the identical type we remove the conversion completely because
3024         it is useless.
3025
3026 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3027
3028         * prj-err.adb (Error_Msg): One more case where a message should be
3029         considered as a warning.
3030
3031         * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
3032
3033 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3034
3035         * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
3036         calling stubs in the (library level) scope of the RCI locator, where it
3037         is attached, not in the caller's scope.
3038
3039 2009-07-13  Javier Miranda  <miranda@adacore.com>
3040
3041         * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
3042         interface object declarations we delay the generation of the equivalent
3043         record type declarations until its expansion because there are cases in
3044         which they are not required.            
3045
3046         * sem_util.adb (Implements_Interface): Add missing support for subtypes.
3047
3048         * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
3049         addition of assertion.
3050
3051         * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
3052         interface types require no equivalent constrained type declarations
3053         because the expanded code only references the tag component associated
3054         with the interface.
3055         (Find_Interface_Tag): Improve management of interfaces that are
3056         ancestors of tagged types.
3057
3058         * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
3059         class-wide object declarations to add missing support to statically
3060         displace the pointer to the object to reference the tag component
3061         associated with the interface.
3062
3063         * exp_disp.adb (Make_Tags) Avoid generation of internally generated
3064         auxiliary types associated with user-defined dispatching calls if the
3065         type has no user-defined primitives.
3066
3067 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
3068
3069         * mingw32.h: Make it explicit that we need XP or later.
3070
3071         * initialize.c: Remove useless extern symbol declaration.
3072
3073         * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
3074         code reuse in expect.c.
3075
3076         * adaint.c: Changes throughout the Windows section to redesign storage
3077         of the child process list and the process identification.
3078
3079         * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
3080         for interfacing, fix errors.
3081         (__gnat_expect_portable_execvp): use function in adaint.c
3082
3083 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3084
3085         * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
3086         prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
3087         prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
3088         errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
3089         (Prj.Nmsc.Report_Error): Removed, no longer needed.
3090         Always use Prj.Err.Report_Message.
3091
3092 2009-07-13  Robert Dewar  <dewar@adacore.com>
3093
3094         * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
3095         & comment edits.
3096
3097 2009-07-13  Robert Dewar  <dewar@adacore.com>
3098
3099         * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3100         prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
3101
3102 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3103
3104         * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
3105         mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
3106         Ada_Prj_Include_File_Set): Removed, since not needed
3107         Code clean up.
3108
3109 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3110
3111         * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
3112         Analyze_Membership_Op.
3113
3114         * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
3115         Resolve_Membership_Op.
3116
3117         * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
3118         Expand_N_In.
3119
3120 2009-07-13  Robert Dewar  <dewar@adacore.com>
3121
3122         * clean.adb: Minor reformattting
3123
3124 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3125
3126         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
3127         gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
3128         prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
3129         prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
3130         and attributes in a project tree.
3131         (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
3132         Remove last remaining mode-specific code (ada_only or
3133         multi_language). This was duplicating code
3134         (Get_Mode, Set_Mode): removed, no longer used.
3135         (Initialize_Project_Path): all tools will now take into account both
3136         GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
3137         Remove some global variables and subprograms no longer used
3138         Make temporary files tree-specific, to avoid interferences between
3139         trees loaded in memory at the same time.
3140         (Prj.Delete_Temporary_File): new subprogram
3141         (Object_Paths, Source_Paths): fields no longer stored in the project
3142         tree, since they are only needed locally in Set_Ada_Paths.
3143         (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
3144         effect in practice.
3145         (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
3146         by local variables in the appropriate subprograms
3147         (Has_Foreign_Sources): removed.
3148
3149         * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
3150
3151 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
3152
3153         * gnat1drv.adb (Adjust_Global_Switches): No longer set
3154         Back_Annotate_Rep_Info in inspector mode.
3155         (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
3156
3157         * opt.ads: Update comment.
3158
3159 2009-07-13  Robert Dewar  <dewar@adacore.com>
3160
3161         * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
3162         prj.ads: Minor reformatting and code reorganization.
3163
3164         * par-ch3.adb (Check_Restricted_Expression): New procedure
3165
3166 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3167
3168         * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
3169         attribute into a call of the corresponding suprogram, create extra
3170         formals for the subprogram, because it may be a renaming whose
3171         analysis does not create extra formals.
3172
3173 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3174
3175         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3176         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3177         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
3178         prj-tree.ads: Minor reformatting.
3179         (Processing_Flags): new record to encapsulate the set of common
3180         parameters to several subprograms in the project manager.
3181         (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
3182         Remove the need for the Current_Dir parameter in subprograms.
3183         (Look_For_Sources): minor refactoring, now that we no longer need to
3184         share subprograms between the two Ada_Only and Multi_Language modes
3185         (Processing_Flags): New field Error_On_Unknown_Language.
3186         Merge tests for library project between gnatmake and gprbuild.
3187
3188 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
3189
3190         * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
3191         Minor reformatting.
3192
3193 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3194
3195         * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
3196         than units.
3197
3198 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3199
3200         * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
3201         Write,Input,Output} from private view to full view.
3202
3203         * sem_type.adb, sem_type.ads: Minor reformatting
3204
3205 2009-07-13  Nicolas Setton  <setton@adacore.com>
3206
3207         * exp_dbug.ads: Add documentation note on the utility of
3208         DW_AT_GNAT_encoding for IDEs.
3209
3210 2009-07-13  Robert Dewar  <dewar@adacore.com>
3211
3212         * g-socthi-vxworks.adb: Minor reformatting
3213
3214         * gnatcmd.adb: Minor reformatting
3215
3216 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3217
3218         * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
3219         removed, not used anymore.
3220         (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
3221         New subprogram, implements copy of an Any value into a limited object.
3222         (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
3223         Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
3224         Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
3225         of parameters of a limited type, use the above new subprogram.
3226
3227 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3228
3229         * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
3230         Location.
3231         (Copy_ALI_Files): Avoid calls to read when pointing outside of the
3232         allocated space.
3233         (Error_Report): Remove global variable, replaced by parameters.
3234
3235 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3236
3237         * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
3238         standard sendto(2) interface for connected sockets (passing a null
3239         destination address). Use send(2) instead for that case.
3240
3241 2009-07-13  Pascal Obry  <obry@adacore.com>
3242
3243         * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
3244
3245 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3246
3247         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3248         prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
3249         variables and tables in prj-nmsc.adb.
3250         (Tree_Processing_Data): Renames Processing_Data, some new fields added
3251         (Project_Processing_Data): New record
3252         Simplify/unify check for missing sources.
3253
3254 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3255
3256         * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
3257         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3258         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
3259         prj-tree.ads (Immediate_Directory_Of): Removed.
3260         (Prj.Pars): Now parse the project simulating a default config file.
3261         (Add_Default_GNAT_Naming_Scheme): New subprogram
3262         (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
3263         Remove gnatmake-specific parsing of source files.
3264         (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
3265         the error itself to provide more precise diagnostics.
3266         (Process_Exceptions_Unit_Based): Avoid duplicate error message when
3267         a unit belongs to several projects.
3268         (Copy_Interface_Sources): Search the full path of files to copy in the
3269         list of sources of the application rather than in the list of units.
3270         (Parse_Project_And_Apply_Config): Do not reset the name of the main
3271         project file.
3272         (Check_File): Use htables to find out whether a source is duplicated.
3273         (Add_Source): check whether the source or unit were already seen earlier
3274
3275         * gcc-interface/Makefile.in: Update gnatmake dependencies.
3276
3277 2009-07-13  Robert Dewar  <dewar@adacore.com>
3278
3279         * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
3280         expression if extensions permitted.
3281
3282         * par-ch4.adb (P_Membership_Test): New procedure (implement membership
3283         set tests).
3284         (P_Relation): Use P_Membership_Test
3285
3286         * par.adb (P_Membership_Test): New procedure (implement membership set
3287         tests).
3288
3289         * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
3290
3291         * sprint.adb (Sprint_Node): Handle set form for membership tests.
3292
3293 2009-07-13  Thomas Quinot  <quinot@adacore.com>
3294
3295         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
3296         Do not attempt to generate stubs for predefined primitives of
3297         synchronized interfaces.
3298         (Add_Stub_Type): Factor some code from the PCS-specific variants of
3299         Build_Stub_Type.
3300
3301 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3302
3303         * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
3304         Controlling_Result flag from the operation they override.
3305
3306 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
3307
3308         * gcc-interface/Make-lang.in: Update dependencies
3309
3310 2009-07-13  Robert Dewar  <dewar@adacore.com>
3311
3312         * gnat_ugn.texi: The gnatf switch no longer is needed to get full
3313         details on unsupported constructs.
3314
3315         * rtsfind.adb: Remove references to All_Errors_Mode, give errors
3316         unconditionally.
3317
3318         * s-trafor-default.adb: Correct some warnings
3319
3320         * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
3321         sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
3322         Minor reformatting.
3323
3324         * par-ch4.adb (Conditional_Expression): Capture proper location for
3325         conditional expression, should point to IF.
3326
3327         * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
3328         s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
3329         g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
3330         reorganization (use conditional expressions).
3331
3332 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3333
3334         * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
3335         build-in-place function that returns an inherently limited type (not
3336         just a task type) create proper object declaration so that extra
3337         build-in-place actuals are properly added to the call.
3338
3339 2009-07-13  Robert Dewar  <dewar@adacore.com>
3340
3341         * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
3342
3343         * gnat_ugn.texi: Add documentation for -gnatw.m/.M
3344
3345         * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
3346
3347         * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
3348         Warn_On_Suspicious_Modulus_Value.
3349
3350         * ug_words: Add entries for -gnatw.m/-gnatw.M.
3351
3352         * usage.adb: Add lines for -gnatw.m/.M switches.
3353
3354         * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
3355
3356 2009-07-13  Javier Miranda  <miranda@adacore.com>
3357
3358         * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
3359         reading the Is_Interface attribute of the dispatching type.
3360
3361 2009-07-13  Robert Dewar  <dewar@adacore.com>
3362
3363         * a-convec.adb: Minor code reorganization (use conditional expressions)
3364
3365 2009-07-13  Robert Dewar  <dewar@adacore.com>
3366
3367         * freeze.adb (Check_Suspicious_Modulus): New procedure.
3368
3369 2009-07-13  Robert Dewar  <dewar@adacore.com>
3370
3371         * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
3372         warning).
3373
3374         * par-ch4.adb: Minor reformatting
3375
3376 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
3377
3378         * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
3379         => Is_Atomic_Aggregate
3380
3381 2009-07-13  Emmanuel Briot  <briot@adacore.com>
3382
3383         * prj-nmsc.adb: Avoid traversing the list of source files if
3384         we have already processed all locally removed files.
3385
3386 2009-07-13  Jose Ruiz  <ruiz@adacore.com>
3387
3388         * gnat_ugn.texi: Fix typo.
3389
3390 2009-07-13  Robert Dewar  <dewar@adacore.com>
3391
3392         * freeze.adb: Minor reformatting
3393         Minor code reorganization (use Nkind_In)
3394
3395         * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
3396
3397 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
3398
3399         * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
3400         local variable and do not test it in Compile_Time_Bad_Alignment.
3401         Do not issue size or alignment warnings for the X'Address form.
3402         * sem_util.ads (Find_Overlaid_Object): Delete.
3403         (Find_Overlaid_Entity): New procedure.
3404         * sem_util.adb (Find_Overlaid_Object): Rename to...
3405         (Find_Overlaid_Entity): ...this and turn into a procedure.  Report
3406         whether the address is offseted within the overlaid entity.
3407         (Has_Compatible_Alignment): Track the offset globally instead of
3408         passing it to Check_Offset.  For an indexed component, compute the
3409         full offset when possible.  If the resulting offset is zero, only
3410         check the prefix.
3411         (Check_Offset): Delete.
3412         * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
3413         (Address_Aliased_Entity): Delete.
3414         (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
3415         Find_Overlaid_Entity to find the overlaid entity and the offset.
3416         Adjust throughout for above change.
3417         (Validate_Address_Clauses): Always use attributes of entities, not of
3418         their type.  Tweak message for warning.  Call Has_Compatible_Alignment
3419         if the address is offseted to warn about incompatible alignments.
3420         * gcc-interface/gigi.h (annotate_object): Declare.
3421         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
3422         entity.  Call annotate_object instead of annotating manually objects.
3423         (annotate_object): New function.
3424         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
3425         at the end.
3426
3427 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
3428
3429         * gcc-interface/ada-tree.h: Minor reorganization.
3430         * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
3431         (gnat_print_type): Likewise.
3432
3433 2009-07-11  Thomas Quinot  <quinot@adacore.com>
3434
3435         * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
3436         Lvalue -> lvalue
3437
3438         * exp_ch6.adb: Minor reformatting
3439
3440 2009-07-11  Ed Schonberg  <schonberg@adacore.com>
3441
3442         * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
3443         account possible type qualification to determine whether aggregate
3444         needs a target temporary to respect atomic type or object.
3445
3446         * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
3447         Expand_Atomic_Aggregate.
3448
3449 2009-07-11  Emmanuel Briot  <briot@adacore.com>
3450
3451         * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
3452         algorithm.
3453         (Excluded_Sources_Htable): No longer a global table.
3454         Change error message to indicate which files are illegal in the list
3455         of excluded files, as opposed to only the location in the project
3456         file.
3457         (Find_Source): New subprogram.
3458
3459 2009-07-10  Thomas Quinot  <quinot@adacore.com>
3460
3461         * exp_ch7.adb: Update comments.
3462
3463 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
3464
3465         * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
3466         clause if -gnatI is set instead of crashing.
3467
3468 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3469
3470         * sem_ch11.adb (Same_Expression): Null is always equal to itself.
3471         Additional work to remove redundant successive raise statements, in
3472         this case access checks.
3473
3474 2009-07-10  Vincent Celier  <celier@adacore.com>
3475
3476         * make.adb (Compile): Always create a deep copy of the mapping file
3477         argument (-gnatem=...) as it may be deallocate/reallocate by
3478         Normalize_Arguments.
3479
3480 2009-07-10  Javier Miranda  <miranda@adacore.com>
3481
3482         * einfo.adb (Directly_Designated_Type): Add assertion.
3483         
3484         * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
3485         access types before using attribute Directly_Designated_Type.
3486
3487 2009-07-10  Emmanuel Briot  <briot@adacore.com>
3488
3489         * prj.ads: Minor typo fix
3490
3491 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3492
3493         * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
3494         special treatment.
3495
3496         * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
3497         subprogram is a function call, resolve properly, to ensure that extra
3498         actuals are added as needed.
3499
3500 2009-07-10  Thomas Quinot  <quinot@adacore.com>
3501
3502         * sem_aggr.adb: Minor comments editing
3503
3504         * exp_tss.adb, exp_ch3.adb: Minor reformatting
3505
3506 2009-07-10  Robert Dewar  <dewar@adacore.com>
3507
3508         * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
3509
3510         * exp_ch4.adb: Add ??? comment for conditional expressions on limited
3511         types.
3512
3513         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
3514         replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
3515         case of conditional expressions that may not be elaborated.
3516
3517         * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
3518         conditional expression where we may not execute then then or else
3519         branches.
3520
3521 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
3522
3523         * i-cexten.ads (bool): New type.
3524
3525 2009-07-10  Robert Dewar  <dewar@adacore.com>
3526
3527         * sinfo.ads (N_Short_Circuit): New definition
3528         
3529         * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
3530         treepr.adb: Minor code reorganization (use N_Short_Circuit)
3531
3532 2009-07-10  Javier Miranda  <miranda@adacore.com>
3533
3534         * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
3535         non-tagged record types.
3536
3537         * sem_prag.adb
3538         (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
3539         with non-tagged types. Required to import C++ classes that have no
3540         virtual primitives.
3541         (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
3542         returning non-tagged types. For backward compatibility, if the
3543         constructor returns a class wide type we internally change the
3544         returned type to the corresponding non class-wide type.
3545
3546         * sem_aggr.adb
3547         (Valid_Ancestor_Type): CPP_Constructors code cleanup.
3548         (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
3549         (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
3550         (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
3551
3552         * sem_ch3.adb
3553         (Analyze_Object_Declaration): CPP_Constructors code cleanup.
3554
3555         * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
3556
3557         * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
3558
3559         * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
3560
3561         * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
3562         cleanup.
3563         
3564         * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
3565
3566         * gnat_rm.texi
3567         (pragma CPP_Class): Document that it can be used now with non-tagged
3568         record types.
3569         (pragma CPP_Constructor): Document that it can be used now with
3570         functions returning specific types. For backward compatibility
3571         we also support functions returning class-wide types.
3572
3573         * gnat_ugn.texi
3574         (Interfacing with C++ constructors): Update the examples to incorporate
3575         the new syntax in which the functions used to import C++ constructors
3576         return specific types.
3577         (Interfacing with C++ at the Class Level): Update the examples to
3578         incorporate the new syntax in which the functions used to import
3579         C++ constructors return specific types.
3580
3581 2009-07-10  Thomas Quinot  <quinot@adacore.com>
3582
3583         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
3584         Make_Disp_Conditional_Select_Body,
3585         Make_Disp_Timed_Select_Body): For the case of a type that is neither an
3586         interface nor a concurrent type, the primitive body is empty. Generate
3587         a null statement so that it remains well formed.
3588
3589 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3590
3591         * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
3592         replace references to them in defaulted component expressions with
3593         references to the values of the discriminants of the target object.
3594
3595 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3596
3597         * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
3598         pragma, to capture global references if the context is generic.
3599
3600         * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
3601         appears within the initialization procedure for the corresponding
3602         record, replace it with the proper discriminal.
3603
3604 2009-07-10  Vincent Celier  <celier@adacore.com>
3605
3606         * make.adb: Do not include object directories or library ALI
3607         directories of library projects in the object path.
3608
3609 2009-07-10  Javier Miranda  <miranda@adacore.com>
3610
3611         * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
3612         Typ argument to ensure proper management of access types.
3613
3614 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3615
3616         * exp_ch7.adb (Build_Final_List): If the list is being built for a
3617         Taft-Amendment type, place the finalization list in the package body,
3618         to ensure that the tree for the spec is identical whenever it is
3619         compiled.
3620
3621 2009-07-10  Javier Miranda  <miranda@adacore.com>
3622
3623         * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
3624         inheriting attributes from a private Parent_Base.
3625
3626 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
3627
3628         * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
3629         statements with the same condition.
3630
3631 2009-07-10  Robert Dewar  <dewar@adacore.com>
3632
3633         * exp_ch4.adb (Raise_Accessibility_Error): New procedure
3634
3635 2009-07-09  Tom Tromey  <tromey@redhat.com>
3636
3637         * raise-gcc.c: Include dwarf2h (unconditionally).
3638
3639 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3640
3641         * sem_ch10.adb (Install_Context): If the unit is a package body,
3642         install the private with_clauses of the corresponding package
3643         declaration.
3644
3645 2009-07-09  Robert Dewar  <dewar@adacore.com>
3646
3647         * checks.adb: Minor reformatting
3648
3649 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
3650
3651         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3652         into ug_words.
3653
3654 2009-07-09  Thomas Quinot  <quinot@adacore.com>
3655
3656         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3657         Do not warn for a constant overlaying any constant object
3658
3659 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3660
3661         * sem_ch10.adb (Install_Context): If the unit is a package body,
3662         install the private with_clauses of the corresponding package
3663         declaration.
3664
3665 2009-07-09  Robert Dewar  <dewar@adacore.com>
3666
3667         * checks.adb: Minor reformatting
3668
3669 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
3670
3671         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3672         into ug_words.
3673
3674 2009-07-09  Thomas Quinot  <quinot@adacore.com>
3675
3676         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3677         Do not warn for a constant overlaying any constant object
3678
3679 2009-07-09  Arnaud Charlet  <charlet@adacore.com>
3680
3681         * gcc-interface/Make-lang.in: Update dependencies
3682
3683 2009-07-09  Thomas Quinot  <quinot@adacore.com>
3684
3685         * g-socket.adb (Check_Selector): Do not create local copies of the
3686         socket sets on the stack.
3687
3688 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
3689
3690         * gnat_ugn.texi: Add missing VMS translations.
3691
3692 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3693
3694         * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
3695         condition, to prevent generation of visible code during expansion,
3696         when Check is not enabled.
3697
3698 2009-07-09  Gary Dismukes  <dismukes@adacore.com>
3699
3700         * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
3701         the check gets registered for any available local handler
3702         (Set_Local_Raise).
3703
3704         * sem_util.adb: Add with and use of Exp_Ch11.
3705         (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
3706         that the check gets registered for any available local handler.
3707
3708         * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
3709         on slice ranges.
3710
3711 2009-07-09  Steve Baird  <baird@adacore.com>
3712
3713         * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
3714         function.
3715         (Expand_N_Exception_Declaration): Fix handling of exceptions
3716         declared in a subprogram.
3717
3718 2009-07-09  Emmanuel Briot  <briot@adacore.com>
3719
3720         * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
3721         multi-unit files.
3722
3723 2009-07-09  Thomas Quinot  <quinot@adacore.com>
3724
3725         * freeze.adb: Minor reformatting
3726
3727         * exp_ch3.adb: Minor comment fix.
3728
3729         * sinfo.ads: Minor comment fix
3730
3731 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3732
3733         * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
3734
3735 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3736
3737         * freeze.adb (Freeze_Expression): If the expression is the name of a
3738         function in a call, and the function has not been frozen yet, create
3739         extra formals for it to ensure that the proper actuals are created
3740         when expanding the call.
3741
3742 2009-07-09  Emmanuel Briot  <briot@adacore.com>
3743
3744         * prj-pp.adb (Print): Fix handling of source index when set on a
3745         declaration node.
3746
3747 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
3748
3749         * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
3750         a temporary to the source expression whose value it captures.
3751
3752         * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
3753
3754 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3755
3756         * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
3757         EXPR_LOCATION.
3758
3759 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
3760
3761         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
3762         parameters when the subtype of the actual is not known to be a subrange
3763         of the formal's subtype.
3764         (Expand_Call): Generate a range check only in the E_In_parameter case
3765         (in out parameter range checks are now handled in Expand_Actuals).
3766
3767         * exp_ch4.adb (Expand_N_Slice): Restore code that calls
3768         Enable_Range_Check.
3769
3770 2009-07-07  Robert Dewar  <dewar@adacore.com>
3771
3772         * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
3773
3774 2009-07-07  Javier Miranda  <miranda@adacore.com>
3775
3776         * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
3777         designated type comes from a limited views.
3778
3779 2009-07-07  Emmanuel Briot  <briot@adacore.com>
3780
3781         * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
3782         locally removed files that are later made visible again in an importing
3783         project.
3784
3785 2009-07-07  Robert Dewar  <dewar@adacore.com>
3786
3787         * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
3788
3789 2009-07-07  Sergey Rybin  <rybin@adacore.com>
3790
3791         * gnat_ugn.texi: Add an example to the description of gnatcheck
3792         'Style_Checks' rule option.
3793
3794 2009-07-07  Tristan Gingold  <gingold@adacore.com>
3795
3796         * seh_init.c: Fix inline assembly statement in seh_init.c
3797
3798 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
3799
3800         * sem_warn.adb (Check_References): Do not emit warnings on formals of
3801         an entry body. Only the formals of the entry declaration are traced.
3802
3803 2009-07-07  Robert Dewar  <dewar@adacore.com>
3804
3805         * s-osprim-mingw.adb: Minor code reorganization
3806
3807 2009-07-07  Robert Dewar  <dewar@adacore.com>
3808
3809         * prj-nmsc.adb: Minor reformatting
3810
3811 2009-07-07  Pascal Obry  <obry@adacore.com>
3812
3813         * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
3814         cases where Pattern is longer than Source.
3815
3816 2009-07-07  Pascal Obry  <obry@adacore.com>
3817
3818         * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
3819
3820 2009-07-07  Emmanuel Briot  <briot@adacore.com>
3821
3822         * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
3823         project file.
3824
3825 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
3826
3827         * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
3828         primitive operations, in case one of them is called in the
3829         initialization procedure for the type.
3830
3831 2009-07-07  Robert Dewar  <dewar@adacore.com>
3832
3833         * a-calend.adb: Minor code reorganization (use conditional expressions)
3834
3835         * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
3836         prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
3837         s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
3838         s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
3839         s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
3840         g-comlin.adb, exp_ch11.adb: Minor reformatting.
3841
3842 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
3843
3844         * checks.adb (Generate_Range_Check): Replace type conversions with
3845         unchecked conversions to support the case of performing range checks
3846         on Enum'Val (permits integer values to be converted to enumeration).
3847
3848         * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
3849         Attribute_Succ): Set Do_Range_Check to False before calling
3850         Expand_Pred_Succ, to prevent gigi from generating any range checks.
3851         (Expand_N_Attribute_Reference, case Attribute_Val):
3852         Generate a range check when needed (and set Do_Range_Check to False).
3853
3854         * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
3855         scalar object initialization if needed.
3856
3857         * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
3858         when needed on scalar allocators.
3859         (Expand_N_Qualified_Expression): Generate range check when needed.
3860         (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
3861         Checks on slice ranges handled in Resolve_Slice.
3862
3863         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
3864         when needed, for all scalar assignments, not just discrete.
3865         (Expand_Simple_Function_Return): Resolve the conversion created for a
3866         scalar function return so that the conversion will get expanded to
3867         generate a possible constraint check.
3868
3869         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
3870         in out scalar actuals when subtypes don't match, to ensure generation
3871         of return checks (and set Do_Range_Check to False).
3872         (Expand_Call): Uncomment code to perform range checks, but make it apply
3873         only to in and in out parameters (checks on parameter returns are
3874         handled in Expand_Actuals). If a scalar actual for a call to a derived
3875         subprogram is marked as needing a range check, peform it here (and set
3876         Do_Range_Check to False).
3877
3878         * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
3879         range check on scalar component associations when needed.
3880
3881         * sem_eval.adb (In_Subrange_Of): Return False when the first type has
3882         infinities but the second type does not, as these aren't compatible
3883         floating-point types.
3884
3885         * sem_res.adb (Resolve_Slice): In the case where the prefix of the
3886         slice is itself a slice, pick up the Etype of the prefix. This handles
3887         the case where the prefix was an Image attribute expanded to a slice,
3888         and ensures that we get the subtype with the slice constraint rather
3889         than the unconstrained subbtype of the 'Image.
3890
3891 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
3892
3893         * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
3894         overloaded expressions in a conditional expressions.
3895
3896         * sem_res.adb (Resolve): Handle properly overloaded conditional
3897         expressions.
3898
3899 2009-07-07  Robert Dewar  <dewar@adacore.com>
3900
3901         * scng.adb: Minor reformattting
3902
3903         * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
3904         association allows conditional expression without parens.
3905
3906         * par-ch4.adb (P_Name): Attribute arguments can be conditional
3907         expressions without enclosing parentheses, and also as parameters,
3908         indexing expressions etc.
3909         (P_Conditional_Expression): New procedure
3910         (P_Expression_If_OK): New procedure
3911
3912         * par.adb (P_Conditional_Expression): New procedure
3913         (P_Expression_If_OK): New procedure
3914
3915         * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
3916         form of conditional expression.
3917
3918         * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
3919         missing True argument if ELSE argument missing.
3920
3921         * sinfo.adb (Is_Elsif): New flag
3922
3923         * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
3924         part of the language, and the documentation is modified accordingly.
3925         (Is_Elsif): New flag
3926
3927 2009-07-06  Olivier Hainque  <hainque@adacore.com>
3928
3929         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
3930         setjmp_longjmp): Attach the exception propagation reraise fallback
3931         to the sequence end label location when we have it.
3932
3933 2009-07-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3934
3935         PR ada/40608
3936         * init.c (APPLE): Include <mach/mach_init.h>.
3937         (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
3938
3939 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3940
3941         * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
3942         (SET_DECL_LANG_SPECIFIC): Likewise.
3943         (TYPE_RM_VALUE): New macro.
3944         (SET_TYPE_RM_VALUE): Likewise.
3945         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
3946         (TYPE_RM_MIN_VALUE): Likewise.
3947         (TYPE_RM_MAX_VALUE): Likewise.
3948         (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
3949         (SET_TYPE_RM_MIN_VALUE): Likewise.
3950         (SET_TYPE_RM_MAX_VALUE): Likewise.
3951         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
3952
3953 2009-07-04  Laurent GUERBY  <laurent@guerby.net>
3954
3955         PR ada/40631
3956         * tracebak.c (__gnat_backtrace): Fix old-style definition.
3957
3958 2009-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3959
3960         * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
3961
3962 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3963
3964         PR ada/40609
3965         * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
3966         ucontext argument.
3967
3968 2009-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3969
3970         * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
3971
3972 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3973
3974         * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
3975         the type of the left operand if it pads a self-referential type when
3976         the right operand is a constructor.
3977
3978         * gcc-interface/lang-specs.h: Fix copyright date.
3979
3980 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3981
3982         * gcc-interface/decl.c: Include tree-inline.h.
3983         (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
3984         * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
3985         * gcc-interface/utils2.c: Include tree-inline.
3986         (known_alignment) <CALL_EXPR>: Likewise.
3987
3988 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3989
3990         * raise-gcc.c: Include dwarf2.h conditionally.
3991         
3992 2009-06-29  Tom Tromey  <tromey@redhat.com>
3993
3994         * raise-gcc.c: Include elf/dwarf2.h.
3995
3996 2009-06-27  Laurent GUERBY  <laurent@guerby.net>
3997
3998         * tb-gcc.c (trace_callback): Add casts to silence warning.
3999
4000 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4001
4002         * tb-gcc.c: Fix copyright notice.
4003
4004 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4005
4006         * init.c (__gnat_set_globals): Add prototype.
4007         * adaint.c (__gnat_binder_supports_auto_init): Likewise.
4008         (__gnat_sals_init_using_constructors): Likewise.
4009         * gcc-interface/utils.c (gnat_pushlevel): Likewise.
4010         (get_block_jmpbuf_decl): Likewise.
4011         (gnat_poplevel): Likewise.
4012         (merge_sizes): Rename local variable.
4013         (copy_type): Likewise.
4014         (build_vms_descriptor32): Likewise.
4015         (build_vms_descriptor): Likewise.
4016         (convert_vms_descriptor64): Likewise.
4017         (convert_vms_descriptor32): Likewise.
4018         (convert_to_fat_pointer): Likewise.
4019         (maybe_unconstrained_array): Likewise.
4020         (def_fn_type): Use promoted type with va_arg.
4021         * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
4022         (substitute_in_type): Rename local variable.
4023         * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
4024
4025 2009-06-26  Laurent GUERBY  <laurent@guerby.net>
4026
4027         * tb-gcc.c (trace_callback): Use char* instead of void*.
4028         * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
4029         * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
4030         (Attribute_to_gnu): Adjust for above change.
4031         (Subprogram_Body_to_gnu): Likewise.
4032         * gcc-interface/utils.c (merge_sizes): Rename local variable.
4033         (copy_type): Likewise.
4034         (build_vms_descriptor32): Likewise.
4035         (build_vms_descriptor): Likewise.
4036         (convert_vms_descriptor64): Likewise.
4037         (convert_vms_descriptor32): Likewise.
4038         (convert_to_fat_pointer): Likewise.
4039         (maybe_unconstrained_array): Likewise.
4040         * gcc-interface/decl.c (substitute_in_type): Likewise.
4041
4042 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4043
4044         * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
4045         (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
4046         of the upper bound of the index types.
4047
4048 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4049
4050         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
4051         out common predicate.  Use the maximum to compute the upper bound of
4052         the index type only when it is not wider than sizetype.  Perform the
4053         comparison in the index type for the generic expression.  Use real
4054         precision to decide whether to generate special types for debugging
4055         information.
4056
4057 2009-06-26  Matthew Gingell  <gingell@adacore.com>
4058
4059         * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
4060
4061 2009-06-26  Vincent Celier  <celier@adacore.com>
4062
4063         * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
4064         default.
4065
4066 2009-06-26  Robert Dewar  <dewar@adacore.com>
4067
4068         * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
4069
4070 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4071
4072         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
4073         correct arguments to create_field_decl.  Remove redundant iteration.
4074         Rewrite computation of the maximum size.
4075         <E_Array_Subtype>: Reorder and simplify handling of special cases.
4076         Rewrite computation of the maximum size.  Use consistent naming.
4077         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
4078         comparison order for consistency.  Use generic integer node to
4079         build the operator and fold the result.
4080
4081 2009-06-25  Vincent Celier  <celier@adacore.com>
4082
4083         * vms_data.ads: Minor comment change
4084
4085 2009-06-25  Gary Dismukes  <dismukes@adacore.com>
4086
4087         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
4088         assignment statement to targeting a caller-provided object when the
4089         result type is an interface type.
4090
4091         * exp_ch6.adb (Expand_Call): Remove redundant test of
4092         Is_Limited_Interface (Is_Inherently_Limited is sufficient).
4093         (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
4094
4095         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
4096         to OK_For_Limited_Init.
4097
4098         * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
4099         condition so that True is returned for all limited interfaces, not
4100         just synchronized ones. Ignore components of an interface type when
4101         checking for limited components (such a component can be a parent
4102         component).
4103
4104         * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
4105         (OK_For_Limited_Init): Add type parameter.
4106
4107         * sem_ch3.adb (Check_Initialization): Add type in call to
4108         OK_For_Limited_Init.
4109         (OK_For_Limited_Init): Add new type param in call to
4110         OK_For_Limited_Init_In_05.
4111         (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
4112         nonlimited type when the context type is a limited interface. Add type
4113         on recursive calls.
4114
4115         * sem_ch4.adb (Analyze_Allocator): Add type in call to
4116         OK_For_Limited_Init.
4117
4118         * sem_ch6.adb (Check_Limited_Return): Add type in call to
4119         OK_For_Limited_Init.
4120
4121         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
4122         OK_For_Limited_Init.
4123         (Instantiate_Object): Add type in call to OK_For_Limited_Init.
4124
4125         * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
4126         class-wide interface, get the base type before applying Etype, in order
4127         to account for class-wide subtypes.
4128
4129 2009-06-25  Emmanuel Briot  <briot@adacore.com>
4130
4131         * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
4132         prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
4133         between gnatmake and gprbuild.
4134         (Naming_Data): Removed, no longer used
4135         (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
4136         needed locally in one subprogram, no need to store forever in the
4137         structure.
4138         (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
4139         a similar role.
4140         (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
4141         Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
4142         Spec_Suffix_Id_Of): removed, no longer used.
4143
4144 2009-06-25  Javier Miranda  <miranda@adacore.com>
4145
4146         * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
4147         types on qualified expression in calls to imported C++ constructors.
4148
4149         * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
4150         imported C++ constructors.
4151
4152 2009-06-25  Sergey Rybin  <rybin@adacore.com>
4153
4154         * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
4155
4156 2009-06-25  Vincent Celier  <celier@adacore.com>
4157
4158         * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
4159         provided, on Windows change all '/' to '\'.
4160
4161         * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
4162         used. Minor comment changes
4163
4164         * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
4165         Remove_Forbidden_File_Name.
4166
4167 2009-06-25  Quentin Ochem  <ochem@adacore.com>
4168
4169         * prj.ads (Unit_Index): Now general access type.
4170
4171 2009-06-25  Pascal Obry  <obry@adacore.com>
4172
4173         * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
4174
4175 2009-06-25  Emmanuel Briot  <briot@adacore.com>
4176
4177         * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
4178         prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
4179         computed efficiently from the other fields.
4180         (Object_To_Global_Archive): New subprogram
4181         (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
4182         (Override_Kind): Fix handling of separates in Ada.
4183         (Create_Mapping_File): Remove duplicate code
4184         (Naming_Data.Implementation_Exception, Specification_Exception):
4185         field removed, since never used.
4186         (Naming_Data.Specs, .Bodies): field removed, since this is only
4187         used while processing the project and is not needed once the tree
4188         is in memory. This brings Naming_Data and Lang_Naming_Data
4189         closer (same content now, but different use still).
4190
4191 2009-06-25  Pascal Obry  <obry@adacore.com>
4192
4193         * sem_ch4.adb: Minor reformatting.
4194
4195         * a-strsea.adb: Fix confusion between 'Length and 'Last.
4196
4197 2009-06-25  Ed Schonberg  <schonberg@adacore.com>
4198
4199         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
4200         Unchecked_Access): If the context is an interface type, and the prefix
4201         is of the corresponding class-wide type, do not insert a conversion
4202         because the pointer displacement has already taken place, and we must
4203         retain the class-wide type in a dispatching context.
4204
4205 2009-06-25  Emmanuel Briot  <briot@adacore.com>
4206
4207         * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
4208         the previous source file.
4209         (Create_Mapping): Iterate on sources rather than on units.
4210
4211 2009-06-25  Emmanuel Briot  <briot@adacore.com>
4212
4213         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
4214         prj-env.adb, prj-env.ads (Slash): removed, no longer used
4215         (Source_Data): no longer use Path.Name to point to a locally removed
4216         file. Instead we use the field Locally_Removed which is clearer
4217
4218 2009-06-25  Arnaud Charlet  <charlet@adacore.com>
4219
4220         * gcc-interface/Make-lang.in: Remove references to sem_maps.o
4221
4222         * sem_maps.adb, sem_maps.ads: Removed, not used.
4223
4224 2009-06-25  Ed Falis  <falis@adacore.com>
4225
4226         * s-vxwext-rtp.ads: Add missing declaration
4227
4228 2009-06-25  Matthew Gingell  <gingell@adacore.com>
4229
4230         * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
4231         speed up unmapped case.
4232
4233 2009-06-25  Vincent Celier  <celier@adacore.com>
4234
4235         * prj-nmsc.adb (Check): Change error message for illegal abstract
4236         projects.
4237
4238 2009-06-25  Robert Dewar  <dewar@adacore.com>
4239
4240         * gnat_ugn.texi: Add note on use of -gnatct for ASIS
4241
4242 2009-06-25  Emmanuel Briot  <briot@adacore.com>
4243
4244         * fmap.ads: Add documentation on mapping files
4245
4246 2009-06-25  Robert Dewar  <dewar@adacore.com>
4247
4248         * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
4249         reformatting
4250
4251 2009-06-24  Robert Dewar  <dewar@adacore.com>
4252
4253         * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
4254
4255         * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
4256         case.
4257         (Index): Ditto.
4258
4259 2009-06-24  Ed Schonberg  <schonberg@adacore.com>
4260
4261         * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
4262         present when checking whether a call may be interpreted as an indexing
4263         of the result of a call.
4264
4265         * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
4266         body for a null procedure on the freeze actions for the procedure, so
4267         that it will be analyzed at the proper place without premature freezing
4268         of actuals.
4269
4270         * sem_ch3.adb (Check_Completion): Code cleanup. 
4271         Do not diagnose a null procedure without a body, if previous errors
4272         have disabled expansion.
4273
4274 2009-06-24  Doug Rupp  <rupp@adacore.com>
4275
4276         * init.c [VMS] Resignal C$_SIGKILL
4277
4278 2009-06-24  Ed Falis  <falis@adacore.com>
4279
4280         * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
4281         Define ERROR in body for VxWorks 6 kernel
4282
4283 2009-06-24  Pascal Obry  <obry@adacore.com>
4284
4285         * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
4286         in [Send/Receive]_Socket.
4287
4288 2009-06-24  Emmanuel Briot  <briot@adacore.com>
4289
4290         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
4291         prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
4292         to several subprograms.
4293         (Source_Data.Other_Part): Removed, since can be computed from the
4294         language.
4295         (Other_Part): New subprogram.
4296
4297 2009-06-24  Emmanuel Briot  <briot@adacore.com>
4298
4299         * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
4300         the full base name of the file when the suffix doesn't start with a '.'.
4301
4302 2009-06-24  Vincent Celier  <celier@adacore.com>
4303
4304         * prj-nmsc.adb (Check): A project declared abstract is legal if no
4305         attribute Source_Dirs, Source_Files, Source_List_File or Languages is
4306         declared.
4307
4308 2009-06-24  Robert Dewar  <dewar@adacore.com>
4309
4310         * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
4311         prj-env.adb: Minor reformatting
4312
4313 2009-06-24  Ed Falis  <falis@adacore.com>
4314
4315         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
4316         s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
4317         s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
4318         support for VxWorks SMP.
4319
4320         * gcc-interface/Make-lang.in: Update dependencies
4321
4322 2009-06-24  Emmanuel Briot  <briot@adacore.com>
4323
4324         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4325         prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
4326         no longer useful.
4327         (Source_Data.Lang_Kind): Removed, since it duplicates information
4328         already available through Language.Config.
4329         (Source_Data.Compile): Removed, since information is already available
4330         through the language.
4331         (Is_Compilable): New subprogram.
4332         (Source_Data.Dependency): Removed, since already available through
4333         the language.
4334         (Source_Data.Object_Exist, Object_Linked): Removed since available
4335         through the language already.
4336         (Unit_Data.File_Names): Is now also set in multi_language mode, to
4337         bring the two modes closer in the resulting data structures.
4338         (Source_Data.Unit): Now a direct pointer to the unit data, rather than
4339         just the name that would point into a hash table.
4340         (Get_Language_From_Name): New subprogram.
4341
4342 2009-06-24  Javier Miranda  <miranda@adacore.com>
4343
4344         * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
4345         visible through limited-with context clauses. In addition, avoid an
4346         extra tag check that is not required when the class-wide
4347         designated types of the operand and target types are
4348         the same entity.
4349         (Tagged_Membership): Handle entities from the limited view.
4350
4351 2009-06-24  Emmanuel Briot  <briot@adacore.com>
4352
4353         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
4354         prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
4355         (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
4356         different vocabularies for similar concepts (Impl/Body_Part and
4357         Spec/Specification).
4358         (Unit_Data): now points directly to a Source_Id, rather than duplicating
4359         some of the information in File_Name_Data. This also saves a bit of
4360         memory. However, since we are now using a pointer we need to test
4361         for null explicitly in several places of the code
4362
4363 2009-06-24  Javier Miranda  <miranda@adacore.com>
4364
4365         * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
4366         from processing the type conversion when the node is
4367         replaced by an N_Raise_Program_Error node.
4368
4369 2009-06-24  Hristian Kirtchev  <kirtchev@adacore.com>
4370
4371         * sem_ch6.adb (Designates_From_With_Type): New routine.
4372         (Process_Formals): Since anonymous access types are no longer flagged
4373         as from with types, traverse the designated type to determine whether
4374         it is coming from a limited view.
4375
4376         * sem_res.adb: Remove with and use clauses for Sem_Ch10.
4377         (Full_Designated_Type): Use Available_View to extract the non-limited /
4378         full view of a type.
4379
4380 2009-06-24  Robert Dewar  <dewar@adacore.com>
4381
4382         * exp_ch6.adb: Minor reformatting
4383
4384         * layout.adb: Minor reformatting
4385
4386         * make.adb: Minor reformatting
4387
4388 2009-06-24  Thomas Quinot  <quinot@adacore.com>
4389
4390         * sem_ch10.adb: Minor code reorganization.
4391
4392 2009-06-24  Eric Botcazou  <ebotcazou@adacore.com>
4393
4394         * ttypes.ads: Minor editing.
4395         
4396 2009-06-24  Robert Dewar  <dewar@adacore.com>
4397
4398         * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
4399         in deciding to do call-by-copy code.
4400
4401 2009-06-24  Vincent Celier  <celier@adacore.com>
4402
4403         * make.adb (Gnatmake): To decide if an executable should be rebuilt,
4404         check if an externally built library file is more current than the
4405         executable.
4406
4407 2009-06-23  Olivier Hainque  <hainque@adacore.com>
4408
4409         * gcc-interface/utils.c (handle_vector_size_attribute): Import from
4410         c-common.c and populate in gnat_internal_attribute_table.
4411         
4412 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4413
4414         * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
4415         Available_View only when designated type of an anonymous access type
4416         is  limited view.
4417
4418 2009-06-23  Robert Dewar  <dewar@adacore.com>
4419
4420         * sem_ch10.adb: Minor reformatting
4421
4422         * ali.ads: Mino reformatting.
4423
4424         * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
4425         turning off inlining if ASIS mode active).
4426         
4427         * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
4428         This belongs in gnat1drv.adb after switches are scanned.
4429
4430 2009-06-23  Hristian Kirtchev  <kirtchev@adacore.com>
4431
4432         * sem_attr.adb: Add with and use clauses for Sem_Ch10.
4433         (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
4434         when dealing with class-wide types. Detect a legal shadow entity and
4435         retrieve its non-limited view.
4436
4437         * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
4438         subprogram to top package level from Intall_Limited_Withed_Unit.
4439         (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
4440         Add check which prevents the installation of a limited view if the
4441         non-limited view is already visible through a with clause.
4442         (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
4443         legal shadow entity which may occur in subprogram formals of anonymous
4444         access type.
4445
4446         * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
4447
4448         * sem_ch3.adb (Access_Definition): Remove the propagation of flag
4449         From_With_Type from the designated type to the generated anonymous
4450         access type. Remove associated comment.
4451
4452         * sem_res.adb Add with and use clauses for Sem_Ch10.
4453         (Full_Designated_Type): Detect a legal shadow entity and retrieve its
4454         non-limited view. Since the shadow entity may replace a regular
4455         incomplete type, return the available full view.
4456
4457 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4458
4459         * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
4460         incomplete type declarations. Previous code was potentially quadratic
4461         in the number of visible declarations in any package appearing in a
4462         limited_with_clause.
4463
4464 2009-06-23  Robert Dewar  <dewar@adacore.com>
4465
4466         * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
4467         xref_lib.adb: Minor reformatting
4468
4469 2009-06-23  Robert Dewar  <dewar@adacore.com>
4470
4471         * a-stzhas.adb: Provide dummy body to avoid build problems with old
4472         versions which did have a body for this unit.
4473
4474 2009-06-23  Vincent Celier  <celier@adacore.com>
4475
4476         * prj-attr.adb: Attribute names Initial_Required_Switches and
4477         Final_Required_Switches changed to Leading_Required_Switches and
4478         Trailing_Required_Switches.
4479
4480         * prj-nmsc.adb (Process_Compiler): Attribute names
4481         Initial_Required_Switches and Final_Required_Switches changed to
4482         Leading_Required_Switches and Trailing_Required_Switches.
4483
4484         * prj.ads (Language_Config): Component Initial_Required_Switches and
4485         Final_Required_Switches changed to Leading_Required_Switches and
4486         Trailing_Required_Switches.
4487
4488         * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
4489         Final_Required_Switches; add standard names Leading_Required_Switches
4490         and Trailing_Required_Switches.
4491
4492 2009-06-23  Thomas Quinot  <quinot@adacore.com>
4493
4494         * prj-conf.adb: Minor reformatting
4495
4496         * xref_lib.adb: Minor cleanup
4497
4498 2009-06-23  Emmanuel Briot  <briot@adacore.com>
4499
4500         * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
4501         prj-conf.ads (Check_Configuration): New parameter
4502         Compiler_Driver_Mandatory.
4503
4504 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4505
4506         * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
4507         context of the current unit has an inline pragma, the instance is not
4508         rewritten as the declaration of the package wrapper. Handle both
4509         possibilities when retrieving the visible subprogram that renames the
4510         instantiation itself.
4511
4512 2009-06-23  Javier Miranda  <miranda@adacore.com>
4513
4514         * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
4515         designated types referencing entities from the limited view.
4516
4517 2009-06-23  Robert Dewar  <dewar@adacore.com>
4518
4519         * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
4520
4521         * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
4522         small values
4523
4524         * prj-conf.ads: Minor reformatting
4525
4526         * prj-conf.adb: Minor reformatting
4527
4528 2009-06-23  Vasiliy Fofanov  <fofanov@adacore.com>
4529
4530         * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
4531         to correspond to the log format that gnatmem now expects.
4532
4533 2009-06-23  Vincent Celier  <celier@adacore.com>
4534
4535         * prj-attr.adb: New attributes Initial_Required_Switches,
4536         Final_Required_Switches and Object_File_Switches
4537         
4538         * prj-nmsc.adb (Process_Compiler): Process new attributes
4539         Name_Final_Required_Switches, Name_Initial_Required_Switches and
4540         Name_Object_File_Switches.
4541
4542         * prj.ads (Language_Config): New component
4543         Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
4544         Compiler_Final_Required_Switches and Object_File_Switches.
4545
4546         * snames.ads-tmpl: New standard names Initial_Required_Switches,
4547         Final_Required_Switches and Object_File_Switches
4548
4549 2009-06-23  Pascal Obry  <obry@adacore.com>
4550
4551         * s-strhas.adb, s-strhas.ads: Minor reformatting.
4552
4553 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4554
4555         * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
4556         not indicate that the enclosing unit needs a body.
4557
4558 2009-06-23  Emmanuel Briot  <briot@adacore.com>
4559
4560         * prj-conf.ads, prj-conf.adb: New files part of the project manager.
4561
4562 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
4563
4564         * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
4565         primitive equality include it with its source name even if the
4566         operation is currently invisible, to make sure that the corresponding
4567         slot in the dispatch table is reserved for the internal equality
4568         subsequently generated during expansion.
4569
4570 2009-06-23  Matthew Gingell  <gingell@adacore.com>
4571
4572         * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
4573
4574 2009-06-22  Jose Ruiz  <ruiz@adacore.com>
4575
4576         * sysdep.c (__gnat_localtime_tzoff for RTX):
4577         SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
4578         GetTimeZoneInformation instead.
4579
4580 2009-06-22  Robert Dewar  <dewar@adacore.com>
4581
4582         * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
4583
4584 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
4585
4586         * sem_ch12.adb (Collect_Previous_Instances): Do not collect
4587         instantiations declared in a previous generic package body.
4588
4589 2009-06-22  Robert Dewar  <dewar@adacore.com>
4590
4591         * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
4592         restriction No_Direct_Boolean_Operators.
4593
4594 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4595
4596         * bindusg.adb: Minor fixes to gnatbind usage message
4597
4598         * sem_eval.adb: Minor reformatting
4599
4600 2009-06-22  Javier Miranda  <miranda@adacore.com>
4601
4602         * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
4603         freezing point the check on the use of abstract types in object
4604         declarations. Done to allow the declaration of C++ imported variables
4605         or constants whose type corresponds with an imported C++ classes for
4606         which the constructor is not imported.
4607
4608 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4609
4610         * sem_ch6.adb: Minor reformatting
4611
4612 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
4613
4614         * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
4615         component is constrained with an expression rather than with a
4616         discriminant of the enclosing type, use that expression when building
4617         the call to default-initialize the component, when the call is part of
4618         an aggregate with box initialization.
4619
4620 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
4621
4622         * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
4623         unconditional rather than a style check, because a formal name out of
4624         order is suspicious.
4625
4626 2009-06-22  Vincent Celier  <celier@adacore.com>
4627
4628         * prj-nmsc.adb (Locate_Directory): Indicate the project name when
4629         creating a directory automatically.
4630
4631 2009-06-22  Eric Botcazou  <ebotcazou@adacore.com>
4632
4633         * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
4634         untagged derived type, add a hidden component for every constrained
4635         discriminant of the parent type to keep record layout consistent.
4636
4637 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4638
4639         * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
4640         copy).
4641
4642 2009-06-22  Matthew Gingell  <gingell@adacore.com>
4643
4644         * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
4645         s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
4646         g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
4647         a-swuwha.adb: New unit System.String_Hash.  
4648         Refactor redundant cut and pasted hash functions with instances of a
4649         new generic hash function.
4650         Implement a new string hashing algorithm which appears in testing to
4651         be move effective than to previous approach.
4652
4653 2009-06-22  Ed Falis  <falis@adacore.com>
4654
4655         * sysdep.c: remove include for nfsLib.h and an NFS specific error
4656         message for VxWorks 653 vThreads: not supported by the OS.
4657
4658         * gsocket.h: disable sockets for VxWorks 653 vThreads.
4659
4660 2009-06-22  Robert Dewar  <dewar@adacore.com>
4661
4662         * sem_ch6.adb: Add ??? comment for bad use of Style_Check
4663
4664 2009-06-22  Robert Dewar  <dewar@adacore.com>
4665
4666         * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
4667         by Sloc_Range.
4668
4669         * freeze.adb: Minor comment updates
4670
4671         * s-valrea.adb (Bad_Based_Value): New procedure
4672         (Scan_Real): Raise exceptions with messages
4673
4674 2009-06-22  Matthew Gingell  <gingell@adacore.com>
4675
4676         * adaint.h: Complete previous change.
4677
4678 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4679
4680         * exp_ch7.ads, exp_ch3.adb: Minor reformatting
4681
4682 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
4683
4684         * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
4685         enabled, emit warning when a non-controlling argument of the overriding
4686         operation appears out of place vis-a-vis of the formal of the
4687         overridden operation.
4688
4689 2009-06-22  Vincent Celier  <celier@adacore.com>
4690
4691         * gnatcmd.adb (Check_Files): Close temporary files after all file names
4692         have been written into it.
4693
4694 2009-06-22  Matthew Gingell  <gingell@adacore.com>
4695
4696         * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
4697         available.
4698
4699 2009-06-22  Thomas Quinot  <quinot@adacore.com>
4700
4701         * sem_disp.adb (Check_Direct_Call): Handle the case where the full
4702         view of the root type is visible at the point of the call.
4703
4704 2009-06-22  Pat Rogers  <rogers@adacore.com>
4705
4706         * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
4707
4708 2009-06-22  Jerome Lambourg  <lambourg@adacore.com>
4709
4710         * freeze.adb: Add comments.
4711
4712 2009-06-21  Thomas Quinot  <quinot@adacore.com>
4713
4714         * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
4715         sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
4716         Factor out code to new subprogram...
4717         (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
4718         for a default initialized variable.
4719         (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
4720         entity that has an associated freeze node.
4721         (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
4722         If there is an init call for the object, defer it to the object freeze
4723         point.
4724         (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
4725         name clash with new subprogram introduced in Exp_Util.
4726
4727 2009-06-21  Robert Dewar  <dewar@adacore.com>
4728
4729         * einfo.ads: Minor reformatting
4730
4731 2009-06-21  Ed Falis  <falis@adacore.com>
4732
4733         * env.c (__gnat_environ): return NULL for vThreads - unimplemented
4734
4735 2009-06-21  Eric Botcazou  <ebotcazou@adacore.com>
4736
4737         * einfo.ads: Update comments.
4738
4739 2009-06-21  Hristian Kirtchev  <kirtchev@adacore.com>
4740
4741         * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
4742         where the controlling formal is of private class-wide type whose
4743         completion is a synchronized type can be converted into direct calls.
4744
4745 2009-06-21  Vincent Celier  <celier@adacore.com>
4746
4747         * gnatcmd.adb (Check_Files): When all sources of the project are to be
4748         indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
4749         of sources using -files=, so that the distinction can be made by the
4750         tool of a call with no source (to display the usage) from a call with
4751         a project file that contains no source.
4752
4753 2009-06-21  Jerome Lambourg  <lambourg@adacore.com>
4754
4755         * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
4756         case of VM convention arrays.
4757
4758 2009-06-20  Robert Dewar  <dewar@adacore.com>
4759
4760         * a-nudira.adb: Minor reformatting
4761
4762 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
4763
4764         * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
4765         expressions (possibly from a parent type) indicate that the scope of
4766         the new itypes is the initialization procedure being built.
4767
4768 2009-06-20  Robert Dewar  <dewar@adacore.com>
4769
4770         * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
4771         Needs_64, and now computed without anomolies for some dynamic types.
4772
4773 2009-06-20  Thomas Quinot  <quinot@adacore.com>
4774
4775         * sem_prag.adb: Minor reformatting
4776
4777         * exp_disp.ads: Minor reformatting
4778
4779 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
4780
4781         * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
4782         function call is a legal expression to initialize a limited object.
4783
4784         * exp_ch3.adb: Rename various freeze operations that perform expansion
4785         actions, to prevent confusion with subprograms in the freeze package.
4786
4787 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
4788
4789         * sem.adb (Walk_Library_Units): Check instantiations first.
4790
4791         * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
4792         private primitive if it is a function with a controlling result that is
4793         a type extension with progenitors.
4794
4795         * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
4796         a primitive operation of a synchronized tagged type that has a
4797         controlling result.
4798
4799 2009-06-20  Thomas Quinot  <quinot@adacore.com>
4800
4801         * einfo.ads: Fix typo.
4802
4803 2009-06-20  Ed Falis  <falis@adacore.com>
4804
4805         * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
4806
4807 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
4808
4809         * gcc-interface/trans.c (emit_check): Do not wrap up the result
4810         in a SAVE_EXPR.
4811         (protect_multiple_eval): Always protect complex expressions.
4812
4813 2009-06-19  Emmanuel Briot  <briot@adacore.com>
4814
4815         * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
4816         make sure we always return a name ending with a path separator.
4817
4818 2009-06-19  Javier Miranda  <miranda@adacore.com>
4819
4820         * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
4821         Save and restore the visibility of the parent when installed.
4822
4823 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
4824
4825         * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
4826         by Common which contains all these fields.
4827
4828         * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
4829         Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
4830         Remove code duplication in this package by means of calling the
4831         equivalent code in s-taprob.
4832
4833 2009-06-19  Robert Dewar  <dewar@adacore.com>
4834
4835         * a-einuoc.ads: Minor reformatting
4836
4837 2009-06-19  Ed Falis  <falis@adacore.com>
4838
4839         * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
4840         s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
4841
4842 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
4843
4844         * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
4845
4846 2009-06-19  Robert Dewar  <dewar@adacore.com>
4847
4848         * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
4849         ranges
4850
4851         * checks.adb (Determine_Range): Move the test for generic types later.
4852
4853         * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
4854         cases.
4855         (Eval_Relational_Op): Fold more cases including string compares
4856
4857         * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
4858         function.
4859
4860 2009-06-19  Robert Dewar  <dewar@adacore.com>
4861
4862         * sem_type.ads, sem_ch12.adb: Minor reformatting
4863
4864         * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
4865
4866 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
4867
4868         * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
4869         primitive operation of a rivate extension whose controlling argument
4870         is an out parameter.
4871
4872         * sem.adb (Walk_Library_Units): exclude generic package declarations
4873         from check.
4874
4875 2009-06-19  Thomas Quinot  <quinot@adacore.com>
4876
4877         * i-vxwoio.ads: Add comments
4878
4879 2009-06-19  Thomas Quinot  <quinot@adacore.com>
4880
4881         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4882         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4883         g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
4884         (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
4885         (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
4886         Thin_Common.Socket_Ioctl.
4887         (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
4888         __gnat_socket_ioctl.
4889         (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
4890         argument after the file descriptor and request code.
4891
4892 2009-06-19  Robert Dewar  <dewar@adacore.com>
4893
4894         * checks.adb: Minor reformatting
4895
4896 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
4897
4898         * env.c (__gnat_environ): RTX does not support this functionality.
4899
4900 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
4901
4902         * sem.adb (Walk_Library_Items): Include bodies in the list of units to
4903         traverse, to account for front-end inlining and instantiations in a
4904         spec or in the main unit.
4905
4906 2009-06-19  Robert Dewar  <dewar@adacore.com>
4907
4908         * checks.adb (Determine_Range): Do not attempt to get range of generic
4909         type.
4910
4911 2009-06-19  Sergey Rybin  <rybin@adacore.com>
4912
4913         * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
4914         gnatmetric option for generating the schema file for gnatmetric XML
4915         output. Add corresponding VMS qualifier.
4916
4917 2009-06-19  Robert Dewar  <dewar@adacore.com>
4918
4919         * g-cgi.adb: Minor reformatting
4920
4921 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
4922
4923         * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
4924         signal code for SIGFPE and raise Program_Error for SIGILL.
4925
4926         * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
4927
4928 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
4929
4930         * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
4931         generic package if there is a visibility candidate that is declared in
4932         a regular package.
4933
4934 2009-06-18  Olivier Hainque  <hainque@adacore.com>
4935
4936         * system-aix64.ads: New file.
4937         * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
4938         64bit system.ads for ppc64 multilib variants.
4939
4940 2009-06-16  Robert Dewar  <dewar@adacore.com>
4941             Olivier Hainque  <hainque@adacore.com>
4942
4943         Relax constraints on Machine_Attribute argument types:
4944         * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
4945         missing type.
4946         (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
4947         * gcc-interface/decl.c (prepend_attributes): Accept static
4948         expressions of any type as attribute arguments, not only string
4949         literals.
4950         * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
4951         the relaxation of the restriction on the Info argument type.
4952         
4953 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
4954
4955         * gcc-interface/utils.c (record_builtin_type): Pass location
4956         argument to build_decl.
4957         (create_type_stub_decl): Same.
4958         (create_type_decl): Same.
4959         (create_var_decl_1): Same.
4960         (create_field_decl): Same.
4961         (create_param_decl): Same.
4962         (create_label_decl): Same.
4963         (create_subprog_decl): Same.
4964         * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
4965         * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
4966         argument to create_artificial_label.
4967         (Loop_Statement_to_gnu): Same.
4968         (Subprogram_Body_to_gnu): Same.
4969         (gnat_gimplify_stmt): Same.
4970
4971 2009-06-11  Richard Henderson  <rth@redhat.com>
4972
4973         * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
4974         OPT_gdwarfplus.
4975
4976 2009-06-11  Ed Schonberg  <schonberg@adacore.com>
4977
4978         * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
4979         accessibiliy check on access_to_subprogram in the context of an
4980         anonymous access that is not an access parameter.
4981
4982 2009-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4983
4984         * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
4985         
4986 2009-06-11  Quentin Ochem  <ochem@adacore.com>
4987
4988         * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
4989         comments for message handled by GPS.
4990
4991 2009-06-11  Matthew Gingell  <gingell@adacore.com>
4992
4993         * adaint.c: Use fopen64 instead of fopen on platforms where we know
4994         it's supported.
4995
4996 2009-06-11  Pascal Obry  <obry@adacore.com>
4997
4998         * g-cgi.ads: Fix comment typo.
4999
5000         * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
5001
5002 2009-06-10  Eric Botcazou  <ebotcazou@adacore.com>
5003
5004         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
5005         a reference to the original type for the type of the field of the
5006         XVS type.
5007         (maybe_pad_type): Likewise.
5008
5009         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
5010         common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
5011         Pass correctly typed arguments to create_field_decl.
5012         <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
5013         case of contrained discriminants as well.  Use the padded base type
5014         in the other case as well.  Rename temporary variable.  Tweak test.
5015         Factor common access pattern.  Set GNU_SIZE only once.
5016
5017 2009-06-09  Olivier Hainque  <hainque@adacore.com>
5018
5019         * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
5020         helper for build_call_alloc_dealloc with arguments to be interpreted
5021         identically.  Process the case where a GNAT_PROC to call is provided.
5022         (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
5023         and return an allocator for DATA_SIZE bytes aimed at containing a
5024         DATA_TYPE object, using the default __gnat_malloc allocator.  Honor
5025         DATA_TYPE alignments greater than what the latter offers.
5026         (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
5027         release a DATA_TYPE object designated by DATA_PTR using the
5028         __gnat_free entry point.
5029         (build_call_alloc_dealloc): Expect object data type instead of naked
5030         alignment constraint. Use the new helpers.
5031         (build_allocator): Remove special processing for the super-aligned
5032         case, now handled by build_call_alloc_dealloc.  Pass data
5033         type instead of the former alignment argument, as expected by the new
5034         interface.
5035         * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
5036         and comment.
5037         * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
5038         Remove special processing for the super-aligned case, now handled
5039         by build_call_alloc_dealloc.  Pass data type instead of the former
5040         alignment argument, as expected by the new interface.
5041         
5042 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
5043
5044         * lib-writ.adb (flag_compare_debug): Import.
5045         (Write_ALI): Skip during -fcompare-debug-second.
5046
5047 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
5048
5049         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
5050         adjusting the discriminant nodes in an extension, use the full view
5051         of the parent subtype if it is of a private kind.
5052
5053 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
5054
5055         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
5056         _Parent field, if any, to the record before adding the other fields.
5057         <E_Record_Subtype>: Put the _Controller field before the other fields
5058         except for the _Tag or _Parent fields.
5059         (components_to_record): Likewise.  Retrieve the _Parent field from the
5060         record type.
5061
5062 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
5063
5064         * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
5065         remove unused parameter and simplify.
5066         (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS.  Factor
5067         common predicate.  Rewrite loop for clarity.  Use GNU_TYPE directly
5068         as context for all discriminants.  Fix formatting nits.
5069         <E_Record_Subtype>: Add cosmetic 'break'.  Test Has_Discriminants
5070         before Discriminant_Constraint.  Adjust for above renaming.  Do not
5071         set GNU_TYPE more than once.
5072         (elaborate_entity): Test Has_Discriminants on the entity and use
5073         Implementation_Base_Type.
5074         (components_to_record): Rename component_list to gnat_component_list.
5075         Retrieve the _Parent field from the list.  Fix nits in comments.
5076         Clarify logic in loop.  Pass correct arguments to create_field_decl.
5077
5078 2009-06-02  Eric Botcazou  <ebotcazou@adacore.com>
5079
5080         * gcc-interface/Make-lang.in: Fix formatting.
5081
5082 2009-06-01  Olivier Hainque  <hainque@adacore.com>
5083             Eric Botcazou  <ebotcazou@adacore.com>
5084         
5085         * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
5086         to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
5087         on the result if at least one of the input fields couldn't be output
5088         as a static constant any more.
5089
5090 2009-06-01  Olivier Hainque  <hainque@adacore.com>
5091             Eric Botcazou  <ebotcazou@adacore.com>
5092         
5093         * gcc-interface/utils2.c (gnat_build_constructor): Factor
5094         out code.  Use initializer_constant_valid_for_bitfield_p and
5095         CONSTRUCTOR_BITFIELD_P for bit-fields.
5096
5097 2009-05-26  Ian Lance Taylor  <iant@google.com>
5098
5099         * gcc-interface/Makefile.in (COMPILER): Define.
5100         (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
5101         (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
5102         (seh_init.o, tracebak.o): Likewise.
5103         * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
5104         (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
5105         (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
5106         (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
5107         (ada/utils2.o): Likewise.
5108
5109 2009-05-24  Olivier Hainque  <hainque@adacore.com>
5110
5111         * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
5112         * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
5113         Add -auxbase variants to the list of recognized internal switches.
5114         * back_end.adb (Scan_Back_End_Switches): Use the new functions and
5115         adjust comments.
5116         * lib.ads: Make comment on internal GCC switches more general.
5117         * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
5118         as for C.       
5119         
5120 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5121
5122         * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
5123
5124 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5125
5126         * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
5127         types.
5128
5129 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5130
5131         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
5132         original type because of the alignment when there is an address clause.
5133
5134 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5135
5136         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
5137         discriminants affect the shape of the subtype, retrieve the GCC type
5138         directly from the original field if the GNAT types for the field and
5139         the original field are the same.
5140
5141 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
5142
5143         * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
5144         New macros.
5145         (TYPE_RM_VALUES): Likewise.
5146         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
5147         (SET_TYPE_RM_SIZE): New macro.
5148         (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
5149         (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
5150         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
5151         * gcc-interface/gigi.h (create_range_type): Declare.
5152         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
5153         Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
5154         <E_Signed_Integer_Subtype>: Build a regular integer type first and
5155         then set the RM bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
5156         <E_Floating_Point_Subtype>: Build a regular floating-point type first
5157         and then set the RM bounds.
5158         <E_Array_Type>: Use create_range_type instead of build_range_type.
5159         <E_Array_Subtype>: Build a regular integer type first and then set
5160         the RM bounds for the extra subtype.
5161         <E_String_Literal_Subtype>: Use create_range_type instead of
5162         build_range_type.
5163         <all>: Set the RM bounds for enumeration types and the GCC bounds for
5164         floating-point types.
5165         (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
5166         (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
5167         to set the bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
5168         (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
5169         types and with RM bounds for subtypes.
5170         * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
5171         (gnat_print_type) <REAL_TYPE>: New case.
5172         <ENUMERAL_TYPE>: Fall through to above case.
5173         (gnat_get_subrange_bounds): New function.
5174         * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
5175         TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
5176         * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
5177         for booleans.  Adjust and use SET_TYPE_RM_SIZE to set the RM size.
5178         (create_range_type): New function.
5179         (create_param_decl): Build a regular integer type first and then set
5180         the RM bounds for the extra subtype.
5181         (unchecked_convert): Remove kludge for 'Valid.
5182         * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
5183         the index to sizetype instead of TYPE_DOMAIN.
5184
5185 2009-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5186
5187         * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
5188         parameter and move check for static expression to...
5189         (elaborate_expression): ...here.  Adjust call to above function.
5190         (gnat_to_gnu_entity): Likewise for all calls.  Use correct arguments
5191         in calls to elaborate_expression.
5192         (elaborate_entity): Likewise.
5193         (substitution_list): Likewise.
5194         (maybe_variable): Fix formatting.
5195         (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
5196         missing guard.
5197         * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
5198
5199 2009-05-07  Arnaud Charlet  <charlet@adacore.com>
5200
5201         * gcc-interface/Make-lang.in: Update dependencies.
5202
5203 2009-05-06  Laurent GUERBY  <laurent@guerby.net>
5204
5205         * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
5206         Define sa_handler_pos.
5207         * s-osinte-linux.ads: Use it.
5208         * s-linux-mipsel.ads: New.
5209         * system-linux-mips64el.ads: New.
5210         * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
5211         mips64el-linux.
5212
5213 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
5214
5215         * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
5216         targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
5217         opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
5218         (Tagged_Type_Expansion): New flag.
5219         Replace use of VM_Target related to tagged types expansion by
5220         Tagged_Type_Expansion, since tagged type expansion is not necessarily
5221         linked to VM targets.
5222
5223 2009-05-06  Robert Dewar  <dewar@adacore.com>
5224
5225         * sem_attr.adb: Add processing for Standard'Compiler_Version
5226
5227         * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
5228         skipping.
5229         (Expr_First_Char): Add ??? comment that paren skipping needs work
5230         (Expr_Last_Char): Add ??? comment that paren skipping needs work
5231
5232         * exp_attr.adb: Add processing for Compiler_Version
5233
5234         * sem_attr.adb: New attribute Compiler_Version
5235
5236         * snames.ads-tmpl: Add entries for Compiler_Version attribute
5237
5238         * gnat_rm.texi: Document Compiler_Version attribute
5239
5240 2009-05-06  Robert Dewar  <dewar@adacore.com>
5241
5242         * errout.adb: Minor reformatting
5243
5244         * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
5245         sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
5246         styleg.adb: Add stylized comments to error messages that are included
5247         in the codefix circuitry of IDE's such as GPS.
5248
5249 2009-05-06  Sergey Rybin  <rybin@adacore.com>
5250
5251         * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
5252         new form of the rule parameter that allows to specify the suffix for
5253         access-to-access type names.
5254
5255 2009-05-06  Robert Dewar  <dewar@adacore.com>
5256
5257         * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
5258         out parameter assigned when exception handlers are present.
5259
5260         * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
5261         assignments on exit.
5262
5263         * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
5264         sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
5265         prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
5266         par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
5267         messages that are included in the codefix circuitry of IDE's such as
5268         GPS.
5269
5270         * sinput.ads, sinput.adb (Expr_First_Char): New function
5271         (Expr_Last_Char): New function
5272
5273 2009-05-06  Sergey Rybin  <rybin@adacore.com>
5274
5275         * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
5276         Add formal definition for extra exit point metric
5277
5278 2009-05-06  Pascal Obry  <obry@adacore.com>
5279
5280         * adaint.c: Support for setting attributes on unicode filename on
5281         Windows.
5282
5283 2009-05-06  Robert Dewar  <dewar@adacore.com>
5284
5285         * sem_warn.adb: Minor reformatting
5286
5287 2009-05-06  Javier Miranda  <miranda@adacore.com>
5288
5289         * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
5290         not have discriminants or components with default expressions.
5291         (Analyze_Pragma): For pragma CPP_Class check that imported types
5292         have no discriminants and components have no default expression.
5293
5294         * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
5295         class-wide types in the expression of a record component association.
5296
5297 2009-05-06  Sergey Rybin  <rybin@adacore.com>
5298
5299         * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
5300
5301         * gnat_ugn.texi: Add description for the new extra exit points metric
5302         (gnatmetric section).
5303
5304 2009-05-06  Robert Dewar  <dewar@adacore.com>
5305
5306         * s-fileio.adb: Minor comment update
5307
5308         * sem_ch8.adb: Minor reformatting
5309
5310         * exp_ch3.adb: Update comments.
5311
5312 2009-05-06  Tristan Gingold  <gingold@adacore.com>
5313
5314         * init.c, s-osinte-darwin.ads: Reduce alternate stack size
5315
5316 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
5317
5318         * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
5319         Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
5320
5321         * gcc-interface/Make-lang.in: Update dependencies
5322
5323 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5324
5325         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
5326         change. The context clause of a generic instance declaration must be
5327         preserved until the end of the compilation, because it may have to be
5328         installed/removed repeatedly.
5329         The latest change to sem.adb ensures that the context of both spec and
5330         body of an instance is traversed before the instance itself, making
5331         this patch redundant.
5332
5333 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
5334
5335         * sem_aggr.adb: Fix typo.
5336
5337 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5338
5339         * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
5340         declaration, do not adjust if the declaration is to be rewritten into
5341         a renaming.
5342
5343 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5344
5345         * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
5346         discriminant part.
5347
5348 2009-05-06  Bob Duff  <duff@adacore.com>
5349
5350         * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
5351         otherwise the compiler would be allowed to optimize away the cleanup
5352         code.
5353
5354 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
5355
5356         * gnat_ugn.texi: Fix typo.
5357
5358 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5359
5360         * g-debuti.adb: Minor reformatting
5361
5362         * exp_attr.adb: Minor reformatting
5363
5364 2009-05-06  Robert Dewar  <dewar@adacore.com>
5365
5366         * sem_aggr.adb: Minor reformatting.
5367
5368         * g-socthi-vms.adb: Minor reformatting
5369
5370 2009-05-06  Bob Duff  <duff@adacore.com>
5371
5372         * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
5373         (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
5374
5375 2009-05-06  Bob Duff  <duff@adacore.com>
5376
5377         * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
5378         flags.
5379
5380 2009-05-06  Javier Miranda  <miranda@adacore.com>
5381
5382         * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
5383         (Resolve_Extension_Aggregate): Do not reject C++ constructors in
5384         extension aggregates.
5385         (Resolve_Record_Aggregate): Add support for C++ constructors in
5386         extension aggregates.
5387
5388         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
5389         constructors in extension aggregates.
5390
5391 2009-05-06  Robert Dewar  <dewar@adacore.com>
5392
5393         * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
5394         clause.
5395
5396 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5397
5398         * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
5399         packed type, since on OpenVMS, struct msghdr is packed.
5400
5401 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5402
5403         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5404         call returning an unconstrained composite value, create the proper
5405         subtype for it, as is done for object dclarations with unconstrained
5406         nominal subtypes. Perform this transformation regarless of whether
5407         call comes from source.
5408
5409 2009-05-06  Robert Dewar  <dewar@adacore.com>
5410
5411         * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
5412         records
5413
5414         * gnat_rm.texi:
5415         Add documentation for pragma Implicit_Packing applied to record
5416         types.
5417
5418 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5419
5420         * sem.adb (Walk_Library_Items): Place all with_clauses of an
5421         instantiation on the spec, because late instance bodies may generate
5422         with_clauses for the instance body but are inserted in the instance
5423         spec.
5424
5425 2009-05-06  Emmanuel Briot  <briot@adacore.com>
5426
5427         * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
5428         support for returning the directory even if it doesn't exist. This is
5429         used for the object directory, since we are always setting it to a
5430         non-null value, and we should set it to an absolute name rather than a
5431         relative name for the sake of external tools that might depend on it.
5432         (Check_Library_Attributes): When Project.Library_Dir is known, check
5433         that the directory exists.
5434
5435 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5436
5437         * sem_attr.adb (Check_Dereference): If the prefix of an attribute
5438         reference is an implicit dereference, do not freeze the designated type
5439         if within a default expression or when preanalyzing a pre/postcondtion.
5440
5441 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5442
5443         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5444         call returning an unconstrained composite value, create the proper
5445         subtype for it, as is done for object dclarations with unconstrained
5446         nominal subtypes
5447
5448 2009-05-06  Robert Dewar  <dewar@adacore.com>
5449
5450         * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
5451         improvements
5452
5453         * freeze.adb: Minor reformatting
5454
5455 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5456
5457         * sem_ch3.adb (Access_Type_Declaration): An access type whose
5458         designated type is a limited view from a limited with clause (flagged
5459         From_With_Type) is not itself such a limited view.
5460
5461 2009-05-06  Emmanuel Briot  <briot@adacore.com>
5462
5463         * prj-nmsc.adb: Remove unused variable.
5464
5465         * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
5466         prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
5467         makeutl.ads, since not all users of prj.ads need this.
5468
5469 2009-05-06  Javier Miranda  <miranda@adacore.com>
5470
5471         * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
5472         constructor in case of aggregates whose type is a CPP_Class type.
5473
5474 2009-05-06  Robert Dewar  <dewar@adacore.com>
5475
5476         * sem_ch13.adb: Minor comment additions
5477
5478         * osint.adb: Minor reformatting
5479
5480 2009-05-06  Pascal Obry  <obry@adacore.com>
5481
5482         * initialize.c: On Windows, keep full pathname to expanded command
5483         line patterns.
5484
5485 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
5486
5487         * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
5488         an aggregate with box default is of a discriminated private type, do
5489         not build a subaggregate for it.
5490         A proper call to the initialization procedure is generated for it.
5491
5492 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5493
5494         * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
5495         (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
5496         Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
5497         use standard array code for Standard.String.
5498         (Exp_Dist): Bump PolyORB s-parint API version to 3.
5499         (Rtsfind): New entities TA_Std_String, Unbounded_String.
5500
5501 2009-05-06  Robert Dewar  <dewar@adacore.com>
5502
5503         * g-comlin.ads: Minor reformatting
5504
5505         * xoscons.adb: Minor reformatting
5506
5507 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
5508
5509         * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
5510         Underlying_Type before retrieving the type definition for gathering
5511         components, to account for the case where the type is private.
5512
5513 2009-05-06  Tristan Gingold  <gingold@adacore.com>
5514
5515         * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
5516
5517 2009-05-06  Thomas Quinot  <quinot@adacore.com>
5518
5519         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5520         g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
5521         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
5522         (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
5523         Windows versions): Fix incorrect base
5524         address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
5525         (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
5526         System.Address for the To parameter instead of a Sockaddr_In_Access, to
5527         achieve independance from AF_INET family, and also to allow this
5528         parameter to be retrieved from a Msghdr for the Windows case where
5529         these routines are used to implement C_Sendmsg and C_Recvmsg.
5530
5531 2009-05-06  Bob Duff  <duff@adacore.com>
5532
5533         * g-expect.adb, g-expect.ads: Minor reformatting
5534
5535         * sdefault.ads: Minor comment fix
5536
5537         * g-expect-vms.adb: Minor reformatting
5538
5539         * table.ads, table.adb (Append_All): New convenience procedure for
5540         appending a whole array.
5541
5542         * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
5543         box message. Call Osint.Dump_Source_File_Names to print out the file
5544         list, instead of rummaging around in various data structures.
5545
5546         * debug.adb: New switch -gnatd.n, to print source file names as they
5547         are read.
5548
5549         * alloc.ads: Add parameters for Osint.File_Name_Chars.
5550
5551         * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
5552         out source file names during a "bug box".
5553         (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
5554         (Read_Source_File): Print out the file name, if requested via -gnatd.n.
5555         If it's not part of the runtimes, store it for later printing by
5556         Dump_Source_File_Names.
5557
5558 2009-05-06  Javier Miranda  <miranda@adacore.com>
5559
5560         * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
5561         documentation and add reference to the GNAT user guide for further
5562         details.
5563
5564 2009-05-06  Javier Miranda  <miranda@adacore.com>
5565
5566         * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
5567         also wrong examples that use extension aggregates.
5568
5569 2009-05-06  Albert Lee  <lee@adacore.com>
5570
5571         * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
5572         of Msg_Iovlen_T for VMS.
5573
5574 2009-05-04  Laurent GUERBY  <laurent@guerby.net>
5575
5576         PR ada/38874
5577         * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
5578         
5579 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5580
5581         * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
5582         box-defaulted operator in an instantiation, when the type of the
5583         operands is not directly visible.
5584
5585 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
5586
5587         * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
5588         (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
5589         analysis of the ancestor part. Remove prohibition against limited
5590         interpretations of the ancestor expression in the case of Ada 2005.
5591         Revise error message in overloaded case, adding a message to cover
5592         the Ada 2005 case.
5593
5594 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5595
5596         * xoscons.adb: Minor reformatting
5597
5598 2009-04-29  Bob Duff  <duff@adacore.com>
5599
5600         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
5601         attribute_definition_clauses for the following attributes when the
5602         -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
5603         Storage_Size, Write. Otherwise, we get spurious errors (for example,
5604         missing Read attribute on remote types).
5605
5606         * gnat_ugn.texi: Document the change, and add a stern warning.
5607
5608 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5609
5610         * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
5611         disabled not just for the current scope, but for the innermost dynamic
5612         scope as well.
5613
5614 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5615
5616         * gcc-interface/Make-lang.in: Update dependencies
5617
5618 2009-04-29  Vincent Celier  <celier@adacore.com>
5619
5620         * prj-part.adb: Minor comment update
5621
5622 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5623
5624         * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
5625         box-initialized records with discriminated subcomponents that are
5626         constrained by discriminants of enclosing components. New subsidiary
5627         procedures Add_Discriminant_Values, Propagate_Discriminants.
5628
5629 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5630
5631         * g-socket.adb: Code clean up.
5632
5633 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
5634
5635         * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
5636         function entity, to cover the case of a parameterless function call
5637         that has not been resolved.
5638
5639 2009-04-29  Robert Dewar  <dewar@adacore.com>
5640
5641         * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
5642         reformatting and comment updates.
5643
5644 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5645
5646         * gnat_ugn.texi: Update some documentation about interfacing with C++
5647         Mention -fkeep-inline-functions.
5648
5649         * gnat_ugn.texi: Minor edits
5650
5651 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5652
5653         * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
5654         for a defaulted component of an enclosing aggregate, inherit the type
5655         from the component declaration of the enclosing type. 
5656
5657 2009-04-29  Albert Lee  <lee@adacore.com>
5658
5659         * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
5660         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
5661         (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
5662         msg_iovlen field in struct msghdr is 32 or 64 bits wide.
5663         Relocate the Msghdr record type from GNAT.Sockets.Thin to
5664         GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
5665         type for the Msg_Iovlen field.
5666
5667 2009-04-29  Vincent Celier  <celier@adacore.com>
5668
5669         * sinput-l.adb (Load_File): When preprocessing, set temporarily the
5670         Source_File_Index_Table entries for the source, to avoid crash when
5671         reporting an error.
5672
5673         * gnatcmd.adb (Test_If_Relative_Path): Use
5674         Makeutl.Test_If_Relative_Path.
5675         
5676         * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
5677         Including_RTS is True.
5678
5679         * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
5680         Including_RTS defaulted to False.
5681
5682         * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
5683         a default value.
5684
5685 2009-04-29  Javier Miranda  <miranda@adacore.com>
5686
5687         * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
5688
5689 2009-04-29  Javier Miranda  <miranda@adacore.com>
5690
5691         * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
5692         associated with dyamically tagged expressions if the expression
5693         initializing a tagged type corresponds with a non default CPP
5694         constructor.
5695         (OK_For_Limited_Init): CPP constructor calls are OK for initialization
5696         of limited type objects.
5697
5698         * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
5699         when a CPP constructor is called in an assignment. Disable also the
5700         error message associated with dyamically tagged expressions if the
5701         exporession initializing a tagged type corresponds with a non default
5702         CPP constructor.
5703
5704         * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
5705         non-default C++ constructors.
5706
5707         * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
5708
5709         * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
5710         non-default constructors.
5711         (Init_Proc): Add support for non-default constructors.
5712
5713         * exp_disp.adb (Set_Default_Constructor): Removed.
5714         (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
5715         but extending its functionality to handle non-default constructors.
5716
5717         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
5718         constructors. Minor code cleanup removing unrequired label and goto
5719         statement.
5720
5721         * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
5722         constructors.
5723         (Build_Init_Statements): Add support for non-default constructors.
5724         (Expand_N_Object_Declaration): Add support for non-default constructors.
5725         (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
5726         to Set_CPP_Constructors.
5727
5728         * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
5729         non-default constructors.
5730         Required to handle its use in build-in-place statements.
5731
5732         * gnat_rm.texi (CPP_Constructor): Document new extended use of this
5733         pragma for non-default C++ constructors and the new compiler support
5734         that allows the use of these constructors in record components, limited
5735         aggregates, and extended return statements.
5736
5737 2009-04-29  Vincent Celier  <celier@adacore.com>
5738
5739         * prj-part.adb (Parse_Single_Project): Do not attempt to find a
5740         project extending an abstract project.
5741
5742 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
5743
5744         * targparm.ads: Fix oversight.
5745
5746 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5747
5748         * lib-xref.adb (Output_Overridden_Op): Follow several levels of
5749         derivation when necessary, to find the user-subprogram that is actally
5750         being overridden.
5751
5752 2009-04-29  Robert Dewar  <dewar@adacore.com>
5753
5754         * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
5755         components
5756
5757 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5758
5759         * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
5760         primitive operation, rather than source line of synchronized type, when
5761         building the wrapper for a primitive operation that overrides an
5762         operation inherited from a progenitor, to improve the error message on
5763         duplicate declarations.
5764
5765         * sem_ch3.adb (Process_Full_View): Use new signature of
5766         Build_Wrapper_Spec.
5767
5768 2009-04-29  Robert Dewar  <dewar@adacore.com>
5769
5770         * prj-nmsc.ads: Minor reformatting
5771
5772 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
5773
5774         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
5775         expression on the existing parent If statement.
5776
5777 2009-04-29  Robert Dewar  <dewar@adacore.com>
5778
5779         * prj-proc.adb, prj.ads: Minor reformatting
5780
5781 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
5782
5783         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
5784         existing parent If statement on the newly created one.
5785
5786 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5787
5788         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
5789         prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
5790         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
5791         (Set_In_Configuration, In_Configuration): Removed.
5792         Replaced by an extra parameter Is_Config_File in several parameter to
5793         avoid global variables to store the state of the parser.
5794
5795 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5796
5797         * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
5798         with_clauses generated for the same unit through rtsfind, and that
5799         appear in the context of different units.
5800
5801         * rtsfind.adb: New attribute First_Implicit_With, component of the
5802         Unit_Record that stores information about a unit loaded through rtsfind.
5803
5804 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
5805
5806         * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
5807         (other conditions permitting), so that abstract stream subprograms will
5808         be declared for them.
5809
5810 2009-04-29  Bob Duff  <duff@adacore.com>
5811
5812         * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
5813
5814         * g-expect.ads: Minor comment fixes.
5815
5816 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5817
5818         * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
5819         dispatching operation is a body without previous spec, update the list
5820         of primitive operations to ensure that cross-reference information is
5821         up-to-date.
5822
5823 2009-04-29  Albert Lee  <lee@adacore.com>
5824
5825         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5826         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5827         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
5828         (GNAT.Sockets.Thin.C_Readv,
5829         GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
5830         (GNAT.Sockets.Thin.C_Recvmsg,
5831         GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
5832         sendmsg(2).  
5833         (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
5834         C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
5835
5836 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5837
5838         * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
5839         operation is a body without previous spec, update the list of
5840         primitive operations to ensure that cross-reference information is
5841         up-to-date.
5842
5843         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
5844         new compilation unit node for the instance declaration, keep the
5845         context items of the original unit on it, so that the context of the
5846         instance body only holds the context inherited from the generic body.
5847
5848 2009-04-29  Bob Duff  <duff@adacore.com>
5849
5850         * sem_res.adb: Minor comment fix.
5851
5852 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5853
5854         * sem_elim.adb: Minor reformatting
5855
5856 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5857
5858         * exp_aggr.adb (Convert_To_Positional): if the current unit is a
5859         predefined unit, allow arbitrary number of components in static
5860         aggregate, to ensure that the same level of constant folding applies
5861         for Ada 95 and Ada 05 versions of the file.
5862
5863 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5864
5865         * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
5866         information: no need for full scope check.
5867         (Eliminate_Error): Do not emit error in a generic context.
5868
5869 2009-04-29  Ed Falis  <falis@adacore.com>
5870
5871         * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
5872         VxWorks 653 POS does not support rmdir.
5873
5874 2009-04-29  Matteo Bordin  <bordin@adacore.com>
5875
5876         * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
5877         results are printed.
5878
5879 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5880
5881         * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
5882         unused assignment.
5883
5884 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5885
5886         * make.adb: Minor reformatting.
5887         Minor code reorganization throughout.
5888
5889 2009-04-29  Matteo Bordin  <bordin@adacore.com>
5890
5891         * s-stausa.ads: Changed visibility of type Task_Result: moved to
5892         public part to give application visibility over it.
5893         This is for future improvement and to build a public API on top of it.
5894         Changed record components name of type Task_Result to reflect the new
5895         way of reporting. 
5896
5897         * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
5898         reporting Stack usage.
5899
5900         * gnat_ugn.texi: Update doc of stack usage report.
5901
5902         * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
5903
5904         * Makefile.rtl: Add new run-time files.
5905
5906 2009-04-29  Pascal Obry  <obry@adacore.com>
5907
5908         * initialize.c: Do not expand quoted arguments.
5909
5910 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5911
5912         * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
5913
5914         * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
5915          Prj.Ultimate_Extending_Project_Of
5916
5917 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5918
5919         * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
5920         Amendment type, add the with_clause for Finalization.List_Controller
5921         only if the current context is a package body.
5922
5923 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5924
5925         * sem_ch12.adb: Minor reformatting
5926
5927         * sem_aggr.adb: Minor reformatting
5928
5929         * sem_ch6.adb, sem_cat.ads: Minor reformatting
5930
5931         * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
5932
5933 2009-04-29  Quentin Ochem  <ochem@adacore.com>
5934
5935         * prj.ads (Source_Id): Now general pointer type.
5936
5937 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5938
5939         * exp_ch7.adb, rtsfind.adb: Minor reformatting
5940
5941         * sem_res.adb: Minor reformatting
5942
5943 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5944
5945         * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
5946         operands is static only if it is a predefined concatenation operator.
5947
5948         * sem_util.adb: Minor reformatting
5949
5950         * sem_ch12.adb (Save_References): When propagating semantic information
5951         from generic copy back to generic template, for the case of an
5952         identifier that has been rewritten to an explicit dereference whose
5953         prefix is either an object name or a parameterless funcion call
5954         denoting a global object or function, properly capture the denoted
5955         global entity: perform the corresponding rewriting in the template,
5956         and point the rewritten identifier to the correct global entity (not
5957         to the associated identifier in the generic copy).
5958
5959 2009-04-29  Robert Dewar  <dewar@adacore.com>
5960
5961         * rtsfind.adb, prj-env.adb: Minor reformatting
5962         Minor code reorganization
5963
5964 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5965
5966         * make.adb: Fix comment
5967
5968         * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
5969         is given as argument, as might happen in gnatmake.
5970
5971 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5972
5973         * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
5974         an abstract operation of a progenitor is not properly overridden by an
5975         operation of a derived synchronized type.
5976
5977 2009-04-29  Robert Dewar  <dewar@adacore.com>
5978
5979         * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
5980         prj-proc.adb: Minor reformatting
5981         Minor code reorganization
5982
5983 2009-04-29  Bob Duff  <duff@adacore.com>
5984
5985         * exp_ch7.adb (Build_Final_List): For an access type that designates a
5986         Taft Amendment type, if the access type needs finalization, make sure
5987         the implicit with clause for List_Controller occurs on the package spec.
5988
5989         * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
5990         with's created for the pseudo-children of Text_IO and friends. In
5991         particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
5992         Ada.Text_IO.Integer_IO both with-ing each other.
5993
5994         * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
5995         oddball cases when pragma Extend_System is used.
5996
5997         * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
5998         the case where a package spec instantiates a generic whose body with's
5999         this package, so Walk_Library_Items won't complain about cyclic with's.
6000
6001 2009-04-29  Emmanuel Briot  <briot@adacore.com>
6002
6003         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
6004         prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
6005         mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
6006         (Project_Id): now a real pointer to Project_Data, instead of an index
6007         into the Projects_Table. This simplifies the API significantly, avoiding
6008         extra lookups in this table and the need to pass the Project_Tree_Ref
6009         parameter in several cases
6010
6011 2009-04-29  Nicolas Setton  <setton@adacore.com>
6012
6013         * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
6014         darwin.
6015
6016 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
6017
6018         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
6019         back kludge.
6020
6021 2009-04-24  Robert Dewar  <dewar@adacore.com>
6022
6023         * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
6024         clean.adb: Minor reformatting.
6025         Minor code reorganization and message improvement.
6026
6027 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6028
6029         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
6030         (Alternate_Languages): now implemented as a malloc-ed list rather
6031         than through a table.
6032
6033 2009-04-24  Thomas Quinot  <quinot@adacore.com>
6034
6035         * sem_res.adb (Static_Concatenation): Simplify predicate to make it
6036         accurately handle cases such as "lit" & "lit" and
6037         "lit" & static_string_constant
6038
6039 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6040
6041         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
6042         prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
6043         removed. Lists of projects are now implemented via standard malloc
6044         rather than through the table.
6045
6046 2009-04-24  Thomas Quinot  <quinot@adacore.com>
6047
6048         * sem_ch12.adb: Minor reformatting
6049
6050         * g-trasym.adb: Minor reformatting
6051
6052         * exp_ch6.adb: Minor reformatting
6053
6054 2009-04-24  Robert Dewar  <dewar@adacore.com>
6055
6056         * layout.adb (Layout_Type): For packed array type, copy unset
6057         size/alignment fields from the referenced Packed_Array_Type.
6058
6059 2009-04-24  Bob Duff  <duff@adacore.com>
6060
6061         * lib-load.adb (Make_Instance_Unit): Revert previous change, no
6062         longer needed after sem_ch12 changes.
6063
6064         * sem.adb (Walk_Library_Items): Include with's in some debugging
6065         printouts.
6066
6067 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6068
6069         * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
6070         only ever using the Project field.
6071
6072 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
6073
6074         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
6075         Body_Required on the generated compilation node. The new node is linked
6076         to its body, but both share the same file, so we do not set this flag
6077         on the new unit so as not to create a spurious dependency on a
6078         non-existent body in the ali file for the instance.
6079
6080 2009-04-24  Robert Dewar  <dewar@adacore.com>
6081
6082         * make.adb: Minor reformatting
6083
6084 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6085
6086         * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
6087         Add_Source): merge some code between those. In particular change where
6088         file normalization is done to avoid a few extra calls to
6089         Canonicalize_File_Name. This also removes the need for passing
6090         Current_Dir in a number of subprograms.
6091
6092 2009-04-24  Bob Duff  <duff@adacore.com>
6093
6094         * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
6095         False, assign the correct unit to the Cunit field of the new table
6096         entry. We want the spec unit, not the body unit.
6097
6098         * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
6099         interface for these.
6100         (Maybe_Add_With): Check whether we're trying to a with on the current
6101         unit, and avoid creating such directly self-referential with clauses.
6102         (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
6103         [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
6104         and matches existing comments in the spec.
6105
6106         * sem.adb (Walk_Library_Items): Add various special cases to make the
6107         assertions pass.
6108
6109         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
6110         instead of Parent (N), for uniformity.
6111
6112 2009-04-24  Robert Dewar  <dewar@adacore.com>
6113
6114         * errout.ads: Minor reformatting
6115
6116 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6117
6118         * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
6119         behavior when the project includes sources from multiple languages
6120
6121 2009-04-24  Vincent Celier  <celier@adacore.com>
6122
6123         * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
6124         is a language other than Ada declared.
6125
6126         * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
6127         Imported_First set to True.
6128
6129 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
6130
6131         * sem_res.adb: additional optimization to inhibit creation of
6132         redundant transient scopes.
6133
6134 2009-04-24  Bob Duff  <duff@adacore.com>
6135
6136         * rtsfind.ads: Minor comment fix
6137
6138 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6139
6140         * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
6141         Get_Path_Name_And_Record_Ada_Sources): merged, since these were
6142         basically doing the same work (for explicit or implicit sources).
6143         (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
6144         role. Rewritten to share some code (testing that all explicit sources
6145         have been found) between ada_only and multi_language modes.
6146
6147 2009-04-24  Jerome Lambourg  <lambourg@adacore.com>
6148
6149         * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
6150         for CLI imported types.
6151         (Analyze_Pragma): Allow CIL or Java imported functions returning
6152         access-to-subprogram types.
6153
6154 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6155
6156         * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
6157         (Project_Data.Dir_Path): field removed, since it can be computed
6158         directly from .Directory, and is needed only once when processing the
6159         project is buildgpr.adb or make.adb
6160
6161 2009-04-24  Robert Dewar  <dewar@adacore.com>
6162
6163         * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
6164         rtsfind.adb: Minor reformatting.
6165         Minor code reorganization
6166
6167 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
6168
6169         * mlib-prj.adb: Use friendlier english identifier.
6170
6171         * gnatcmd.adb, make.adb: Use better english identifiers.
6172
6173 2009-04-24  Robert Dewar  <dewar@adacore.com>
6174
6175         * clean.adb: Minor reformatting
6176
6177 2009-04-24  Robert Dewar  <dewar@adacore.com>
6178
6179         * einfo.adb (OK_To_Rename): New flag
6180
6181         * einfo.ads (OK_To_Rename): New flag
6182
6183         * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
6184         OK_To_Rename set.
6185
6186         * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
6187
6188         * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
6189         OK_To_Rename.
6190
6191 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6192
6193         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
6194         clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
6195         field removed. This is not a property of the
6196         project, just a boolean used to traverse the project tree, and storing
6197         it in the structure prevents doing multiple traversal in parallel.
6198         (Project_Data.Checked): also removed, since it was playing the same role
6199         as Seen when we had two nested loops, and this is no longer necessary
6200         (For_All_Imported_Projects): removed, since in fact there was already
6201         the equivalent in For_Every_Project_Imported. The latter was rewritten
6202         to use a local hash table instead of Project_Data.Seen
6203         Various loops were rewritten to use For_Every_Project_Imported, thus
6204         removing the need for Project_Data.Seen. This avoids a lot of code
6205         duplication
6206
6207 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
6208
6209         * sem_res.adb (Resolve_Actuals): Do not create blocks around code
6210         statements, even though the actual of the call is a concatenation,
6211         because the argument is static, and we want to preserve warning
6212         messages  about sequences of code statements that are not marked
6213         volatile.
6214
6215         * sem_warn.adb: remove obsolete comment about warning being obsolete
6216
6217         * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
6218         requeued and the delay has expired while within the accept statement
6219         that executes the requeue, do not perform the requeue and indicate that
6220         the timed call has been aborted.
6221
6222 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6223
6224         * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6225         (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
6226         (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
6227         since they can be computed from the above.
6228
6229 2009-04-24  Vincent Celier  <celier@adacore.com>
6230
6231         * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
6232
6233         * prj-env.adb: Move all global variables to the private part of the
6234         project tree data.
6235         Access these new components instead of the global variables no longer
6236         in existence.
6237         (Add_To_Path): New Project_Tree_Ref parameter, to access the new
6238         components that were previously global variables.
6239
6240         * prj-env.ads (Initialize): New Project_Tree_Ref parameter
6241         (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
6242         parameter.
6243
6244         * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
6245         be able to call Set_Mapping_File_Initial_State_To_Empty with it.
6246
6247         * prj.adb (Initialize): Do not call Prj.Env.Initialize
6248         (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
6249         components in the private part of the project tree data.
6250
6251         * prj.ads (Private_Project_Tree_Data): new components moved from
6252         Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
6253         Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
6254         Ada_Prj_Objects_File_Set, Fill_Mapping_File.
6255
6256 2009-04-24  Vincent Celier  <celier@adacore.com>
6257
6258         * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
6259
6260         * prj-nmsc.adb (Check_Library): No error for imports by shared library
6261         projects, when --unchecked-shared-lib-imports is used.
6262
6263 2009-04-24  Robert Dewar  <dewar@adacore.com>
6264
6265         * sem_ch7.adb: Minor reformatting
6266
6267 2009-04-24  Tristan Gingold  <gingold@adacore.com>
6268
6269         * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
6270         mach thread id.
6271
6272 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6273
6274         * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
6275         Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
6276         (For_All_Imported_Projects): new procedure
6277         (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
6278         above rather than duplicating code.
6279
6280 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6281
6282         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6283         (Source_Id, Source_Data): use a real list to store sources rather than
6284         using an external table to store the elements. This makes code more
6285         efficient and more readable.
6286
6287 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6288
6289         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6290         (Source_Iterator): new type.
6291         This removes the need for having the sources on three different
6292         lists at the project tree, project and language level. They are now
6293         on a single list.
6294
6295 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6296
6297         * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
6298
6299 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
6300
6301         * sem_warn.adb: Add comment on obsolete warning
6302
6303 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
6304
6305         * s-tassta.adb (Create_Task): Fix violation of locking rule.
6306
6307 2009-04-24  Emmanuel Briot  <briot@adacore.com>
6308
6309         * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
6310         to Language_Ptr to better reflect its new implementation.
6311         (Project_Data.First_Languages_Processing): renamed to Languages now
6312         that the field with that name is no longer used
6313         (Project_Data.Languages): removed, no longer used, and duplicates
6314         information already available through First_Language_Processing.
6315         (Prj.Language_Index): now an actual pointer, instead of an index into
6316         a table. This makes the list somewhat more obvious, but more importantly
6317         removes the need to pass a pointer to the project_tree_data in a few
6318         places, and makes accessing the attributes of a languages more
6319         efficient.
6320
6321 2009-04-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6322             Thomas Quinot  <quinot@adacore.com>
6323
6324         * fe.h (Set_Identifier_Casing): Add const to second parameter.
6325         * gcc-interface/misc.c (internal_error_function): Make copy of return
6326         from pp_formatted_text before assigning BUFFER to it.
6327         (gnat_init): Likewise for main_input_filename and gnat_argv.
6328         (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
6329
6330 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
6331
6332         * ttypes.ads (Target_Double_Float_Alignment): New variable.
6333         (Target_Double_Scalar_Alignment): Likewise.
6334         * get_targ.ads (Get_Strict_Alignment): Adjust external name.
6335         (Get_Double_Float_Alignment): New imported function.
6336         (Get_Double_Scalar_Alignment): Likewise.
6337         * layout.adb (Set_Elem_Alignment): Take into account specific caps for
6338         the alignment of "double" floating-point types and "double" or larger
6339         scalar types, as parameterized by Target_Double_Float_Alignment and
6340         Target_Double_Scalar_Alignment respectively.
6341         * gcc-interface/gigi.h (double_float_alignment): Declare.
6342         (double_scalar_alignment): Likewise.
6343         (is_double_float_or_array): Likewise.
6344         (is_double_scalar_or_array): Likewise.
6345         (get_target_double_float_alignment): Likewise.
6346         (get_target_double_scalar_alignment): Likewise.
6347         * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
6348         (get_target_strict_alignment): ...this.
6349         (get_target_double_float_alignment): New function.
6350         (get_target_double_scalar_alignment): Likewise.
6351         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6352         Test the presence of an alignment clause for under-aligned integer
6353         types.  Take into account specific caps for the alignment of "double"
6354         floating-point types and "double" or larger scalar types, as
6355         parameterized by Target_Double_Float_Alignment and
6356         Target_Double_Scalar_Alignment respectively.
6357         (validate_alignment): Likewise.
6358         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
6359         (gigi): Initialize double_float_alignment and double_scalar_alignment.
6360         * gcc-interface/utils.c (double_float_alignment): New global variable.
6361         (double_scalar_alignment): Likewise.
6362         (is_double_float_or_array): New predicate.
6363         (is_double_scalar_or_array): Likewise.
6364
6365 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
6366
6367         * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
6368         the conditional expression only if it is common to both arms.
6369
6370 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
6371
6372         * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
6373         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
6374         arguments to build_allocator.
6375         * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
6376         Remove code handling special allocator and assert its uselessness.
6377
6378 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
6379
6380         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
6381         alignment is specified, do not promote that of the component type
6382         beyond it.
6383         <E_Array_Subtype>: Likewise.
6384
6385 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6386
6387         * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
6388         * sinfo.ads (Object Declaration): Likewise.
6389         (Assignment Statement): Likewise.
6390         * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
6391         Do not force Is_True_Constant to false on the temporary.
6392         (Freeze_Entity): Do not force Is_True_Constant to false on names on
6393         the RHS of object declarations.
6394         * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
6395         New case.  Return 1 if the object is atomic.
6396         <N_Assignment_Statement>: Likewise.
6397
6398 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6399
6400         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
6401         For packed array types, make the original array type a parallel type
6402         for the modular type and its JM wrapper if the type is bit-packed.
6403         <E_Array_Subtype>: Likewise.  Do not generate the special XA parallel
6404         record type for packed array types.  Remove kludge.
6405
6406 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6407
6408         * gcc-interface/gigi.h (create_index_type): Adjust head comment.
6409         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6410         Use front-end predicates to compute signedness and precision.
6411         <E_String_Literal_Subtype>: Fold range type.
6412         Make sure to set longest_float_type_node to a scalar type.
6413         (elaborate_entity): Use consistent Constraint_Error spelling.
6414         (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
6415         * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
6416         output for the modulus, if any.
6417         <ENUMERAL_TYPE>: Likewise for the RM size.
6418         * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
6419         spelling.
6420         * gcc-interface/utils.c (finish_record_type): Really test the alignment
6421         of BLKmode bit-fields to compute their addressability.
6422         (create_index_type): Adjust comments.
6423         (create_param_decl): Create the biased subtype manually.
6424         * gcc-interface/utils2.c (build_component_ref): Use consistent
6425         Constraint_Error spelling.
6426
6427 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6428
6429         * gcc-interface/cuintp.c: Clean up include directives.
6430         * gcc-interface/targtyps.c: Likewise.
6431         * gcc-interface/decl.c: Likewise.
6432         * gcc-interface/misc.c: Likewise.
6433         * gcc-interface/trans.c: Likewise.
6434         * gcc-interface/utils.c: Likewise.
6435         * gcc-interface/utils2.c: Likewise.
6436         * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
6437
6438 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6439
6440         * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
6441         (SET_TYPE_LANG_SPECIFIC): Likewise.  Fix formatting.
6442         (SET_DECL_LANG_SPECIFIC): Likewise.
6443         Reorder macros.
6444         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6445         Update comment about use of build_range_type.
6446         <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
6447         <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
6448         check for other cases of overloading.
6449         * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
6450         * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
6451         Use size_int in lieu of build_int_cst.
6452         (build_call_alloc_dealloc): Use build_index_2_type in lieu of
6453         build_range_type.
6454
6455 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
6456
6457         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
6458         type is an enumeral or a boolean type, change it to an integer type
6459         with the same mode and signedness.
6460
6461 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
6462
6463         * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
6464         for an external constant whose initializer is not absolute.
6465
6466 2009-04-22  Taras Glek  <tglek@mozilla.com>
6467
6468         * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
6469         * gcc-interface/trans.c: Likewise.
6470         * gcc-interface/utils.c: Likewise.
6471
6472 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
6473
6474         * sem_res.adb: Create block around procedure call when actual is a
6475         concatenation.
6476
6477 2009-04-22  Thomas Quinot  <quinot@adacore.com>
6478
6479         * s-soflin.ads: Fix typos
6480
6481 2009-04-22  Vincent Celier  <celier@adacore.com>
6482
6483         * prj-env.adb: Minor comment change
6484
6485         * prj-nmsc.adb (Check_Common): Add guard to avoid calling
6486         Get_Name_String with No_File.
6487
6488         * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
6489         cannot be created even when not in verbose mode.
6490
6491 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6492
6493         * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
6494         prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
6495         Multi_Language modes, to avoid code duplication.
6496         (Project_Data.Include_Language): Removed.
6497
6498 2009-04-22  Vincent Celier  <celier@adacore.com>
6499
6500         * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
6501         the temporary file cannot be created, indicating the directory when the
6502         creation was attempted.
6503
6504 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6505
6506         * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
6507         the language names, not their indices.
6508
6509 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6510
6511         * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
6512         (Source_Data.Language_Name): Field removed.
6513
6514 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6515
6516         * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
6517         Two fields removed.
6518
6519 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6520
6521         * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
6522         separate_suffix to the same value as the body_suffix.
6523
6524 2009-04-22  Robert Dewar  <dewar@adacore.com>
6525
6526         * prj.adb: Minor code reorganization
6527         Code clean up.
6528
6529         * prj-proc.adb: Minor code reorganization, clean up.
6530
6531         * prj-nmsc.adb: Minor reformatting
6532         Minor code reorganization
6533
6534         * gnat_ugn.texi: Add to doc on strict aliasing
6535
6536 2009-04-22  Pascal Obry  <obry@adacore.com>
6537
6538         * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
6539         SpinCount.
6540
6541         * s-tasini.adb: Minor reformatting.
6542
6543         * s-tassta.adb: Minor reformatting.
6544
6545 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6546
6547         * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
6548         smaller subprograms.
6549         Renamed to Check_File_Naming_Schemes to avoid confusion with the
6550         other Check_Naming_Schemes functions that plays a totally different
6551         role.
6552         (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
6553         extracted from the above. These were partially rewritten to avoid
6554         unnecessary code and temporary variables.
6555         (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
6556         and Get_Unit (which for now still exist since they contain mode-specific
6557         code)
6558
6559 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6560
6561         * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
6562         Remove duplicated code.
6563         (Canonical_Case_File_Name): new subprogram
6564         (Check_And_Normalize_Unit_Names): new subprogram
6565         (Write_Attr): new subprogram
6566         Better sharing of code
6567         (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
6568         split Check_Naming and help find duplicated code
6569         (Check_Common): new subprogram, sharing code between ada_only and
6570         multi_language mode.
6571         (Naming_Data.Dot_Repl_Loc): field removed
6572
6573 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6574
6575         * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
6576         Minor refactoring to reduce the size of
6577         Process_Sources_In_Multi_Language_Mode.
6578         Avoid extra copied of Source_Data, which we found in the past could be
6579         quite slow.
6580         (Mark_Excluded_Sources): new subprogram.
6581         (Remove_Locally_Removed_Files_From_Units): merged into the above
6582         Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
6583         and allow better sharing of code between multi_lang and ada_only modes
6584         (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
6585
6586 2009-04-22  Emmanuel Briot  <briot@adacore.com>
6587
6588         * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
6589         Removed, since unused.
6590
6591 2009-04-22  Vincent Celier  <celier@adacore.com>
6592
6593         * prj-attr.adb: New single project level attribute
6594         Separate_Run_Path_Options.
6595
6596         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6597         attribute Seperate_Run_Path_Options.
6598
6599         * prj.ads: (Project_Configuration): New Boolean component
6600         Separate_Run_Path_Options, defaulted to False.
6601
6602         * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
6603
6604 2009-04-22  Robert Dewar  <dewar@adacore.com>
6605
6606         * sem_type.adb: Minor reformatting
6607
6608         * mlib.adb: Minor reformatting
6609
6610         * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
6611         syntax error.
6612
6613 2009-04-22  Nicolas Setton  <setton@adacore.com>
6614
6615         * link.c: Add flag __gnat_separate_run_path_options.
6616
6617         * mlib.adb (Separate_Run_Path_Options): New subprogram.
6618
6619         * mlib.ads (Separate_Run_Path_Options): Declare.
6620
6621         * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
6622         switch per directory, rather than one "rpath" switch listing all
6623         directories.
6624
6625         * gnatlink.adb (Process_Binder_File): Likewise.
6626
6627         * make.adb (Gnatmake): Likewise.
6628
6629 2009-04-22  Hristian Kirtchev  <kirtchev@adacore.com>
6630
6631         * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
6632         Add a call to Move_Final_List when the target of the assignment is a
6633         return object that needs finalization and the expression is a
6634         controlled build-in-place function.
6635
6636 2009-04-22  Vincent Celier  <celier@adacore.com>
6637
6638         * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
6639         Including_Libraries set to True.
6640
6641 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
6642
6643         * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
6644         create a unit table entry for the subprogram declaration created for a
6645         child suprogram body that has no separate specification.
6646
6647         * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
6648         subprogram body, call Make_Child_Decl_Unit.
6649
6650         * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
6651         table can only be the created specification of a child subprogram body
6652         that is the main unit, which has not been entered in the table yet.
6653
6654         * errout.adb  (Output_Messages): Ignore created specification of a
6655         child subprogram body to prevent repeated listing of error messages.
6656
6657         * gnat1drv.adb (gnat1drv): The generated specification for a child
6658         subprogram body does not generate code.
6659
6660 2009-04-22  Arnaud Charlet  <charlet@adacore.com>
6661
6662         * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
6663         since this unit is now part of bootstrap units, so must use Ada 95
6664         syntax only.
6665
6666 2009-04-22  Thomas Quinot  <quinot@adacore.com>
6667
6668         * a-tasatt.adb: Minor reformatting
6669
6670 2009-04-22  Bob Duff  <duff@adacore.com>
6671
6672         * s-stalib.ads: Remove "with System;" since we're inside System, so
6673         it's unnecessary.
6674
6675 2009-04-22  Vincent Celier  <celier@adacore.com>
6676
6677         * prj-nmsc.adb (Add_Source): Always put the dependency file name in
6678         the source record, as there may be a dependency file even if no object
6679         file is created.
6680
6681 2009-04-22  Robert Dewar  <dewar@adacore.com>
6682
6683         * lib-load.adb: Minor reformatting
6684
6685         * lib-load.ads: Minor reformatting
6686
6687         * sinfo.ads: Minor reformatting
6688
6689 2009-04-22  Bob Duff  <duff@adacore.com>
6690
6691         * exp_pakd.adb: Minor comment fixes.
6692
6693         * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
6694         sem_ch12.adb: Change the meaning of the Library_Unit attribute to
6695         include units containing instantiations, as well as units that are
6696         generic instantiations.
6697
6698         * sem.adb: Include dependents and corresponding specs/bodies in the
6699         unit walk.
6700
6701         * gcc-interface/Make-lang.in:
6702         sem now depends on s-bitops, because of the packed array of Booleans.
6703
6704 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
6705
6706         * gcc-interface/ada-tree.def: Fix formatting nits.
6707         (REGION_STMT): Delete.
6708         (HANDLER_STMT): Likewise.
6709         * gcc-interface/ada-tree.h: Fix formatting nits.
6710         (IS_STMT): Delete.
6711         (REGION_STMT_BODY): Likewise.
6712         (REGION_STMT_HANDLE): Likewise.
6713         (REGION_STMT_BLOCK): Likewise.
6714         (HANDLER_STMT_ARG): Likewise.
6715         (HANDLER_STMT_LIST): Likewise.
6716         (HANDLER_STMT_BLOCK): Likewise.
6717         * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
6718         (fp_size_to_prec): Likewise.
6719         (largest_move_alignment): Delete.
6720         (gnat_compute_largest_alignment): Likewise.
6721         Fix minor nits.
6722         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6723         Remove redundant code.
6724         <E_Array_Type>: Remove redundant assert.
6725         <E_Array_Subtype>: Exit early from index computation in pathological
6726         cases.
6727         Rewrite conditional assignment.
6728         (make_type_from_size): Likewise.
6729         * gcc-interface/misc.c (largest_move_alignment): Delete.
6730         (gnat_finish_incomplete_decl): Likewise.
6731         (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
6732         (asm_out_file): Likewise
6733         (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
6734         (gnat_dwarf_name): Move around.
6735         * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
6736         (gigi): Remove call to gnat_compute_largest_alignment.
6737         * utils.c (create_field_decl): Rewrite conditional assignment.
6738         Fix minor nits.
6739
6740 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
6741
6742         * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
6743         on entry.  Defer common processing for types.  Reorder and clean up.
6744         Compute the equivalent GNAT node and the default size for types only.
6745         <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
6746         <E_Access_Type>: For an unconstrained designated type, do not pretend
6747         that a dummy type is always made.
6748         <all> Fix nits in comments.
6749         (validate_size): Fix formatting nits and comments.
6750         (set_rm_size): Likewise.
6751         * gcc-interface/utils.c (create_param_decl): Replace bogus argument
6752         passed to TARGET_PROMOTE_PROTOTYPES hook.
6753
6754 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
6755
6756         * fe.h (Get_External_Name): Declare.
6757         * gcc-interface/gigi.h (concat_id_with_name): Rename to...
6758         (concat_name): ...this.
6759         * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
6760         gnu_entity_name and adjust for above renaming.
6761         <E_Access_Type>: Use create_concat_name to get the name of the various
6762         types associated with unconstrained array types.
6763         (make_aligning_type): Adjust for above renaming.
6764         (maybe_pad_type): Likewise.
6765         (components_to_record): Likewise.  Use get_identifier_with_length for
6766         the encoding of the variant.
6767         (get_entity_name): Use get_identifier_with_length.
6768         (create_concat_name): Likewise.  Use Get_External_Name if no suffix.
6769         Do not fiddle with Name_Buffer.
6770         (concat_id_with_name): Rename to...
6771         (concat_name): ...this.  Use get_identifier_with_length.  Do not fiddle
6772         with Name_Buffer.
6773         * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
6774         above renaming.
6775
6776 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
6777
6778         * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
6779         license notices.
6780
6781 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
6782
6783         * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
6784
6785 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
6786
6787         * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
6788         (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
6789         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
6790         Remove useless support code for packed array types and assert its
6791         uselessness.
6792         <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
6793         adjust for TYPE_RM_SIZE change.
6794         <all> Fix nits in comments.  Use Original_Array_Type accessor instead
6795         of Associated_Node_For_Itype accessor for packed array types.
6796         (make_packable_type): Likewise.
6797         (maybe_pad_type): Likewise.
6798         (set_rm_size): Likewise.  Rework conditional statement.  Adjust for
6799         TYPE_RM_SIZE change.
6800         (make_type_from_size): Adjust for TYPE_RM_SIZE change.
6801         (rm_size): Fix nits in comments.  Rework conditional statements.
6802         * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
6803         change.
6804         * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
6805         * gcc-interface/utils.c (gnat_init_decl_processing): Use more
6806         appropriate function to initialize the size_type_node.  Adjust for
6807         TYPE_RM_SIZE change.
6808
6809 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
6810
6811         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
6812         for imported subprograms.
6813
6814 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
6815
6816         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
6817         constant objects covered by 13.3(19) volatile.
6818
6819 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
6820
6821         * gcc-interface/utils.c (create_type_decl): Do not pass declarations
6822         of dummy fat pointer types to the debug back-end.
6823
6824 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6825
6826         * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
6827         <E_Signed_Integer_Subtype>: Set the RM size on the integer type
6828         before wrapping it up in the record type.  Do not overwrite the
6829         Ada size of the record type with the Esize.
6830
6831 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6832
6833         * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
6834         (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
6835         if the conversion is on the LHS of an assignment and a no-op.
6836         <all> Do not convert the result to the result type if the Parent
6837         node is such a conversion.
6838
6839 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6840
6841         * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
6842         * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
6843         of types with unknown discriminants.
6844         (substitute_in_type): Rewrite and restrict to formal substitutions.
6845         * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
6846         (update_pointer_to): Update comment.
6847
6848 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6849
6850         * sem_ch8.adb (Use_One_Package): In an instance, if two
6851         potentially_use_visible and non-overloadable homonyms are available
6852         from  the actuals of distinct formal packages, retain the current one,
6853         which was visible in the generic, to prevent spurious visibility
6854         errors.
6855         (End_Use_Package): Restore use_visibility when needed.
6856
6857 2009-04-20  Sergey Rybin  <rybin@adacore.com>
6858
6859         * gnat_ugn.texi, vms_data.ads: Update doc.
6860
6861 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6862
6863         * gcc-interface/Make-lang.in: Update dependencies
6864
6865         * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
6866         Windows.
6867
6868 2009-04-20  Robert Dewar  <dewar@adacore.com>
6869
6870         * checks.ads: Fix documentation of range check handling
6871
6872 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6873
6874         * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
6875         a redundant use_type clause.
6876
6877 2009-04-20  Robert Dewar  <dewar@adacore.com>
6878
6879         * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
6880         this attribute can be evaluated at compile time.
6881         (Eval_Attribute, case Range_Length): Same improvement
6882
6883         * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
6884
6885 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6886
6887         * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
6888         for better handling of null procedures.
6889         (Check_Overriding_Indicator): Do not emit a warning on a missing
6890         overriding indicator on an operator when the type of which the operator
6891         is a primitive is private.
6892
6893 2009-04-20  Bob Duff  <duff@adacore.com>
6894
6895         * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
6896         debugging output.
6897
6898 2009-04-20  Robert Dewar  <dewar@adacore.com>
6899
6900         * sem_attr.adb: Minor reformatting
6901
6902         * gnatcmd.adb: Minor reformatting
6903
6904 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6905
6906         * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
6907         overloaded and one interpretation matches the context, label the
6908         operand with the type of first formal.
6909
6910 2009-04-20  Bob Duff  <duff@adacore.com>
6911
6912         * debug.ads: Minor comment fix.
6913
6914         * debug.adb: Minor comment fixes.
6915
6916 2009-04-20  Javier Miranda  <miranda@adacore.com>
6917
6918         * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
6919
6920         * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
6921
6922         * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
6923         is expanded into a call to Raise_Exception, avoid passing the
6924         exception-name'identity in runtimes in which this argument
6925         is not used.
6926
6927 2009-04-20  Jerome Lambourg  <lambourg@adacore.com>
6928
6929         * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
6930         generated bindings for cil.
6931
6932 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6933
6934         * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
6935         discriminants, collect components from the Underlying_Record_View,
6936         which will be used in the expansion of the aggregate into assignments.
6937
6938         * sem_ch3.adb: Do not label derived type with unknown discriminants as
6939         having a private declaration.
6940
6941 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6942
6943         * exp_util.adb (Expand_Subtype_From_Expr): use the
6944         underlying_record_view when available, to create the proper constrained
6945         subtype for an object of a derived type with unknown discriminants.
6946
6947 2009-04-20  Javier Miranda  <miranda@adacore.com>
6948
6949         * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
6950         formals that have pragma unreferenced.
6951
6952 2009-04-20  Pascal Obry  <obry@adacore.com>
6953
6954         * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
6955         Remove all calls to To_Lower_If_Case_Insensitive to preserve
6956         the pathname original casing.
6957
6958 2009-04-20  Robert Dewar  <dewar@adacore.com>
6959
6960         * g-trasym.adb: Minor reformatting
6961
6962         * s-os_lib.adb: Minor reformatting
6963
6964         * sem.adb: Minor reformatting
6965         Minor code reorganization
6966
6967         * sem_ch3.adb: Minor reformatting
6968
6969         * sem_ch4.adb: Minor reformatting
6970
6971         * sem_ch8.adb: Minor reformatting
6972
6973         * sem_type.adb: Minor reformatting
6974
6975 2009-04-20  Javier Miranda  <miranda@adacore.com>
6976
6977         * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
6978         generated by derivations of tagged types use the aliased subprogram a
6979         reference to locate their controlling type.
6980
6981 2009-04-20  Tristan Gingold  <gingold@adacore.com>
6982
6983         * g-trasym.adb: Set size of result buffer before calling
6984         convert_address.
6985
6986 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6987
6988         * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
6989         to a function returning an array can be interpreted as a call with
6990         defaulted parameters whose result is indexed, take into account the
6991         types of all the indices of the array result type.
6992
6993 2009-04-20  Pascal Obry  <obry@adacore.com>
6994
6995         * a-direct.adb, s-os_lib.adb: Minor reformatting.
6996
6997 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6998
6999         * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
7000         null exclusion qualifiers for object renaming declarations.
7001
7002 2009-04-20  Nicolas Roche  <roche@adacore.com>
7003
7004         * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
7005         unsigned long long. So compare local_time and utc_time before computing
7006         the difference.
7007
7008 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7009
7010         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7011         of the Underlying_Record_View before that of the derived type.
7012
7013         * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
7014         with unknown discriminants with regard to the parent subtype.
7015
7016 2009-04-20  Bob Duff  <duff@adacore.com>
7017
7018         * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
7019         that are not included. This is necessary if the main unit is a generic
7020         instantiation.
7021
7022         * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
7023         because it doesn't work if -gnatn is used.
7024
7025 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7026
7027         * rtsfind.adb (RTE, RTE_Record_Component): In
7028         Configurable_Run_Time_Mode, do not enable front-end inlining.
7029
7030 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7031
7032         * g-socthi-vms.adb: Remove now unnecessary WITH clause on
7033         System.Address_To_Access_Conversions.
7034
7035 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7036
7037         * sem.adb: Guard against ill-formed subunits.
7038
7039 2009-04-20  Bob Duff  <duff@adacore.com>
7040
7041         * output.adb (Flush_Buffer): Do not indent blank lines.
7042         (Ignore_Output): New procedure for output suppression.
7043
7044 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
7045
7046         * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
7047         when it is positive.  This avoids a potential constraint error raised
7048         by the conversion to Natural.
7049
7050 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
7051
7052         * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
7053         involves a target that has a specified address, don't set Forward_OK
7054         and Backward_OK to False if the rhs is an aggregate, since overlap
7055         can't occur.
7056
7057 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7058
7059         * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
7060         in an object renaming declaration when the expected type is an
7061         anonymous access type.
7062
7063         * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
7064         ambiguity when one interpretation is an anonymous access type and the
7065         other is a named access type, and the context itself is anonymous
7066
7067 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7068
7069         * einfo.ads: Minor comment rewording
7070
7071         * sem_aggr.adb: Minor comment rewording
7072
7073         * sem_ch3.adb, sem_ch6.adb: Minor reformatting
7074
7075 2009-04-20  Pascal Obry  <obry@adacore.com>
7076
7077         * adaint.c (__gnat_is_readable_file): Check for file existence
7078         when not using ACL (always the case on remote drives).
7079
7080 2009-04-20  Robert Dewar  <dewar@adacore.com>
7081
7082         * sinfo.ads: Minor comment fixes
7083
7084         * exp_disp.adb: Minor reformatting
7085
7086         * gnat1drv.adb: Minor reformatting
7087
7088         * output.adb: Minor reformatting
7089
7090         * s-vxwext-kernel.ads: Minor reformatting
7091
7092         * sem.ads: Minor reformatting
7093
7094         * sem.adb: Minor reformatting
7095
7096         * sem_elim.adb: Minor reformatting
7097
7098         * uname.ads: Minor reformatting
7099
7100 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7101
7102         * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
7103         a small dope of 4 words to the adjustment to the stack pointer.
7104
7105 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7106
7107         * xoscons.adb: generate C header s-oscons.h in
7108         addition to s-oscons.ads.
7109
7110         * socket.c: On VMS, use s-oscons.h.
7111
7112         * sem_ch3.adb: Minor reformatting
7113
7114         * exp_ch9.adb: Minor reformatting
7115
7116 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7117
7118         * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
7119         (Attribute_to_gnu): Do not call check_for_eliminated_entity.
7120         (call_to_gnu): Likewise.
7121
7122 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7123
7124         * gcc-interface/trans.c (gigi): Declare the name of the compilation
7125         unit as the first global name at the very beginning.
7126
7127 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7128
7129         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7130         s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
7131         g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
7132         since HP-UX supports neither inet_aton nor inet_pton (altough the
7133         latter is part of the Single UNIX Specification!).
7134         So reorganize code, and share C implementation based on inet_addr(3)
7135         with VMS (instead of having a VMS specific Ada implementation in
7136         g-socthi-vms.adb).
7137
7138 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
7139
7140         * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
7141         to return the object file name saved by Set_Object_Output_File_Name.
7142
7143 2009-04-20  Emmanuel Briot  <briot@adacore.com>
7144
7145         * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
7146         for the standard command line, when argc has been modified since the
7147         start of the application.
7148
7149 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7150
7151         * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
7152         WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
7153
7154 2009-04-20  Bob Duff  <duff@adacore.com>
7155
7156         * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
7157         pragma Debug.
7158
7159 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7160
7161         * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
7162         subprogram as Eliminated when source operation is.
7163         (Expand_N_Protected_Type_Declaration): Generate protected and
7164         unprotected specs for the internal operations, even if the source
7165         operation is eliminated.
7166
7167 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
7168
7169         * exp_ch3.adb (Make_Predefined_Primitive_Specs,
7170         Predefined_Primitive_Bodies): Do not create the declarations and bodies
7171         of the primitive subprograms associated with dispatching select
7172         statements when the runtime is in configurable mode.
7173
7174 2009-04-20  Ed Falis  <falis@adacore.com>
7175
7176         * s-vxwext-kernel.ads (tickGet): Use tick64Get.
7177
7178 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7179
7180         * s-oscons-tmplt.c: Add support for generating a dummy version of
7181         s-oscons.ads providing all possible constants.
7182
7183         * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
7184
7185         * socket.c (__gnat_inet_pton): On Windows make sure we always use the
7186         ANSI version (not the UNICODE version) of WSAStringToAddress.
7187
7188 2009-04-20  Pascal Obry  <obry@adacore.com>
7189
7190         * adaint.c (__gnat_set_OWNER_ACL): properly free memory
7191         allocated for the security descriptor and make sure all
7192         handles are closed before leaving this procedure.
7193
7194 2009-04-20  Javier Miranda  <miranda@adacore.com>
7195
7196         * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
7197         (Set_Is_Underlying_Record_View): New subprogram
7198
7199         * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
7200         private types with unknown discriminants use the underlying record view
7201         if available.
7202
7203         * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
7204         underlying record view in the full view of private types whose parent
7205         has unknown discriminants.
7206         (Build_Derived_Record_Type): Avoid generating the class-wide entity
7207         associated with an underlying record view.
7208         (Derived_Type_Declaration): Avoid deriving parent primitives in
7209         underlying record views.
7210
7211         * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
7212         records with unknown discriminants.
7213
7214         * sem_type.adb (Covers): Handle underlying record views.
7215         (Is_Ancestor): Add support for underlying record views.
7216
7217         * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
7218         dispatching call if the type of the target object is tagged and has
7219         unknown discriminants.
7220
7221         * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
7222         unknown discriminants.
7223
7224         * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
7225         tables for internally built underlying record views.
7226
7227         * sprint.adb (sprint_node_actual): Improve output of aggregates with an
7228         empty list of component associations.
7229
7230 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7231
7232         * sem_ch10.adb: Minor reformatting
7233
7234         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7235         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
7236         (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
7237         standard inet_pton API (and emulate it on platforms that do not
7238         support it).
7239         (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
7240         DECC$INET_ADDR, imported in Ada.
7241         (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
7242         implementation provided by GNAT runtime.
7243         (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
7244         Windows.
7245
7246 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7247
7248         * gnat_ugn.texi: Add documentation for -fno-ivopts.
7249
7250 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7251
7252         * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
7253         with_clause if it is the main unit.
7254
7255 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7256
7257         * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
7258         (no behaviour change): Use Append instead of Increment_Last followed
7259         by assignment.
7260
7261 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
7262
7263         * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
7264         declarations of all primitives associated with dispatching asynchronous,
7265         conditional and timed selects when dispaching calls are forbidden and
7266         select statements are not allowed (such as in Ravenscar).
7267         (Predefined_Primitive_Bodies): Ditto for bodies.
7268
7269         * exp_disp.ad (Make_DT): Do not create and populate the
7270         Select_Specific_Data of the dispatch table when dispatching calls are
7271         forbidden and select statements are not allowed (such as in Ravenscar).
7272
7273 2009-04-20  Robert Dewar  <dewar@adacore.com>
7274
7275         * a-tifiio.adb: Minor reformatting
7276
7277 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7278
7279         * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
7280         other C library functions, report *failure* with a zero status, and
7281         success with a non-zero status.
7282
7283 2009-04-20  Bob Duff  <duff@adacore.com>
7284
7285         * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
7286         (Semantics): After analyzing each unit, Append it to the
7287         Comp_Unit_List, if appropriate.
7288
7289         * gnat1drv.adb (Check_Library_Items): New procedure for debugging
7290         purposes.
7291         (Gnat1drv): Correct comment regarding Back_End_Mode.
7292
7293 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7294
7295         * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
7296
7297 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7298
7299         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7300         output.adb, output.ads, s-taprop-hpux-dce.adb,
7301         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
7302         reformatting.
7303
7304 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7305
7306         * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
7307         g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
7308         (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
7309         (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
7310         except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
7311         (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
7312
7313         * debug.adb: Fix typo
7314
7315         * gnat_rm.texi: Minor doc fix.
7316
7317         * sem_ch7.adb, freeze.adb: Minor reformatting
7318
7319 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7320
7321         * g-socket.ads: Add new constants:
7322           Loopback_Inet_Addr
7323           Unspecified_Group_Inet_Addr
7324           All_Hosts_Group_Inet_Addr
7325           All_Routers_Group_Inet_Addr
7326
7327         * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
7328         ERANGE (Result too large).
7329         (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
7330         propagation of errno to caller.
7331
7332 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
7333
7334         * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
7335         to 24. Increment Leap_Seconds_Count and add an entry to aggregate
7336         Leap_Second_Times.
7337
7338 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
7339
7340         * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
7341         checking for references to eliminated subprograms that should be
7342         flagged.
7343         (Eliminate_Error_Message): Update comment to say "references" rather
7344         than "calls" (since attribute cases are handled here as well).
7345
7346         * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
7347         checking for references to eliminated subprograms that should be
7348         flagged.  Add with and use of Sem and Sem_Util.
7349
7350         * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
7351         Add with and use of Sem_Elim.
7352
7353         * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
7354         applied to eliminated subprograms.
7355         (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
7356         eliminated subprograms.
7357         Add with and use of Sem_Elim.
7358
7359         * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
7360         to eliminated subprograms, now handled during Resolve_Call.
7361         Remove with and use of Sem_Elim.
7362
7363         * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
7364         testing Is_Eliminated, for proper handling of primitive derived from
7365         eliminated subprograms.
7366
7367 2009-04-20  Vincent Celier  <celier@adacore.com>
7368
7369         * mlib-prj.adb (Build_Library): Use the shared library linker, if one
7370         has been declared (Library_GCC or Linker'Driver), for the driver name.
7371
7372         * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
7373         Linker'Driver is, use Linker'Driver as the shared library linker.
7374         (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
7375         Library_GCC is declared.
7376         (Check_Library_Attributes): Set up the shared linker driver: either
7377         Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
7378         declared.
7379
7380 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7381
7382         * g-socket.ads (Send_Socket): Fix misleading comment.
7383
7384 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7385
7386         * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
7387         ASIS mode.
7388
7389 2009-04-20  Geert Bosch  <bosch@adacore.com>
7390
7391         * a-tifiio.adb (Put): Avoid generating too many digits for certain
7392         fixed types with smalls that are neither integer or the reciprocal
7393         of an integer.
7394
7395 2009-04-20  Bob Duff  <duff@adacore.com>
7396
7397         * uname.ads: Minor comment fix.
7398
7399         * types.ads: Minor comment fix.
7400
7401 2009-04-20  Pascal Obry  <obry@adacore.com>
7402
7403         * adaint.c (__gnat_get_libraries_from_registry): Fix code to
7404         avoid warning. At the same time fix a memory leak.
7405
7406         * osint.adb (Get_Libraries_From_Registry): Properly free memory
7407         returned by the above routine.
7408
7409 2009-04-20  Robert Dewar  <dewar@adacore.com>
7410
7411         * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
7412         s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
7413         s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
7414         s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
7415
7416         * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
7417
7418 2009-04-20  Pascal Obry  <obry@adacore.com>
7419
7420         * initialize.c (__gnat_initialize): Add braces to kill warning.
7421
7422         * adaint.c: Minor reformatting, remove trailing spaces.
7423
7424 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
7425
7426         * gcc-interface/Make-lang.in: Update dependencies.
7427
7428 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7429
7430         * adaint.h (__gnat_lwp_self): Declare on Linux.
7431
7432         * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
7433
7434 2009-04-20  Robert Dewar  <dewar@adacore.com>
7435
7436         * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
7437         front-end part of -fpreserve-control-flow switch.
7438
7439 2009-04-20  Bob Duff  <duff@adacore.com>
7440
7441         * rtsfind.adb: Minor comment fix
7442
7443 2009-04-20  Robert Dewar  <dewar@adacore.com>
7444
7445         * exp_aggr.adb: Minor reformatting
7446         Minor code reorganization (use Nkind_In)
7447
7448         * g-socket.adb: Minor reformatting
7449
7450         * g-socket.ads: Minor comment fix
7451
7452         * s-auxdec.ads: Minor comment and organization update.
7453
7454         * s-auxdec-vms_64.ads: Minor comment and organization update.
7455
7456         * sem_ch10.adb: Minor addition of ??? comment
7457
7458         * sem_disp.adb: Minor reformatting
7459
7460 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7461
7462         * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
7463         list a caller of an inlined subprogram, if the caller itself is not
7464         called.
7465
7466 2009-04-20  Pascal Obry  <obry@adacore.com>
7467
7468         * adaint.c: Disable use of ACL on network drives.
7469
7470 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7471
7472         * gnat_ugn.texi: Add examples.
7473
7474 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7475
7476         * g-socket.ads (Abort_Selector): Clarify documentation.
7477
7478 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7479
7480         * opt.ads (Inspector_Mode): Update documentation of this flag.
7481
7482 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7483
7484         * g-socket.ads: Minor reformatting
7485
7486         * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
7487         consider S_resolvLib error codes since we only use the hostLib wrappers.
7488
7489 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7490
7491         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7492         of the Underlying_Record_View after that of the derived type.
7493
7494 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7495
7496         * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
7497         in inspector mode.
7498
7499 2009-04-20  Javier Miranda  <miranda@adacore.com>
7500
7501         * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
7502
7503         * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
7504         documentation.
7505
7506         * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
7507
7508         * sem_disp.adb
7509         (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
7510         in internally built overriding subprograms.
7511
7512 2009-04-20  Doug Rupp  <rupp@adacore.com>
7513
7514         * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
7515
7516         * s-auxdec.ads: Likewise
7517
7518 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7519
7520         * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
7521         type by an interface.
7522
7523         * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
7524         minimze difference in expanded tree when compiled as spec of the main
7525         unit, or as a spec in the context of another unit.
7526
7527 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
7528
7529         * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
7530         (localtime_tzoff): This routine no longer accepts an actual of type
7531         tm_Pointer.
7532         (UTC_Time_Offset): Remove local variable Secs_TM.
7533
7534         * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
7535         actual of type struct tm*. Add local variable of type struct tm for all
7536         targets that provide localtime_r and need to invoke it.
7537
7538 2009-04-20  Thomas Quinot  <quinot@adacore.com>
7539
7540         * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
7541         (GNAT.Sockets.Resolve_Error): Add case of EPIPE
7542         Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
7543
7544 2009-04-20  Robert Dewar  <dewar@adacore.com>
7545
7546         * sem_ch3.adb: Minor reformatting
7547
7548         * lib-load.adb: Minor reformatting
7549
7550         * sem_ch4.adb: Minor reformatting
7551
7552 2009-04-20  Robert Dewar  <dewar@adacore.com>
7553
7554         * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
7555         (equal values => False).
7556
7557 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
7558
7559         * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
7560         to null procedures can be inlined unconditionally.
7561
7562 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7563
7564         * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
7565         non-addressable parameter passed by reference, do not convert the
7566         actual if its type is already the nominal type, unless it is of
7567         self-referential size.
7568
7569 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
7570
7571         * gnat_ugn.texi: Fix typos.
7572
7573 2009-04-20  Robert Dewar  <dewar@adacore.com>
7574
7575         * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
7576         Validate_Unchecked_Warnings to suppress warnings about size or
7577         alignment or extra bits if either type involved has pragma Warnings
7578         (Off) set for the type entity.
7579
7580 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
7581
7582         * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
7583         a builtin type and give it a name.
7584
7585 2009-04-17  Diego Novillo  <dnovillo@google.com>
7586
7587         * gcc-interface/misc.c (gnat_expand_expr): Remove.
7588         (LANG_HOOKS_EXPAND_EXPR): Remove.
7589
7590 2009-04-17  Robert Dewar  <dewar@adacore.com>
7591
7592         * sem_ch3.adb: Minor reformatting
7593
7594 2009-04-17  Pascal Obry  <obry@adacore.com>
7595
7596         * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
7597
7598 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7599
7600         * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
7601         illegal constraints on type derived from formal discrete types.
7602
7603 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7604
7605         PR ada/35953
7606
7607         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7608         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7609         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
7610         g-socket.ads (GNAT.Sockets.Thin.C_Send,
7611         GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
7612         Replace calls to send(2) with equivalent sendto(2) calls.
7613         (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
7614         (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
7615         report an error in that case. Factor code common to the two versions
7616         (datagram and stream) in common routine Stream_Write.
7617
7618 2009-04-17  Robert Dewar  <dewar@adacore.com>
7619
7620         * exp_disp.adb: Minor reformatting
7621         Minor code reorganization (use Nkind_In)
7622
7623         * prepcomp.adb: Minor reformatting
7624
7625         * sem_ch3.adb: Minor reformatting
7626
7627         * sem_res.adb: Minor comment addition
7628
7629         * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
7630         for address clause
7631
7632         * lib-xref.adb (Generate_Reference): Exclude recursive calls from
7633         setting Is_Referenced
7634
7635         * types.ads: Minor reformatting
7636
7637 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
7638
7639         * gnat_ugn.texi: Initial documentation on binding generator.
7640
7641 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7642
7643         * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
7644         type extensions whose parent is a type with unknown discriminants.
7645
7646         * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
7647         aggregate has unknown discriminants, use the Underlying_Record_View to
7648         obtain the discriminants of the ancestor part.
7649
7650         * exp_disp.adb (Build_Dispatch_Tables): Types that are
7651         Underlying_Record_Views share the dispatching information of the
7652         original record extension.
7653
7654         * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
7655         discriminants, propagate dispach table information to the
7656         Underlying_Record_View.
7657
7658         * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
7659         discriminants and declaration is not a completion, generate
7660         Underlying_Record_View to provide proper discriminant information to
7661         the front-end and to gigi.
7662
7663 2009-04-17  Robert Dewar  <dewar@adacore.com>
7664
7665         * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
7666         s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
7667         s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
7668         g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
7669         s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
7670         s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
7671         g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
7672         s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
7673         g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
7674         s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
7675         s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
7676         s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
7677         s-conca3.ads: Remove unneeded pragma Warnings
7678
7679 2009-04-17  Robert Dewar  <dewar@adacore.com>
7680
7681         * g-moreex.adb: Add comments.
7682
7683         * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
7684
7685         * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
7686         Warnings (Off)
7687
7688         * prepcomp.adb: Add ??? comment
7689
7690         * a-tasatt.adb: Minor reformatting
7691
7692         * g-trasym-vms-alpha.adb: Add ??? comment
7693
7694         * g-trasym-vms-ia64.adb: Add ??? comment
7695
7696         * xoscons.adb: Minor reformatting
7697
7698         * s-tassta.adb: Minor reformatting
7699
7700         * s-scaval.adb: Add ??? comment
7701
7702         * stand.ads: Minor code clean up (remove junk with of Namet)
7703
7704         * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
7705         s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
7706         s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
7707         s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
7708         s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
7709         s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
7710         s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
7711         s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
7712         Warnings off pragmas.
7713
7714 2009-04-17  Pascal Obry  <obry@adacore.com>
7715
7716         * initialize.c: Fix test for reallocating the arguments array.
7717
7718 2009-04-17  Geert Bosch  <bosch@adacore.com>
7719
7720         * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
7721         conversion truncate only for decimal fixed point types.
7722
7723 2009-04-17  Jerome Lambourg  <lambourg@adacore.com>
7724
7725         * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
7726         reinitialized.
7727
7728 2009-04-17  Robert Dewar  <dewar@adacore.com>
7729
7730         * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
7731         Backwards_OK if either operand has an address clause.
7732
7733 2009-04-17  Pascal Obry  <obry@adacore.com>
7734
7735         * initialize.c: Code clean up, use realloc.
7736
7737 2009-04-17  Pascal Obry  <obry@adacore.com>
7738
7739         * initialize.c: Do not get Unicode command line if Unicode support not
7740         activated.
7741         Add support for wildcard expansion for Unicode parameters on Win32.
7742
7743         * mingw32.h: Add missing macros when Unicode support not activated.
7744
7745 2009-04-17  Javier Miranda  <miranda@adacore.com>
7746
7747         * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
7748         avoid generating code that references the Current_Master
7749         when compiling without tasks.
7750
7751 2009-04-17  Vincent Celier  <celier@adacore.com>
7752
7753         * prj-attr.adb: New project level attribute Target
7754         
7755         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
7756         attribute Target
7757         
7758         * prj.ads (Project_Configuration): New component Target
7759
7760 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7761
7762         * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
7763         case for the case of an aggregate component, the attach call for the
7764         result is actually needed.
7765
7766         * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
7767         an array aggregate must be disabled if the component type requires
7768         controlled actions.
7769
7770         * exp_ch3.adb: Minor reformatting
7771
7772 2009-04-17  Bob Duff  <duff@adacore.com>
7773
7774         * output.ads (Indent,Outdent): New procedures for indenting the output.
7775         (Write_Char): Correct comment -- LF _is_ allowed.
7776
7777         * output.adb (Indent,Outdent): New procedures for indenting the output.
7778         Keep track of the indentation level, and make sure it doesn't get too
7779         high.
7780         (Flush_Buffer): Insert spaces at the beginning of each line, if
7781         indentation level is nonzero.
7782         (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
7783         indentation level.
7784         (Set_Standard_Error,Set_Standard_Output): Remove superfluous
7785         "Next_Col := 1;".  Flush_Buffer does that.
7786
7787         * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
7788         controlled by the -gnatdc switch. It now occurs on entry/exit to the
7789         relevant analysis routines, and calls Indent/Outdent to make the
7790         indentation reflect the nesting level.  Add "helper" routines, since
7791         otherwise lots of "return;" statements would skip the debugging output.
7792
7793 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
7794
7795         * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
7796         s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
7797         s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
7798
7799 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7800
7801         * exp_aggr.adb: Minor code reorganization, no behaviour change.
7802
7803 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7804
7805         * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
7806         clause in a unit that is a package body or a subunit, when the previous
7807         clause appears in a spec or a parent.
7808
7809 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7810
7811         * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
7812
7813         * exp_ch7.adb: Minor reformatting
7814
7815 2009-04-17  Bob Duff  <duff@adacore.com>
7816
7817         * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
7818         allocator, check that the expression of the qualified expression obeys
7819         the constraints of the subtype of the qualified expression.
7820
7821 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7822
7823         * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
7824
7825 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7826
7827         * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
7828         aggregate, using context imposed by subtype mark in allocator.
7829
7830 2009-04-17  Pascal Obry  <obry@adacore.com>
7831
7832         * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
7833
7834 2009-04-17  Nicolas Roche  <roche@adacore.com>
7835
7836         * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
7837         argument length.
7838
7839 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
7840
7841         * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
7842         cover both calls and attribute references ("call" => "reference").
7843
7844 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7845
7846         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
7847         type for which Storage_Size is set to 0 is legal in a pure unit.
7848
7849 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7850
7851         * exp_ch7.adb: Minor reformatting
7852
7853 2009-04-17  Robert Dewar  <dewar@adacore.com>
7854
7855         * restrict.adb (Check_Restriction_No_Dependence): Don't check
7856         restriction if outside main extended source unit.
7857
7858         * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
7859         for parents of child units as well as the child unit itself.
7860
7861 2009-04-17  Bob Duff  <duff@adacore.com>
7862
7863         * checks.ads: Minor comment fix
7864
7865         * exp_aggr.ads: Minor comment fix
7866
7867 2009-04-17  Nicolas Roche  <roche@adacore.com>
7868
7869         * adaint.c: Improve cross compiler detection and handling.
7870
7871 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7872
7873         * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
7874
7875 2009-04-17  Pascal Obry  <obry@adacore.com>
7876
7877         * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
7878         CurrentCodePage.
7879
7880         * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
7881         value when no encoding form paramter is set on Text_IO services.
7882
7883         * adaint.c: CurrentCodePage new variable on Windows.
7884         Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7885         ones.
7886
7887         * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7888         ones.
7889
7890         * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
7891         environment variable value. Default is UTF-8.
7892
7893         * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
7894         fopen and freopen encoding parameter is now set to Unspecified.
7895         The default value is in this case UTF-8 (as it was before) but
7896         use the new macros that convert to/from the code page set
7897         at runtime (CurrentCodePage).
7898
7899         * s-fileio.adb: When no encoding specified use Unspecified value.
7900
7901 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7902
7903         * atree.adb, atree.ads: Remove dead code.
7904
7905 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
7906
7907         * gcc-interface/Make-lang.in: Update dependencies.
7908
7909 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7910
7911         * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
7912         illegal uses of incomplete types in formal parts and return types.
7913
7914         * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
7915         access to subprograms.
7916
7917         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
7918         Taft-amendment types as the return type of an access_to_function type.
7919
7920         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7921         type for access_to_subprograms. The check is performed on package exit.
7922
7923 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7924
7925         * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
7926
7927         * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
7928         
7929         * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
7930
7931         * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
7932         semantic units, because the handling of itypes in the copied tree
7933         requires semantic information that does not belong in atree.
7934
7935 2009-04-17  Robert Dewar  <dewar@adacore.com>
7936
7937         * par-ch6.adb: Minor reformatting
7938
7939         * prj.adb: Minor reformatting
7940
7941 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
7942
7943         * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
7944         on protected subprogram bodies, so exclude the case where Pf_Flags is
7945         Pf_Decl_Pbod from the error check.
7946
7947         * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
7948         indicators on subprograms in protected bodies, and proceed with parsing
7949         the subprogram.
7950
7951         * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
7952         subprograms from the check for primitiveness on subprograms with
7953         overriding indicators.
7954         (Check_Overriding_Indicator): Include protected subprograms in the
7955         style check for missing overriding indicators.
7956
7957 2009-04-17  Tristan Gingold  <gingold@adacore.com>
7958
7959         * init.c: Fix stack checking for x86 Darwin.
7960
7961 2009-04-17  Vincent Celier  <celier@adacore.com>
7962
7963         * prj-attr.adb: New project level attribute Object_File_Suffix
7964         (<language>).
7965         
7966         * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
7967         object file name
7968         (Process_Compiler): Process attribute Object_File_Suffix
7969
7970         * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
7971         platform suffix, when specified.
7972
7973         * prj.ads (Language_Config): New component Object_File_Suffix,
7974         defaulted to No_Name.
7975         (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
7976
7977         * snames.ads-tmpl: New standard name Object_File_Suffix
7978
7979 2009-04-17  Robert Dewar  <dewar@adacore.com>
7980
7981         * gnat_rm.texi: Add documentation about No_Streams restriction
7982
7983         * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
7984         attributes when checking No_Streams restriction.
7985
7986 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7987
7988         * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
7989
7990         * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
7991         missing calls to RE_Request_Destroy to deallocate request objects after
7992         use.
7993
7994 2009-04-17  Nicolas Setton  <setton@adacore.com>
7995
7996         * link.c: Fix support for passing a response file under Darwin.
7997
7998 2009-04-17  Emmanuel Briot  <briot@adacore.com>
7999
8000         * prj.adb (Free): new subprogram.
8001
8002 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
8003
8004         * sem_ch3.adb: additional initialization on incomplete subtypes.
8005         
8006         * sem_ch6.adb (Process_Formals): if the subprogram is in the private
8007         part and one of the formals is an incomplete tagged type, attach to
8008         list of private dependends of the type for later validation.
8009
8010         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
8011         primitive operations of a Taft-amendmment type.
8012
8013         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
8014         type. The check is performed on package exit, possibly after the
8015         subprogram is frozen.
8016
8017 2009-04-17  Vincent Celier  <celier@adacore.com>
8018
8019         * prj-nmsc.adb (Get_Directories): Get the object and exec directory
8020         before looking for source directories, but make sure that there are nil
8021         if they are not explicitely declared and there is explicitely no
8022         sources in the project.
8023
8024 2009-04-17  Pascal Obry  <obry@adacore.com>
8025
8026         * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
8027
8028         * init.c: Fix minor typo and style fix.
8029
8030 2009-04-17  Robert Dewar  <dewar@adacore.com>
8031
8032         * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
8033
8034         * sem_attr.adb (Analyze_Attribute, case Address): Use
8035         PE_Address_Of_Intrinsic.
8036
8037         * types.ads: Add PE_Address_Of_Intrinsic
8038
8039         * types.h: Add PE_Address_Of_Intrinsic
8040
8041 2009-04-17  Nicolas Setton  <setton@adacore.com>
8042
8043         * gcc-interface/Makefile.in: Under darwin, build shared libraries
8044         with install_name starting with "@rpath/".
8045
8046 2009-04-17  Nicolas Setton  <setton@adacore.com>
8047
8048         * link.c: Add darwin section
8049
8050 2009-04-16  Robert Dewar  <dewar@adacore.com>
8051
8052         * g-pehage.adb: Minor reformatting
8053
8054         * sem_ch12.adb: Minor reformatting
8055
8056         * exp_dist.adb: Minor reformatting
8057
8058         * bindgen.adb: Minor style fixes.
8059
8060 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8061
8062         * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
8063         indexed components to the case where the prefix is a static string
8064         literal.
8065
8066 2009-04-16  Javier Miranda  <miranda@adacore.com>
8067
8068         * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
8069         objects avoid any further expansion of the expression initializing the
8070         object.
8071
8072 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8073
8074         * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
8075         that hides an outer homograph, make that homograph invisible when
8076         analyzing the actuals, to to prevent illegal direct visibility on it.
8077
8078 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
8079
8080         * g-pehage.adb (Initialize): Fix off-by-one error.
8081
8082 2009-04-16  Tristan Gingold  <gingold@adacore.com>
8083
8084         * init.c: Detect real stack overflow on Darwin.
8085
8086         * system-darwin-x86.ads: Use stack probing on darwin x86.
8087
8088 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8089
8090         * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
8091         take the address of an intrinsic subprogram.
8092
8093 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
8094
8095         * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
8096         for the targets where GNAT.Traceback.Symbolic is not supported.
8097
8098 2009-04-16  Vincent Celier  <celier@adacore.com>
8099
8100         * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
8101
8102         * g-trasym.ads: Update comments.
8103
8104 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
8105
8106         * tracebak.c (STOP_FRAME): Verify validity of the current address
8107         before dereferencing.
8108
8109 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8110
8111         * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
8112         the original location of the index expressions and the index subtypes,
8113         to prevent spurious out-of-scope references in gigi.
8114
8115 2009-04-16  Tristan Gingold  <gingold@adacore.com>
8116
8117         * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
8118         Add support for stack checking on darwin.
8119
8120 2009-04-16  Vincent Celier  <celier@adacore.com>
8121
8122         * prj-attr.adb: New attribute Runtime_Source_Dir
8123
8124         * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
8125         attribute Runtime_Source_Dir.
8126         (Check_Naming_Schemes): Give default values to out parameters to avoid
8127         invalid data.
8128
8129         * prj.ads (Language_Config): New component Runtime_Source_Dir
8130
8131         * snames.ads-tmpl: New standard name Runtime_Source_Dir
8132
8133 2009-04-16  Pascal Obry  <obry@adacore.com>
8134
8135         * adaint.h, adaint.c (__gnat_rmdir): New routine.
8136         Simple wrapper routines used to convert to proper encoding on
8137         Windows.
8138
8139         * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
8140
8141         * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
8142         twice.
8143
8144 2009-04-16  Pascal Obry  <obry@adacore.com>
8145
8146         * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
8147
8148 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8149
8150         * snames.ads-tmpl (Name_Defined): New predefined name for use by the
8151         integrated preprocessor.
8152
8153         * prep.ads, prep.adb (Setup_Hooks): New subprogram.
8154         (Initialize): Split into two subprograms, Initialize (to be called
8155         prior to compiler command line processing) and Setup_Hooks (to be called
8156         later on when the first source file is loaded).
8157
8158         * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
8159         Add call to Prep.Initialize.
8160
8161         * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
8162         to Prep.Setup_Hooks.
8163
8164 2009-04-16  Pascal Obry  <obry@adacore.com>
8165
8166         * adaint.h, adaint.c (__gnat_chdir): New routine.
8167         Simple wrapper routines used to convert to proper encoding on
8168         Windows.
8169
8170         * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
8171
8172         * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
8173
8174 2009-04-16  Quentin Ochem  <ochem@adacore.com>
8175
8176         * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
8177         of Source.Init.
8178
8179 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
8180
8181         * a-convec.ads (Is_Empty): Mark inline.
8182
8183 2009-04-16  Nicolas Roche  <roche@adacore.com>
8184
8185         * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
8186
8187 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8188
8189         * prepcomp.adb: Minor reformatting
8190
8191 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
8192
8193         * sem_prag.adb (Process_Import_Or_Interface): With .NET,
8194         Access_Subprogram types can also be imported.
8195         (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
8196         names.
8197
8198 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8199
8200         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8201         preserve homonym chain when the declaration is rewritten into a
8202         renaming declaration, in order to preserve visibility structure.
8203
8204 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
8205
8206         * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
8207         taken into account for VM targets.
8208
8209 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
8210
8211         * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
8212         Year_Week_In_Year.
8213         (Year_Week_In_Year): New routine which contains the original code from
8214         Week_In_Year. Add the missing special case for January 1st falling on
8215         a Monday.
8216
8217 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8218
8219         * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
8220         actual type, use the base type to build the To_Any function.
8221         (Build_From_Any_Function): Remove junk, useless subtype conversion.
8222
8223 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8224
8225         * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
8226         restrict.adb: Minor code reorganization (use
8227         Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
8228
8229 2009-04-16  Bob Duff  <duff@adacore.com>
8230
8231         * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
8232         unused.
8233
8234 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8235
8236         * sem_ch4.adb: Minor reformatting
8237
8238         * adaint.c: Remove junk duplicated code.
8239
8240         * sem_ch3.adb: Minor reformatting
8241
8242         * exp_dist.adb: Minor comment rewording
8243
8244 2009-04-16  Robert Dewar  <dewar@adacore.com>
8245
8246         * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
8247         used together.
8248
8249 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8250
8251         * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
8252         usable before calling Add_One_Interp, to resolve spurious ambiguities.
8253
8254 2009-04-16  Robert Dewar  <dewar@adacore.com>
8255
8256         * Make-lang.in: Add entries for s-conca?.o
8257
8258         * Makefile.rtl: Add entries for s-conca?
8259
8260         * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
8261         of concatenation expansion
8262
8263         * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
8264         string cases instead of expanding assignments inline.
8265
8266         * opt.ads (Optimize_Size): New flag
8267
8268         * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
8269         s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
8270         s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
8271         s-conca9.adb, s-conca9.ads: New file.
8272
8273 2009-04-16  Robert Dewar  <dewar@adacore.com>
8274
8275         * exp_ch6.adb: Add comments
8276
8277         * rtsfind.ads: Add entries for s-conca? routines
8278
8279 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
8280
8281         * gcc-interface/Make-lang.in: Update dependencies.
8282
8283         * gcc-interface/Makefile.in: Update translation for vms.
8284
8285 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8286
8287         * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
8288         and made global, to be used when installing parents of a child
8289         instance, to provide mappings for entities declared in formal packages
8290         of ancestor units. Now called from Install_Formal_Packages.
8291
8292 2009-04-16  Doug Rupp  <rupp@adacore.com>
8293
8294         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
8295         notation for clarity.
8296
8297         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8298         s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
8299         s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
8300         (Initialize): Initialize Known_Tasks with Environment task.
8301
8302         * s-taskin.ads (Task_States): Move new states to end for the sake of
8303         GDB compatibility.
8304
8305         * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
8306
8307 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
8308
8309         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
8310         operation has an inline pragma, propagate the flag to the internal
8311         unprotected subprogram.
8312
8313 2009-04-16  Doug Rupp  <rupp@adacore.com>
8314
8315         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
8316         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb, 
8317         s-taprop-hpux-dce.adb, s-taprop-posix.adb
8318         (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
8319
8320         * s-taprop-vms.adb (Enter_Task): Likewise.
8321         (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
8322
8323         * s-tassta.adb (Activate_Tasks): After task creation set state to
8324         Activating, vice Runnable. Initialize Known_Tasks, moved here from
8325         s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
8326         Set state to Runnable after above.
8327         (Task_Wrapper): Set Debug_Event_Run. In exception block set
8328         Debug_Event_Terminated.
8329
8330         * s-taskin.ads (Task_States): Add new states Activiting and
8331         Activator_Delay_Sleep.
8332         (Bit_Array, Debug_Event_Array): New types.
8333         (Global_Task_Debug_Event_Set: New flag.
8334         (Common_ATCB): New field Debug_Events.
8335
8336         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
8337
8338         * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
8339         Activator_Sleep.
8340
8341         * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
8342         Activating and when Acceptor_Delay_Sleep.
8343
8344         * s-tasdeb.ads: Add constants for Debug_Events.
8345         (Debug_Event_Kind_Type): New subtype.
8346         (Signal_Debug_Event): New subprogram.
8347
8348         * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
8349
8350 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8351
8352         * sem_elim.adb: Minor reformatting
8353
8354         * freeze.adb: Minor reformatting
8355
8356         * exp_ch4.adb: Minor reformatting
8357
8358 2009-04-16  Emmanuel Briot  <briot@adacore.com>
8359
8360         * prj-nmsc.adb (Path_Name_Of): fix memory leak
8361
8362 2009-04-16  Robert Dewar  <dewar@adacore.com>
8363
8364         * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
8365
8366 2009-04-16  Vincent Celier  <celier@adacore.com>
8367
8368         * fmap.adb (Initialize): Show the current line when the mapping file
8369         is detected as "incorrectly formatted".
8370
8371 2009-04-16  Robert Dewar  <dewar@adacore.com>
8372
8373         * sem_ch12.adb: Minor reformatting
8374
8375         * sem_ch5.adb: Minor comment addition
8376
8377         * sem_util.adb: Minor reformatting
8378
8379         * sinput-p.adb: Minor reformatting
8380         Add missing pragma Warnings (On)
8381
8382 2009-04-16  Ed Falis  <falis@adacore.com>
8383
8384         * s-vxwext-kernel.adb: (ERROR): deleted unused constant
8385
8386 2009-04-16  Vincent Celier  <celier@adacore.com>
8387
8388         * ali-util.adb: Minor comment spelling error fix
8389
8390 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
8391
8392         * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
8393         generate an assignment loop in case of overlap.
8394
8395 2009-04-16  Olivier Hainque  <hainque@adacore.com>
8396
8397         * gnat_ugn.texi (gnatmem description): Make it explicit that
8398         gnatmem is designed to work in association with static runtime
8399         library only.
8400
8401 2009-04-16  Thomas Quinot  <quinot@adacore.com>
8402
8403         * sem_type.adb: Minor reformatting
8404
8405 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
8406
8407         * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
8408         concerning return codes of gettimeofday and return value check.
8409
8410 2009-04-16  Ed Falis  <falis@adacore.com>
8411
8412         * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
8413         body can be renaming of imported routines.
8414
8415 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
8416
8417         * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
8418         targeted fashion.
8419
8420 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8421
8422         * exp_ch9.adb: Comment improvements.
8423         (Build_Entry_Family_Name): Add parentheses around the index of a entry
8424         family member.
8425
8426 2009-04-15  Bob Duff  <duff@adacore.com>
8427
8428         * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
8429         "while X /= null loop" where X is unchanged inside the loop. We were
8430         not warning in this case, because of the pointers -- we feared that the
8431         loop variable could be updated via a pointer, if there are any pointers
8432         around the place. But that is impossible in this case.
8433
8434         * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
8435         the case of dereferences. In X.all, X cannot be an l-value. We now
8436         catch that case (and implicit dereferences, too).
8437
8438 2009-04-15  Vincent Celier  <celier@adacore.com>
8439
8440         * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
8441
8442 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8443
8444         * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
8445         From code reading.
8446         (Analyze_Package_Instantiation): If generic unit in child instance is
8447         the same as generic unit in parent instance, look for an outer homonym
8448         to locate the desired generic.
8449
8450 2009-04-15  Bob Duff  <duff@adacore.com>
8451
8452         * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
8453         warnings unless the loop comes from source, because checking generated
8454         loops is a waste of time, and makes it harder to debug
8455         Check_Infinite_Loop_Warning.
8456
8457         * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
8458         tested in the while loop is a renaming, do not warn. Otherwise, we get
8459         false alarms, because it's usually renaming something that we can't
8460         deal with (an indexed component, a global variable, ...).
8461
8462         * gnat_rm.texi: Fix typo
8463
8464 2009-04-15  Thomas Quinot  <quinot@adacore.com>
8465
8466         * sem_ch6.adb: Minor reformatting
8467
8468 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8469
8470         * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
8471         immediate parent of the controlled function call is a component
8472         association.
8473
8474 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8475
8476         * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
8477         corresponding class-wide type is also in use.
8478
8479 2009-04-15  Thomas Quinot  <quinot@adacore.com>
8480
8481         * frontend.adb: Minor comment fix
8482
8483 2009-04-15  Robert Dewar  <dewar@adacore.com>
8484
8485         * gnatchop.adb (BOM_Length): New global variable
8486         (Write_Unit): Add new parameter Write_BOM
8487         (Write_Chopped_Files): Check for BOM and set Write_BOM for call
8488         to Write_Unit
8489
8490         * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
8491
8492 2009-04-15  Geert Bosch  <bosch@adacore.com>
8493
8494         * system-mingw-x86_64.ads, system-darwin-x86_64.ads
8495         (Backend_Overflow_Checks): Set to True.
8496
8497 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
8498
8499         * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
8500         keyword is given in a record extension.
8501
8502 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8503
8504         * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
8505         of a controlled function call in the context of a record aggregate.
8506         This does not apply to array aggregates since the call will be expanded
8507         into assignments.
8508
8509 2009-04-15  Ed Falis  <falis@adacore.com>
8510
8511         * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
8512         s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
8513         s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
8514         s-osinte-vxworks* and s-vxwext*.
8515
8516 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
8517
8518         * gcc-interface/Make-lang.in: Update dependencies.
8519
8520         * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
8521         and s-vxwext*.
8522
8523 2009-04-15  Robert Dewar  <dewar@adacore.com>
8524
8525         * sem_ch13.adb (Unchecked_Conversions): Store source location instead
8526         of node for location for warning messages.
8527
8528         * gnatchop.adb: Minor reformatting
8529
8530 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8531
8532         * exp_ch6.adb: additional guard for renaming declarations for in
8533         parameters of an array type.
8534
8535 2009-04-15  Robert Dewar  <dewar@adacore.com>
8536
8537         * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
8538         in case they were rewritten by expander (Force_Evaluation).
8539
8540         * targparm.adb (Get_Target_Parameters): Correct check for
8541         Suppress_Exception_Locations.
8542
8543 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8544
8545         * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
8546         inlined  is of an array type that is not bit-packed, use a renaming
8547         declaration to capture its value, rather than a constant declaration.
8548
8549 2009-04-15  Robert Dewar  <dewar@adacore.com>
8550
8551         * rtsfind.adb: Minor reformatting.
8552
8553 2009-04-15  Emmanuel Briot  <briot@adacore.com>
8554
8555         * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
8556         Restore, and free the saved context.
8557
8558 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
8559
8560         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
8561         for illegal private extension from a synchronized interface parent in
8562         front of check for illegal limited extension so that limited extension
8563         from a synchronized interface will be rejected.
8564         (Check_Ifaces): Check that a private extension that has a synchronized
8565         interface as a progenitor must be explicitly declared synchronized.
8566         Also check that a record extension cannot derive from a synchronized
8567         interface.
8568
8569 2009-04-15  Pascal Obry  <obry@adacore.com>
8570
8571         * adaint.h (__gnat_unlink): Add spec.
8572         (__gnat_rename): Likewise.
8573
8574 2009-04-15  Vincent Celier  <celier@adacore.com>
8575
8576         * prj-nmsc.adb: Minor spelling error corrections in error messages
8577
8578 2009-04-15  Robert Dewar  <dewar@adacore.com>
8579
8580         * sinfo.ads: Minor comment update
8581
8582         * opt.ads: Minor comment updates
8583
8584         * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
8585         modular type.
8586
8587 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8588
8589         * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
8590         that generates the code needed to update a dispatch table when a
8591         primitive operation is declared with a subprogram body without previous
8592         spec. Insertion of the generated code is responsibility of the caller.
8593         (Make_DT): When building static tables, append the code created by
8594         Register_Primitive to update a secondary table after it has been
8595         constructed.
8596
8597         * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
8598
8599         * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
8600         on an overriding operation that implements an interface operation only
8601         if not building static dispatch tables.
8602
8603 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8604
8605         * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
8606         does not cause overflow when converted to Duration. Use the safe value
8607         as the maximum allowable time delay..
8608
8609 2009-04-15  Jerome Lambourg  <lambourg@adacore.com>
8610
8611         * g-comlin.adb (Set_Command_Line): When adding a switch with attached
8612         parameter, specify that the delimiter is NUL, otherwise "-j2" will be
8613         translated to "-j 2".
8614
8615 2009-04-15  Bob Duff  <duff@adacore.com>
8616
8617         * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
8618         with_clauses, to avoid code duplication. Change this processing so we
8619         always add a with_clause on the main unit if needed.
8620
8621 2009-04-15  Pascal Obry  <obry@adacore.com>
8622
8623         Add support for Win32 native encoding for delete/rename routines.
8624         
8625         * adaint.c (__gnat_unlink): New routine.
8626         (__gnat_rename): New routine.
8627         Simple wrapper routines used to convert to proper encoding on
8628         Windows.
8629
8630         * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
8631         call to the C library.
8632
8633         * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
8634
8635 2009-04-15  Robert Dewar  <dewar@adacore.com>
8636
8637         * s-tassta.adb: Minor reformatting
8638
8639 2009-04-15  Robert Dewar  <dewar@adacore.com>
8640
8641         * frontend.adb (Frontend): Set proper default for
8642         Warn_On_Non_Local_Exception.
8643
8644         * opt.ads (Exception_Handler_Encountered): New flag
8645         (No_Warn_On_Non_Local_Exception): New flag
8646
8647         * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
8648
8649         * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8650         (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8651
8652 2009-04-15  Cyrille Comar  <comar@adacore.com>
8653
8654         * s-tassta.adb, a-exextr.adb, a-elchha.adb
8655         (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
8656         message when exception traces are active since it would generate
8657         redundant information.
8658         (Exception_Traces.Notify_Exception): put message output by a critical
8659         section to avoid unsynchronized output.
8660         (Trace_Unhandled_Exception_In_Task): put message output by a critical
8661         section to avoid unsynchronized output.
8662
8663 2009-04-15  Emmanuel Briot  <briot@adacore.com>
8664
8665         * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
8666         (Free): New subprogram.
8667
8668 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8669
8670         * a-calend.adb: Add new constant Nanos_In_Four_Years.
8671         (Formatting_Operations.Time_Of): Change the way four year chunks of
8672         nanoseconds are added to the intermediate result.
8673
8674 2009-04-15  Nicolas Setton  <setton@adacore.com>
8675
8676         * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
8677         does not need to wait for a carriage return.
8678
8679 2009-04-15  Tristan Gingold  <gingold@adacore.com>
8680
8681         * bindgen.adb: Do not generate adafinal if No_Finalization restriction
8682         is set.
8683
8684 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8685
8686         * freeze.adb (Freeze_Entity): improve error message for improper use of
8687         incomplete types.
8688         Diagnose additional illegal uses of incomplete types in formal parts.
8689         appearing in formal parts.
8690
8691         * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
8692
8693 2009-04-15  Robert Dewar  <dewar@adacore.com>
8694
8695         * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
8696
8697 2009-04-15  Nicolas Roche  <roche@adacore.com>
8698
8699         * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
8700         current thread.
8701
8702         * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
8703
8704         * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
8705
8706 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8707
8708         * sem_ch4.adb: improve error message on exponentiation.
8709
8710 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
8711
8712         * a-calend.adb: Move constant Epoch_Offset from package
8713         Conversion_Operations to top level.
8714         (Delay_Operations.To_Duration): Define a constant which represents
8715         "end of time" and use it as a guard against very distant delay dates.
8716         Protect the code against overflow when performing the origin shift to
8717         Unix time.
8718
8719 2009-04-15  Robert Dewar  <dewar@adacore.com>
8720
8721         * sem_prag.adb: Minor reformatting.
8722
8723         * sem_type.adb: Minor reformatting
8724
8725 2009-04-15  Javier Miranda  <miranda@adacore.com>
8726
8727         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
8728         support to check eliminated subprograms.
8729
8730         * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
8731
8732         * sem_elim.adb (Set_Eliminated): Add support for elimination of
8733         dispatching subprograms.
8734
8735         * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
8736         operations. Initialize with "null" the slots of eliminated dispaching
8737         primitives.
8738         (Write_DT): Add output for eliminated primitives.
8739
8740         * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
8741
8742 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8743
8744         * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
8745         the second is redundant, regardless of scopes.
8746
8747 2009-04-15  Vincent Celier  <celier@adacore.com>
8748
8749         * prj-nmsc.adb (Get_Directories): Check for sources before checking
8750         the object directory as when there are no sources, they may not be any
8751         object directory.
8752
8753         * make.adb (Gnatmake): Do not attempt to get the path name of the exec
8754         directory, when there are no exec directory.
8755
8756 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8757
8758         * sem_type.adb (Remove_Conversions): In order to resolve spurious
8759         ambiguities, refine removal of universal interpretations from complex
8760         expressions with literal arguments, when some numeric operators have
8761         been declared abstract.
8762
8763 2009-04-15  Ed Falis  <falis@adacore.com>
8764
8765         * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
8766         and backward compatibility for targets using probing for stack overflow
8767
8768 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8769
8770         * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
8771         after any declaration, including renaming declarations.
8772
8773 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
8774
8775         * gcc-interface/Make-lang.in: Update dependencies.
8776
8777         * gcc-interface/Makefile.in: Fix VxWorks target pairs.
8778         Update xenomai target pairs.
8779
8780 2009-04-15  Javier Miranda  <miranda@adacore.com>
8781
8782         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
8783
8784         * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
8785         functions returning anonymous access to class-wide limited types. Mark
8786         also the containing scope as a task master.
8787
8788         * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
8789         limited-withed packages. Required to restore their visibility after
8790         processing packages associated with implicit with-clauses.
8791
8792         * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
8793         associated with return statements because this work is now done by
8794         Check_Anonymous_Return.
8795         (Build_Master): Code cleanup.
8796
8797 2009-04-15  Thomas Quinot  <quinot@adacore.com>
8798
8799         * sem_warn.ads: Minor reformatting
8800
8801 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8802
8803         * sem_ch3.adb: better error message for illegal interfaces
8804
8805         * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
8806         formal is an incomplete type from a limited_with clause.
8807
8808 2009-04-15  Vincent Celier  <celier@adacore.com>
8809
8810         * prj-nmsc.adb (Locate_Directory): New Boolean parameter
8811         Externally_Built indicating if the project is externally built. If it
8812         is, and --subdirs is specified, but the subdir does not exist, look
8813         for the specified directory, without the subdir.
8814
8815 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
8816
8817         * a-tasatt.adb: Fix typo, plus minor reformatting
8818
8819         * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
8820
8821         * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
8822
8823 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8824
8825         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
8826         private extension whose parent is a synchronized interface carries an
8827         explicit synchronized keyword.
8828
8829 2009-04-15  Thomas Quinot  <quinot@adacore.com>
8830
8831         * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
8832         instantiate generic shared object package with the corresponding
8833         record type.
8834
8835 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
8836
8837         * system-linux-sparc.ads: Remove obsolete entries.
8838
8839 2009-04-15  Thomas Quinot  <quinot@adacore.com>
8840
8841         * s-tasuti.ads: Add ??? comment
8842
8843 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
8844
8845         * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
8846         type even if the designated type comes from a limited_with clause, to
8847         ensure that the symbol for the finalization list of the access type is
8848         created.
8849
8850 2009-04-10  Robert Dewar  <dewar@adacore.com>
8851
8852         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
8853         for warning suppression.
8854
8855 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8856
8857         * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
8858         identical, there is no redudancy to check.
8859
8860 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
8861
8862         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
8863         calls initializing SS_Allocator (which is initialized in following
8864         code).
8865         (Expand_Simple_Function_Return): Add comment about False value for
8866         Comes_From_Source on secondary-stack allocator.
8867
8868         * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
8869         (Build_Entry_Name): Add comment.
8870
8871 2009-04-10  Robert Dewar  <dewar@adacore.com>
8872
8873         * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
8874
8875         * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
8876         bound tested, since this is now done more generally in Sem_Res.
8877
8878         * sem_res.adb (Resolve_Comparison_Op): Add call to
8879         Check_Lower_Bound_Tested.
8880         (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
8881
8882         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
8883         (Low_Bound_Tested): New name for Low_Bound_Known flag
8884
8885         * exp_ch5.adb: Minor reformatting
8886
8887         * exp_ch4.adb:
8888         Add comments on copying the Comes_From_Source flag for allocators
8889
8890         * sinfo.ads:
8891         Add comments on copying the Comes_From_Source flag for allocators
8892
8893         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
8894         Comes_From_Source flag from old allocator to new one.
8895
8896 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8897
8898         * sem_ch6.ads: Address missing documentation query
8899
8900 2009-04-10  Vincent Celier  <celier@adacore.com>
8901
8902         * prj-attr.adb:
8903         Add new Linker attributes Max_Command_Line_Length, Response_File_Format
8904         and Response_File_Switches.
8905
8906         * prj-nmsc.adb (Process_Linker): Process new attributes
8907         Max_Command_Line_Length, Response_File_Format and
8908         Response_File_Switches.
8909
8910         * prj.ads (Response_File_Format): New enumeration type
8911         (Project_Configuration): New componants Max_Command_Line_Length,
8912         Resp_File_Format and Resp_File_Options.
8913
8914         * snames.ads-tmpl: Add new standard names for linking response files
8915         for gprbuild: GNU, None, Object_List, Option_List,
8916         Max_Command_Line_Length, Response_File_Format and
8917         Response_File_Switches.
8918
8919 2009-04-10  Geert Bosch  <bosch@adacore.com>
8920
8921         * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
8922         system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
8923         system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
8924         system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
8925         system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
8926         system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
8927         system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
8928         system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
8929         system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
8930         system-vxworks-arm.ads, system-vxworks-m68k.ads,
8931         system-vxworks-mips.ads, system-vxworks-ppc.ads,
8932         system-vxworks-sparcv9.ads, system-vxworks-x86.ads
8933         (Backend_Overflow_Checks): Set to True.
8934
8935 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8936
8937         * exp_attr.adb: Minor reformatting
8938
8939 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8940
8941         * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
8942         analyze the expression for a postcondition, even if the compiler mode
8943         is Generate_Code.
8944
8945 2009-04-10  Robert Dewar  <dewar@adacore.com>
8946
8947         * sem_aux.adb: Minor reformatting
8948
8949 2009-04-10  Ed Falis  <falis@adacore.com>
8950
8951         * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
8952
8953         * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
8954
8955 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8956
8957         * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
8958         undocumented formal.
8959         Minor reformatting
8960
8961         * a-direio.ads: Fix typo in comment
8962
8963         * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
8964         errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
8965         Use uniform phrasing for comment at start of subprogram body.
8966
8967         * xsnamest.adb: Add note to explain why we use specific names for the
8968         newly generated files instead of generating snames.{ads,adb,h} directly
8969
8970 2009-04-10  Sergey Rybin  <rybin@adacore.com>
8971
8972         * vms_data.ads:
8973         Add qualifier for new gnatstub option '--no-exception'
8974
8975         * gnat_ugn.texi:
8976         Add the description of the new gnatstub option '--no-exception'
8977
8978 2009-04-10  Robert Dewar  <dewar@adacore.com>
8979
8980         * rtsfind.adb: Minor reformatting
8981
8982 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8983
8984         * sem_disp.adb: Minor reformatting.
8985         Add comment pointing to RM clause for the case of warning against a
8986         (failed) attempt at declaring a primitive operation elsewhere than in a
8987         package spec.
8988
8989 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8990
8991         * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
8992         an actual for a previous formal package of the current instance.
8993
8994 2009-04-10  Bob Duff  <duff@adacore.com>
8995
8996         * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
8997         them first, rather than on the extended main unit.
8998
8999 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9000
9001         * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
9002         specification of full view carries a null exclusion indicator, create
9003         an itype for it, to check for conformance with partial view.
9004
9005 2009-04-10  Bob Duff  <duff@adacore.com>
9006
9007         * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
9008
9009         * rtsfind.adb: Minor comment changes, and remove useless code.
9010
9011         * sinfo.ads: Add ??? comment.
9012
9013 2009-04-10  Vincent Celier  <celier@adacore.com>
9014
9015         * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
9016
9017 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9018
9019         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
9020         type is a synchronized type, retrieve tag information from the
9021         corresponding record, which has the dispatch table link.
9022
9023 2009-04-10  Jerome Lambourg  <lambourg@adacore.com>
9024
9025         * g-comlin.adb (Group_Analysis): Take care of switches that might be
9026         decomposed afterwards, but are present as-is in the command line
9027         configuration, and thus should be kept as-is.
9028
9029 2009-04-10  Robert Dewar  <dewar@adacore.com>
9030
9031         * gnat_rm.texi: Document that postconditions are tested on implicit
9032         returns.
9033
9034         * sem_aux.adb: Minor reformatting
9035
9036 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
9037
9038         * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
9039         setting Etype.
9040         
9041         * par-ch3.adb (P_Access_Type_Definition): Set new attribute
9042         Null_Exclusion_In_Return_Present when an access-to-function type has a
9043         result type with an explicit not null.
9044
9045         * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
9046         given on the result type, then create a null-excluding itype for the
9047         function.
9048
9049         * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
9050         the case where a null exclusion is imposed on a named access type.
9051         (Analyze_Subprogram_Specification): Push and pop the scope of the
9052         function around the call to Analyze_Return_Type in the case of no
9053         formals, for consistency with handling when formals are present
9054         (Process_Formals does this). Ensures that any itype created for the
9055         return type will be associated with the proper scope.
9056
9057         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
9058         exclusion is given on a generic function's result type, then create a
9059         null-excluding itype for the generic function.
9060         (Instantiate_Object): Set Null_Exclusion_Present of a constant created
9061         for an actual for a formal in object according to the setting on the
9062         formal. Ensures null exclusion checks are done when the association is
9063         elaborated.
9064
9065         * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
9066         N_Access_Function_Definition.
9067
9068         * sinfo.adb: Add Get_ and Set_ operations for
9069         Null_Exclusion_In_Return_Present.
9070
9071 2009-04-10  Bob Duff  <duff@adacore.com>
9072
9073         * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
9074         call to the _Postconditions procedure in the case of implicit returns
9075         from analysis to expansion. This eliminates some duplicated code. Use
9076         the Postcondition_Proc to find the identity of this procedure during
9077         expansion.
9078
9079 2009-04-10  Robert Dewar  <dewar@adacore.com>
9080
9081         * sem_ch6.adb: Minor code clean up.
9082
9083         * einfo.ads, sem_attr.adb: Minor comment fixes.
9084
9085 2009-04-10  Robert Dewar  <dewar@adacore.com>
9086
9087         * sem_ch8.adb: Minor reformatting
9088
9089 2009-04-10  Robert Dewar  <dewar@adacore.com>
9090
9091         * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
9092         procedures.
9093
9094         * sem_ch6.adb: Minor code clean up.
9095
9096 2009-04-10  Robert Dewar  <dewar@adacore.com>
9097
9098         * mlib-tgt-specific-xi.adb: Minor reformatting
9099
9100 2009-04-10  Bob Duff  <duff@adacore.com>
9101
9102         * einfo.ads: Minor comment fixes
9103
9104 2009-04-10  Vincent Celier  <celier@adacore.com>
9105
9106         * snames.ads-tmpl: Remove names that are no longer used in the
9107         Project Manager.
9108         Mark specifically those that are used only in gprbuild
9109
9110 2009-04-10  Eric Botcazou  <ebotcazou@adacore.com>
9111
9112         * init.c: Adjust EH support code on Alpha/Tru64.
9113
9114 2009-04-10  Bob Duff  <duff@adacore.com>
9115
9116         * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
9117         procedure on every path that could return implicitly (not via a return
9118         statement) from a procedure.
9119
9120 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9121
9122         * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
9123         valid scope for a task declarations and therefore for a master id.
9124
9125 2009-04-10  Robert Dewar  <dewar@adacore.com>
9126
9127         * sem_aux.adb: Minor reformatting
9128
9129 2009-04-10  Vincent Celier  <celier@adacore.com>
9130
9131         * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
9132         True.
9133         (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
9134         (Set_Obsolescent_Check): New procedure to change the value of
9135         Obsolescent_Check_Flag.
9136
9137         * scn.ads (Set_Obsolescent_Check): New procedure to control
9138         Obsolescent_Check.
9139
9140         * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
9141         obsolescent features while preprocessing.
9142
9143 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9144
9145         * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
9146         generated files on all platforms.
9147
9148 2009-04-10  Robert Dewar  <dewar@adacore.com>
9149
9150         * sem_aux.adb: Minor reformatting
9151
9152 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9153
9154         * sem_ch3.adb (Access_Definition): Handle properly the case of a
9155         protected function with formals that returns an anonymous access type.
9156
9157 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9158
9159         * sem_disp.adb: Minor reformatting
9160
9161 2009-04-10  Vasiliy Fofanov  <fofanov@adacore.com>
9162
9163         * seh_init.c: Do not use the 32-bit specific implementation of
9164         __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
9165         version TBD).
9166
9167 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
9168
9169         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
9170         a '/' at the end so we better use the complete target name to determine
9171         whether it is a PowerPC 55xx target.
9172
9173 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9174
9175         * sem_eval.adb: Minor reformatting
9176
9177 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9178
9179         * snames.h, snames.ads, snames.adb: Remove files, now generated from
9180         templates.
9181
9182         * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
9183         above.
9184
9185         * xsnamest.adb: New file.
9186
9187         * gcc-interface/Make-lang.in: New target for automated generation of
9188         snames.ads, snames.adb and snames.h
9189
9190 2009-04-10  Tristan Gingold  <gingold@adacore.com>
9191
9192         * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
9193         avoid compile time warnings.
9194         Do not add gcc/config in include search list while compiling the RTS.
9195         Pragma Thread_Local_Storage is available on any target.
9196
9197 2009-04-10  Bob Duff  <duff@adacore.com>
9198
9199         * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
9200
9201 2009-04-10  Tristan Gingold  <gingold@adacore.com>
9202
9203         * init.c: Install signal handler on Darwin.
9204
9205 2009-04-10  Robert Dewar  <dewar@adacore.com>
9206
9207         * sem_prag.adb: Minor reformatting
9208
9209         * exp_util.adb (Make_Non_Empty_Check): New function
9210         (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
9211         (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
9212
9213 2009-04-10  Arnaud Charlet  <charlet@adacore.com>
9214
9215         * make.adb, gnatlink.adb: Rename JGNAT toolchain.
9216
9217 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
9218
9219         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
9220         tool prefix for AVR and PowerPC 55xx targets.
9221
9222 2009-04-10  Robert Dewar  <dewar@adacore.com>
9223
9224         * sem_warn.adb (Within_Postcondition): New function
9225         (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
9226
9227 2009-04-10  Robert Dewar  <dewar@adacore.com>
9228
9229         * sem_warn.adb: Minor reformatting
9230
9231         * make.adb: Minor reformatting.
9232
9233 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
9234
9235         * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
9236         entity and the scope is a subprogram, retrieve the Sloc of the
9237         subprogram's body rather than using the sloc of the spec, for better
9238         line-stepping behavior in gdb.
9239         (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
9240         controller, use the Sloc of the first declaration of the containing list
9241         rather than that of the node that triggered creation of the list
9242         controller.
9243
9244 2009-04-10  Vincent Celier  <celier@adacore.com>
9245
9246         * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
9247         to avoid gcc warning.
9248
9249 2009-04-10  Robert Dewar  <dewar@adacore.com>
9250
9251         * g-comlin.adb: Add ??? comment
9252
9253 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9254
9255         * sem_warn.adb (Check_Unused_Withs): Do not emit message about
9256         unreferenced entities for a package with no visible declarations.
9257
9258 2009-04-10  Robert Dewar  <dewar@adacore.com>
9259
9260         * exp_ch9.adb: Minor reformatting
9261
9262 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9263
9264         * sem_prag.adb: Minor reformatting
9265
9266 2009-04-10  Vincent Celier  <celier@adacore.com>
9267
9268         * prj-nmsc.adb:
9269         (Check_Library_Attributes): For a project qualified as a library project
9270         that is not a library project, indicate in the error message which
9271         attributes are missing (Library_Dir and/or Library_Name).
9272
9273 2009-04-10  Bob Duff  <duff@adacore.com>
9274
9275         * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
9276         generated nodes, because it might confuse various circuits in the FE.
9277
9278 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
9279
9280         * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
9281         of pragma. It will be recopied and analyzed when used in call to
9282         Create_Task.
9283
9284         * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
9285         initialization operations and recognize use of it in procedure calls
9286         within init_procs.
9287
9288         * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
9289         argument, because it may have side-effects.
9290
9291         * exp_ch2.adb: Remove obsolete comments on default functions
9292
9293 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
9294
9295         * adaint.c (RTX section): Do for RTX the same thing as we do for
9296         Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
9297
9298 2009-04-10  Robert Dewar  <dewar@adacore.com>
9299
9300         * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
9301
9302         * sem_res.adb (Resolve_Call): Fix test for
9303         Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
9304         a non-dynamic scope).
9305
9306 2009-04-10  Robert Dewar  <dewar@adacore.com>
9307
9308         * make.adb: Add comment.
9309         Minor reformatting
9310
9311 2009-04-10  Nicolas Setton  <setton@adacore.com>
9312
9313         * s-osprim-darwin.adb: New file.
9314
9315         * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
9316
9317 2009-04-10  Thomas Quinot  <quinot@adacore.com>
9318
9319         * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
9320
9321 2009-04-09  Nick Clifton  <nickc@redhat.com>
9322
9323         * adadecode.h: Change copyright header to refer to version
9324         3 of the GNU General Public License with version 3.1 of the
9325         GCC Runtime Library Exception and to point readers at the
9326         COPYING3 and COPYING3.RUNTIME files and the FSF's license web
9327         page.
9328         * 9drpc.adb: Likewise.
9329         * a-assert.adb: Likewise.
9330         * a-astaco.adb: Likewise.
9331         * a-calari.adb: Likewise.
9332         * a-calcon.adb: Likewise.
9333         * a-calcon.ads: Likewise.
9334         * a-caldel.ads: Likewise.
9335         * a-calend-vms.adb: Likewise.
9336         * a-calend-vms.ads: Likewise.
9337         * a-calend.adb: Likewise.
9338         * a-calend.ads: Likewise.
9339         * a-calfor.adb: Likewise.
9340         * a-catizo.adb: Likewise.
9341         * a-cdlili.adb: Likewise.
9342         * a-cdlili.ads: Likewise.
9343         * a-cgaaso.adb: Likewise.
9344         * a-cgaaso.ads: Likewise.
9345         * a-cgarso.adb: Likewise.
9346         * a-cgcaso.adb: Likewise.
9347         * a-chacon.adb: Likewise.
9348         * a-chacon.ads: Likewise.
9349         * a-chahan.adb: Likewise.
9350         * a-chahan.ads: Likewise.
9351         * a-chlat9.ads: Likewise.
9352         * a-chtgke.adb: Likewise.
9353         * a-chtgke.ads: Likewise.
9354         * a-chtgop.adb: Likewise.
9355         * a-chtgop.ads: Likewise.
9356         * a-chzla1.ads: Likewise.
9357         * a-chzla9.ads: Likewise.
9358         * a-cidlli.adb: Likewise.
9359         * a-cidlli.ads: Likewise.
9360         * a-cihama.adb: Likewise.
9361         * a-cihama.ads: Likewise.
9362         * a-cihase.adb: Likewise.
9363         * a-cihase.ads: Likewise.
9364         * a-ciorma.adb: Likewise.
9365         * a-ciorma.ads: Likewise.
9366         * a-ciormu.adb: Likewise.
9367         * a-ciormu.ads: Likewise.
9368         * a-ciorse.adb: Likewise.
9369         * a-ciorse.ads: Likewise.
9370         * a-clrefi.adb: Likewise.
9371         * a-clrefi.ads: Likewise.
9372         * a-cohama.adb: Likewise.
9373         * a-cohama.ads: Likewise.
9374         * a-cohase.adb: Likewise.
9375         * a-cohase.ads: Likewise.
9376         * a-cohata.ads: Likewise.
9377         * a-coinve.adb: Likewise.
9378         * a-coinve.ads: Likewise.
9379         * a-colien.adb: Likewise.
9380         * a-colien.ads: Likewise.
9381         * a-colire.adb: Likewise.
9382         * a-colire.ads: Likewise.
9383         * a-comlin.adb: Likewise.
9384         * a-comlin.ads: Likewise.
9385         * a-convec.adb: Likewise.
9386         * a-convec.ads: Likewise.
9387         * a-coorma.adb: Likewise.
9388         * a-coorma.ads: Likewise.
9389         * a-coormu.adb: Likewise.
9390         * a-coormu.ads: Likewise.
9391         * a-coorse.adb: Likewise.
9392         * a-coorse.ads: Likewise.
9393         * a-coprnu.adb: Likewise.
9394         * a-coprnu.ads: Likewise.
9395         * a-crbltr.ads: Likewise.
9396         * a-crbtgk.adb: Likewise.
9397         * a-crbtgk.ads: Likewise.
9398         * a-crbtgo.adb: Likewise.
9399         * a-crbtgo.ads: Likewise.
9400         * a-crdlli.adb: Likewise.
9401         * a-crdlli.ads: Likewise.
9402         * a-cwila1.ads: Likewise.
9403         * a-cwila9.ads: Likewise.
9404         * a-decima.adb: Likewise.
9405         * a-decima.ads: Likewise.
9406         * a-diocst.adb: Likewise.
9407         * a-diocst.ads: Likewise.
9408         * a-direct.adb: Likewise.
9409         * a-direct.ads: Likewise.
9410         * a-direio.adb: Likewise.
9411         * a-direio.ads: Likewise.
9412         * a-dirval-mingw.adb: Likewise.
9413         * a-dirval-vms.adb: Likewise.
9414         * a-dirval.adb: Likewise.
9415         * a-dirval.ads: Likewise.
9416         * a-dynpri.adb: Likewise.
9417         * a-einuoc.adb: Likewise.
9418         * a-einuoc.ads: Likewise.
9419         * a-elchha.adb: Likewise.
9420         * a-elchha.ads: Likewise.
9421         * a-envvar.adb: Likewise.
9422         * a-excach.adb: Likewise.
9423         * a-except-2005.adb: Likewise.
9424         * a-except-2005.ads: Likewise.
9425         * a-except.adb: Likewise.
9426         * a-except.ads: Likewise.
9427         * a-excpol-abort.adb: Likewise.
9428         * a-excpol.adb: Likewise.
9429         * a-exctra.adb: Likewise.
9430         * a-exctra.ads: Likewise.
9431         * a-exetim-mingw.adb: Likewise.
9432         * a-exetim-mingw.ads: Likewise.
9433         * a-exexda.adb: Likewise.
9434         * a-exexpr-gcc.adb: Likewise.
9435         * a-exexpr.adb: Likewise.
9436         * a-exextr.adb: Likewise.
9437         * a-exstat.adb: Likewise.
9438         * a-filico.adb: Likewise.
9439         * a-filico.ads: Likewise.
9440         * a-finali.adb: Likewise.
9441         * a-finali.ads: Likewise.
9442         * a-interr.ads: Likewise.
9443         * a-intnam-aix.ads: Likewise.
9444         * a-intnam-darwin.ads: Likewise.
9445         * a-intnam-dummy.ads: Likewise.
9446         * a-intnam-freebsd.ads: Likewise.
9447         * a-intnam-hpux.ads: Likewise.
9448         * a-intnam-irix.ads: Likewise.
9449         * a-intnam-linux.ads: Likewise.
9450         * a-intnam-lynxos.ads: Likewise.
9451         * a-intnam-mingw.ads: Likewise.
9452         * a-intnam-rtems.ads: Likewise.
9453         * a-intnam-solaris.ads: Likewise.
9454         * a-intnam-tru64.ads: Likewise.
9455         * a-intnam-vms.ads: Likewise.
9456         * a-intnam-vxworks.ads: Likewise.
9457         * a-intsig.adb: Likewise.
9458         * a-intsig.ads: Likewise.
9459         * a-ngcefu.adb: Likewise.
9460         * a-ngcoar.adb: Likewise.
9461         * a-ngcoty.adb: Likewise.
9462         * a-ngcoty.ads: Likewise.
9463         * a-ngelfu.adb: Likewise.
9464         * a-ngrear.adb: Likewise.
9465         * a-ngrear.ads: Likewise.
9466         * a-nudira.adb: Likewise.
9467         * a-nudira.ads: Likewise.
9468         * a-nuflra.adb: Likewise.
9469         * a-nuflra.ads: Likewise.
9470         * a-numaux-darwin.adb: Likewise.
9471         * a-numaux-darwin.ads: Likewise.
9472         * a-numaux-libc-x86.ads: Likewise.
9473         * a-numaux-vxworks.ads: Likewise.
9474         * a-numaux-x86.adb: Likewise.
9475         * a-numaux-x86.ads: Likewise.
9476         * a-numaux.ads: Likewise.
9477         * a-rbtgso.adb: Likewise.
9478         * a-rbtgso.ads: Likewise.
9479         * a-reatim.ads: Likewise.
9480         * a-retide.adb: Likewise.
9481         * a-retide.ads: Likewise.
9482         * a-rttiev.adb: Likewise.
9483         * a-rttiev.ads: Likewise.
9484         * a-secain.adb: Likewise.
9485         * a-secain.ads: Likewise.
9486         * a-sequio.adb: Likewise.
9487         * a-sequio.ads: Likewise.
9488         * a-shcain.adb: Likewise.
9489         * a-shcain.ads: Likewise.
9490         * a-siocst.adb: Likewise.
9491         * a-siocst.ads: Likewise.
9492         * a-slcain.adb: Likewise.
9493         * a-slcain.ads: Likewise.
9494         * a-ssicst.adb: Likewise.
9495         * a-ssicst.ads: Likewise.
9496         * a-stboha.adb: Likewise.
9497         * a-stmaco.ads: Likewise.
9498         * a-storio.adb: Likewise.
9499         * a-strbou.adb: Likewise.
9500         * a-strbou.ads: Likewise.
9501         * a-stream.ads: Likewise.
9502         * a-strfix.adb: Likewise.
9503         * a-strhas.adb: Likewise.
9504         * a-strmap.adb: Likewise.
9505         * a-strmap.ads: Likewise.
9506         * a-strsea.adb: Likewise.
9507         * a-strsea.ads: Likewise.
9508         * a-strsup.adb: Likewise.
9509         * a-strsup.ads: Likewise.
9510         * a-strunb.adb: Likewise.
9511         * a-strunb.ads: Likewise.
9512         * a-ststio.adb: Likewise.
9513         * a-ststio.ads: Likewise.
9514         * a-stunau.adb: Likewise.
9515         * a-stunau.ads: Likewise.
9516         * a-stunha.adb: Likewise.
9517         * a-stwibo.adb: Likewise.
9518         * a-stwibo.ads: Likewise.
9519         * a-stwifi.adb: Likewise.
9520         * a-stwiha.adb: Likewise.
9521         * a-stwima.adb: Likewise.
9522         * a-stwima.ads: Likewise.
9523         * a-stwise.adb: Likewise.
9524         * a-stwise.ads: Likewise.
9525         * a-stwisu.adb: Likewise.
9526         * a-stwisu.ads: Likewise.
9527         * a-stwiun.adb: Likewise.
9528         * a-stwiun.ads: Likewise.
9529         * a-stzbou.adb: Likewise.
9530         * a-stzbou.ads: Likewise.
9531         * a-stzfix.adb: Likewise.
9532         * a-stzhas.adb: Likewise.
9533         * a-stzmap.adb: Likewise.
9534         * a-stzmap.ads: Likewise.
9535         * a-stzsea.adb: Likewise.
9536         * a-stzsea.ads: Likewise.
9537         * a-stzsup.adb: Likewise.
9538         * a-stzsup.ads: Likewise.
9539         * a-stzunb.adb: Likewise.
9540         * a-stzunb.ads: Likewise.
9541         * a-suteio.adb: Likewise.
9542         * a-suteio.ads: Likewise.
9543         * a-swbwha.adb: Likewise.
9544         * a-swmwco.ads: Likewise.
9545         * a-swunau.adb: Likewise.
9546         * a-swunau.ads: Likewise.
9547         * a-swuwha.adb: Likewise.
9548         * a-swuwti.adb: Likewise.
9549         * a-swuwti.ads: Likewise.
9550         * a-sytaco.adb: Likewise.
9551         * a-sytaco.ads: Likewise.
9552         * a-szbzha.adb: Likewise.
9553         * a-szmzco.ads: Likewise.
9554         * a-szunau.adb: Likewise.
9555         * a-szunau.ads: Likewise.
9556         * a-szuzha.adb: Likewise.
9557         * a-szuzti.adb: Likewise.
9558         * a-szuzti.ads: Likewise.
9559         * a-tags.adb: Likewise.
9560         * a-tags.ads: Likewise.
9561         * a-tasatt.ads: Likewise.
9562         * a-taside.adb: Likewise.
9563         * a-taside.ads: Likewise.
9564         * a-taster.adb: Likewise.
9565         * a-teioed.adb: Likewise.
9566         * a-teioed.ads: Likewise.
9567         * a-textio.adb: Likewise.
9568         * a-textio.ads: Likewise.
9569         * a-tiboio.adb: Likewise.
9570         * a-ticoau.adb: Likewise.
9571         * a-ticoau.ads: Likewise.
9572         * a-ticoio.adb: Likewise.
9573         * a-ticoio.ads: Likewise.
9574         * a-tideau.adb: Likewise.
9575         * a-tideau.ads: Likewise.
9576         * a-tideio.adb: Likewise.
9577         * a-tideio.ads: Likewise.
9578         * a-tienau.adb: Likewise.
9579         * a-tienau.ads: Likewise.
9580         * a-tienio.adb: Likewise.
9581         * a-tienio.ads: Likewise.
9582         * a-tifiio.adb: Likewise.
9583         * a-tifiio.ads: Likewise.
9584         * a-tiflau.adb: Likewise.
9585         * a-tiflau.ads: Likewise.
9586         * a-tiflio.adb: Likewise.
9587         * a-tiflio.ads: Likewise.
9588         * a-tigeau.adb: Likewise.
9589         * a-tigeau.ads: Likewise.
9590         * a-tiinau.adb: Likewise.
9591         * a-tiinau.ads: Likewise.
9592         * a-tiinio.adb: Likewise.
9593         * a-tiinio.ads: Likewise.
9594         * a-timoau.adb: Likewise.
9595         * a-timoau.ads: Likewise.
9596         * a-timoio.adb: Likewise.
9597         * a-timoio.ads: Likewise.
9598         * a-tiocst.adb: Likewise.
9599         * a-tiocst.ads: Likewise.
9600         * a-titest.adb: Likewise.
9601         * a-wichun.adb: Likewise.
9602         * a-wichun.ads: Likewise.
9603         * a-witeio.adb: Likewise.
9604         * a-witeio.ads: Likewise.
9605         * a-wtcoau.adb: Likewise.
9606         * a-wtcoau.ads: Likewise.
9607         * a-wtcoio.adb: Likewise.
9608         * a-wtcstr.adb: Likewise.
9609         * a-wtcstr.ads: Likewise.
9610         * a-wtdeau.adb: Likewise.
9611         * a-wtdeau.ads: Likewise.
9612         * a-wtdeio.adb: Likewise.
9613         * a-wtdeio.ads: Likewise.
9614         * a-wtedit.adb: Likewise.
9615         * a-wtedit.ads: Likewise.
9616         * a-wtenau.adb: Likewise.
9617         * a-wtenau.ads: Likewise.
9618         * a-wtenio.adb: Likewise.
9619         * a-wtenio.ads: Likewise.
9620         * a-wtfiio.adb: Likewise.
9621         * a-wtfiio.ads: Likewise.
9622         * a-wtflau.adb: Likewise.
9623         * a-wtflau.ads: Likewise.
9624         * a-wtflio.adb: Likewise.
9625         * a-wtflio.ads: Likewise.
9626         * a-wtgeau.adb: Likewise.
9627         * a-wtgeau.ads: Likewise.
9628         * a-wtinau.adb: Likewise.
9629         * a-wtinau.ads: Likewise.
9630         * a-wtinio.adb: Likewise.
9631         * a-wtmoau.adb: Likewise.
9632         * a-wtmoau.ads: Likewise.
9633         * a-wtmoio.adb: Likewise.
9634         * a-wtmoio.ads: Likewise.
9635         * a-wttest.adb: Likewise.
9636         * a-wwboio.adb: Likewise.
9637         * a-zchuni.adb: Likewise.
9638         * a-zchuni.ads: Likewise.
9639         * a-ztcoau.adb: Likewise.
9640         * a-ztcoau.ads: Likewise.
9641         * a-ztcoio.adb: Likewise.
9642         * a-ztcstr.adb: Likewise.
9643         * a-ztcstr.ads: Likewise.
9644         * a-ztdeau.adb: Likewise.
9645         * a-ztdeau.ads: Likewise.
9646         * a-ztdeio.adb: Likewise.
9647         * a-ztdeio.ads: Likewise.
9648         * a-ztedit.adb: Likewise.
9649         * a-ztedit.ads: Likewise.
9650         * a-ztenau.adb: Likewise.
9651         * a-ztenau.ads: Likewise.
9652         * a-ztenio.adb: Likewise.
9653         * a-ztenio.ads: Likewise.
9654         * a-ztexio.adb: Likewise.
9655         * a-ztexio.ads: Likewise.
9656         * a-ztfiio.adb: Likewise.
9657         * a-ztfiio.ads: Likewise.
9658         * a-ztflau.adb: Likewise.
9659         * a-ztflau.ads: Likewise.
9660         * a-ztflio.adb: Likewise.
9661         * a-ztflio.ads: Likewise.
9662         * a-ztgeau.adb: Likewise.
9663         * a-ztgeau.ads: Likewise.
9664         * a-ztinau.adb: Likewise.
9665         * a-ztinau.ads: Likewise.
9666         * a-ztinio.adb: Likewise.
9667         * a-ztmoau.adb: Likewise.
9668         * a-ztmoau.ads: Likewise.
9669         * a-ztmoio.adb: Likewise.
9670         * a-ztmoio.ads: Likewise.
9671         * a-zttest.adb: Likewise.
9672         * a-zzboio.adb: Likewise.
9673         * adadecode.c: Likewise.
9674         * adaint.c: Likewise.
9675         * adaint.h: Likewise.
9676         * alloc.ads: Likewise.
9677         * argv.c: Likewise.
9678         * arit64.c: Likewise.
9679         * atree.adb: Likewise.
9680         * atree.ads: Likewise.
9681         * aux-io.c: Likewise.
9682         * cal.c: Likewise.
9683         * casing.adb: Likewise.
9684         * casing.ads: Likewise.
9685         * cio.c: Likewise.
9686         * csets.adb: Likewise.
9687         * csets.ads: Likewise.
9688         * cstreams.c: Likewise.
9689         * ctrl_c.c: Likewise.
9690         * debug.adb: Likewise.
9691         * debug.ads: Likewise.
9692         * dec.ads: Likewise.
9693         * einfo.adb: Likewise.
9694         * einfo.ads: Likewise.
9695         * elists.adb: Likewise.
9696         * elists.ads: Likewise.
9697         * env.c: Likewise.
9698         * env.h: Likewise.
9699         * errno.c: Likewise.
9700         * exit.c: Likewise.
9701         * fe.h: Likewise.
9702         * final.c: Likewise.
9703         * fname.adb: Likewise.
9704         * fname.ads: Likewise.
9705         * g-allein.ads: Likewise.
9706         * g-alleve.adb: Likewise.
9707         * g-alleve.ads: Likewise.
9708         * g-altcon.adb: Likewise.
9709         * g-altcon.ads: Likewise.
9710         * g-altive.ads: Likewise.
9711         * g-alveop.adb: Likewise.
9712         * g-alveop.ads: Likewise.
9713         * g-alvety.ads: Likewise.
9714         * g-alvevi.ads: Likewise.
9715         * g-arrspl.adb: Likewise.
9716         * g-arrspl.ads: Likewise.
9717         * g-calend.ads: Likewise.
9718         * g-comlin.adb: Likewise.
9719         * g-debpoo.adb: Likewise.
9720         * g-debpoo.ads: Likewise.
9721         * g-eacodu-vms.adb: Likewise.
9722         * g-eacodu.adb: Likewise.
9723         * g-excact.adb: Likewise.
9724         * g-excact.ads: Likewise.
9725         * g-locfil.adb: Likewise.
9726         * g-os_lib.ads: Likewise.
9727         * g-rannum.adb: Likewise.
9728         * g-rannum.ads: Likewise.
9729         * g-regist.adb: Likewise.
9730         * g-regist.ads: Likewise.
9731         * g-signal.adb: Likewise.
9732         * g-signal.ads: Likewise.
9733         * g-soccon.ads: Likewise.
9734         * g-string.adb: Likewise.
9735         * g-string.ads: Likewise.
9736         * g-strspl.ads: Likewise.
9737         * g-timsta.adb: Likewise.
9738         * g-timsta.ads: Likewise.
9739         * g-trasym-vms-alpha.adb: Likewise.
9740         * g-trasym-vms-ia64.adb: Likewise.
9741         * g-utf_32.adb: Likewise.
9742         * g-utf_32.ads: Likewise.
9743         * g-wistsp.ads: Likewise.
9744         * g-zstspl.ads: Likewise.
9745         * gmem.c: Likewise.
9746         * gnatvsn.adb: Likewise.
9747         * gnatvsn.ads: Likewise.
9748         * gsocket.h: Likewise.
9749         * hostparm.ads: Likewise.
9750         * i-c.adb: Likewise.
9751         * i-cexten.ads: Likewise.
9752         * i-cobol.adb: Likewise.
9753         * i-cobol.ads: Likewise.
9754         * i-cpoint.adb: Likewise.
9755         * i-cpoint.ads: Likewise.
9756         * i-cpp.adb: Likewise.
9757         * i-cpp.ads: Likewise.
9758         * i-cstrea-vms.adb: Likewise.
9759         * i-cstrea.adb: Likewise.
9760         * i-cstrea.ads: Likewise.
9761         * i-cstrin.adb: Likewise.
9762         * i-cstrin.ads: Likewise.
9763         * i-forbla-darwin.adb: Likewise.
9764         * i-forbla-unimplemented.ads: Likewise.
9765         * i-forbla.adb: Likewise.
9766         * i-forbla.ads: Likewise.
9767         * i-forlap.ads: Likewise.
9768         * i-fortra.adb: Likewise.
9769         * i-pacdec.adb: Likewise.
9770         * i-pacdec.ads: Likewise.
9771         * i-vxwoio.adb: Likewise.
9772         * i-vxwoio.ads: Likewise.
9773         * indepsw-aix.adb: Likewise.
9774         * indepsw-gnu.adb: Likewise.
9775         * indepsw-mingw.adb: Likewise.
9776         * indepsw.adb: Likewise.
9777         * indepsw.ads: Likewise.
9778         * init.c: Likewise.
9779         * initialize.c: Likewise.
9780         * interfac.ads: Likewise.
9781         * krunch.adb: Likewise.
9782         * krunch.ads: Likewise.
9783         * lib-list.adb: Likewise.
9784         * lib-sort.adb: Likewise.
9785         * lib.adb: Likewise.
9786         * lib.ads: Likewise.
9787         * link.c: Likewise.
9788         * math_lib.adb: Likewise.
9789         * memtrack.adb: Likewise.
9790         * mingw32.h: Likewise.
9791         * mkdir.c: Likewise.
9792         * namet-sp.adb: Likewise.
9793         * namet-sp.ads: Likewise.
9794         * namet.adb: Likewise.
9795         * namet.ads: Likewise.
9796         * nlists.adb: Likewise.
9797         * nlists.ads: Likewise.
9798         * opt.adb: Likewise.
9799         * opt.ads: Likewise.
9800         * output.adb: Likewise.
9801         * output.ads: Likewise.
9802         * raise-gcc.c: Likewise.
9803         * raise.c: Likewise.
9804         * raise.h: Likewise.
9805         * repinfo.adb: Likewise.
9806         * repinfo.ads: Likewise.
9807         * repinfo.h: Likewise.
9808         * rident.ads: Likewise.
9809         * s-addima.adb: Likewise.
9810         * s-addima.ads: Likewise.
9811         * s-addope.adb: Likewise.
9812         * s-addope.ads: Likewise.
9813         * s-arit64.adb: Likewise.
9814         * s-arit64.ads: Likewise.
9815         * s-assert.adb: Likewise.
9816         * s-assert.ads: Likewise.
9817         * s-asthan-vms-alpha.adb: Likewise.
9818         * s-asthan.adb: Likewise.
9819         * s-asthan.ads: Likewise.
9820         * s-atacco.adb: Likewise.
9821         * s-atacco.ads: Likewise.
9822         * s-auxdec-empty.adb: Likewise.
9823         * s-auxdec-empty.ads: Likewise.
9824         * s-auxdec-vms_64.ads: Likewise.
9825         * s-auxdec.adb: Likewise.
9826         * s-auxdec.ads: Likewise.
9827         * s-bitops.adb: Likewise.
9828         * s-bitops.ads: Likewise.
9829         * s-boarop.ads: Likewise.
9830         * s-carsi8.adb: Likewise.
9831         * s-carsi8.ads: Likewise.
9832         * s-carun8.adb: Likewise.
9833         * s-carun8.ads: Likewise.
9834         * s-casi16.adb: Likewise.
9835         * s-casi16.ads: Likewise.
9836         * s-casi32.adb: Likewise.
9837         * s-casi32.ads: Likewise.
9838         * s-casi64.adb: Likewise.
9839         * s-casi64.ads: Likewise.
9840         * s-casuti.ads: Likewise.
9841         * s-caun16.adb: Likewise.
9842         * s-caun16.ads: Likewise.
9843         * s-caun32.adb: Likewise.
9844         * s-caun32.ads: Likewise.
9845         * s-caun64.adb: Likewise.
9846         * s-caun64.ads: Likewise.
9847         * s-chepoo.ads: Likewise.
9848         * s-crc32.adb: Likewise.
9849         * s-crc32.ads: Likewise.
9850         * s-crtl.ads: Likewise.
9851         * s-direio.adb: Likewise.
9852         * s-direio.ads: Likewise.
9853         * s-dsaser.ads: Likewise.
9854         * s-except.adb: Likewise.
9855         * s-except.ads: Likewise.
9856         * s-exctab.adb: Likewise.
9857         * s-exctab.ads: Likewise.
9858         * s-exnint.adb: Likewise.
9859         * s-exnint.ads: Likewise.
9860         * s-exnllf.adb: Likewise.
9861         * s-exnllf.ads: Likewise.
9862         * s-exnlli.adb: Likewise.
9863         * s-exnlli.ads: Likewise.
9864         * s-expint.adb: Likewise.
9865         * s-expint.ads: Likewise.
9866         * s-explli.adb: Likewise.
9867         * s-explli.ads: Likewise.
9868         * s-expllu.adb: Likewise.
9869         * s-expllu.ads: Likewise.
9870         * s-expmod.adb: Likewise.
9871         * s-expmod.ads: Likewise.
9872         * s-expuns.adb: Likewise.
9873         * s-expuns.ads: Likewise.
9874         * s-fatflt.ads: Likewise.
9875         * s-fatgen.adb: Likewise.
9876         * s-fatgen.ads: Likewise.
9877         * s-fatlfl.ads: Likewise.
9878         * s-fatllf.ads: Likewise.
9879         * s-fatsfl.ads: Likewise.
9880         * s-ficobl.ads: Likewise.
9881         * s-fileio.adb: Likewise.
9882         * s-fileio.ads: Likewise.
9883         * s-filofl.ads: Likewise.
9884         * s-finimp.adb: Likewise.
9885         * s-finimp.ads: Likewise.
9886         * s-finroo.adb: Likewise.
9887         * s-finroo.ads: Likewise.
9888         * s-fishfl.ads: Likewise.
9889         * s-fore.adb: Likewise.
9890         * s-fore.ads: Likewise.
9891         * s-fvadfl.ads: Likewise.
9892         * s-fvaffl.ads: Likewise.
9893         * s-fvagfl.ads: Likewise.
9894         * s-gearop.adb: Likewise.
9895         * s-gearop.ads: Likewise.
9896         * s-gecobl.adb: Likewise.
9897         * s-gecobl.ads: Likewise.
9898         * s-gecola.adb: Likewise.
9899         * s-gecola.ads: Likewise.
9900         * s-gerebl.adb: Likewise.
9901         * s-gerebl.ads: Likewise.
9902         * s-gerela.adb: Likewise.
9903         * s-gerela.ads: Likewise.
9904         * s-geveop.adb: Likewise.
9905         * s-geveop.ads: Likewise.
9906         * s-gloloc.adb: Likewise.
9907         * s-gloloc.ads: Likewise.
9908         * s-hibaen.ads: Likewise.
9909         * s-imenne.adb: Likewise.
9910         * s-imenne.ads: Likewise.
9911         * s-imgbiu.adb: Likewise.
9912         * s-imgbiu.ads: Likewise.
9913         * s-imgboo.adb: Likewise.
9914         * s-imgboo.ads: Likewise.
9915         * s-imgcha.adb: Likewise.
9916         * s-imgcha.ads: Likewise.
9917         * s-imgdec.adb: Likewise.
9918         * s-imgdec.ads: Likewise.
9919         * s-imgenu.adb: Likewise.
9920         * s-imgenu.ads: Likewise.
9921         * s-imgint.adb: Likewise.
9922         * s-imgint.ads: Likewise.
9923         * s-imgllb.adb: Likewise.
9924         * s-imgllb.ads: Likewise.
9925         * s-imglld.adb: Likewise.
9926         * s-imglld.ads: Likewise.
9927         * s-imglli.adb: Likewise.
9928         * s-imglli.ads: Likewise.
9929         * s-imgllu.adb: Likewise.
9930         * s-imgllu.ads: Likewise.
9931         * s-imgllw.adb: Likewise.
9932         * s-imgllw.ads: Likewise.
9933         * s-imgrea.adb: Likewise.
9934         * s-imgrea.ads: Likewise.
9935         * s-imguns.adb: Likewise.
9936         * s-imguns.ads: Likewise.
9937         * s-imgwch.adb: Likewise.
9938         * s-imgwch.ads: Likewise.
9939         * s-imgwiu.adb: Likewise.
9940         * s-imgwiu.ads: Likewise.
9941         * s-inmaop-dummy.adb: Likewise.
9942         * s-inmaop-vms.adb: Likewise.
9943         * s-inmaop.ads: Likewise.
9944         * s-interr-hwint.adb: Likewise.
9945         * s-interr-sigaction.adb: Likewise.
9946         * s-interr-vms.adb: Likewise.
9947         * s-interr.adb: Likewise.
9948         * s-interr.ads: Likewise.
9949         * s-intman-dummy.adb: Likewise.
9950         * s-intman-mingw.adb: Likewise.
9951         * s-intman-posix.adb: Likewise.
9952         * s-intman-solaris.adb: Likewise.
9953         * s-intman-vms.adb: Likewise.
9954         * s-intman-vms.ads: Likewise.
9955         * s-intman-vxworks.adb: Likewise.
9956         * s-intman-vxworks.ads: Likewise.
9957         * s-intman.ads: Likewise.
9958         * s-io.adb: Likewise.
9959         * s-io.ads: Likewise.
9960         * s-linux-alpha.ads: Likewise.
9961         * s-linux-hppa.ads: Likewise.
9962         * s-linux.ads: Likewise.
9963         * s-maccod.ads: Likewise.
9964         * s-mantis.adb: Likewise.
9965         * s-mantis.ads: Likewise.
9966         * s-mastop-irix.adb: Likewise.
9967         * s-mastop.adb: Likewise.
9968         * s-mastop.ads: Likewise.
9969         * s-memcop.ads: Likewise.
9970         * s-memory-mingw.adb: Likewise.
9971         * s-memory.adb: Likewise.
9972         * s-memory.ads: Likewise.
9973         * s-os_lib.ads: Likewise.
9974         * s-oscons-tmplt.c: Likewise.
9975         * s-osinte-aix.adb: Likewise.
9976         * s-osinte-darwin.adb: Likewise.
9977         * s-osinte-freebsd.adb: Likewise.
9978         * s-osinte-irix.adb: Likewise.
9979         * s-osinte-lynxos-3.adb: Likewise.
9980         * s-osinte-rtems.ads: Likewise.
9981         * s-osinte-tru64.adb: Likewise.
9982         * s-osinte-vxworks-kernel.adb: Likewise.
9983         * s-osinte-vxworks.adb: Likewise.
9984         * s-osprim-mingw.adb: Likewise.
9985         * s-osprim-posix.adb: Likewise.
9986         * s-osprim-solaris.adb: Likewise.
9987         * s-osprim-unix.adb: Likewise.
9988         * s-osprim-vms.adb: Likewise.
9989         * s-osprim-vms.ads: Likewise.
9990         * s-osprim-vxworks.adb: Likewise.
9991         * s-osprim.ads: Likewise.
9992         * s-pack03.adb: Likewise.
9993         * s-pack03.ads: Likewise.
9994         * s-pack05.adb: Likewise.
9995         * s-pack05.ads: Likewise.
9996         * s-pack06.adb: Likewise.
9997         * s-pack06.ads: Likewise.
9998         * s-pack07.adb: Likewise.
9999         * s-pack07.ads: Likewise.
10000         * s-pack09.adb: Likewise.
10001         * s-pack09.ads: Likewise.
10002         * s-pack10.adb: Likewise.
10003         * s-pack10.ads: Likewise.
10004         * s-pack11.adb: Likewise.
10005         * s-pack11.ads: Likewise.
10006         * s-pack12.adb: Likewise.
10007         * s-pack12.ads: Likewise.
10008         * s-pack13.adb: Likewise.
10009         * s-pack13.ads: Likewise.
10010         * s-pack14.adb: Likewise.
10011         * s-pack14.ads: Likewise.
10012         * s-pack15.adb: Likewise.
10013         * s-pack15.ads: Likewise.
10014         * s-pack17.adb: Likewise.
10015         * s-pack17.ads: Likewise.
10016         * s-pack18.adb: Likewise.
10017         * s-pack18.ads: Likewise.
10018         * s-pack19.adb: Likewise.
10019         * s-pack19.ads: Likewise.
10020         * s-pack20.adb: Likewise.
10021         * s-pack20.ads: Likewise.
10022         * s-pack21.adb: Likewise.
10023         * s-pack21.ads: Likewise.
10024         * s-pack22.adb: Likewise.
10025         * s-pack22.ads: Likewise.
10026         * s-pack23.adb: Likewise.
10027         * s-pack23.ads: Likewise.
10028         * s-pack24.adb: Likewise.
10029         * s-pack24.ads: Likewise.
10030         * s-pack25.adb: Likewise.
10031         * s-pack25.ads: Likewise.
10032         * s-pack26.adb: Likewise.
10033         * s-pack26.ads: Likewise.
10034         * s-pack27.adb: Likewise.
10035         * s-pack27.ads: Likewise.
10036         * s-pack28.adb: Likewise.
10037         * s-pack28.ads: Likewise.
10038         * s-pack29.adb: Likewise.
10039         * s-pack29.ads: Likewise.
10040         * s-pack30.adb: Likewise.
10041         * s-pack30.ads: Likewise.
10042         * s-pack31.adb: Likewise.
10043         * s-pack31.ads: Likewise.
10044         * s-pack33.adb: Likewise.
10045         * s-pack33.ads: Likewise.
10046         * s-pack34.adb: Likewise.
10047         * s-pack34.ads: Likewise.
10048         * s-pack35.adb: Likewise.
10049         * s-pack35.ads: Likewise.
10050         * s-pack36.adb: Likewise.
10051         * s-pack36.ads: Likewise.
10052         * s-pack37.adb: Likewise.
10053         * s-pack37.ads: Likewise.
10054         * s-pack38.adb: Likewise.
10055         * s-pack38.ads: Likewise.
10056         * s-pack39.adb: Likewise.
10057         * s-pack39.ads: Likewise.
10058         * s-pack40.adb: Likewise.
10059         * s-pack40.ads: Likewise.
10060         * s-pack41.adb: Likewise.
10061         * s-pack41.ads: Likewise.
10062         * s-pack42.adb: Likewise.
10063         * s-pack42.ads: Likewise.
10064         * s-pack43.adb: Likewise.
10065         * s-pack43.ads: Likewise.
10066         * s-pack44.adb: Likewise.
10067         * s-pack44.ads: Likewise.
10068         * s-pack45.adb: Likewise.
10069         * s-pack45.ads: Likewise.
10070         * s-pack46.adb: Likewise.
10071         * s-pack46.ads: Likewise.
10072         * s-pack47.adb: Likewise.
10073         * s-pack47.ads: Likewise.
10074         * s-pack48.adb: Likewise.
10075         * s-pack48.ads: Likewise.
10076         * s-pack49.adb: Likewise.
10077         * s-pack49.ads: Likewise.
10078         * s-pack50.adb: Likewise.
10079         * s-pack50.ads: Likewise.
10080         * s-pack51.adb: Likewise.
10081         * s-pack51.ads: Likewise.
10082         * s-pack52.adb: Likewise.
10083         * s-pack52.ads: Likewise.
10084         * s-pack53.adb: Likewise.
10085         * s-pack53.ads: Likewise.
10086         * s-pack54.adb: Likewise.
10087         * s-pack54.ads: Likewise.
10088         * s-pack55.adb: Likewise.
10089         * s-pack55.ads: Likewise.
10090         * s-pack56.adb: Likewise.
10091         * s-pack56.ads: Likewise.
10092         * s-pack57.adb: Likewise.
10093         * s-pack57.ads: Likewise.
10094         * s-pack58.adb: Likewise.
10095         * s-pack58.ads: Likewise.
10096         * s-pack59.adb: Likewise.
10097         * s-pack59.ads: Likewise.
10098         * s-pack60.adb: Likewise.
10099         * s-pack60.ads: Likewise.
10100         * s-pack61.adb: Likewise.
10101         * s-pack61.ads: Likewise.
10102         * s-pack62.adb: Likewise.
10103         * s-pack62.ads: Likewise.
10104         * s-pack63.adb: Likewise.
10105         * s-pack63.ads: Likewise.
10106         * s-parame-ae653.ads: Likewise.
10107         * s-parame-hpux.ads: Likewise.
10108         * s-parame-rtems.adb: Likewise.
10109         * s-parame-vms-alpha.ads: Likewise.
10110         * s-parame-vms-ia64.ads: Likewise.
10111         * s-parame-vms-restrict.ads: Likewise.
10112         * s-parame-vxworks.adb: Likewise.
10113         * s-parame-vxworks.ads: Likewise.
10114         * s-parame.adb: Likewise.
10115         * s-parame.ads: Likewise.
10116         * s-parint.adb: Likewise.
10117         * s-parint.ads: Likewise.
10118         * s-pooglo.adb: Likewise.
10119         * s-pooglo.ads: Likewise.
10120         * s-pooloc.adb: Likewise.
10121         * s-pooloc.ads: Likewise.
10122         * s-poosiz.adb: Likewise.
10123         * s-poosiz.ads: Likewise.
10124         * s-powtab.ads: Likewise.
10125         * s-proinf-irix-athread.adb: Likewise.
10126         * s-proinf-irix-athread.ads: Likewise.
10127         * s-proinf.adb: Likewise.
10128         * s-proinf.ads: Likewise.
10129         * s-purexc.ads: Likewise.
10130         * s-rannum.adb: Likewise.
10131         * s-rannum.ads: Likewise.
10132         * s-restri.adb: Likewise.
10133         * s-restri.ads: Likewise.
10134         * s-rident.ads: Likewise.
10135         * s-rpc.adb: Likewise.
10136         * s-rpc.ads: Likewise.
10137         * s-scaval.adb: Likewise.
10138         * s-scaval.ads: Likewise.
10139         * s-secsta.adb: Likewise.
10140         * s-secsta.ads: Likewise.
10141         * s-sequio.adb: Likewise.
10142         * s-sequio.ads: Likewise.
10143         * s-shasto.adb: Likewise.
10144         * s-shasto.ads: Likewise.
10145         * s-soflin.adb: Likewise.
10146         * s-soflin.ads: Likewise.
10147         * s-solita.adb: Likewise.
10148         * s-solita.ads: Likewise.
10149         * s-sopco3.adb: Likewise.
10150         * s-sopco3.ads: Likewise.
10151         * s-sopco4.adb: Likewise.
10152         * s-sopco4.ads: Likewise.
10153         * s-sopco5.adb: Likewise.
10154         * s-sopco5.ads: Likewise.
10155         * s-stache.adb: Likewise.
10156         * s-stache.ads: Likewise.
10157         * s-stalib.adb: Likewise.
10158         * s-stalib.ads: Likewise.
10159         * s-stausa.adb: Likewise.
10160         * s-stausa.ads: Likewise.
10161         * s-stchop-limit.ads: Likewise.
10162         * s-stchop-rtems.adb: Likewise.
10163         * s-stchop-vxworks.adb: Likewise.
10164         * s-stchop.adb: Likewise.
10165         * s-stchop.ads: Likewise.
10166         * s-stoele.adb: Likewise.
10167         * s-stoele.ads: Likewise.
10168         * s-stopoo.adb: Likewise.
10169         * s-stopoo.ads: Likewise.
10170         * s-stratt.adb: Likewise.
10171         * s-stratt.ads: Likewise.
10172         * s-strcom.adb: Likewise.
10173         * s-strcom.ads: Likewise.
10174         * s-string.adb: Likewise.
10175         * s-string.ads: Likewise.
10176         * s-strops.adb: Likewise.
10177         * s-strops.ads: Likewise.
10178         * s-strxdr.adb: Likewise.
10179         * s-ststop.adb: Likewise.
10180         * s-ststop.ads: Likewise.
10181         * s-taasde.adb: Likewise.
10182         * s-taasde.ads: Likewise.
10183         * s-tadeca.adb: Likewise.
10184         * s-tadeca.ads: Likewise.
10185         * s-tadert.adb: Likewise.
10186         * s-tadert.ads: Likewise.
10187         * s-taenca.adb: Likewise.
10188         * s-taenca.ads: Likewise.
10189         * s-taprob.ads: Likewise.
10190         * s-taprop-dummy.adb: Likewise.
10191         * s-taprop-hpux-dce.adb: Likewise.
10192         * s-taprop-irix.adb: Likewise.
10193         * s-taprop-linux.adb: Likewise.
10194         * s-taprop-lynxos.adb: Likewise.
10195         * s-taprop-mingw.adb: Likewise.
10196         * s-taprop-posix.adb: Likewise.
10197         * s-taprop-solaris.adb: Likewise.
10198         * s-taprop-tru64.adb: Likewise.
10199         * s-taprop-vms.adb: Likewise.
10200         * s-taprop-vxworks.adb: Likewise.
10201         * s-taprop.ads: Likewise.
10202         * s-tarest.adb: Likewise.
10203         * s-tarest.ads: Likewise.
10204         * s-tasdeb.adb: Likewise.
10205         * s-tasdeb.ads: Likewise.
10206         * s-tasinf-irix.ads: Likewise.
10207         * s-tasinf-linux.adb: Likewise.
10208         * s-tasinf-linux.ads: Likewise.
10209         * s-tasinf-mingw.adb: Likewise.
10210         * s-tasinf-mingw.ads: Likewise.
10211         * s-tasinf-solaris.adb: Likewise.
10212         * s-tasinf-solaris.ads: Likewise.
10213         * s-tasinf-tru64.ads: Likewise.
10214         * s-tasinf.adb: Likewise.
10215         * s-tasinf.ads: Likewise.
10216         * s-tasini.adb: Likewise.
10217         * s-tasini.ads: Likewise.
10218         * s-taskin.adb: Likewise.
10219         * s-taskin.ads: Likewise.
10220         * s-taspri-dummy.ads: Likewise.
10221         * s-taspri-hpux-dce.ads: Likewise.
10222         * s-taspri-mingw.ads: Likewise.
10223         * s-taspri-solaris.ads: Likewise.
10224         * s-taspri-tru64.ads: Likewise.
10225         * s-taspri-vms.ads: Likewise.
10226         * s-taspri-vxworks.ads: Likewise.
10227         * s-tasque.adb: Likewise.
10228         * s-tasque.ads: Likewise.
10229         * s-tasren.adb: Likewise.
10230         * s-tasren.ads: Likewise.
10231         * s-tasres.ads: Likewise.
10232         * s-tassta.adb: Likewise.
10233         * s-tassta.ads: Likewise.
10234         * s-tasuti.adb: Likewise.
10235         * s-tasuti.ads: Likewise.
10236         * s-tfsetr-default.adb: Likewise.
10237         * s-tfsetr-vxworks.adb: Likewise.
10238         * s-tpinop.adb: Likewise.
10239         * s-tpinop.ads: Likewise.
10240         * s-tpoben.adb: Likewise.
10241         * s-tpoben.ads: Likewise.
10242         * s-tpobop.adb: Likewise.
10243         * s-tpobop.ads: Likewise.
10244         * s-tpopde-vms.adb: Likewise.
10245         * s-tpopde-vms.ads: Likewise.
10246         * s-tpopsp-lynxos.adb: Likewise.
10247         * s-tpopsp-posix-foreign.adb: Likewise.
10248         * s-tpopsp-posix.adb: Likewise.
10249         * s-tpopsp-solaris.adb: Likewise.
10250         * s-tpopsp-vxworks.adb: Likewise.
10251         * s-tporft.adb: Likewise.
10252         * s-tposen.adb: Likewise.
10253         * s-tposen.ads: Likewise.
10254         * s-traceb.adb: Likewise.
10255         * s-traceb.ads: Likewise.
10256         * s-traces-default.adb: Likewise.
10257         * s-traces.adb: Likewise.
10258         * s-traces.ads: Likewise.
10259         * s-traent-vms.adb: Likewise.
10260         * s-traent-vms.ads: Likewise.
10261         * s-traent.adb: Likewise.
10262         * s-traent.ads: Likewise.
10263         * s-trafor-default.adb: Likewise.
10264         * s-trafor-default.ads: Likewise.
10265         * s-tratas-default.adb: Likewise.
10266         * s-tratas.adb: Likewise.
10267         * s-tratas.ads: Likewise.
10268         * s-unstyp.ads: Likewise.
10269         * s-utf_32.adb: Likewise.
10270         * s-utf_32.ads: Likewise.
10271         * s-vaflop-vms-alpha.adb: Likewise.
10272         * s-vaflop.adb: Likewise.
10273         * s-vaflop.ads: Likewise.
10274         * s-valboo.adb: Likewise.
10275         * s-valboo.ads: Likewise.
10276         * s-valcha.adb: Likewise.
10277         * s-valcha.ads: Likewise.
10278         * s-valdec.adb: Likewise.
10279         * s-valdec.ads: Likewise.
10280         * s-valenu.adb: Likewise.
10281         * s-valenu.ads: Likewise.
10282         * s-valint.adb: Likewise.
10283         * s-valint.ads: Likewise.
10284         * s-vallld.adb: Likewise.
10285         * s-vallld.ads: Likewise.
10286         * s-vallli.adb: Likewise.
10287         * s-vallli.ads: Likewise.
10288         * s-valllu.adb: Likewise.
10289         * s-valllu.ads: Likewise.
10290         * s-valrea.adb: Likewise.
10291         * s-valrea.ads: Likewise.
10292         * s-valuns.adb: Likewise.
10293         * s-valuns.ads: Likewise.
10294         * s-valuti.adb: Likewise.
10295         * s-valuti.ads: Likewise.
10296         * s-valwch.adb: Likewise.
10297         * s-valwch.ads: Likewise.
10298         * s-veboop.adb: Likewise.
10299         * s-veboop.ads: Likewise.
10300         * s-vector.ads: Likewise.
10301         * s-vercon.adb: Likewise.
10302         * s-vercon.ads: Likewise.
10303         * s-vmexta.adb: Likewise.
10304         * s-vmexta.ads: Likewise.
10305         * s-vxwext-kernel.ads: Likewise.
10306         * s-vxwext-rtp.adb: Likewise.
10307         * s-vxwext-rtp.ads: Likewise.
10308         * s-vxwext.ads: Likewise.
10309         * s-vxwork-arm.ads: Likewise.
10310         * s-vxwork-m68k.ads: Likewise.
10311         * s-vxwork-mips.ads: Likewise.
10312         * s-vxwork-ppc.ads: Likewise.
10313         * s-vxwork-sparcv9.ads: Likewise.
10314         * s-vxwork-x86.ads: Likewise.
10315         * s-wchcnv.adb: Likewise.
10316         * s-wchcnv.ads: Likewise.
10317         * s-wchcon.adb: Likewise.
10318         * s-wchcon.ads: Likewise.
10319         * s-wchjis.adb: Likewise.
10320         * s-wchjis.ads: Likewise.
10321         * s-wchstw.adb: Likewise.
10322         * s-wchstw.ads: Likewise.
10323         * s-wchwts.adb: Likewise.
10324         * s-wchwts.ads: Likewise.
10325         * s-widboo.adb: Likewise.
10326         * s-widboo.ads: Likewise.
10327         * s-widcha.adb: Likewise.
10328         * s-widcha.ads: Likewise.
10329         * s-widenu.adb: Likewise.
10330         * s-widenu.ads: Likewise.
10331         * s-widlli.adb: Likewise.
10332         * s-widlli.ads: Likewise.
10333         * s-widllu.adb: Likewise.
10334         * s-widllu.ads: Likewise.
10335         * s-widwch.adb: Likewise.
10336         * s-widwch.ads: Likewise.
10337         * s-win32.ads: Likewise.
10338         * s-winext.ads: Likewise.
10339         * s-wwdcha.adb: Likewise.
10340         * s-wwdcha.ads: Likewise.
10341         * s-wwdenu.adb: Likewise.
10342         * s-wwdenu.ads: Likewise.
10343         * s-wwdwch.adb: Likewise.
10344         * s-wwdwch.ads: Likewise.
10345         * scans.adb: Likewise.
10346         * scans.ads: Likewise.
10347         * seh_init.c: Likewise.
10348         * sfn_scan.adb: Likewise.
10349         * sinfo.adb: Likewise.
10350         * sinfo.ads: Likewise.
10351         * sinput.adb: Likewise.
10352         * sinput.ads: Likewise.
10353         * snames.adb: Likewise.
10354         * snames.ads: Likewise.
10355         * socket.c: Likewise.
10356         * stand.adb: Likewise.
10357         * stand.ads: Likewise.
10358         * stringt.adb: Likewise.
10359         * stringt.ads: Likewise.
10360         * sysdep.c: Likewise.
10361         * system-aix.ads: Likewise.
10362         * system-darwin-ppc.ads: Likewise.
10363         * system-darwin-x86.ads: Likewise.
10364         * system-darwin-x86_64.ads: Likewise.
10365         * system-freebsd-x86.ads: Likewise.
10366         * system-hpux-ia64.ads: Likewise.
10367         * system-hpux.ads: Likewise.
10368         * system-irix-n32.ads: Likewise.
10369         * system-irix-n64.ads: Likewise.
10370         * system-irix-o32.ads: Likewise.
10371         * system-linux-alpha.ads: Likewise.
10372         * system-linux-hppa.ads: Likewise.
10373         * system-linux-ia64.ads: Likewise.
10374         * system-linux-mips.ads: Likewise.
10375         * system-linux-mipsel.ads: Likewise.
10376         * system-linux-ppc.ads: Likewise.
10377         * system-linux-ppc64.ads: Likewise.
10378         * system-linux-s390.ads: Likewise.
10379         * system-linux-s390x.ads: Likewise.
10380         * system-linux-sh4.ads: Likewise.
10381         * system-linux-sparc.ads: Likewise.
10382         * system-linux-sparcv9.ads: Likewise.
10383         * system-linux-x86.ads: Likewise.
10384         * system-linux-x86_64.ads: Likewise.
10385         * system-lynxos-ppc.ads: Likewise.
10386         * system-lynxos-x86.ads: Likewise.
10387         * system-mingw-x86_64.ads: Likewise.
10388         * system-mingw.ads: Likewise.
10389         * system-rtems.ads: Likewise.
10390         * system-solaris-sparc.ads: Likewise.
10391         * system-solaris-sparcv9.ads: Likewise.
10392         * system-solaris-x86.ads: Likewise.
10393         * system-solaris-x86_64.ads: Likewise.
10394         * system-tru64.ads: Likewise.
10395         * system-vms-ia64.ads: Likewise.
10396         * system-vms-zcx.ads: Likewise.
10397         * system-vms.ads: Likewise.
10398         * system-vms_64.ads: Likewise.
10399         * system-vxworks-arm.ads: Likewise.
10400         * system-vxworks-m68k.ads: Likewise.
10401         * system-vxworks-mips.ads: Likewise.
10402         * system-vxworks-ppc.ads: Likewise.
10403         * system-vxworks-sparcv9.ads: Likewise.
10404         * system-vxworks-x86.ads: Likewise.
10405         * system.ads: Likewise.
10406         * table.adb: Likewise.
10407         * table.ads: Likewise.
10408         * targext.c: Likewise.
10409         * targparm.ads: Likewise.
10410         * tree_in.adb: Likewise.
10411         * tree_in.ads: Likewise.
10412         * tree_io.adb: Likewise.
10413         * tree_io.ads: Likewise.
10414         * types.adb: Likewise.
10415         * types.ads: Likewise.
10416         * uintp.adb: Likewise.
10417         * uintp.ads: Likewise.
10418         * uname.adb: Likewise.
10419         * uname.ads: Likewise.
10420         * urealp.adb: Likewise.
10421         * urealp.ads: Likewise.
10422         * vx_stack_info.c: Likewise.
10423         * widechar.adb: Likewise.
10424         * widechar.ads: Likewise.
10425         * exp_attr.adb: Change copyright header to refer to version
10426         3 of the GNU General Public License and to point readers at the
10427         COPYING3 file and the FSF's license web page.
10428         * sem.adb: Likewise.
10429         * sem_attr.ads: Likewise.
10430         * freeze.adb: Likewise.
10431         * freeze.ads: Likewise.
10432         * errout.ads: Likewise.
10433         * erroutc.adb: Likewise.
10434         * exp_ch11.ads: Likewise.
10435
10436 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
10437
10438         * config-lang.in: Change copyright header to refer to version
10439         3 of the GNU General Public License and to point readers at the
10440         COPYING3 file and the FSF's license web page.
10441         * gcc-interface/trans.c: Likewise.
10442         * gnathtml.pl: Likewise.
10443         * gcc-interface/ada.h: Likewise.  Remove runtime exception.
10444         * gcc-interface/gigi.h: Likewise.
10445         * gcc-interface/misc.c: Likewise.
10446         * gcc-interface/targtyps.c: Likewise.
10447
10448 2009-04-09  Nicolas Setton  <setton@adacore.com>
10449
10450         * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
10451
10452         * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
10453         struct_timeval.
10454
10455 2009-04-09  Bob Duff  <duff@adacore.com>
10456
10457         * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
10458         internally-generated nodes related to select statements to avoid
10459         confusing the debugger.
10460
10461 2009-04-09  Pascal Obry  <obry@adacore.com>
10462
10463         * make.adb: Ensure that all linker arguments are duplicated.
10464
10465 2009-04-09  Robert Dewar  <dewar@adacore.com>
10466
10467         * sem_ch5.adb: Minor reformatting
10468
10469 2009-04-09  Vincent Celier  <celier@adacore.com>
10470
10471         * vms_data.ads:
10472         Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
10473         New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
10474         New qualifier /LXDEBUG=nnn for -gnatDnnn
10475         For H820-010
10476
10477         * gnat_ugn.texi:
10478         Update documentation for VMS qualifiers equivalent to -gnatGnn and
10479         -gnatDnn
10480
10481 2009-04-09  Nicolas Setton  <setton@adacore.com>
10482
10483         * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
10484         to match layout of siginfo_t in sys/signal.h.
10485
10486         * gcc-interface/Makefile.in: Add section for x86_64 darwin.
10487
10488 2009-04-09  Thomas Quinot  <quinot@adacore.com>
10489
10490         * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
10491
10492 2009-04-09  Nicolas Setton  <setton@adacore.com>
10493
10494         * s-oscons-tmplt.c: Allow long lines in the generated spec.
10495         Add generation of Darwin-specific constants needed when binding to the
10496         pthread library.
10497
10498 2009-04-09  Robert Dewar  <dewar@adacore.com>
10499
10500         * checks.adb:
10501         (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
10502         when no invalid values exist, Avoid duplicate read of atomic variable.
10503
10504         * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
10505         (Standard_Unsigned): Set Is_Known_Valid
10506
10507         * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
10508         subtype declaration if no constraint.
10509         (Set_Modular_Size): Set Is_Known_Valid if appropriate
10510         (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
10511
10512 2009-04-09  Robert Dewar  <dewar@adacore.com>
10513
10514         * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
10515         switch.ads: for numeric switches, an optional equal sign is always
10516         allowed.
10517
10518 2009-04-09  Vincent Celier  <celier@adacore.com>
10519
10520         * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
10521         the case of file names is not significant.
10522
10523 2009-04-09  Vincent Celier  <celier@adacore.com>
10524
10525         * errout.adb: Remove dependency on package Style
10526
10527         * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
10528         moved to Stylesw.
10529         
10530         * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
10531         Styleg.
10532
10533         * errutil.adb, par.adb: Import Stylesw
10534
10535 2009-04-09  Arnaud Charlet  <charlet@adacore.com>
10536
10537         * opt.ads: Fix typos.
10538
10539 2009-04-09  Robert Dewar  <dewar@adacore.com>
10540
10541         * einfo.adb: Minor reformatting
10542
10543 2009-04-09  Robert Dewar  <dewar@adacore.com>
10544
10545         * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
10546         units.
10547
10548         * styleg-c.ads, styleg-c.adb: Removed, no longer used.
10549
10550 2009-04-09  Robert Dewar  <dewar@adacore.com>
10551
10552         * g-comver.adb: Minor reformatting.
10553
10554 2009-04-09  Thomas Quinot  <quinot@adacore.com>
10555
10556         * lib-load.ads (Load_Unit): Update documentation.
10557
10558 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
10559
10560         * lib-load.adb (Load_Unit): When loading the parent of a child unit
10561         named in a with_clause, retain the with_clause to preserve a
10562         limited_with indication.
10563
10564 2009-04-09  Robert Dewar  <dewar@adacore.com>
10565
10566         * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
10567         exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
10568         sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
10569         possible to replace an OR of two separate tests.
10570
10571 2009-04-09  Robert Dewar  <dewar@adacore.com>
10572
10573         * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
10574         Maximum_Messages.
10575         
10576         * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
10577         warning status as well.
10578         
10579         * opt.ads (Maximum_Messages): New name for Maximum_Errors.
10580         
10581         * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
10582         Maximum_Messages.
10583         
10584         * bindusg.adb, usage.adb: Update line for -gnatm switch
10585
10586         * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
10587         -mnn binder switch.
10588
10589 2009-04-09  Robert Dewar  <dewar@adacore.com>
10590
10591         * sem_ch10.adb: Minor reformatting.
10592
10593 2009-04-09  Bob Duff  <duff@adacore.com>
10594
10595         * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
10596         Set Sloc of generated nodes for calls to Undefer_Aborts and
10597         Save_Occurrence to No_Location, so the debugger ignores them and
10598         therefore does not jump back and forth when single stepping.
10599
10600 2009-04-09  Robert Dewar  <dewar@adacore.com>
10601
10602         * switch-b.adb: Minor reformatting.
10603
10604 2009-04-09  Robert Dewar  <dewar@adacore.com>
10605
10606         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
10607         sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
10608         exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
10609         sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
10610         einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
10611         tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
10612         exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
10613         sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
10614         sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
10615         sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
10616         Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
10617
10618 2009-04-09  Robert Dewar  <dewar@adacore.com>
10619
10620         * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
10621
10622         * atree.h: Add Elist26
10623
10624         * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
10625         backends.
10626
10627 2009-04-09  Javier Miranda  <miranda@adacore.com>
10628
10629         * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
10630         retrieve from the Dispatch_Table_Wrappers list the external name.
10631         Addition of documentation.
10632         (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
10633         used to export secondary dispatch tables (in the previous version of
10634         the frontend only primary dispatch tables were exported). Addition of
10635         documentation.
10636         (Import_DT): New subprogram (internal of Make_Tags). Used to import a
10637         dispatch table of a given tagged type. 
10638         (Make_Tags): Modified to import secondary dispatch tables.
10639
10640         * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
10641         (Constant_Redeclaration): Code cleanup.
10642
10643         * einfo.ads (Dispatch_Table_Wrapper): Renamed to
10644         Dispatch_Table_Wrappers.  Update documentation.
10645
10646         * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
10647         Renamed to Dispatch_Table_Wrappers.
10648
10649         * sem_util.adb (Collect_Interface_Components): Improve handling of
10650         private types.
10651
10652         * atree.ads (Elist26, Set_Elist26): New subprograms
10653
10654         * atree.adb (Elist26, Set_Elist26): New subprograms
10655
10656 2009-04-09  Javier Miranda  <miranda@adacore.com>
10657
10658         * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
10659         (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
10660         tagged types.
10661
10662 2009-04-09  Robert Dewar  <dewar@adacore.com>
10663
10664         * s-direio.adb: Minor reformatting
10665
10666         * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
10667
10668 2009-04-09  Robert Dewar  <dewar@adacore.com>
10669
10670         * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
10671
10672 2009-04-09  Pascal Obry  <obry@adacore.com>
10673
10674         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
10675         s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
10676         a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
10677         a-filico.ads: Add some missing overriding keywords.
10678
10679 2009-04-09  Pascal Obry  <obry@adacore.com>
10680
10681         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
10682         a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
10683         a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
10684         reformatting.
10685
10686 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
10687
10688         * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
10689         missing overriding indicator if the new declaration is not seen as
10690         primitive.
10691
10692 2009-04-09  Thomas Quinot  <quinot@adacore.com>
10693
10694         * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
10695         overflows in computation of bounds.
10696
10697 2009-04-09  Pascal Obry  <obry@adacore.com>
10698
10699         * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
10700         typos in comment.
10701
10702 2009-04-09  Robert Dewar  <dewar@adacore.com>
10703
10704         * sem_attr.adb (Check_Stream_Attribute): Check violation of
10705         restriction No_Streams
10706
10707         * gnat_rm.texi: Clarify No_Streams restriction
10708
10709         * g-socket.adb: Minor reformatting.
10710
10711 2009-04-09  Thomas Quinot  <quinot@adacore.com>
10712
10713         * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
10714
10715 2009-04-09  Geert Bosch  <bosch@adacore.com>
10716
10717         * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
10718         (Set_Result): Likewise.
10719         (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
10720         conversion, as required by RM 4.6(31).
10721
10722 2009-04-08  Robert Dewar  <dewar@adacore.com>
10723
10724         * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
10725         suppressed.
10726         
10727         * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
10728         resolution steps.
10729
10730 2009-04-08  Robert Dewar  <dewar@adacore.com>
10731
10732         * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
10733         No_Local_Allocators restriction preventing local instantiation.
10734
10735 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10736
10737         * sem_eval.adb: Minor comment fix
10738
10739 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10740
10741         * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
10742         New limited controlled type used to automate the initialization and
10743         finalization of the sockets implementation.
10744         (GNAT.Sockets.Initialize, Finalize): Make these no-ops
10745
10746 2009-04-08  Vincent Celier  <celier@adacore.com>
10747
10748         * prj-attr.adb: New read-only project-level attribute Project_Dir
10749
10750         * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
10751         read-only attribute of the same name.
10752         (Process_Declarative_Items): Call Add_Attributes with Project_Dir
10753         (Recursive_Process): Ditto
10754
10755         * snames.adb: Add new standard name Project_Dir
10756
10757         * snames.ads: Add new standard name Project_Dir
10758
10759 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10760
10761         * checks.adb: Minor reformatting
10762
10763 2009-04-08  Vincent Celier  <celier@adacore.com>
10764
10765         * vms_data.ads: Add documentation for new style keyword
10766         OVERRIDING_INDICATORS
10767
10768 2009-04-08  Robert Dewar  <dewar@adacore.com>
10769
10770         * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
10771         spec is in the current unit.
10772
10773 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10774
10775         * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
10776         presence of entity.
10777
10778         * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
10779
10780 2009-04-08  Vincent Celier  <celier@adacore.com>
10781
10782         * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
10783
10784 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10785
10786         * checks.ads: Minor reformatting
10787
10788 2009-04-08  Robert Dewar  <dewar@adacore.com>
10789
10790         * gnat_rm.texi: Update documentation of pragma Obsolescent
10791         
10792         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
10793         be omitted, and allow Entity parameter to be omitted.
10794
10795 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10796
10797         * exp_util.adb: Minor comment fix
10798
10799 2009-04-08  Robert Dewar  <dewar@adacore.com>
10800
10801         * g-socket.ads: Fix bad syntax in pragma Obsolescent
10802
10803         * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
10804         argument with no identifier following one that has an identifier. Was
10805         missed in some cases.
10806
10807         * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
10808         identifier.
10809         (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
10810
10811         * snames.adb: Add Name_Policy
10812
10813         * snames.ads: Add Name_Policy
10814
10815 2009-04-08  Robert Dewar  <dewar@adacore.com>
10816
10817         * gnat_rm.texi: Minor reformatting
10818
10819         * par-ch2.adb: Minor reformatting
10820
10821 2009-04-08  Robert Dewar  <dewar@adacore.com>
10822
10823         * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
10824
10825 2009-04-08  Robert Dewar  <dewar@adacore.com>
10826
10827         * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
10828         properly in the presence of Remote_Types or Remote_Call_Interface.
10829
10830         * sem_util.adb: Add comment.
10831
10832 2009-04-08  Robert Dewar  <dewar@adacore.com>
10833
10834         * ug_words: Add /ASSUME_VALID for -gnatB
10835
10836         * vms_data.ads: Add /ASSUME_VALID for -gnatB
10837
10838         * sem_cat.adb: Add clarifying commment
10839
10840         * a-direio.ads (Bytes): Make sure value is non-zero
10841
10842 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10843
10844         * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
10845         that does not come from source, check for a rewritten function call in
10846         prefixed notation before other forms of rewriting.
10847
10848 2009-04-08  Robert Dewar  <dewar@adacore.com>
10849
10850         * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
10851         these are now obsolescent units used only for bootrapping with an
10852         older compiler.
10853
10854 2009-04-08  Robert Dewar  <dewar@adacore.com>
10855
10856         * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
10857
10858         * sem_ch3.adb: Minor comment updates
10859
10860 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10861
10862         * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
10863         that come from source.
10864
10865 2009-04-08  Tristan Gingold  <gingold@adacore.com>
10866
10867         * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
10868         * gcc-interface/decl.c (prepend_attributes): New case
10869         Pragma_Thread_Local_Storage.
10870         * gcc-interface/utils.c (process_attributes): New case
10871         ATTR_THREAD_LOCAL_STORAGE.
10872
10873 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10874
10875         * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
10876         by the back-end if it contains a call to a subprogram without a
10877         previous spec that is declared in the same unit.
10878
10879         * errout.ads: Update comments on uses of dirs
10880
10881 2009-04-08  Robert Dewar  <dewar@adacore.com>
10882
10883         * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
10884
10885 2009-04-08  Tristan Gingold  <gingold@adacore.com>
10886
10887         * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
10888         variables.
10889         Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
10890
10891 2009-04-08  Vincent Celier  <celier@adacore.com>
10892
10893         * prj-nmsc.adb:
10894         (Add_Source): Add the mapping of the unit name to source file name in
10895         the Unit_Sources_HT hash table, if the unit name is not null.
10896
10897         * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
10898
10899         * prj.ads (Unit_Sources_Htable): New hash table instantiation
10900         (Project_Tree_Data): New component Unit_Sources_HT
10901
10902 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10903
10904         * sem_ch8.adb: Minor reformatting.
10905         Minor code reorganization.
10906
10907 2009-04-08  Robert Dewar  <dewar@adacore.com>
10908
10909         * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
10910         snames.ads, freeze.adb, par-prag.adb: Add implementation of
10911         pragma Thread_Local_Storage, setting new flag
10912         Has_Pragma_Thread_Local_Storage in corresponding entities.
10913
10914 2009-04-08  Emmanuel Briot  <briot@adacore.com>
10915
10916         * prj.ads: Update comment on switches file
10917
10918         * prj-nmsc.adb: Code clean up. Use renaming clauses.
10919
10920 2009-04-08  Robert Dewar  <dewar@adacore.com>
10921
10922         * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
10923
10924 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10925
10926         * ali-util.adb: Minor comment fix
10927
10928 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10929
10930         * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
10931         appears in a context clause, and the enclosing package is mentioned in
10932         a limited_with_clause.
10933         (Use_One_Type): Reject clause if type is still incomplete.
10934
10935 2009-04-08  Emmanuel Briot  <briot@adacore.com>
10936
10937         * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
10938         avoid copies of Source_Data variables when possible, since these
10939         involve calls to memcpy() which are done too many times.
10940
10941 2009-04-08  Robert Dewar  <dewar@adacore.com>
10942
10943         * exp_ch4.adb (Expand_Concatenate): Clean up code
10944
10945 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10946
10947         * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
10948         type for the case of concatenating a constrained array indexed by an
10949         enumeration type.
10950
10951 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10952
10953         * sem_ch6.adb (Check_Conformance): when checking conformance of an
10954         operation that overrides an abstract operation inherited from an
10955         interface, return False if only one of the controlling formals is an
10956         access parameter.
10957
10958 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10959
10960         * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
10961         mandated by AI05-105.
10962
10963 2009-04-07  Vincent Celier  <celier@adacore.com>
10964
10965         * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
10966
10967 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10968
10969         * usage.adb: Minor fix in usage message.
10970
10971         * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
10972         match declaration; the correct subtype is Node_Id, not Entity_Id,
10973         because the expected node kind is an identifier, not a defining
10974         identifier.
10975
10976         * switch-c.adb: Minor reformatting.
10977
10978         * uintp.adb: Minor reformatting.
10979
10980 2009-04-07  Robert Dewar  <dewar@adacore.com>
10981
10982         * exp_ch13.adb: Minor reformatting
10983
10984 2009-04-07  Robert Dewar  <dewar@adacore.com>
10985
10986         * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
10987         against missing parent.
10988
10989 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10990
10991         * xoscons.adb: Minor reformatting
10992
10993 2009-04-07  Robert Dewar  <dewar@adacore.com>
10994
10995         * rtsfind.ads: Remove obsolete string concatenation entries
10996
10997 2009-04-07  Robert Dewar  <dewar@adacore.com>
10998
10999         * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
11000
11001 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11002
11003         * sem_ch10.adb (Check_Body_Required): Handle properly imported
11004         subprograms.
11005
11006 2009-04-07  Gary Dismukes  <dismukes@adacore.com>
11007
11008         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
11009         Attribute_Address): When Init_Or_Norm_Scalars is True and the object
11010         is of a scalar or string type then suppress the setting of the
11011         expression to Empty.
11012
11013         * freeze.adb (Warn_Overlay): Also emit the warnings about default
11014         initialization for the cases of scalar and string objects when
11015         Init_Or_Norm_Scalars is True.
11016
11017 2009-04-07  Bob Duff  <duff@adacore.com>
11018
11019         * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
11020
11021 2009-04-07  Bob Duff  <duff@adacore.com>
11022
11023         * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
11024         Form parameter of Text_Translation=No allows binary mode for Text_IO
11025         files.
11026
11027         * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
11028
11029 2009-04-07  Javier Miranda  <miranda@adacore.com>
11030
11031         * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
11032         processing the bounds for bit packed arrays or VM target machines.
11033
11034 2009-04-07  Thomas Quinot  <quinot@adacore.com>
11035
11036         * g-sothco.ads (Int_Access): Remove extraneous access type (use
11037         anonymous access instead).
11038         (Get_Socket_From_Set): Fix incorrectly reverted formals
11039         Last and Socket to match the underlying C routine.
11040
11041         * g-socket.adb, g-socket.ads
11042         (Get): Use named parameter associations instead of positional ones in
11043         call go Get_Socket_From_Set, since this routine has two formals of the
11044         same type.
11045         (Image): New procedure.
11046
11047         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11048         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
11049         (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
11050         for type of Arg formal.
11051
11052         * sem_warn.adb: Minor reformatting
11053
11054 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11055
11056         * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
11057         over record components.
11058
11059 2009-04-07  Nicolas Roche  <roche@adacore.com>
11060
11061         * gsocket.h:
11062         Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
11063         has disappeared between VxWorks 6.4 and VxWorks 6.5
11064         In RTP mode use time.h instead of times.h
11065
11066 2009-04-07  Robert Dewar  <dewar@adacore.com>
11067
11068         * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
11069
11070 2009-04-07  Kevin Pouget  <pouget@adacore.com>
11071
11072         * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
11073         expanded code for constrained types.
11074
11075 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11076
11077         * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
11078         AI05-105: in an object renaming declaration, anonymousness is a name
11079         resolution rule.
11080
11081         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
11082
11083 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
11084
11085         * g-comlin.adb (Expansion): Fix old regression: also return directory
11086         names when matching.
11087
11088 2009-04-07  Robert Dewar  <dewar@adacore.com>
11089
11090         * exp_ch4.adb:
11091         (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
11092         (Expand_Concatenate): New name for Expand_Concatenate_String which has
11093         been rewritten to handle all types.
11094         (Expand_Concatenate_Other): Remove
11095
11096 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11097
11098         * lib-xref.adb (Generate_Reference): A default subprogram in an
11099         instance appears within the tree for the instance, but generates an
11100         implicit reference in the ALI.
11101
11102 2009-04-07  Javier Miranda  <miranda@adacore.com>
11103
11104         * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
11105         derived type that has discriminants, propagate the list of interfaces
11106         to the corresponding new base type. In addition, propagate also
11107         attribute Limited_Present (found working in this patch).
11108
11109 2009-04-07  Robert Dewar  <dewar@adacore.com>
11110
11111         * exp_ch4.adb: Rewrite concatenation expansion.
11112
11113 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11114
11115         * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
11116         relevant to packages.
11117
11118 2009-04-07  Robert Dewar  <dewar@adacore.com>
11119
11120         * sem_attr.adb: Minor reformatting
11121
11122         * sem_ch6.adb: Minor reformatting
11123
11124 2009-04-07  Tristan Gingold  <gingold@adacore.com>
11125
11126         * socket.c: Add more protections against S_resolvLib_ macros.
11127
11128 2009-04-07  Thomas Quinot  <quinot@adacore.com>
11129
11130         * sem_attr.adb: Minor reformatting
11131
11132 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11133
11134         * sem_ch6.adb (New_Overloaded_Entity): New predicate
11135         Is_Overriding_Alias to handle properly types that inherit two homonym
11136         operations that have distinct dispatch table entries.
11137
11138 2009-04-07  Emmanuel Briot  <briot@adacore.com>
11139
11140         * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
11141         looking for the end of a parenthesis group
11142
11143 2009-04-07  Tristan Gingold  <gingold@adacore.com>
11144
11145         * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
11146
11147         * socket.c Don't use resolvLib_ macros if not defined.
11148
11149 2009-04-07  Robert Dewar  <dewar@adacore.com>
11150
11151         * g-socket.adb: Minor reformatting.
11152
11153         * g-socthi-mingw.adb: Minor reformatting
11154
11155         * g-sothco.ads: Minor reformatting
11156
11157         * exp_ch4.adb:
11158         (Expand_Concatenate_String): Complete rewrite to generate efficient code
11159         inline instead of relying on external library routines.
11160
11161         * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
11162         s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
11163         obsolescent
11164
11165 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11166
11167         * sem_attr.adb:
11168         (Eval_Attribute): for attributes of array objects that are not strings,
11169         attributes are not static if nominal subtype of object is unconstrained.
11170
11171 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
11172
11173         * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
11174         operations for a type T in an instance do not override each other,
11175         when T is derived from a formal private type, the corresponding
11176         operations inherited by a type derived from T outside
11177         of the instance do not override each other either.
11178
11179 2009-04-07  Robert Dewar  <dewar@adacore.com>
11180
11181         (Osint.Fail): Change calling sequence to have one string arg
11182         (Make.Make_Failed): Same change
11183         All callers are adjusted to use concatenation
11184
11185 2009-04-07  Robert Dewar  <dewar@adacore.com>
11186
11187         * exp_ch4.adb: Fix documentation typo
11188
11189 2009-04-07  Robert Dewar  <dewar@adacore.com>
11190
11191         * tbuild.ads: Minor reformatting
11192
11193 2009-04-07  Javier Miranda  <miranda@adacore.com>
11194
11195         * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
11196         when compiling under ZFP runtime.
11197
11198 2009-04-07  Robert Dewar  <dewar@adacore.com>
11199
11200         * g-comlin.adb: Minor reformatting
11201
11202 2009-04-07  Thomas Quinot  <quinot@adacore.com>
11203
11204         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11205         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
11206         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
11207         Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
11208
11209 2009-04-07  Robert Dewar  <dewar@adacore.com>
11210
11211         * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
11212
11213         * opt.ads (Sprint_Line_Limit): New parameter
11214         
11215         * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
11216         
11217         * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
11218         
11219         * usage.adb: Output information for -gnatGnn -gnatDnn
11220
11221 2009-04-07  Robert Dewar  <dewar@adacore.com>
11222
11223         * make.adb: Minor reformatting
11224
11225 2009-04-07  Robert Dewar  <dewar@adacore.com>
11226
11227         * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
11228
11229 2009-04-07  Robert Dewar  <dewar@adacore.com>
11230
11231         * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
11232
11233 2009-04-07  Robert Dewar  <dewar@adacore.com>
11234
11235         * checks.adb:
11236         Remove Assume_Valid parameter from In_Subrange_Of calls
11237         
11238         * sem_eval.adb:
11239         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11240         (Is_In_Range): Remove incorrect use of Assume_Valid
11241         (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
11242         
11243         * sem_eval.ads:
11244         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11245         (Is_In_Range): Documentation cleanup
11246         (Is_Out_Of_Range): Documentation cleanup
11247
11248         * gnat_rm.texi:
11249         Add documentation for Assume_No_Invalid_Values pragma
11250
11251         * sem_ch12.adb: Minor reformatting
11252
11253         * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
11254
11255         * sem_prag.adb: Improve error message.
11256
11257         * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
11258         LF/CR no longer recognized as line terminator
11259
11260         * switch.ads: Minor documentation improvement
11261
11262         * vms_data.ads: Minor reformatting
11263
11264 2009-04-07  Robert Dewar  <dewar@adacore.com>
11265
11266         * checks.adb (Determine_Range): Add Assume_Valid parameter
11267         
11268         * checks.ads (Determine_Range): Add Assume_Valid parameter
11269         
11270         * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
11271          Is_Null_Loop to suppress warnings in a loop body.
11272         
11273         * exp_ch4.adb:
11274         (Rewrite_Comparison): Major rewrite to accomodate invalid values
11275         
11276         * exp_ch5.adb:
11277         (Expand_N_Loop_Statement): Delete loop known not to execute
11278         
11279         * opt.ads:
11280         (Assume_No_Invalid_Values): Now set to False, and as documented, this
11281          fully enables the proper handling of invalid values.
11282         
11283         * sem_attr.adb:
11284         New calling sequence for Is_In_Range
11285         
11286         * sem_ch5.adb:
11287         (Analyze_Iteration_Scheme): Accomodate possible invalid values
11288          in determining if a loop range is null.
11289         
11290         * sem_eval.adb:
11291         (Is_In_Range): Add Assume_Valid parameter
11292         (Is_Out_Of_Range): Add Assume_Valid_Parameter
11293         (Compile_Time_Compare): Major rewrite to accomodate invalid values and
11294          also to do more accurate and complete range analysis, catching more
11295          cases.
11296         
11297         * sem_eval.ads:
11298         (Is_In_Range): Add Assume_Valid parameter
11299         (Is_Out_Of_Range): Add Assume_Valid_Parameter
11300         
11301         * sem_util.adb:
11302         New calling sequence for Is_In_Range
11303         
11304         * sinfo.adb:
11305         (Suppress_Loop_Warnings): New flag
11306         
11307         * sinfo.ads:
11308         (Is_Null_Loop): Update documentation
11309         (Suppress_Loop_Warnings): New flag
11310         
11311         * gnat_ugn.texi: Document -gnatB switch
11312
11313 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
11314
11315         * gnatvsn.ads: Bump version number.
11316
11317 2009-04-07  Thomas Quinot  <quinot@adacore.com>
11318
11319         * exp_ch3.adb: Minor rewording (comments)
11320
11321 2009-04-07  Robert Dewar  <dewar@adacore.com>
11322
11323         * exp_disp.adb: Minor reformatting
11324
11325 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11326
11327         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
11328         underlying type.
11329         * gcc-interface/trans.c (lvalue_required_p): Likewise.
11330
11331 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11332
11333         * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
11334         Do not convert the result.  Remove obsolete comment.
11335
11336 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11337
11338         * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
11339         DECL_CONTEXT.
11340         (Subprogram_Body_to_gnu): Fix pasto.
11341
11342 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11343
11344         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
11345         (void_type_decl_node): Remove.
11346         (init_gigi_decls): Likewise.
11347         (gnat_install_builtins): Declare.
11348         (record_builtin_type): Likewise.
11349         (create_type_stub_decl): Likewise.
11350         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
11351         (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
11352         artificial.
11353         <E_Array_Subtype>: Use the index types, not only their name, in the
11354         record giving the names of the bounds, if any.
11355         For a packed array type, make it artificial only if the base type
11356         was artificial as well.  Remove redundant statement.
11357         (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
11358         dummy types.
11359         Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
11360         (rest_of_type_decl_compilation_no_defer): Likewise.
11361         * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
11362         * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
11363         and use create_type_stub_decl to build it.
11364         (gnat_pushdecl): Rewrite condition.
11365         (gnat_install_builtins): Remove bogus declaration.
11366         (record_builtin_type): New function.
11367         (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
11368         of types.
11369         (create_type_stub_decl): New function.
11370         (create_type_decl): Assert that the type is not dummy.  If the type
11371         hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
11372         (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
11373         (build_vms_descriptor): Likewise.
11374         (init_gigi_decls): Delete and move bulk of code to...
11375         * gcc-interface/trans.c (gigi): ...here.  Use record_builtin_type.
11376         (emit_range_check): Add gnat_node parameter.
11377         (emit_index_check): Likewise.
11378         (emit_check): Likewise.
11379         (build_unary_op_trapv): Likewise.
11380         (build_binary_op_trapv): Likewise.
11381         (convert_with_check): Likewise.
11382         (Attribute_to_gnu): Adjust calls for above changes.
11383         (call_to_gnu): Likewise.
11384         (gnat_to_gnu): Likewise.
11385         (assoc_to_constructor): Likewise.
11386         (pos_to_constructor): Likewise.
11387         (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
11388         (process_type): Do not create TYPE_DECL for dummy types.
11389
11390 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11391
11392         * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
11393         * gcc-interface/trans.c: Fix formatting throughout.  Fix comments.
11394         * gcc-interface/utils.c: Fix comments.
11395
11396 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11397
11398         * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
11399         move around.
11400         (gnat_to_gnu_type): Move around.
11401         (get_unpadded_type): Likewise.
11402         * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
11403         Tidy comments.
11404
11405 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11406
11407         * gcc-interface/trans.c (check_for_eliminated_entity): New function.
11408         (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
11409         (call_to_gnu): Invoke it instead of manually checking.
11410
11411 2009-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11412
11413         * gcc-interface/utils.c (finish_record_type): Force structural equality
11414         checks if the record type is discriminated.
11415
11416 2009-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11417
11418         * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
11419         * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
11420         * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
11421         * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
11422         * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
11423         * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
11424         * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
11425
11426 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11427
11428         * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
11429         of TREE_CONSTANT_OVERFLOW.
11430
11431 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
11432
11433         PR rtl-optimization/323
11434         * gcc-interface/misc.c (gnat_post_options): Set
11435         flag_excess_precision_cmdline.  Give an error for
11436         -fexcess-precision=standard for processors where the option is
11437         significant.
11438
11439 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11440
11441         PR c/39323
11442         * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
11443         on bit_align.
11444
11445 2009-03-11  Olivier Hainque  <hainque@adacore.com>
11446
11447         * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
11448         checks processing, remove unintended TREE_TYPE walk on index type.
11449
11450 2009-03-01  Eric Botcazou  <ebotcazou@adacore.com>
11451
11452         PR ada/39264
11453         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
11454         call make_packable_type on fat pointer types.
11455         <E_Array_Subtype>: Likewise.
11456         <E_Record_Subtype>: Call make_packable_type on all record types
11457         except for fat pointer types.
11458         (make_packable_type): Likewise.
11459         (gnat_to_gnu_field): Likewise.
11460
11461 2009-02-28  Eric Botcazou  <ebotcazou@adacore.com>
11462
11463         * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
11464         EH_MECHANISM change made on 2007-12-06.
11465
11466 2009-02-26  Andreas Schwab  <schwab@suse.de>
11467
11468         PR ada/39172
11469         * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
11470         * gcc-interface/Makefile.in: Change all uses of $(srcdir),
11471         $(fsrcdir) and $(fsrcpfx) to add ada subdir.
11472         (AWK): Substitute.
11473         (target_cpu_default): Substitute.
11474
11475 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
11476
11477         PR ada/39221
11478         * a-teioed.adb (Expand): Fix Result overflow.
11479
11480 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
11481
11482         * gcc-interface/Makefile.in: Fix multilib handling for
11483         sparc64-linux.
11484
11485 2009-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11486
11487         * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
11488
11489 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11490
11491         * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
11492
11493 2009-02-16  Eric Botcazou  <ebotcazou@adacore.com>
11494
11495         * gcc-interface/deftarg.c: Remove.
11496
11497 2009-02-10  Olivier Hainque  <hainque@adacore.com>
11498             Eric Botcazou  <ebotcazou@adacore.com>
11499
11500         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
11501         (copy_alias_set): Rename into...
11502         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
11503         underlying array of unconstrained arrays for the new type as well.
11504         If the old and new alias sets don't conflict, make one a subset of
11505         the other as per the OP parameter.
11506         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
11507         <E_Record_Type>: Do not copy the alias set for derived types.
11508         For all types, make the alias set of derived types a superset of
11509         that of their parent type.
11510         (make_aligning_type): Adjust calls to copy_alias_set.
11511         (make_packable_type): Likewise.
11512         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
11513         Check for alias set conflict instead of strict equality to issue the
11514         warning.
11515
11516 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
11517
11518         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11519         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
11520         (copy_alias_set): Assert that arrays have the same aliasing settings.
11521         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
11522
11523 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
11524
11525         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11526         Set TYPE_NONALIASED_COMPONENT on the array type.
11527
11528 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
11529
11530         * gcc-interface/Makefile.in: Fix mipsel linux handling.
11531
11532 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
11533
11534         * gcc-interface/Makefile.in: Fix multilib handling for
11535         powerpc64-linux.
11536
11537 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
11538
11539         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
11540         only useless conversions around renamed objects.
11541
11542 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
11543
11544         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
11545         the _Tag field before any discriminants in the field list.
11546         (components_to_record): Remove obsolete comment.
11547
11548
11549 \f
11550 Copyright (C) 2009 Free Software Foundation, Inc.
11551
11552 Copying and distribution of this file, with or without modification,
11553 are permitted in any medium without royalty provided the copyright
11554 notice and this notice are preserved.