1 2009-11-30 Pascal Obry <obry@adacore.com>
3 * expect.c: Fix cast to avoid warnings in x86-64 Windows.
5 2009-11-30 Thomas Quinot <quinot@adacore.com>
7 * gnat_rm.texi, s-sechas.adb, s-sechas.ads, s-shshco.adb,
8 s-shshco.ads, g-md5.adb, g-md5.ads, g-sha256.ads, s-shsh64.adb,
9 s-shsh64.ads, s-sehamd.adb, s-sehamd.ads, g-sha512.ads, g-sha1.adb,
10 g-sha1.ads, Makefile.rtl, g-sha224.ads, g-sha384.ads, s-shsh32.adb,
11 s-shsh32.ads, s-sehash.adb, s-sehash.ads: Reimplementation of GNAT.MD5
12 and GNAT.SHA1 to factor shared code and avoid unnecessary stack copies.
13 Also introduce new functions SHA-{224,256,384,512}
15 2009-11-30 Jerome Lambourg <lambourg@adacore.com>
17 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Improve comment for
20 2009-11-30 Thomas Quinot <quinot@adacore.com>
22 * a-textio.adb: Minor reformatting
24 2009-11-30 Pascal Obry <obry@adacore.com>
26 * adaint.c: Fix bug in passing parameter.
27 * expect.c: Include io.h to get definition of _open_osfhandle
29 2009-11-30 Javier Miranda <miranda@adacore.com>
31 * exp_ch6.adb, sem_scil.adb (Adjust_SCIL_Node): Add missing management
32 of N_Unchecked_Type_Conversion nodes when searching for SCIL nodes.
33 (Expand_Call): Adjust decoration of SCIL node associated with relocated
36 2009-11-30 Emmanuel Briot <briot@adacore.com>
38 * prj-env.adb (Add_To_Source_Path): Preserve casing of directories
40 2009-11-30 Vincent Celier <celier@adacore.com>
42 * opt.ads (No_Split_Units): New flag initialized to False
44 2009-11-30 Jerome Lambourg <lambourg@adacore.com>
46 * exp_ch7.adb (Needs_Finalization): Add comments.
47 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Improve handling of
50 2009-11-30 Robert Dewar <dewar@adacore.com>
52 * osint.adb, a-rttiev.adb: Minor reformatting.
54 2009-11-30 Robert Dewar <dewar@adacore.com>
56 * gnat_rm.texi: Remove list of warning letters, and refer instead to
57 using gnatmake to get a brief list.
59 * debug.adb: Document -gnatd.i to disable pragma Warnings
60 * par-prag.adb, sem_prag.adb: Recognize -gnatd.i to disable Warnings
62 * vms_data.ads: Add /NOWARNINGS_PRAGMS for -gnatd.i
64 2009-11-30 Geert Bosch <bosch@adacore.com>
66 * a-ngelfu.adb (Sin): Correct spelling of sine in comment.
68 2009-11-30 Vincent Celier <celier@adacore.com>
70 * gnatls.adb: Do not call Get_Target_Parameters in Verbose_Mode, as it
71 is not needed and gnatls fails when called with -v -nostdinc.
73 2009-11-30 Emmanuel Briot <briot@adacore.com>
75 * osint.adb, osint.ads (File_Time_Stamp): new subprogram.
77 2009-11-30 Ed Schonberg <schonberg@adacore.com>
79 * gnat_rm.texi, gnat_ugn.texi: Document new syntax for pragma Annotate
81 2009-11-30 Robert Dewar <dewar@adacore.com>
83 * scans.ads (Wide_Wide_Character_Found): New flag
84 * scn.adb (Post_Scan): Set new flag Has_Wide_Wide_Character
85 * scng.adb (Set_String): Set new flag Wide_Wide_Character_Found
86 (Set_String): Fix failure to reset Wide_Character_Found
87 * sinfo.adb (Has_Wide_Wide_Character): New flag in N_String_Literal
88 * sinfo.ads (Has_Wide_Wide_Character): New flag in N_String_Literal
89 * a-ngelfu.adb: Minor reformatting & code reorganization.
90 * usage.adb: Fix typo in -gnatw.W line
92 2009-11-30 Robert Dewar <dewar@adacore.com>
94 * osint.adb, prj-nmsc.adb, sem_prag.adb, sem_util.adb: Minor
96 * csinfo.adb: Terminate run if improper use of reserved flag
97 * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): Don't use reserved
98 Flag12, used Flag13 instead.
100 2009-11-30 Vincent Celier <celier@adacore.com>
102 * gnatcmd.adb (Check_Files): Recognize documented switches that have a
105 2009-11-30 Robert Dewar <dewar@adacore.com>
107 * sem_util.ads: Minor reformatting
108 * errout.adb: Minor reformatting
109 Minor code reorganization (use N_Subprogram_Specification to simplify)
110 * exp_ch7.adb: Add comment.
112 2009-11-30 Thomas Quinot <quinot@adacore.com>
114 * put_scos.adb (Put_SCOs): Do not generate a SCO unit header for a unit
116 * scos.ads: Minor reformatting
118 2009-11-30 Ed Schonberg <schonberg@adacore.com>
120 * sem_prag.adb: Second unanalyzed parameter of Annotate is optional.
122 2009-11-30 Eric Botcazou <ebotcazou@adacore.com>
124 * init.c (__gnat_adjust_context_for_raise, Linux version): Add guard
125 for null PC saved in the context.
127 2009-11-30 Hristian Kirtchev <kirtchev@adacore.com>
129 * a-calend.adb (Day_Of_Week): Rewritten. The routine determines the
130 number of days from the Ada Epoch to the input date while ensuring that
131 both dates are in the same time zone.
133 2009-11-30 Emmanuel Briot <briot@adacore.com>
135 * clean.adb ("-eL"): Also set Follow_Links_For_Dirs, to match what is
136 done in other project-aware tools like gnatmake and gprbuild.
138 2009-11-30 Jerome Lambourg <lambourg@adacore.com>
140 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Take care of CIL
142 * exp_ch7.adb (Needs_Finalization): Do not finalize CIL valuetypes.
143 * sem_util.adb (Is_Value_Type): Protect against invalid calls to Chars
144 (Is_Delegate): New method used for CIL.
145 * sem_util.ads (Is_Delegate): New method for CIL handling.
146 (Is_Value_Type): Improve documentation.
148 2009-11-30 Ed Schonberg <schonberg@adacore.com>
150 * errout.adb (Unwind_Internal_Type): Improve error reporting if the
151 type is an anonymous access to subprogram that is the type of a formal
152 in a subprogram spec.
154 2009-11-30 Vincent Celier <celier@adacore.com>
156 * prj-nmsc.adb (Check_Interfaces): In a Stand-Alone Library project, if
157 attribute Interfaces is not declared, then Library_Interface should
158 define the interfaces.
160 2009-11-30 Ed Schonberg <schonberg@adacore.com>
162 * sem_prag.adb: New semantics for Annotate.
164 2009-11-30 Tristan Gingold <gingold@adacore.com>
166 * gcc-interface/Makefile.in: Do not link with -static-libgcc on Darwin.
168 2009-11-30 Emmanuel Briot <briot@adacore.com>
170 * gnat_ugn.texi: Extend doc for -eL
172 2009-11-30 Vincent Celier <celier@adacore.com>
174 * osint.adb (Executable_Name (File_Name_Type)): Put the Name in the
175 Name_Buffer before testing for a dot in the Name.
177 2009-11-30 Vincent Celier <celier@adacore.com>
179 * prj-part.adb (Project_Path_Name_Of): Resolve links for final result
180 if -eL has been specified.
182 2009-11-30 Vincent Celier <celier@adacore.com>
184 * osint.adb (Executable_Name): Test the name instead of the name buffer
185 to check if there is a dot in the given name.
187 2009-11-30 Sergey Rybin <rybin@adacore.com>
189 * gnat_ugn.texi: Update gnatcheck doc.
191 2009-11-30 Robert Dewar <dewar@adacore.com>
193 * sem_ch3.adb, sem_disp.adb, usage.adb: Minor reformatting
195 2009-11-30 Vasiliy Fofanov <fofanov@adacore.com>
197 * gnat_ugn.texi: Minor editing.
199 2009-11-30 Emmanuel Briot <briot@adacore.com>
201 * prj-nmsc.adb (Search_Directories): when -eL was not specified, assume
202 that no directory matches the naming scheme for sources.
204 2009-11-30 Emmanuel Briot <briot@adacore.com>
206 * prj.adb, prj.ads, prj-nmsc.adb (Has_Multi_Unit_Sources): New field in
209 2009-11-30 Vincent Celier <celier@adacore.com>
211 * osint.adb (Executable_Name): Correctly decide if the executable
212 suffix should be added when Only_If_No_Suffix is True.
214 2009-11-30 Robert Dewar <dewar@adacore.com>
216 * frontend.adb, gnatlink.adb, prj-conf.adb, prj-tree.adb,
217 prj-tree.ads: Minor reformatting
219 2009-11-30 Vincent Celier <celier@adacore.com>
221 * gnatlink.adb (Process_Args): Call Executable_Name on argument of -o
222 with Only_If_No_Suffix set to True.
223 * osint.adb (Executable_Name): Do not add executable suffix if there is
224 already a suffix and Only_If_No_Suffix is True.
225 * osint.ads (Executable_Name): New Boolean parameter Only_If_No_Suffix,
228 2009-11-30 Javier Miranda <miranda@adacore.com>
230 * exp_atag.adb (Build_TSD): Change argument name because the actual is
231 now the address of a tag (instead of the tag). Update implementation
233 (Build_CW_Membership): New implementation. Converted into a procedure
234 because it has an additional out mode parameter. Its implementation has
235 been rewritten to improve the generated code but also to facilitate
236 referencing the relocated object node in the caller.
237 * exp_atag.ads (Build_CW_Membership): Update profile and documentation.
238 * sinfo.ads (N_SCIL_Membership_Test) New_Node.
239 (SCIL_Tag_Value): New field of N_SCIL_Membership_Test nodes.
240 (Is_Syntactic_Field): Add entry of new node.
241 (SCIL_Tag_Value/Set_SCIL_Tag_Value): New subprograms.
242 * sinfo.adb (SCIL_Related_Node, SCIL_Entity): Update assertions to
243 handle N_SCIL_Membership_Test nodes.
244 (SCIL_Tag_Value/Set_SCIL_Tag_Value): New subprograms.
245 * sem.adb (Analyze): Add null management for new node.
246 * sem_scil.adb (Find_SCIL_Node): Add null management for new node.
247 (Check_SCIL_Node): Add checks of N_SCIL_Membership_Test nodes.
248 * exp_ch4.adb (Tagged_Membership): Change profile from function to
249 procedure. Add generation of SCIL node associated with class-wide
251 (Expand_N_In): Complete decoration of SCIL nodes.
252 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Tune call to
253 Build_CW_Membership because its profile has been changed.
254 * exp_util.adb (Insert_Actions): Add null management for new node.
255 * sprint.adb (Sprint_Node_Actual): Handle new node.
256 * gcc-interface/trans.c Add no processing for N_SCIL_Membership_Test
258 * gcc-interface/Make-lang.in: Update dependencies.
260 2009-11-30 Ed Schonberg <schonberg@adacore.com>
262 * opt.ads: New flags Init_Or_Norm_Scalars_Config,
263 Initialize_Scalars_Config, to capture the presence of the corresponding
264 pragmas in a configuration file.
265 * opt.adb (Register_, Save_, Set_, Restore_Opt_Configuration_Switches):
266 handle new flags so that they are restored for each compilation unit.
267 * frontend.adb: At the end of compilation, scan the context of the main
268 unit to recover occurrences of pragma Initialize_Scalars, to annotate
269 the ALI file accordingly.
271 2009-11-30 Vincent Celier <celier@adacore.com>
273 * prj-tree.ads: Minor comment updates
274 * prj-tree.adb: Minor reformatting
276 2009-11-30 Ed Schonberg <schonberg@adacore.com>
278 * sem_ch3.adb (Derive_Subprogram): Indicate that an inherited
279 predefined control operation is hidden if the parent type is not
281 * sem_ch6.adb (Check_Overriding_Indicator): Do not report error if
282 overridden operation is not visible, as may be the case with predefined
284 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on
285 non-overriding control operation when type is not visibly controlled,
286 if the subprogram has an explicit overriding indicator.
287 * sem_util.ads, sem_util.adb (Is_Visibly_Controlled): Moved here from
290 2009-11-30 Emmanuel Briot <briot@adacore.com>
292 * prj-tree.adb (Create_Attribute): Fix handling of VMS and Windows
293 * prj-attr.ads: Minor comment updates
295 2009-11-30 Robert Dewar <dewar@adacore.com>
297 * gnat_rm.texi: Document pragma Short_Circuit
299 2009-11-30 Emmanuel Briot <briot@adacore.com>
301 * prj-conf.adb, prj-tree.adb, prj-tree.ads (Create_Attribute): Now set
302 the index either on the attribute or on its value, depending on the
303 kind of the attribute. Done to match recent changes in Prj.PP that were
304 not synchronized with this function.
306 2009-11-30 Arnaud Charlet <charlet@adacore.com>
308 * gcc-interface/Make-lang.in: Fix typo.
311 2009-11-30 Robert Dewar <dewar@adacore.com>
313 * gnat_rm.texi: Add documentation for attribute Result.
315 2009-11-30 Arnaud Charlet <charlet@adacore.com>
317 * s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
318 s-osinte-tru64.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads
319 (Get_Page_Size): Update comment since Get_Page_Size is now required.
321 2009-11-30 Jerome Lambourg <lambourg@adacore.com>
323 * freeze.adb: Disable Warning on VM targets concerning C Imports, not
326 2009-11-30 Bob Duff <duff@adacore.com>
328 * sprint.adb (Source_Dump): Minor comment fix.
329 (Write_Itype): When writing a string literal subtype, use Expr_Value
330 instead of Intval to get the low bound.
332 2009-11-30 Vincent Celier <celier@adacore.com>
334 * gnatlink.adb (Process_Args): Do not call Executable_Name on arguments
337 2009-11-30 Robert Dewar <dewar@adacore.com>
339 * exp_ch4.adb (Expand_N_Op_And): Implement pragma Short_Circuit_And_Or
340 (Expand_N_Op_Or): Implement pragma Short_Circuit_And_Or
341 * opt.ads (Short_Circuit_And_Or): New flag
342 * par-prag.adb: Add dummy entry for pragma Short_Circuit_And_Or
343 * sem_prag.adb: Implement pragma Short_Circuit_And_Or
344 * snames.ads-tmpl: Add entries for pragma Short_Circuit_And_Or
346 2009-11-30 Arnaud Charlet <charlet@adacore.com>
348 * s-taprop-posix.adb: Fix casing.
349 * s-osinte-tru64.adb: Complete previous check-in.
351 2009-11-30 Robert Dewar <dewar@adacore.com>
353 * gnat_rm.texi: Document pragma Compiler_Unit
354 * s-bitops.adb, s-restri.adb, g-htable.adb, s-restri.ads,
355 a-comlin.ads, a-strhas.ads, s-strhas.adb, s-parame.adb,
356 s-parame.ads, a-clrefi.adb, a-clrefi.ads, a-ioexce.ads: Supply missing
357 Compiler_Unit pragmas.
358 * freeze.adb (Freeze_Entity): Improve message for 8-bit boolean passed
361 2009-11-30 Robert Dewar <dewar@adacore.com>
363 * makeutl.adb, makeutl.ads, prj-proc.adb, prj.adb, prj.ads: Minor
366 2009-11-30 Thomas Quinot <quinot@adacore.com>
368 * osint.adb: Minor reformatting
370 2009-11-30 Vincent Celier <celier@adacore.com>
372 * makeutl.ads, makeutl.adb (Base_Name_Index_For): New function to get
373 the base name of a main without the extension, with an eventual source
375 (Mains.Get_Index): New procedure to set the source index of a main
376 (Mains.Get_Index): New function to get the source index of a main
377 * prj-attr.adb: New attributes Config_Body_File_Name_Index,
378 Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
380 * prj-nmsc.adb (Process_Compiler): Takle into account new attributes
381 Config_Body_File_Name_Index, Config_Spec_File_Name_Index,
382 Multi_Unit_Object_Separator and Multi_Unit_Switches.
383 Allow only one character for Multi_Unit_Object_Separator.
384 * prj-proc.adb (Process_Declarative_Items): Take into account the
385 source indexes in indexes of associative array attribute declarations.
386 * prj.adb (Object_Name): New function to get the object file name for
387 units in multi-unit sources.
388 * prj.ads (Language_Config): New components Multi_Unit_Switches,
389 Multi_Unit_Object_Separator Config_Body_Index and Config_Spec_Index.
390 (Object_Name): New function to get the object file name for units in
392 * snames.ads-tmpl: New standard names Config_Body_File_Name_Index,
393 Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
396 2009-11-30 Arnaud Charlet <charlet@adacore.com>
398 * s-tassta.adb: Update comment.
400 2009-11-30 Robert Dewar <dewar@adacore.com>
402 * a-ngelfu.adb: Minor code reorganization.
404 2009-11-30 Robert Dewar <dewar@adacore.com>
406 * osint.ads, prj.adb, prj.ads: Minor reformatting
407 * s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
408 s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
409 s-strxdr.adb, s-taprop-irix.adb, s-osinte-hpux-dce.adb,
410 s-osinte-tru64.adb, s-taenca.adb, s-taprop-hpux-dce.adb, s-stausa.adb,
411 s-taprop-posix.adb: Minor code reorganization (use conditional
414 2009-11-30 Bob Duff <duff@adacore.com>
416 * g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change.
418 2009-11-30 Bob Duff <duff@adacore.com>
420 * socket.c: Add more accessor functions for struct servent (need
421 setters as well as getters).
422 * g-sothco.ads (Servent): Declare interfaces to C setter functions for
424 * g-sttsne-locking.adb (Copy_Service_Entry): Use setter functions for
427 2009-11-30 Robert Dewar <dewar@adacore.com>
429 * s-stchop-vxworks.adb: Add comment.
431 2009-11-30 Emmanuel Briot <briot@adacore.com>
433 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Now acts
434 on the whole tree, to better share code with gprbuild.
435 (Length): New subprogram, to share code in gprbuild.
436 (Project_Data): Remove fields that are only needed when compiling a
437 project in gprbuild (where we use local variables instead)
438 * osint.adb, osint.ads: Added minor comment on memory management
440 2009-11-30 Sergey Rybin <rybin@adacore.com>
442 * gnat_ugn.texi: Update gnatcheck doc.
444 2009-11-30 Robert Dewar <dewar@adacore.com>
446 make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting
447 * s-taprop-dummy.adb: Minor code reorganization (raise with msgs start
449 * i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb,
450 g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb,
451 s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb,
452 g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb,
453 g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code
454 reorganization (use conditional expressions).
456 2009-11-30 Vincent Celier <celier@adacore.com>
458 * prj-makr.adb (Source_Files): New hash table to keep track of source
460 (Finalize): Avoid putting several times the same source file name
461 in the source list file.
462 * prj-pp.adb (Print): Fix a bug in the placement of "at nn" for
463 associative array indexes.
465 2009-11-30 Robert Dewar <dewar@adacore.com>
467 * g-dyntab.ads: Add missing pragma Compiler_Unit
469 2009-11-30 Thomas Quinot <quinot@adacore.com>
471 * s-crtrun.ads, s-crtl.ads, g-stseme.adb, Makefile.rtl, s-fileio.adb
472 (System.CRTL.Runtime): New unit, to contain parts of s-crtl that are
473 used in the Ada runtime but can't be used in the compiler because of
475 * socket.c, s-oscons-tmplt.c, g-sothco.ads
476 (System.OS_Constants.SIZEOF_struct_servent): New constant.
477 Use s-oscons constant instead of external variable to get size of
480 2009-11-30 Thomas Quinot <quinot@adacore.com>
482 * s-crtl.ads, g-stseme.adb, s-fileio.adb (System.CRTL.strerror): Change
483 return type to Interfaces.C.Strings.chars_ptr to eliminate need for
484 dubious unchecked conversion at call sites.
485 * s-errrep.adb, s-errrep.ads, Makefile.rtl (System.Error_Reporting):
486 Remove obsolete, unused runtime unit.
487 * gcc-interface/Make-lang.in: Update dependencies.
488 * gcc-interface/Makefile.in: Remove VMS specialization of s-crtl, not
491 2009-11-30 Vincent Celier <celier@adacore.com>
493 * gnatlink.adb: Delete an eventual existing executable file, in case it
494 is a symbolic link, to avoid modifying the target of the symbolic link.
496 2009-11-30 Bob Duff <duff@adacore.com>
498 * socket.c: Add accessor functions for struct servent.
499 * g-sothco.ads (Servent): Declare interfaces to C accessor functions
501 * g-socket.adb (To_Service_Entry): Use accessor functions for struct
504 2009-11-30 Robert Dewar <dewar@adacore.com>
506 * g-arrspl.adb: Minor reformatting
507 * g-dyntab.adb: Add missing pragma Compiler_Unit
509 2009-11-30 Thomas Quinot <quinot@adacore.com>
511 * s-crtl.ads, s-oscons-tmplt.c: Fix support for VMS
512 * make.adb, g-comlin.ads, exp_ch6.adb: Minor reformatting
514 2009-11-30 Robert Dewar <dewar@adacore.com>
516 * bcheck.adb, gnatlink.adb, make.adb, makeutl.adb, osint.adb,
517 osint.ads, prj-ext.adb, sem_case.adb: Minor reformatting
518 * g-alleve.adb: Minor code reorganization (use conditional expressions)
520 2009-11-30 Matthew Heaney <heaney@adacore.com>
522 * a-crbtgo.adb (Delete_Fixup): Changed always-true predicates to
525 2009-11-30 Thomas Quinot <quinot@adacore.com>
527 * a-tasatt.adb, s-crtl.ads, s-taprop-dummy.adb (System.CRTL.malloc32,
528 System.CRTL.realloc32): Remove VMS-specific routines.
529 (Ada.Task_Attributes.Reference): Remove unreachable code.
530 (System.Task_Primitives.Operations.Initialize, dummy version):
531 Use plain Program_Error rather than call to
532 System.Error_Reporting.Shutdown.
534 2009-11-30 Thomas Quinot <quinot@adacore.com>
536 * s-oscons-tmplt.c, xoscons.adb: Add new constants in preparation for
537 sharing s-crtl across all platforms.
539 2009-11-30 Thomas Quinot <quinot@adacore.com>
541 * s-commun.adb, s-commun.ads: New internal support unit,
542 allowing code sharing between GNAT.Sockets and
543 GNAT.Serial_Communication.
544 * g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb,
545 g-socket.adb (GNAT.Sockets.Last_Index): Move to System.Communication.
546 (GNAT.Serial_Communication.Read): Handle correctly the case where no
547 data was read, and Buffer'First = Stream_Element_Offset'First.
548 * Makefile.rtl: Add entry for s-commun
549 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
550 g-socthi-vxworks.ads, g-stseme.adb, g-socthi-mingw.ads,
551 g-socthi.adb, g-socthi.ads (GNAT.Sockets.Thin.Socket_Error_Message):
552 Reimplement in terms of System.CRTL.strerror.
554 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
556 * gcc-interface/utils.c (copy_type): Unshare the language-specific data
557 and the contents of the language-specific slot if needed.
559 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
561 * gcc-interface/trans.c (gnat_to_gnu) <N_In>: Set the source location
562 of the operator on both branches of the test in the generic case.
564 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
566 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): Rename into...
567 (unchecked_conversion_nop): ...this. Handle actual parameters.
568 (gnat_to_gnu): Adjust for above renaming.
570 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
572 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
573 Translate regular boolean types into BOOLEAN_TYPEs.
575 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
577 * sem_util.adb (Set_Debug_Info_Needed): For an E_Class_Wide_Subtype,
578 also set the flag on the Equivalent_Type.
579 * gcc-interface/utils.c (finish_record_type): Replace DO_NOT_FINALIZE
580 parameter with DEBUG_INFO_P. Rename FIELDLIST into FIELD_LIST.
581 (rest_of_record_type_compilation): Rename FIELDLIST into FIELD_LIST.
582 (build_vms_descriptor32): Adjust call to finish_record_type.
583 (build_vms_descriptor): Likewise.
584 (build_unc_object_type): Likewise.
585 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust calls to
586 finish_record_type and components_to_record.
587 (make_packable_type): Adjust call to finish_record_type.
588 (maybe_pad_type): Likewise. Tweak condition.
589 (components_to_record): Likewise. Replace DO_NOT_FINALIZE parameter
590 with MAYBE_UNUSED. Adjust recursive call.
591 (create_variant_part_from): Adjust call to finish_record_type. Do not
592 call rest_of_record_type_compilation on the new record types.
593 * gcc-interface/trans.c (gigi): Adjust call to finish_record_type.
594 * gcc-interface/gigi.h (finish_record_type): Adjust prototype and
596 (rest_of_record_type_compilation): Adjust comment.
598 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
600 * exp_util.adb (Make_CW_Equivalent_Type): Do not mark the type as
601 frozen for targets that do not require front-end layout.
602 (New_Class_Wide_Subtype): Always reset the freezing status to False.
603 * exp_ch8.adb: Do not 'with' Targparm.
604 (Expand_N_Object_Renaming_Declaration): Always freeze a class-wide
605 subtype that has been built from the expression.
606 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
607 class wide, freeze the implicit type that has been built from the
608 expression at the dereference point.
609 * freeze.adb (Freeze_Entity): Adjust comment.
610 * gcc-interface/decl.c (Gigi_Equivalent_Type) <E_Class_Wide_Type>:
612 * gcc-interface/trans.c (process_freeze_entity): Do not special-case
615 * s-osinte-aix.adb (clock_gettime): Fix comment.
616 * s-osinte-darwin.adb (clock_gettime): Likewise.
618 2009-11-23 Eric Botcazou <ebotcazou@adacore.com>
620 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Pass the list
621 of attributes when building the corresponding variable of a constant.
622 * gcc-interface/utils.c (create_var_decl_1): Do not process attributes
625 2009-11-23 Laurent GUERBY <laurent@guerby.net>
626 Eric Botcazou <ebotcazou@adacore.com>
629 * s-osinte-linux.ads (struct_timeval): Delete.
630 * s-osinte-hpux.ads (struct_timeval, To_Duration, To_Timeval): Delete.
631 * s-osinte-kfreebsd-gnu.ads: Likewise.
632 * s-osinte-rtems.ads: Likewise.
633 * s-osinte-aix.ads: Likewise.
634 * s-osinte-hpux-dce.ads: Likewise.
635 * s-osinte-darwin.ads: Likewise.
636 * s-osinte-solaris-posix.ads: Likewise.
637 * s-osinte-irix.ads: Likewise.
638 * s-osinte-solaris.ads: Likewise.
639 * s-osinte-hpux-dce.adb (To_Duration, To_Timeval): Delete.
640 * s-osinte-irix.adb: Likewise.
641 * s-osinte-solaris.adb: Likewise.
642 * s-osinte-rtems.adb: Likewise. Minor reformatting.
643 * s-osinte-aix.adb (To_Duration, To_Timeval): Delete.
644 (clock_gettime): Use cal.c's timeval_to_duration.
645 * s-osinte-darwin.adb: Likewise.
647 2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
649 * adaint.h: Assume large file support on IRIX only if _LFAPI.
651 2009-11-21 Laurent GUERBY <laurent@guerby.net>
652 Eric Botcazou <ebotcazou@adacore.com>
654 * s-osinte-linux.ads (struct_timeval, To_Duration, To_Timeval,
655 gettimeofday): Delete.
656 * s-osinte-posix.adb (To_Duration, To_Timeval): Delete.
657 * s-osprim-posix.adb (struct_timezone, struct_timeval, gettimeofday):
659 (Clock): Use cal.c's timeval_to_duration.
660 * s-taprop-linux.adb (Monotonic_Clock): Likewise.
662 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
663 Laurent GUERBY <laurent@guerby.net>
665 * init.c (GNU/Linux Section): Enable for all architectures.
667 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
670 * system-linux-alpha.ads (Stack_Check_Probes): Set to true.
671 * system-linux-hppa.ads (Stack_Check_Probes): Likewise.
672 * system-linux-sparc.ads (Stack_Check_Probes): Likewise.
673 * system-linux-sparcv9.ads (Stack_Check_Probes): Likewise.
675 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
677 * system-linux-alpha.ads (AAMP, Compiler_System_Version, OpenVMS,
678 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
680 (Stack_Check_Limits, Always_Compatible_Rep): New.
681 * system-linux-mips.ads (AAMP, Compiler_System_Version, OpenVMS,
682 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
684 (Stack_Check_Limits, Always_Compatible_Rep): New.
685 * system-linux-mips64el.ads (AAMP, Compiler_System_Version, OpenVMS,
686 Functions_Return_By_DSP, Front_End_ZCX_Support, High_Integrity_Mode,
687 Long_Shifts_Inlined): Delete.
688 (Stack_Check_Limits, Always_Compatible_Rep): New.
689 * system-linux-mipsel.ads (AAMP, Compiler_System_Version, OpenVMS,
690 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
692 (Stack_Check_Limits, Always_Compatible_Rep): New.
693 * system-linux-s390.ads (AAMP, Compiler_System_Version, OpenVMS,
694 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
696 (Stack_Check_Limits, Always_Compatible_Rep): New.
697 * system-linux-s390x.ads (AAMP, Compiler_System_Version, OpenVMS,
698 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
700 (Stack_Check_Limits, Always_Compatible_Rep): New.
701 * system-linux-sh4.ads (Stack_Check_Limits, Always_Compatible_Rep):
703 * system-linux-sparc.ads (AAMP, Compiler_System_Version, OpenVMS,
704 Front_End_ZCX_Support): Delete.
705 (Stack_Check_Limits, Always_Compatible_Rep): New.
706 * system-linux-sparcv9.ads (AAMP, Compiler_System_Version, OpenVMS,
707 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
709 (Stack_Check_Limits, Always_Compatible_Rep): New.
710 * system-rtems.ads (OpenVMS): Delete.
711 (Stack_Check_Limits, Always_Compatible_Rep): New.
713 2009-11-08 Eric Botcazou <ebotcazou@adacore.com>
715 * gcc-interface/decl.c (make_packable_type): Fix oversight.
716 (gnat_to_gnu_field): Do not attempt to change the form of the type
717 if the field requires strict alignment. Always change the form of
718 the type if the specified size is smaller than its size.
720 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
722 * gcc-interface/utils.c (gnat_type_for_mode): Handle vector modes.
724 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
726 * gcc-interface/trans.c (lvalue_required_p) <N_Unchecked_Conversion>:
729 2009-10-30 Eric Botcazou <ebotcazou@adacore.com>
731 * gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete.
732 (create_field_decl): Update description. In a packed record, round
733 the size up to a byte boundary only if the field's type has BLKmode.
734 * gcc-interface/gigi.h (create_field_decl): Update description.
736 2009-10-30 Emmanuel Briot <briot@adacore.com>
738 * make.adb (Start_Compile_If_Possible): Compute location of resulting
739 ALI file in this procedure instead of after the compilation itself,
740 since the current directory might have changed in between when using
743 * osint.ads: Addded missing alignment clause.
745 * adaint.c, adaint.h, osint.adb (__gnat_reset_attributes,
746 __gnat_size_of_file_attributes): Rename reset_attributes and
747 size_of_file_attributes.
749 2009-10-30 Javier Miranda <miranda@adacore.com>
751 * sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences
752 of statements when searching for SCIL nodes.
754 2009-10-30 Tristan Gingold <gingold@adacore.com>
756 * gnatlink.adb, link.c: By default use shared libgcc on darwin.
758 2009-10-30 Emmanuel Briot <briot@adacore.com>
760 * make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is
762 This saves system calls when looking for ALI files
763 (Scan_Make_Args): The parameter to gnatmake's -D is now converted to an
764 absolute PATH (so that the above improvement properly occurs if both
765 -D<dir> and -aO<dir> are specified).
767 2009-10-30 Thomas Quinot <quinot@adacore.com>
769 * a-direct.adb: Minor reformatting
771 2009-10-30 Emmanuel Briot <briot@adacore.com>
773 * make.adb, adaint.c, adaint.h, osint.adb, osint.ads, bcheck.adb
774 (*_attr): new subprograms.
775 (File_Length, File_Time_Stamp, Is_Writable_File): new subprograms
776 (Read_Library_Info_From_Full, Full_Library_Info_Name,
777 Full_Source_Name): Now benefit from a previous cache of the file
778 attributes, to further save on system calls.
779 (Smart_Find_File): now also cache the file attributes. This makes the
780 package File_Stamp_Hash_Table useless, and it was removed.
781 (Compile_Sources): create subprograms for the various steps of the main
782 loop, for readibility and to avoid sharing variables between the
785 2009-10-30 Emmanuel Briot <briot@adacore.com>
787 * make.adb, osint.adb, osint.ads (Library_File_Stamp): Removed, since
789 (Read_Library_Info_From_Full): New subprogram.
791 2009-10-30 Robert Dewar <dewar@adacore.com>
793 * a-tideio.adb: Minor reformatting
794 * a-wtdeio.adb, a-ztdeio.adb: Update comments, code clean up.
796 * a-reatim.adb, a-tideau.adb, a-ngelfu.adb, a-ztdeau.adb, a-ngrear.adb,
797 a-wtedit.adb, a-ststio.adb, a-ztedit.adb: Minor code reorganization
798 (use conditional expressions).
800 2009-10-30 Ed Schonberg <schonberg@adacore.com>
802 * gnat_ugn.texi: Additional info on gnatw.i and gnatw.I
804 * sem_case.adb: Improved error message.
806 2009-10-30 Emmanuel Briot <briot@adacore.com>
808 * a-direct.adb, gnatcmd.adb, gnatname.adb, makeutl.adb, opt.ads,
809 osint.adb, prj-ext.adb, switch-m.adb (Follow_Links_For_Dirs): Now
810 defaults to False, and controlled by -eL.
811 * a-direct.adb: Add comments.
812 * osint.adb (File_Stamp): Avoid unneeded duplicate system call
814 2009-10-30 Robert Dewar <dewar@adacore.com>
816 * sem_res.adb (Resolve_Type_Conversion): Avoid false positive when
817 converting non-static subtype to "identical" static subtype.
819 2009-10-30 Ed Schonberg <schonberg@adacore.com>
821 * usage.adb: Add -gnatw.i switch.
823 2009-10-30 Vincent Celier <celier@adacore.com>
825 * xsnamest.adb: Update comments with regards to the template files
828 2009-10-30 Bob Duff <duff@adacore.com>
830 * s-fileio.adb (Errno_Message): Suppress VMS-specific warning.
832 2009-10-30 Ed Schonberg <schonberg@adacore.com>
834 * sem_case.adb (Check_Choices): Add explanatory message when there are
835 missing alternatives when the required range of alternatives is given
836 by the base type of the case expression or discriminant in a variant
839 * opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially
840 dangerous overlap between actuals in a call, activated by -gnatw.i
841 * sem_warn.adb (Set_Dot_Warning_Switch): set flag.
842 (Warn_On_Overlapping_Actuals): use new flag.
844 * gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals
846 2009-10-30 Robert Dewar <dewar@adacore.com>
848 * exp_aggr.adb, exp_ch9.adb: Minor reformatting
850 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
852 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
853 create integer types with precision 0.
855 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
858 * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
859 parameters and rewrite comments. For a derived type, return the
860 setting of its parent type.
861 (gnat_to_gnu_entity): Do an alias set copy for derived types if they
862 are composite. Adjust calls to above function.
864 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
866 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not
867 return the RM size for padded types.
869 2009-10-28 Robert Dewar <dewar@adacore.com>
871 * sem_type.adb: Minor reformatting
873 2009-10-28 Arnaud Charlet <charlet@adacore.com>
875 * exp_ch9.adb (Build_Task_Proc_Specification): Generate a different
876 suffix for task type bodies.
878 2009-10-28 Ed Schonberg <schonberg@adacore.com>
880 * exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a
881 finalization list if the designated type requires no control actions,
882 to prevent a useless semantic dependence on ada.tags.
884 2009-10-28 Bob Duff <duff@adacore.com>
886 * s-fileio.adb: Give more information in exception messages.
888 2009-10-28 Robert Dewar <dewar@adacore.com>
890 * gnat_ugn.texi: Document new -gnatyt requirement for space after right
891 paren if next token starts with digit or letter.
892 * styleg.adb (Check_Right_Paren): New rule for space after if next
893 character is a letter or digit.
895 2009-10-28 Thomas Quinot <quinot@adacore.com>
897 * s-crtl.ads (System.CRTL.strerror): New function.
899 2009-10-28 Ed Schonberg <schonberg@adacore.com>
901 * sem_type.adb: Add guard to recover some type errors.
903 2009-10-28 Vincent Celier <celier@adacore.com>
905 * prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
906 Add_If_Not_In_List to account to the fact that a directory may be
907 removed from the list. Only remove directory if Removed is True.
909 2009-10-28 Gary Dismukes <dismukes@adacore.com>
911 * a-textio.ads, a-textio.ads: Put back function EOF_Char in private
912 part. Put back body of function EOF_Char.
913 * a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
916 2009-10-28 Emmanuel Briot <briot@adacore.com>
918 * prj-tree.adb (Free): Fix memory leak.
920 2009-10-28 Thomas Quinot <quinot@adacore.com>
922 * s-fileio.adb: Minor reformatting
924 2009-10-28 Arnaud Charlet <charlet@adacore.com>
926 * gcc-interface/Make-lang.in: Update dependencies.
928 2009-10-28 Robert Dewar <dewar@adacore.com>
930 * exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
931 types.ads: Minor reformatting
933 2009-10-28 Tristan Gingold <gingold@adacore.com>
935 * init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
937 2009-10-28 Thomas Quinot <quinot@adacore.com>
939 * exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
940 the operand of the unary minus and ABS operators.
942 * sem_type.adb (Covers): A concurrent type and its corresponding record
944 * exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
945 attribute reference for the current instance of a protected type while
946 analyzing an access discriminant constraint in a component definition.
947 Such a reference is handled in the corresponding record's init proc,
948 while initializing the constrained component.
949 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
950 corresponding record type, propagate components'
951 Has_Per_Object_Constraint flag.
952 * exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
953 For a concurrent type, set up concurrent aspects before initializing
954 components with a per object constrain, because they may be controlled,
955 and their initialization may call entries or protected subprograms of
956 the enclosing concurrent object.
958 2009-10-28 Emmanuel Briot <briot@adacore.com>
960 * prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
962 (Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
963 processing the directories specified explicitly in the project file.
965 2009-10-28 Robert Dewar <dewar@adacore.com>
967 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
968 a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
970 (Initialize_Standard_Files): New procedure.
971 * a-tienau.adb: Minor change to make EOF directly visible
972 * a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
973 a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
974 * gnat_rm.texi: Add documentation for
975 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
976 * Makefile.rtl: Add entries for
977 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
979 2009-10-28 Thomas Quinot <quinot@adacore.com>
981 * exp_ch9.ads: Minor reformatting
982 * sem_ch3.adb: Minor reformatting
983 * sem_aggr.adb: Minor reformatting.
984 * sem_attr.adb: Minor reformatting
985 * tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
987 Minor code reorganization/factoring.
989 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
991 * gcc-interface/decl.c (purpose_member_field): New static function.
992 (annotate_rep): Use it instead of purpose_member.
994 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
996 * raise-gcc (db_region_for): Use _Unwind_GetIPInfo instead of
997 _Unwind_GetIP if HAVE_GETIPINFO is defined.
998 (db_action_for): Likewise.
1000 2009-10-27 Robert Dewar <dewar@adacore.com>
1002 * s-fileio.adb, s-fileio.ads, sem_util.adb, sem_warn.adb,
1003 sem_warn.ads: Minor reformatting
1005 2009-10-27 Robert Dewar <dewar@adacore.com>
1007 * sem_warn.adb, sem_util.adb, sem_util.ads: Minor reformatting. Add
1010 2009-10-27 Robert Dewar <dewar@adacore.com>
1012 * s-os_lib.ads, s-os_lib.adb, prj-err.adb, makeutl.adb: Minor
1015 2009-10-27 Ed Schonberg <schonberg@adacore.com>
1017 * sem.util.ads, sem_util.adb (Denotes_Same_Object,
1018 Denotes_Same_Prefix): New functions to detect overlap between actuals
1019 that are not by-copy in a call, when one of them is in-out.
1020 * sem_warn.ads, sem_warn.adb (Warn_On_Overlapping_Actuals): New
1021 procedure, called on a subprogram call to warn when an in-out actual
1022 that is not by-copy overlaps with another actual, thus leadind to
1023 potentially dangerous aliasing in the body of the called subprogram.
1024 Currently the warning is under control of the -gnatX switch.
1025 * sem_res.adb (resolve_call): call Warn_On_Overlapping_Actuals.
1027 2009-10-27 Thomas Quinot <quinot@adacore.com>
1029 * sem_ch12.adb (Install_Formal_Packages): Do not omit installation of
1030 visible entities when the formal package doesn't have a box.
1032 * checks.adb: Minor reformatting.
1034 2009-10-27 Vincent Celier <celier@adacore.com>
1036 * prj-part.adb (Parse): Catch exception Types.Unrecoverable_Error and
1037 set Project to Empty_Node.
1039 2009-10-27 Robert Dewar <dewar@adacore.com>
1041 * gnatbind.adb: Minor reformatting
1043 2009-10-27 Arnaud Charlet <charlet@adacore.com>
1045 * exp_aggr.adb: Fix comment.
1047 2009-10-27 Emmanuel Briot <briot@adacore.com>
1049 * prj-err.adb (Error_Msg): take into account continuation lines when
1050 computing whether we have a warning.
1052 2009-10-27 Vasiliy Fofanov <fofanov@adacore.com>
1054 * make.adb, s-os_lib.adb, s-os_lib.ads (Create_Temp_Output_File): New
1055 routine that is designed to create temp file descriptor specifically
1056 for redirecting an output stream.
1058 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
1060 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
1061 processing the parent type, build the COMPONENT_REF for a discriminant
1062 with the proper type.
1064 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
1066 * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo.
1067 * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO.
1068 Pass GNATLIBCFLAGS_FOR_C to recursive invocations.
1070 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
1072 * gcc-interfaces/decl.c (build_subst_list): Convert the expression of
1073 the constraint to the type of the discriminant.
1075 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
1077 * gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
1078 TYPE_DECL when a type is padded if there is already one and reset
1079 TYPE_STUB_DECL in this case.
1081 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
1083 * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
1084 main_identifier_node.
1086 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1088 * gcc-interface/utils.c (convert): When converting to a padded type
1089 with an inner type of self-referential size, pad the expression before
1090 doing the unchecked conversion.
1092 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1094 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
1095 sure the element type is consistent.
1097 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1099 * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
1101 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
1103 * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
1104 (TYPE_IS_FAT_POINTER_P): ...this.
1105 (TYPE_THIN_POINTER_P): Rename into...
1106 (TYPE_IS_THIN_POINTER_P): ...this.
1107 (TYPE_FAT_OR_THIN_POINTER_P): Rename into...
1108 (TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
1109 (TYPE_IS_PADDING_P): Change definition, move old one to...
1110 (TYPE_PADDING_P): ...this.
1111 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
1112 (get_unpadded_type): Likewise.
1113 (gnat_to_gnu_component_type): Likewise.
1114 (gnat_to_gnu_param): Likewise.
1115 (relate_alias_sets): Likewise.
1116 (make_packable_type): Likewise.
1117 (maybe_pad_type): Likewise.
1118 (gnat_to_gnu_field): Likewise.
1119 (is_variable_size): Likewise.
1120 (annotate_object): Likewise.
1121 (validate_size): Likewise.
1122 (set_rm_size): Likewise.
1123 (make_type_from_size): Likewise.
1124 (rm_size): Likewise.
1125 * gcc-interface/misc.c (gnat_print_type): Likewise.
1126 (gnat_get_alias_set): Likewise.
1127 * gcc-interface/trans.c (Identifier_to_gnu): Likewise.
1128 (Attribute_to_gnu): Likewise.
1129 (call_to_gnu): Likewise.
1130 (gnat_to_gnu): Likewise.
1131 (add_decl_expr): Likewise.
1132 (convert_with_check): Likewise.
1133 (addressable_p): Likewise.
1134 (maybe_implicit_deref): Likewise.
1135 (protect_multiple_eval): Likewise.
1136 (gnat_stabilize_reference_1): Likewise.
1137 * gcc-interface/utils.c (gnat_pushdecl): Likewise.
1138 (finish_record_type): Likewise.
1139 (rest_of_record_type_compilation): Likewise.
1140 (create_type_decl): Likewise.
1141 (gnat_types_compatible_p): Likewise.
1142 (build_template): Likewise.
1143 (convert_vms_descriptor64): Likewise.
1144 (convert_vms_descriptor32): Likewise.
1145 (build_unc_object_type_from_ptr): Likewise.
1146 (update_pointer_to): Likewise.
1147 (convert_to_fat_pointer): Likewise.
1148 (convert_to_fat_pointer): Likewise.
1149 (convert): Likewise.
1150 (remove_conversions): Likewise.
1151 (maybe_unconstrained_array): Likewise.
1152 (unchecked_convert): Likewise.
1153 (handle_vector_type_attribute): Likewise.
1154 * gcc-interface/utils2.c (build_binary_op): Likewise.
1155 (build_unary_op): Likewise.
1156 (build_allocator): Likewise.
1158 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
1160 * exp_dbug.ads: Adjust type names in comments.
1161 * gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
1162 add new IS_COMPONENT_TYPE parameter. Adjust. Remove dead code.
1163 (gnat_to_gnu_entity): Adjust for above change.
1164 (gnat_to_gnu_component_type): Likewise.
1165 (gnat_to_gnu_field): Likewise.
1166 * gcc-interface/trans.c (call_to_gnu): Likewise. Do not unnecessarily
1168 * gcc-interface/utils.c (finish_record_type): Remove obsolete code.
1169 * gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.
1171 2009-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
1173 * s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
1174 * s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.
1176 2009-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1178 * env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
1180 2009-10-10 Samuel Tardieu <sam@rfc1149.net>
1182 * sem_eval.adb: Give a more precise error message.
1184 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
1187 * a-rttiev.adb (Time_Of_Event): Return Time_First for unset event.
1189 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
1192 * sem_prag.adb (Process_Import_Or_Interface): Forbid an abstract
1193 subprogram to be completed with a "pragma Import".
1195 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1197 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>:
1198 Generate an XVZ variable alongside the XVS type if the size is
1200 (maybe_pad_type): Minor tweak.
1202 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1204 * gcc-interface/decl.c (check_ok_for_atomic): Do nothing if the type
1205 doesn't come from source.
1207 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1209 * gcc-interface/decl.c (gnat_to_gnu_component_type): Force at least
1210 unit size for the component size of an array with aliased components.
1211 (maybe_pad_type): Do not warn for MAX_EXPR.
1213 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
1215 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
1216 common code processing the component type into...
1217 <E_Array_Subtype>: Likewise.
1218 (gnat_to_gnu_component_type): ...this new static function.
1219 (maybe_pad_type): Minor cleanup.
1221 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
1223 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
1224 the handling of constrained discriminated record subtypes.
1225 (components_to_record): Declare the type of the variants and of the
1227 (build_subst_list): Move around.
1228 (compute_field_positions): Rename into...
1229 (build_position_list): ...this. Return a TREE_VEC.
1230 (annotate_rep): Adjust for above renaming.
1231 (build_variant_list): New static function.
1232 (create_field_decl_from): Likewise.
1233 (get_rep_part): Likewise.
1234 (get_variant_part): Likewise.
1235 (create_variant_part_from): Likewise.
1236 (copy_and_substitute_in_size): Likewise.
1238 2009-09-28 Olivier Hainque <hainque@adacore.com>
1241 * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
1242 Account for observable alignments out of default allocators.
1244 2009-09-28 Richard Henderson <rth@redhat.com>
1246 * gcc-interface/utils.c (gnat_install_builtins): Update call to
1247 build_common_builtin_nodes.
1249 2009-09-26 Eric Botcazou <ebotcazou@adacore.com>
1251 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
1252 negative size for the array dimensions like in the constrained case.
1253 <E_Array_Subtype>: Do not create an artificially non-constant high
1254 bound if the low bound is non-constant. Minor tweaks.
1256 * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
1257 and turn ALIASED into a boolean parameter. Adjust calls to self.
1258 <N_Attribute_Reference>: Return 1 for more attributes.
1259 <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
1260 <N_Assignment_Statement>: Return 1 for the LHS.
1261 (Identifier_to_gnu): Adjust calls to lvalue_required_p.
1262 (call_to_gnu): Be prepared for wrapped boolean rvalues.
1264 2009-09-25 Olivier Hainquqe <hainque@adacore.com>
1265 Eric Botcazou <ebotcazou@adacore.com>
1267 * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
1268 specific node. Representative array type for VECTOR_TYPE entities.
1269 * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
1270 Turn an ARRAY_TYPE entity into a VECTOR_TYPE.
1271 (gnat_types_compatible_p): Handle VECTOR_TYPEs.
1272 (convert): Likewise. Arrange to produce VECTOR_CST out of constant
1273 array aggregates for VECTOR_TYPE entities.
1274 (unchecked_convert): Likewise.
1275 (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
1276 converted to the associated TYPE_REPRESENTATIVE_ARRAY.
1277 (handle_pure_attribute, handle_sentinel_attribute,
1278 handle_noreturn_attribute, handle_malloc_attribute,
1279 handle_vector_size_attribute): Replace uses of qE format by qs.
1280 Remove GCC_DIAG_STYLE definition.
1281 * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
1282 vector input to representative array type on entry.
1283 <N_Op_Eq, etc>: Likewise.
1284 * gcc-interface/gigi.h (maybe_vector_array): Declare.
1285 (VECTOR_TYPE_P): New predicate.
1286 * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
1288 2009-09-24 Eric Botcazou <ebotcazou@adacore.com>
1290 * gcc-interface/ada.h: Fix outdated comment.
1291 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
1292 lieu of mark_visited.
1293 * gcc-interface/gigi.h (mark_visited): Change type of parameter.
1294 (MARK_VISITED): New macro.
1295 (gnat_truthvalue_conversion): Delete.
1296 * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
1298 (annotate_rep): Fix formatting and tidy.
1299 (compute_field_positions): Get rid of useless variable.
1300 * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
1301 node only once. Use IN operator for the Nkind in more cases.
1302 Remove calls to gnat_truthvalue_conversion.
1303 (mark_visited): Change type of parameter and adjust.
1304 (mark_visited_r): Dereference TP only once.
1305 (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
1306 * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
1307 (build_binary_op): Remove calls to gnat_truthvalue_conversion.
1308 (build_unary_op): Likewise.
1310 2009-09-24 Dave Korn <dave.korn.cygwin@gmail.com>
1312 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
1313 a-except% in target pairs list; don't (implicitly) compare whitespace.
1315 2009-09-24 Jakub Jelinek <jakub@redhat.com>
1317 * gcc-interface/utils.c (gnat_pushdecl): Don't set
1318 DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
1321 2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
1323 * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
1324 Bind to getpagesize() in RTEMS 4.10 and newer.
1326 2009-09-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1328 * env.c [__alpha__ && __osf__] (_BSD): Define.
1329 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
1332 2009-09-18 Pascal Obry <obry@adacore.com>
1334 * mingw32.h: Activate Unicode support for x86-64 Windows platform.
1336 2009-09-18 Vadim Godunko <godunko@adacore.com>
1338 * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
1340 2009-09-18 Javier Miranda <miranda@adacore.com>
1342 * exp_aggr.adb (Backend_Processing_Possible): Disable backend
1343 processing for array aggregates in the VM backend if the array has
1346 2009-09-18 Ed Schonberg <schonberg@adacore.com>
1348 * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
1349 the prefix indicates a previous semantic error, and this is the first
1350 error in the program.
1352 2009-09-18 Bob Duff <duff@adacore.com>
1354 * gnat_ugn.texi: Minor editing.
1356 2009-09-18 Vincent Celier <celier@adacore.com>
1358 * prj.ads, prj.adb (Project_Data): New component
1359 Imported_Directories_Switches.
1361 2009-09-18 Pascal Obry <obry@adacore.com>
1363 * mingw32.h: Include standard _mingw.h file.
1364 Define _WIN32_WINNT only if not already defined.
1366 2009-09-18 Thomas Quinot <quinot@adacore.com>
1368 * g-socket.adb (Is_Open): New function indicating whether a
1369 Selector_Type object is open.
1371 2009-09-18 Vincent Celier <celier@adacore.com>
1373 * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
1374 is deleted before creating it.
1376 2009-09-18 Robert Dewar <dewar@adacore.com>
1378 * bindgen.adb: Minor reformatting
1380 2009-09-18 Arnaud Charlet <charlet@adacore.com>
1382 * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
1383 s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
1384 signal handler is installed.
1385 * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
1386 tasks if Abort_Task_Interrupt cannot be used.
1388 2009-09-18 Vincent Celier <celier@adacore.com>
1390 * prj-tree.ads: Minor comment update
1392 2009-09-17 Bob Duff <duff@adacore.com>
1394 * g-socket.ads: Document the fact that Close_Selector has no effect on
1396 * g-socket.adb: Raise an exception when a Selector that should be open
1398 (Check_Selector): Declare RSig as a constant rather than a renames,
1401 2009-09-17 Robert Dewar <dewar@adacore.com>
1403 * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
1404 prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
1405 prj-tree.ads: Minor reformatting
1407 2009-09-17 Emmanuel Briot <briot@adacore.com>
1409 * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
1411 (Do_Autoconf): If the object directory does not exists, create auto.cgpr
1412 in a temporary directory instead
1414 2009-09-17 Bob Duff <duff@adacore.com>
1416 * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
1418 (Get_Priority): Correct message for "terminated" case -- it said "null".
1420 2009-09-17 Robert Dewar <dewar@adacore.com>
1422 * exp_ch6.adb: Minor reformatting
1424 2009-09-17 Emmanuel Briot <briot@adacore.com>
1426 * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
1427 switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
1428 (Project_Node_Tree_Data.Project_Path): New field.
1430 * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
1432 2009-09-17 Emmanuel Briot <briot@adacore.com>
1434 * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
1435 Remove duplicate code.
1436 (Prj.Ext): Fix memory leak
1437 (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
1438 variable. This was previously allowed in the code in
1439 Is_External_Assignment, and some tests rely on it
1441 2009-09-17 Bob Duff <duff@adacore.com>
1443 * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
1445 2009-09-17 Emmanuel Briot <briot@adacore.com>
1447 * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
1448 makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
1449 prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
1450 prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
1451 Scenario variables are now specific to each project tree loaded in
1455 2009-09-17 Javier Miranda <miranda@adacore.com>
1457 * exp_disp.adb (Make_DT): Remove wrong line of code that was
1458 undocumented and probably added by mistake.
1460 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1462 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
1463 conversions between original and packable version of types from
1466 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1468 * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
1469 If a padding type was made for the field, declare it.
1470 (components_to_record): Add DEBUG_INFO_P parameter. Adjust call
1471 to gnat_to_gnu_field and call to self.
1472 (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
1473 <E_Array_Subtype>: Likewise.
1474 Adjust calls to gnat_to_gnu_field and components_to_record.
1476 2009-09-16 Robert Dewar <dewar@adacore.com>
1478 * prj-nmsc.adb: Minor reformatting
1480 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1482 * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
1483 expression is a by-reference type (tagged or inherently limited)
1484 introduce an access type to capture references to the values of each
1485 branch of the conditional.
1487 2009-09-16 Emmanuel Briot <briot@adacore.com>
1489 * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
1490 (Project_Name_And_Node.Display_Name): new field
1491 The display name of a project (as written in the .gpr file) is now
1492 computed when the project file itself is parsed, not when it is
1495 2009-09-16 Thomas Quinot <quinot@adacore.com>
1497 * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
1498 intrinsics untouched (to be expanded later on by gigi) if an external
1499 name has been specified.
1500 (Freeze_Entity): Do not generate a default external name for
1501 imported subprograms with convention Intrinsic (so that the above code
1502 can identify the case where an external name has been explicitly
1505 * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
1506 replaced by something else due to an existing #define clause.
1508 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1510 * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
1511 Parameter_Association node, created for the extra actual generated for
1512 an access parameter of a function that dispatches on result, to prevent
1513 double generation of such actuals when the call is rewritten is a
1515 * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
1516 * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
1517 that carry this flag when rewriting the original call as a dispatching
1518 call, after propagating the controlling tag.
1520 2009-09-16 Vincent Celier <celier@adacore.com>
1522 * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
1524 (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
1526 (Find_Source_Dirs): New parameter Rank to be recorded with the source
1528 (Search_Directories): Call Check_File with the rank of the directory
1529 * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
1530 (Free): Free also Number_Lists
1531 (Reset): Init also Number_Lists
1532 * prj.ads (Number_List_Table): New dynamic table for lists of numbers
1533 (Source_Data): New component Source_Dir_Rank. Remove component
1534 Known_Order_Of_Source_Dirs, no longer needed.
1535 (Project_Data): New component Source_Dir_Ranks
1536 (Project_Tree_Data): New components Number_Lists
1538 2009-09-16 Vincent Celier <celier@adacore.com>
1540 * gprep.adb (Yes_No): New global constant
1541 Unix_Line_Terminators: New global Boolean variable
1542 (Process_One_File): Create the out file with a "Text_Translation=" form
1543 that depends on the use of option -T.
1544 (Scan_Command_Line): Add option -T
1545 (Usage): Add line for option -T
1547 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1549 * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
1550 predicate that describes a proper subset of
1551 Is_Predefined_Dispatching_Operation and excludes stream operations,
1552 which can be overridden by the user.
1553 * sem_ch6.adb (Create_Extra_Formals): use
1554 Is_Predefined_Internal_Operation, so that stream operations get extra
1556 * exp_ch6.adb (Prevent double generation of extra actuals in calls to
1557 'Input, which may be expanded twice, first as a function call and then
1558 as a dispatching call.
1560 2009-09-16 Thomas Quinot <quinot@adacore.com>
1562 * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
1563 * g-expect.adb (Set_Up_Child_Communications): Use
1564 System.OS_Constants.Target_OS to determine whether running on Windows.
1566 2009-09-14 Richard Henderson <rth@redhat.com>
1568 * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
1570 2009-09-14 Eric Botcazou <ebotcazou@adacore.com>
1572 * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
1573 the unconstrained case.
1574 * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
1575 the encoding. Do not give a name to the pointer type to the XUT type.
1576 * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
1577 for fat pointer types, if any. Make sure DECL_ARTIFICIAL is cleared
1578 on nodes with DECL_ORIGINAL_TYPE set.
1579 (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
1580 for fat pointer types. Make sure DECL_ARTIFICIAL is cleared.
1582 2009-09-14 Richard Henderson <rth@redhat.com>
1584 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
1585 default_init_unwind_resume_libfunc.
1586 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
1587 __builtin_eh_pointer.
1588 * gcc-interface/utils.c (gnat_install_builtins): Update call
1589 to build_common_builtin_nodes.
1591 2009-09-13 Richard Guenther <rguenther@suse.de>
1592 Rafael Avila de Espindola <espindola@google.com>
1594 * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
1595 eh_personality_libfunc and lang_eh_runtime_type.
1596 (LANG_HOOKS_EH_PERSONALITY): Define.
1597 (gnat_eh_personality_decl): New static variable.
1598 (gnat_eh_personality): New static function.
1599 Include gt-ada-misc.h.
1600 * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
1601 * gcc-interface/config-lang.in (gtfiles): Add misc.c.
1603 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1606 * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
1608 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1610 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
1612 Avoid useless work when processing the Treat_As_Volatile flag.
1614 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1616 * gcc-interface/targtyps.c: Reorder include directives.
1618 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1620 * gcc-interface/targtyps.c: Add missing include for tm_p.h.
1621 * gcc-interface/Make-lang.in: Update dependencies.
1623 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1625 * make.adb: Add missing documentation for multilib handling.
1627 2009-09-03 Diego Novillo <dnovillo@google.com>
1629 * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
1631 2009-09-02 Richard Henderson <rth@redhat.com>
1633 * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
1635 2009-09-02 Olivier Hainque <hainque@adacore.com>
1637 * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
1640 2009-09-02 Olivier Hainque <hainque@adacore.com>
1642 * gcc-interface/decl.c (cannot_be_superflat_p): Handle
1643 Signed_Integer_Type_Definition Scalar_Ranges.
1645 2009-09-02 Eric Botcazou <ebotcazou@adacore.com>
1647 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
1648 SAVE_EXPR built for misaligned arguments. Remove redundant stuff.
1649 (addressable_p): Return true for more rvalues.
1651 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1653 * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
1654 POINTER_SIZE to HOST_WIDE_INT.
1656 2009-09-01 Richard Guenther <rguenther@suse.de>
1658 * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1660 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
1662 * gcc-interface/trans.c (call_to_gnu): Tidy.
1663 (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
1664 non-constant size but the array itself has constant size.
1665 * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
1667 (convert_vms_descriptor32): Likewise.
1669 2009-08-22 Aurelien Jarno <aurelien@aurel32.net>
1671 * gcc-interface/Makefile.in: Add Ada support for
1672 GNU/kFreeBSD x86_64.
1673 * system-freebsd-x86_64.ads: New file based on
1674 system-freebsd-x86.ads.
1676 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1678 * gcc-interface/utils.c (convert): In the padded case, do the final
1679 conversion as an unchecked conversion if the underlying types are
1680 array types with variable size.
1682 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1684 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
1686 * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
1688 * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
1690 (gnat_gimplify_expr) <DECL_EXPR>: New case.
1692 2009-08-17 Aurelien Jarno <aurelien@aurel32.net>
1694 * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
1695 (stack_t): New record type.
1696 (sigaltstack): New imported function.
1697 (Alternate_Stack): New imported variable.
1698 (Alternate_Stack_Size): New constant.
1700 2009-08-17 Vasiliy Fofanov <fofanov@adacore.com>
1702 * a-calend-vms.adb: Fix typo.
1704 2009-08-17 Tristan Gingold <gingold@adacore.com>
1706 * s-taprop-posix.adb: Round up the stack size to avoid failure on
1709 2009-08-17 Gary Dismukes <dismukes@adacore.com>
1711 * sem_cat.adb (Validate_Static_Object_Name): Update comment.
1713 2009-08-17 Vincent Celier <celier@adacore.com>
1715 * make.adb (Arguments_Collected): Unneeded, removed
1716 (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
1717 ensure caller does not pass in No_Project.
1718 (Compile): Add new parameter Project. Let procedure
1719 Collect_Arguments_And_Compile provide the proper value.
1721 * switch-c.adb: Add documentation for -gnatea and -gnatez
1723 2009-08-17 Ben Brosgol <brosgol@adacore.com>
1725 * gnat_ugn.texi: Changed name of package in SAL example, to avoid
1726 clash with Ada 2005 reserved word (interface).
1728 2009-08-17 Robert Dewar <dewar@adacore.com>
1730 * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
1731 a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
1732 a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
1733 (use conditional expressions).
1735 2009-08-17 Robert Dewar <dewar@adacore.com>
1737 * make.adb: Add ??? comment
1738 * tbuild.adb: Minor reformatting
1740 2009-08-17 Thomas Quinot <quinot@adacore.com>
1742 * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
1743 Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
1744 Use Tbuild.Make_Temporary to create entity for the temporary.
1746 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1748 * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
1749 and ignore -mieee switch to avoid spawning an extra gcc in this case.
1751 2009-08-17 Thomas Quinot <quinot@adacore.com>
1753 * tbuild.adb: Minor reformatting
1755 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1757 * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
1758 exist, as is the case for synchronized types, use the type of the
1759 discriminal in the parameter specification, to prevent a spurious
1760 subtype mismatch in gigi.
1762 2009-08-17 Robert Dewar <dewar@adacore.com>
1764 * prj-env.adb: Minor reformatting
1765 * make.adb: Minor reformatting
1768 2009-08-17 Javier Miranda <miranda@adacore.com>
1770 * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
1772 2009-08-17 Emmanuel Briot <briot@adacore.com>
1774 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
1775 (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
1776 object directories must be present. In the case of gprclean at least,
1777 these are optional (if they do not exist there is nothing to clean)
1779 2009-08-17 Robert Dewar <dewar@adacore.com>
1781 * prj-env.adb: Minor reformatting
1782 * sem_ch3.adb: Minor reformatting
1784 2009-08-17 Hristian Kirtchev <kirtchev@adacore.com>
1786 * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
1787 the time zone since VxWorks chose positive values to represent west
1788 time zones and negative for east zones.
1790 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1792 * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
1793 an anonymous access type whose designated type is generic.
1795 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1797 * comperr.adb (Compiler_Abort): Do not generate a bug box when in
1798 codepeer mode, friendlier.
1800 2009-08-10 Laurent GUERBY <laurent@guerby.net>
1802 * make.adb: Handle multilib
1804 2009-08-10 Vincent Celier <celier@adacore.com>
1806 * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
1807 the temporary file name in the error message when the temporary file
1810 2009-08-10 Yannick Moy <moy@adacore.com>
1812 * gnat_ugn.texi: Fix typo
1814 2009-08-10 Robert Dewar <dewar@adacore.com>
1816 * exp_ch7.adb: Add ??? comment for last change
1818 2009-08-10 Vincent Celier <celier@adacore.com>
1820 * prj-env.adb (Add_To_Buffer): New procedure
1821 (Create_Config_Pragmas_File): Write to temporary file in one shot
1822 (Create_Mapping_File): Ditto
1823 (Set_Ada_Paths): Ditto
1825 2009-08-10 Vincent Celier <celier@adacore.com>
1828 * xref_lib.adb (Print_Xref): Make sure that there is at least one space
1829 between a declaration name and its type.
1831 2009-08-07 Javier Miranda <miranda@adacore.com>
1833 * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
1836 2009-08-07 Robert Dewar <dewar@adacore.com>
1838 * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
1840 2009-08-07 Vincent Celier <celier@adacore.com>
1842 * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
1843 specified on the command line and there are switches in the Compiler
1844 package of the project file, use these compilation switches to invoke
1847 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1849 * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
1851 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1853 * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
1854 even if not in main unit, to simplify debugging.
1856 2009-08-07 Arnaud Charlet <charlet@adacore.com>
1858 * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
1859 * gcc-interface/Make-lang.in: Update dependencies.
1861 2009-08-07 Robert Dewar <dewar@adacore.com>
1863 * types.ads: Minor reformatting
1864 * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
1865 * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
1866 Output_Non_Modified_In_Out_Warnings.
1867 * sem_ch13.adb: Remove ??? comment.
1869 2009-08-07 Vincent Celier <celier@adacore.com>
1871 * mlib-prj.adb (Build_Library): Include binder generate object file
1872 for SAL when library name is only one character.
1874 2009-08-07 Thomas Quinot <quinot@adacore.com>
1876 * targparm.adb: Minor reformatting
1877 * sem.adb: Minor reformatting
1878 * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
1880 2009-08-07 Emmanuel Briot <briot@adacore.com>
1882 * prj-conf.adb: Remove duplicate directory separator in the output when
1883 an object directory does not exist.
1885 2009-08-07 Robert Dewar <dewar@adacore.com>
1887 * exp_util.adb: Minor reformatting
1889 2009-08-07 Vincent Celier <celier@adacore.com>
1891 * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
1894 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1896 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
1897 detect non-static private components that will violate restriction
1898 No_Implicit_Heap_Allocation.
1900 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1902 * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
1904 2009-08-02 Eric Botcazou <ebotcazou@adacore.com>
1906 * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
1907 * gcc-interface/utils.c (end_subprog_body): Likewise.
1908 * gcc-interface/trans.c (gigi): Likewise.
1909 (gnat_to_gnu): Likewise.
1911 2009-07-30 Ben Brosgol <brosgol@adacore.com>
1913 * gnat_ugn.texi: Correct minor texi glitch.
1915 2009-07-30 Ed Schonberg <schonberg@adacore.com>
1917 * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
1918 expression has an underlying representation that is an unchecked union,
1919 there is no subtype to build.
1921 2009-07-30 Robert Dewar <dewar@adacore.com>
1923 * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
1924 s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
1925 sem_ch7.adb, adaint.c: Minor reformatting
1927 2009-07-29 Javier Miranda <miranda@adacore.com>
1929 * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
1930 moved from the expander to the semantic analyzer to allow the
1931 generation of these internal entities when compiling with no code
1932 generation. Required by ASIS.
1933 * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
1934 * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
1935 * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
1936 (Expand_Freeze_Record_Type): Remove call to
1937 Add_Internal_Interface_Entities because this routine is now called at
1938 early stage --when the freezing node is analyzed.
1940 2009-07-29 Robert Dewar <dewar@adacore.com>
1942 * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
1943 exp_disp.adb, g-socket.adb: Minor reformatting
1945 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1947 * sem_ch7.adb (New_Private_Type): Create class-wide type after other
1948 attributes have been established, so that they are all inherited by the
1950 * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
1951 properly named subtypes of class-wide types.
1953 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1955 * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
1956 indicators on user-defined operators.
1958 2009-07-29 Vadim Godunko <godunko@adacore.com>
1960 * g-socket.adb (Receive_Vector): Add comment.
1962 2009-07-29 Javier Miranda <miranda@adacore.com>
1964 * frontend.adb (Frontend): Code cleanup.
1965 * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
1966 Rewriten as a procedure because it a new out-mode parameters to
1967 keep up-to-date the controlling tag node in the caller.
1968 (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
1969 new out-mode parameter to keep up-to-date the controlling tag node in
1971 * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
1972 exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
1974 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
1975 available in new package Sem_SCIL.
1976 (Next_Non_SCIL_Node): Ditto.
1977 * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
1979 (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
1980 plus complete decoration of SCIL dispatching node.
1981 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1982 * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
1984 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1985 * exp_ch3.adb (Build_Init_Procedure): Fix comment.
1986 * sem_scil.ads, sem_scil.adb: New files.
1987 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
1988 Update dependencies.
1990 2009-07-28 Robert Dewar <dewar@adacore.com>
1992 * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
1993 makeutl.adb: Minor reformatting & code reorganization
1994 * sem_ch3.adb: Minor reformatting.
1995 Fix spelling error (constraint for constrain) in error msg.
1997 2009-07-28 Emmanuel Briot <briot@adacore.com>
1999 * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
2000 global variable that also exists in makeutl.ads, and that some routines
2001 in that package use already.
2002 (Check): Moved part of the code to makeutl.adb for better sharing with
2005 2009-07-28 Arnaud Charlet <charlet@adacore.com>
2007 * gcc-interface/Make-lang.in: Update dependencies.
2009 2009-07-28 Emmanuel Briot <briot@adacore.com>
2011 * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
2012 importing project does not end up in the list, in the case of extending
2014 * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
2015 makeutl.ads, for better sharing with gprbuild.
2017 2009-07-28 Arnaud Charlet <charlet@adacore.com>
2019 * gnat_ugn.texi: Fix typo.
2021 2009-07-28 Ed Schonberg <schonberg@adacore.com>
2023 * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
2024 derivation that renames some discriminants and constrain others.
2025 * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
2026 prefix is a derived untagged type, convert to the root type to conform
2027 to the signature of the protected operations.
2029 2009-07-28 Robert Dewar <dewar@adacore.com>
2031 * sinfo.ads: Update comments.
2032 * exp_attr.adb: Minor reformatting
2034 2009-07-28 Ed Schonberg <schonberg@adacore.com>
2036 * sem_aggr.adb (Get_Value): A named association in a record aggregate
2037 should be treated as a modification of the named component, not as a
2040 2009-07-28 Quentin Ochem <ochem@adacore.com>
2042 * prj-tree.ads, prj-tree.adb (Free): Minor editing.
2043 * prj.ads, prj.adb (Image): Ditto.
2045 2009-07-28 Arnaud Charlet <charlet@adacore.com>
2047 * frontend.adb: Minor reformatting.
2048 (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
2051 2009-07-28 Bob Duff <duff@adacore.com>
2053 * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
2054 'Address to get a pointer to the protected body wrapper.
2056 2009-07-28 Javier Miranda <miranda@adacore.com>
2058 * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
2059 nodes if we are not generating code.
2060 * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
2061 attribute SCIL_Related_Node of SCIL dispatching nodes.
2062 (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
2063 * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
2064 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
2065 (SCIL_Entity): Update documentation.
2066 (SCIL_Related_Node): Update documentation.
2067 (SCIL_Controlling_Tag): New attribute.
2068 (SCIL_Target_Prim): Update documentation.
2069 (N_Null_Statement): Remove attributes associated with SCIL nodes.
2070 (N_SCIL_Dispatch_Table_Object_Init): New node.
2071 (N_SCIL_Dispatch_Table_Tag_Init): New node.
2072 (N_SCIL_Dispatching_Call): New node.
2073 (N_SCIL_Tag_Init): New node.
2074 * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
2075 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
2076 (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
2077 (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
2078 (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
2079 (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
2080 N_SCIL_Dispatching_Call nodes.
2081 * sem.adb (Analyze): No need to analyze SCIL nodes.
2082 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
2083 (Next_Non_SCIL_Node): New subprogram
2084 * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
2086 * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
2088 * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
2090 * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
2091 null statement nodes.
2092 (Build_Init_Procedure): Generate new SCIL node.
2093 * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
2095 * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
2096 they are currently implemented as special N_Null_Statement nodes.
2097 * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
2098 procedure call then check if some SCIL node references it and needs
2100 * exp_disp.ads (SCIL_Node_Kind): Removed.
2101 (Adjust_SCIL_Node): New subprogram.
2102 (Find_SCIL_Node): New subprogram.
2103 (Get_SCIL_Node_Kind): Removed.
2104 (New_SCIL_Node): Removed.
2105 * exp_disp.adb (Adjust_SCIL_Node): New subprogram
2106 (Expand_Dispatching_Call): Generate new SCIL dispatching node including
2107 decoration of its new controlling_tag attribute.
2108 (Get_SCIL_Node_Kind): Removed.
2109 (Find_SCIL_Node): New subprogram.
2110 (Make_Secondary_DT): Generate new SCIL nodes.
2111 (Make_Tags): Generate new SCIL nodes.
2112 (New_SCIL_Node): Removed.
2113 * exp_util.adb (Insert_Actions): Handle SCIL nodes.
2114 (Remove_Side_Effects): Check if relocated nodes require readjustment
2115 of some SCIL dispatching node.
2116 * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
2118 2009-07-28 Robert Dewar <dewar@adacore.com>
2120 * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
2122 2009-07-28 Sergey Rybin <rybin@adacore.com>
2124 * gnat_ugn.texi: Add section about gnatcheck rule exemption.
2126 2009-07-28 Vadim Godunko <godunko@adacore.com>
2128 * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
2129 not defined by limits.h.
2131 * g-socket.adb (Receive_Vector): Use minimum length from user's vector
2132 length and maximum supported length of data vector.
2134 2009-07-28 Gary Dismukes <dismukes@adacore.com>
2136 * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
2137 * make.adb: Call Get_Target_Parameters before calling Usage so that
2138 VM_Target and AAMP_On_Target will be set.
2140 2009-07-28 Olivier Hainque <hainque@adacore.com>
2142 * g-ssinty.ads: Remove, pointless and just confusing at this stage.
2143 * gnat_rm.texi: Remove documentation.
2144 * g-sse.ads: Minor reorg along the way.
2145 * gcc-interface/Makefile.in: Remove processing for g-ssinty.
2146 * g-ssvety.ads: Minor comment updates.
2148 2009-07-28 Sergey Rybin <rybin@adacore.com>
2150 * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
2151 for the new format of the report file.
2153 2009-07-28 Sergey Rybin <rybin@adacore.com>
2155 * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
2157 2009-07-28 Pascal Obry <obry@adacore.com>
2159 * g-expect.adb: Record standard handles only on Windows.
2161 2009-07-27 Emmanuel Briot <briot@adacore.com>
2163 * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
2166 2009-07-27 Sergey Rybin <rybin@adacore.com>
2168 * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
2169 rule definition the paragraph that explains that generic functions and
2170 functions from generic packages are not checked.
2172 2009-07-27 Gary Dismukes <dismukes@adacore.com>
2174 * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
2175 procedure when determining whether to set the Overridden_Operation
2176 field of a subprogram overriding an inherited subprogram.
2178 2009-07-27 Robert Dewar <dewar@adacore.com>
2180 * a-except.adb, a-except-2005.ads: Minor reformatting
2182 2009-07-27 Robert Dewar <dewar@adacore.com>
2184 * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
2186 2009-07-27 Javier Miranda <miranda@adacore.com>
2188 * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
2189 add some documentation explaining why the SCIL nodes must be generated
2192 2009-07-27 Olivier Hainque <hainque@adacore.com>
2194 * a-except.adb: Bind to __builtin_longjmp directly.
2195 * a-except-2005.ads: Provide direct binding to __builtin_longjmp
2197 * a-exexpr.adb: Use it.
2198 * a-except-xi.adb: Likewise.
2199 * raise.c (_gnat_builtin_longjmp): Remove and update comments.
2200 * raise.h (_gnat_builtin_longjmp): Remove declaration.
2202 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2204 * sem_eval.adb (Compile_Time_Compare): More precise handling of
2205 Known_Valid flag, to prevent spurious range deductions when scalar
2206 variables may be uninitialized. New predicate Is_Known_Valid_Operand.
2208 2009-07-27 Robert Dewar <dewar@adacore.com>
2210 * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
2213 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2215 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
2216 Ravenscar mode. Error has already been posted on specification.
2218 * sem.adb: Further code clean ups.
2220 2009-07-27 Robert Dewar <dewar@adacore.com>
2222 * g-sse.ads: Minor reformatting
2224 2009-07-27 Arnaud Charlet <charlet@adacore.com>
2226 * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
2227 alternate ali extension.
2228 * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
2229 account Osint.ALI_Suffix.
2230 * osint.ads (ALI_Suffix): Make visible.
2231 * gnatfind.adb (Gnatfind): Add support for --ext= switch.
2232 * gnat_ugn.texi: Document new gnatfind --ext= switch.
2234 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2236 * sem.adb (Walk_Library_Items): If main unit is an instance body, do
2239 2009-07-27 Javier Miranda <miranda@adacore.com>
2241 * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
2242 the dispatching call has is expanded.
2244 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2246 * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
2247 Is_Known_Valid flag on the temporary created for the value whose
2248 validity is being checked.
2250 * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
2251 handle properly main units that are package specifications.
2253 2009-07-27 Geert Bosch <bosch@adacore.com>
2255 * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
2256 * sem_aux.ads: Fix typo in comment
2257 * sem_util.ads (Is_LHS): Adjust comment to match body
2259 2009-07-27 Sergey Rybin <rybin@adacore.com>
2261 * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
2264 2009-07-27 Olivier Hainque <hainque@adacore.com>
2266 * g-sse.ads, g-ssvety.ads: Update comments.
2268 2009-07-27 Sergey Rybin <rybin@adacore.com>
2270 * gnat_ugn.texi: Update gnatcheck doc.
2272 2009-07-27 Arnaud Charlet <charlet@adacore.com>
2274 * lib-xref.ads: Allocate/document 'o' char for use by references to
2275 spark 'own' variables.
2277 2009-07-27 Gary Dismukes <dismukes@adacore.com>
2279 * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
2280 objects, since these are implicitly referenced by the return statement.
2281 * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
2282 Is_Return_Object in this procedure, as return objects will never make
2283 it here since they're now marked as Referenced.
2285 2009-07-27 Robert Dewar <dewar@adacore.com>
2287 * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
2289 2009-07-27 Robert Dewar <dewar@adacore.com>
2291 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
2293 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
2295 2009-07-27 Geert Bosch <bosch@adacore.com>
2297 * checks.adb (Find_Check): Minor streamlining of logic.
2298 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
2299 * debug.adb: Document -gnatdX debug flag
2300 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
2301 list information about reads from scalar entities.
2302 Also slightly simplify condition for Expand_Current_Value.
2303 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
2306 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
2309 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
2310 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
2312 (__gnat_stat): Adjust reference to STAT in prototype.
2313 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
2314 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
2315 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
2316 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
2317 __gnat_is_writable_file, __gnat_is_executable_file,
2318 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
2319 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
2320 __gnat_copy_attribs): Adjust all references to the above.
2321 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
2323 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2325 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
2326 done at the same time, guard against listing a body more than once.
2328 2009-07-23 Robert Dewar <dewar@adacore.com>
2330 * exp_ch6.adb: Minor reformatting
2332 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2334 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
2335 static expression is known valid.
2336 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
2337 operands of a subtype with a single value.
2339 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2341 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
2342 are in the context of the main unit body.
2344 2009-07-23 Sergey Rybin <rybin@adacore.com>
2346 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
2347 misprint in rule description.
2349 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2351 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
2352 test that the object declaration is within an extended return statement
2353 with direct test of whether the declared object associated with the
2354 build-in-place call is a return object, since the enclosing function
2355 might not even be a build-in-place function.
2357 2009-07-23 Robert Dewar <dewar@adacore.com>
2359 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
2360 Minor code reorganization
2362 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2364 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
2365 for static analysis, only packed arrays are causing troubles.
2367 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2369 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
2370 ancestor part is a call to a limited function with an unconstrained
2371 result subtype unless the aggregate has a null extension type.
2372 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
2373 the parent type declaration to avoid blowups on subtype cases.
2375 2009-07-23 Robert Dewar <dewar@adacore.com>
2377 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
2380 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
2382 * s-regexp.adb: Minor reformatting
2383 * scos.ads: Minor reformatting.
2385 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2387 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
2388 other similar messages.
2389 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
2390 messages/implicit packing in CodePeer mode.
2391 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
2392 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
2395 2009-07-23 Pascal Obry <obry@adacore.com>
2397 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
2400 2009-07-23 Robert Dewar <dewar@adacore.com>
2402 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
2405 2009-07-23 Yannick Moy <moy@adacore.com>
2407 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
2409 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
2411 (Raise_Exception): Ditto.
2413 2009-07-23 Olivier Hainque <hainque@adacore.com>
2415 * g-sse.ads: Simplify comment.
2417 2009-07-23 Olivier Hainque <hainque@adacore.com>
2419 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
2420 low level internal type definitions for distinct higher level
2421 binding development activities (user type definitions and
2423 * gnat_rm.texi: Document it.
2424 * g-ssvety.ads: Use it.
2425 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
2426 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
2427 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
2428 for the "may_alias" attribute.
2430 2009-07-23 Thomas Quinot <quinot@adacore.com>
2432 * scos.ads: Minor typo fix
2434 * gcc-interface/decl.c (validate_alignment): For the case of an
2435 implicit array base type, look for alignment clause on first subtype.
2437 2009-07-23 Robert Dewar <dewar@adacore.com>
2439 * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
2440 with tagged parent if tagged parent is fully repped.
2442 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2444 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
2445 in the context depends on the spec of the main unit, by delaying
2446 processing of the main unit body until all other units have been
2449 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2451 * a-convec.adb: Add comments about suspicious/subtle code.
2453 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2455 * einfo.ads: Document use of Alias in private overriding
2457 2009-07-23 Thomas Quinot <quinot@adacore.com>
2459 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
2460 an array type, propagate alignment from first subtype to implicit base
2461 type so that other subtypes (such as the itypes for aggregates of the
2462 type) also receive the expected alignment.
2464 * g-comlin.ads: Minor documentation clarification/rewording.
2465 * scos.ads: Minor comments update.
2466 * lib-writ.ads: Minor reformatting
2468 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2470 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
2471 of a class-wide interface type that is a return object of a
2472 build-in-place function, bypass the interface-related expansions into
2473 renamings with displacement conversions, etc.
2474 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
2475 for the case where a renaming occurs in a build-in-place context, to
2476 assert that the bypassing of the build-in-place treatment only occurs
2477 in the case of a renaming that is an expansion of a return expression
2478 that is itself a build-in-place function call.
2480 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2482 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
2483 valid candidate interpretation in a prefixed view if it is hidden, but
2484 overrides an inherited operation declared in the visible part.
2486 2009-07-23 Robert Dewar <dewar@adacore.com>
2488 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2489 division operands to 64-bit at all in any circumstances.
2491 2009-07-23 Robert Dewar <dewar@adacore.com>
2493 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
2494 checking ranges for mod/rem to see if conditional jump will be
2496 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
2497 generating special -1 test for rem, generate it whenever both
2498 operands can be negative (match circuit in Sem_Res).
2499 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
2500 destroys memory of positive range.
2501 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
2502 checking ranges for mod/rem to see if conditional jump will be generated
2504 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2506 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
2507 scalar components has non-static bounds, the equivalent aggregate
2508 cannot be built, even if the expression is static, because range checks
2511 2009-07-23 Robert Dewar <dewar@adacore.com>
2513 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2514 division operands to 64-bit inside a conversion if 64-bit division not
2517 2009-07-23 Sergey Rybin <rybin@adacore.com>
2519 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
2521 2009-07-23 Javier Miranda <miranda@adacore.com>
2523 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
2524 (Entity/Set_Entity): not available in N_Null_Statement nodes
2525 (Is_Scil_Node): renamed as Is_SCIL_Node
2526 (Scil_Nkind): renamed as SCIL_Nkind
2527 (Scil_Related_Node): renamed as SCIL_Related_Node
2528 (Scil_Target_Prim): renamed as SCIL_Target_Prim
2529 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
2530 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
2531 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
2532 Update documentation
2533 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
2534 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2535 (New_Scil_Node): Renamed as New_SCIL_Node
2536 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
2537 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2538 (New_Scil_Node): Renamed as New_SCIL_Node
2539 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
2541 2009-07-23 Robert Dewar <dewar@adacore.com>
2543 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
2544 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
2545 * einfo.adb: Minor reformatting
2547 2009-07-23 Robert Dewar <dewar@adacore.com>
2549 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
2550 cross-referencing the new related code in
2551 Exp_Ch4.Expand_N_Type_Conversion.
2552 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
2554 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
2557 2009-07-23 Javier Miranda <miranda@adacore.com>
2559 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
2560 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
2561 * exp_disp.ads (Scil_Node_Kind): Ditto.
2562 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
2563 * exp_ch3.adb (Build_Init_Procedure): Ditto.
2565 2009-07-23 Javier Miranda <miranda@adacore.com>
2567 * einfo.adb (Component_Type): Add missing assertion.
2568 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
2569 reading attribute Component_Size.
2570 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
2571 before reading attributes Component_Size and Component_Type.
2572 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
2573 before reading attribute Component_Type.
2575 2009-07-23 Olivier Hainque <hainque@adacore.com>
2577 * gnat_rm.texi: Document the GNAT.SSE units.
2579 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2581 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
2582 not null return if it appears on a subunit.
2584 2009-07-23 Robert Dewar <dewar@adacore.com>
2586 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
2587 check right away so it does not get skipped for early returns, e.g.
2589 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
2590 left-side unless we really know the value is valid.
2592 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
2593 reformatting. Minor code reorganization. Add comments.
2595 2009-07-23 Robert Dewar <dewar@adacore.com>
2597 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
2600 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2602 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
2603 with test of coverage, to allow specific type objects in extended
2604 returns of class-wide functions. Remove now-unnecessary special-case
2605 tests that allowed this in certain cases of expanded extended returns.
2607 2009-07-23 Javier Miranda <miranda@adacore.com>
2609 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
2610 N_Null_Statements (for SCIL nodes).
2611 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
2612 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
2613 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
2615 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
2616 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
2617 associated with dispatching call.
2618 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
2619 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
2620 initialization of dispatch tables and initialization of tags.
2621 (New_Scil_Node): New function that creates a new SCIL node.
2622 (Build_Init_Procedure): Add generation of SCIL node associated with the
2623 initialization of tags done in the IP subprogram.
2625 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2627 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
2628 Warnings_Off, do not emit continuation messages.
2630 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
2633 2009-07-23 Emmanuel Briot <briot@adacore.com>
2635 * ali.adb: Minor comment update
2637 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
2639 * s-win32.ads (HANDLE): Define to be the same size as address type.
2642 2009-07-23 Olivier Hainque <hainque@adacore.com>
2644 * g-sse.ads: New file. Root of the SSE facilities trees, with
2645 general description and common declarations.
2646 * g-ssvety.ads: New file. Expose user level SSE vector types.
2647 * impunit.adb (Non_Imp_File_Names_95): Register new units.
2648 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
2649 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
2651 2009-07-23 Ben Brosgol <brosgol@adacore.com>
2653 * gnat_ugn.texi: Wordsmithing.
2655 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2657 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
2659 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
2661 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
2662 they are already of the base type of the index.
2664 2009-07-22 Brett Porter <porter@adacore.com>
2666 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
2668 2009-07-22 Robert Dewar <dewar@adacore.com>
2670 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
2671 * gnat_ugn.texi: Add documentation for -gnateS switch
2672 * ug_words: Add entry for -gnateS /SCO_OUTPUT
2673 * gcc-interface/Make-lang.in: Update dependencies.
2675 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
2676 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
2677 complete information for SCO input/output.
2679 2009-07-22 Sergey Rybin <rybin@adacore.com>
2681 * gnat_ugn.texi: Update doc for some gnatcheck rules.
2683 2009-07-22 Robert Dewar <dewar@adacore.com>
2685 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
2686 contents of SCO tables.
2687 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
2688 scos.adb, scos.ads: New files.
2689 * gcc-interface/Make-lang.in: Update dependencies.
2691 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
2692 fixes and reformatting.
2694 2009-07-22 Robert Dewar <dewar@adacore.com>
2696 * g-socket.ads: Minor reformatting
2698 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2700 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
2701 include the entity kind for following cases of unreferenced entities:
2702 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
2704 2009-07-22 Ed Falis <falis@adacore.com>
2706 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
2709 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2711 * adadecode.c: Make this file compilable outside of GCC.
2713 2009-07-22 Thomas Quinot <quinot@adacore.com>
2715 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
2716 (partially) default-initialized socket sets are handled properly by
2717 clearing their Set component.
2719 2009-07-22 Bob Duff <duff@adacore.com>
2721 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
2723 2009-07-22 Robert Dewar <dewar@adacore.com>
2725 * gnat_ugn.texi: Minor reformatting
2727 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2729 * errout.adb (Error_Msg): A style message within an instantiation
2730 should not be labelled as an error.
2732 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2734 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
2735 in initialization expression if function does not have convention Ada.
2737 2009-07-22 Sergey Rybin <rybin@adacore.com>
2739 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
2740 '--separate-label' to control label layout.
2742 2009-07-22 Robert Dewar <dewar@adacore.com>
2744 * exp_tss.ads, sem_eval.adb: Minor reformatting
2746 2009-07-22 Bob Duff <duff@adacore.com>
2748 * exp_dist.adb, exp_dist.ads: Update comments.
2750 2009-07-22 Brett Porter <porter@adacore.com>
2752 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
2754 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
2756 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2758 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
2759 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
2761 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
2762 used poor terminology.
2764 2009-07-22 Robert Dewar <dewar@adacore.com>
2766 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
2767 * sem_eval.adb, exp_tss.adb: Minor comment update.
2768 * stylesw.adb: Code clean up.
2770 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2772 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
2773 component size is an exact number of bytes, an array type can have a
2774 size clause that forces packing even though the array type itself is
2777 2009-07-22 Thomas Quinot <quinot@adacore.com>
2779 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
2780 if there is a previous entity with the same name in the scope, ignore
2781 it if it is the renaming declaration for a generic package introduced
2784 2009-07-22 Nicolas Roche <roche@adacore.com>
2786 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
2787 handler on x86_64 windows.
2789 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2791 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
2792 false positives in CodePeer, so ignore this pragma in this mode.
2794 2009-07-22 Thomas Quinot <quinot@adacore.com>
2796 * sem_util.adb, sem_ch10.adb: Minor reformatting
2798 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
2799 special handling for the case of no data received and Item'First =
2800 Stream_Element_Offset'First.
2801 (Last_Index): New subprogram factoring the above special handling
2802 over the various locations where it is required.
2804 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2806 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
2807 checks in CodePeer_Mode.
2808 * gcc-interface/Make-lang.in: Update dependencies.
2810 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2812 * sem_aggr.adb: Improve error message.
2814 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
2815 of an address representation clause.
2816 * freeze.adb (Freeze_Static_Object): An local imported object is legal
2817 if it has an address clause.
2819 2009-07-22 Thomas Quinot <quinot@adacore.com>
2821 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
2822 expression to insert an elab check using a conditional expression, be
2823 sure to carry the original list of interpretations to the new location.
2825 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2827 * gnat1drv.adb: Fix spelling error.
2829 2009-07-22 Javier Miranda <miranda@adacore.com>
2831 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
2832 at the library level and fix a hidden bug in its implementation: its
2833 functionality for renaming objects was broken because
2834 N_Object_Renaming_Declarations nodes are not a subclass of
2835 N_Declaration nodes (as documented in sinfo.ads).
2836 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
2837 check nodes that are actuals of generic instantiations.
2839 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2841 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
2842 context of a compilation unit is being analyzed. Used to detect
2843 circularities created by with_clauses that are not detected by the
2845 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
2846 analyzing the context of the current compilation unit, to detect
2847 possible circularities created by with_clauses.
2849 2009-07-22 Thomas Quinot <quinot@adacore.com>
2851 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
2853 2009-07-22 Robert Dewar <dewar@adacore.com>
2855 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
2856 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
2858 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
2859 * gnat_ugn.texi: Add documentation of -gnatyB
2860 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
2862 2009-07-22 Robert Dewar <dewar@adacore.com>
2864 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
2865 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
2866 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
2867 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
2868 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
2869 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
2870 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
2871 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
2872 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
2873 obey short-circuit style rule.
2875 2009-07-20 Bob Duff <duff@adacore.com>
2877 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
2878 instead of "and", because otherwise Parent_Last_Bit is read
2879 uninitialized in the case where it's not a tagged type, or the tagged
2880 parent does not have a complete rep clause.
2882 2009-07-20 Robert Dewar <dewar@adacore.com>
2884 * stylesw.ads: Minor documentation change.
2886 * types.ads: Minor reformatting
2888 2009-07-20 Javier Miranda <miranda@adacore.com>
2890 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
2891 generating the tag checks associated with dispatching calls.
2892 * exp_disp.adb (Apply_Access_Checks): New subprogram.
2893 (New_Value): This routine was previously local to expand dispatching
2894 calls but it is now used also by Apply_Access_Checks.
2895 (Expand_Dispatching_Calls): Cleanup code because the functionality of
2896 tag checks is now provided by Apply_Access_Checks.
2897 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
2898 case of dispatching calls.
2900 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2902 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
2905 2009-07-20 Gary Dismukes <dismukes@adacore.com>
2907 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
2908 for VMS, only rewrite the first component of the associated exception's
2909 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
2910 and third components that were being replaced with 'M' and 'S'.
2912 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2914 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
2915 Also do not generate error when parsing a spec in CodePeer mode.
2917 2009-07-20 Javier Miranda <miranda@adacore.com>
2919 * checks.adb (Apply_Access_Check): Avoid checks on availability of
2920 runtime function Offset_To_Top_Ptr when compiling with no tagged
2922 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
2923 adding code to the init proc when compiling for VM backends.
2925 2009-07-20 Vincent Celier <celier@adacore.com>
2927 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
2928 account switches -gnatw.?
2930 2009-07-20 Thomas Quinot <quinot@adacore.com>
2932 * sem_dist.adb, exp_dist.adb: Minor reformatting
2934 * Make-generated.in: New file.
2936 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
2938 2009-07-20 Javier Miranda <miranda@adacore.com>
2940 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
2942 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
2943 dynamically tagged expression.
2944 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
2946 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
2947 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2949 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2951 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
2952 CodePeer_Mode is set, to benefit from full front-end expansion
2955 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2957 * sem_res.adb: Add guard.
2959 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
2960 for possible attribute definition of External_Tag, in case clause
2961 appears in the private part of a package.
2963 2009-07-20 Jerome Guitton <guitton@adacore.com>
2965 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
2967 2009-07-20 Vadim Godunko <godunko@adacore.com>
2969 * a-coorma.adb: Minor reformatting.
2971 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2973 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
2974 access return types.
2975 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
2976 provide an itype reference to gigi to force elaboration of the subtype
2977 at the proper point.
2979 2009-07-20 Tristan Gingold <gingold@adacore.com>
2981 * g-expect.adb: Avoid closeing already closed handle.
2983 2009-07-20 Robert Dewar <dewar@adacore.com>
2985 * sprint.adb (Write_Subprogram_Name): New procedure to output
2986 subprogram name with possible preceding $ (replaces
2987 Note_Implicit_Run_Time_Call).
2989 2009-07-20 Robert Dewar <dewar@adacore.com>
2991 * vms_data.ads: Minor reformatting
2993 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
2994 applies to base type.
2995 (Parent_Subtype): Now allowed on record subtype, applies to base type
2996 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
2997 for case of fully repped tagged type.
2998 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
2999 tag save/restore for fully repped tagged type case.
3000 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
3001 * fe.h (Is_Fully_Repped_Tagged_Type): New function
3002 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
3003 overlap of tagged type components with parent type if parent type is
3005 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
3007 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
3009 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
3010 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
3012 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
3013 logical operators (AND/OR/XOR), not comparison operators.
3015 * sprint.ads: Minor reformatting
3017 2009-07-20 Ed Schonberg <schonberg@adacore.com>
3019 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
3020 intrinsics, check that argument is a string literal, rather than
3021 checking for staticness.
3023 2009-07-20 Robert Dewar <dewar@adacore.com>
3025 * sem_ch13.adb: Minor reformatting
3027 * einfo.ads: Minor reformatting
3028 Component_Bit_Offset is no longer considered obsolescent
3030 2009-07-20 Nicolas Roche <roche@adacore.com>
3032 * a-calend.adb: Redefine time_t as signed integer with same size as
3034 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
3036 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
3039 2009-07-20 Javier Miranda <miranda@adacore.com>
3041 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
3042 constructors that have anonymous access type formals.
3044 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
3045 class-wide arguments in case of imported C++ subprograms.
3047 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
3049 2009-07-20 Sergey Rybin <rybin@adacore.com>
3051 * vms_data.ads: Update qualifiers.
3053 2009-07-20 Robert Dewar <dewar@adacore.com>
3055 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
3058 2009-07-17 Richard Guenther <rguenther@suse.de>
3061 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
3062 state. Remove unused parameter.
3063 (gnat_gimplify_function): Do not gimplify here.
3064 Fold into its only caller and remove.
3065 (gnat_builtin_function): Adjust for end_subprog_body signature change.
3066 (gnat_write_global_declarations): Also finalize the CU.
3067 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
3068 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
3069 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
3071 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
3073 2009-07-15 Arnaud Charlet <charlet@adacore.com>
3075 * gcc-interface/Make-lang.in: Update dependencies
3077 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
3079 2009-07-15 Robert Dewar <dewar@adacore.com>
3081 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
3082 N_Label. Remove SCO table entry for entry point (not used).
3084 * par_sco.ads: Remove SCO entry point type (not used)
3086 * switch.adb: Minor code clean up.
3088 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
3090 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
3092 2009-07-15 Thomas Quinot <quinot@adacore.com>
3094 * gnatls.adb: Minor reformatting
3096 * gnatcmd.adb: Minor code reorganization
3098 2009-07-15 Ed Schonberg <schonberg@adacore.com>
3100 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
3101 determine whether a component of a private type has a composite type.
3103 2009-07-15 Robert Dewar <dewar@adacore.com>
3105 * sem_ch10.adb: Minor reformatting throughout
3106 Minor code reorganization (put nested subprograms in alpha order)
3108 2009-07-15 Ed Schonberg <schonberg@adacore.com>
3110 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
3111 when compiling a call to a protected function that returns a controlled
3114 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
3116 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
3117 one. Add task locking and unlocking around the critical region which
3118 mentions localtime_r and global variable timezone for various targets.
3119 Comment reformatting.
3121 2009-07-15 Robert Dewar <dewar@adacore.com>
3123 * gnat_rm.texi: Document s-ststop.ads
3125 * impunit.ad: (Map_Array): New table of alternative names
3126 (Get_Kind_Of_Unit): Return possible suggested alternative name
3128 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
3131 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
3132 alternative unit if an implementation unit is with'ed.
3134 2009-07-15 Robert Dewar <dewar@adacore.com>
3136 * gnat_ugn.texi: Minor updates.
3138 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
3140 2009-07-15 Ed Schonberg <schonberg@adacore.com>
3142 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
3143 conditions of a derived boolean type.
3146 2009-07-15 Robert Dewar <dewar@adacore.com>
3148 * gnat1drv.adb: Initialize SCO tables
3150 * par-load.adb: Call SCO_Record for main unit spec
3152 * par.adb: Make call to SCO_Record for main unit
3154 * par_sco.adb (Unit_Table): Change format to facilitate sort
3155 (Process_Decisions): New procedure with list argument
3156 (Traverse_Generic_Package_Declaration): New procedure
3157 (Initialize): New procedure, replaces Init
3158 (SCO_Output): Sort unit table before output
3159 (SCO_Record): Avoid duplications
3160 (SCO_Record): Handle remaining cases of units
3161 (Traverse_Declarations_Or_Statements): Handle generics
3163 * par_sco.ads (Initialize): New peocedure (replaces Init)
3165 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
3168 2009-07-15 Arnaud Charlet <charlet@adacore.com>
3170 * debug.adb: Add -gnatd.J switch for now to support scil generation in
3171 parallel. Add missing doc for -gnatd.I and -gnatd.O
3173 2009-07-15 Robert Dewar <dewar@adacore.com>
3175 * lib-load.adb: Minor reformatting
3177 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
3179 2009-07-15 Robert Dewar <dewar@adacore.com>
3181 * par.adb: Minor reformatting
3182 Add ??? comment for possible bad comment
3184 * par-ch10.adb: Minor reformatting
3186 2009-07-15 Ed Schonberg <schonberg@adacore.com>
3188 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
3189 is a literal of a derived boolean type, it appears as an unchecked
3190 conversion. Retrieve actual value from expression of conversion.
3192 2009-07-15 Robert Dewar <dewar@adacore.com>
3194 * sem_ch3.adb: Minor reformatting
3196 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
3197 lib-writ.ads, lib-writ.adb: Minor reformatting.
3198 Fix problem with SCO format in ALI files
3200 2009-07-15 Robert Dewar <dewar@adacore.com>
3202 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
3203 exp_aggr.adb: Minor code reorganization (better calling sequence for
3206 2009-07-15 Thomas Quinot <quinot@adacore.com>
3208 * opt.ads: Minor comment edits
3210 2009-07-15 Tristan Gingold <gingold@adacore.com>
3212 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
3215 2009-07-15 Robert Dewar <dewar@adacore.com>
3217 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
3220 * lib-writ.ads: Document addition of SCO lines to ALI file
3222 * par_sco.ads, par_sco.adb: New files.
3224 * opt.ads (Generate_SCO): New switch
3226 * par.adb (Par): Call SCO_Record to record SCO information
3228 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
3230 * switch-c.adb: Recognize -gnateS to generate SCO information
3232 * usage.adb: Add line for -gnateS
3234 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
3236 2009-07-15 Robert Dewar <dewar@adacore.com>
3238 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
3241 2009-07-15 Thomas Quinot <quinot@adacore.com>
3243 * g-socthi-mingw.adb: Minor comment addition
3245 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
3247 2009-07-15 Robert Dewar <dewar@adacore.com>
3249 * g-htable.ads, s-htable.ads: Minor reformatting
3251 2009-07-15 Robert Dewar <dewar@adacore.com>
3253 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
3254 new switch -gnatw.g.
3255 (Set_GNAT_Mode_Warnings): New procedure.
3257 * lib-xref.adb: Minor reformatting
3259 2009-07-15 Robert Dewar <dewar@adacore.com>
3261 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
3262 Minor code reorganization
3264 2009-07-14 Taras Glek <tglek@mozilla.com>
3265 Rafael Espindola <espindola@google.com>
3267 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
3268 installing plugin headers.
3270 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3272 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
3273 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
3274 and link it to the expression whose value it captures.
3276 2009-07-13 Robert Dewar <dewar@adacore.com>
3278 * output.adb: Minor comment addition for last change
3280 * sinfo.ads: Minor reformatting
3282 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
3284 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
3285 spawn failed like on all other targets.
3287 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3289 * exp_ch7.adb: Indicate origin of temporary for transient expression.
3291 2009-07-13 Thomas Quinot <quinot@adacore.com>
3293 * s-oscons-tmplt.c: Add comment.
3295 2009-07-13 Robert Dewar <dewar@adacore.com>
3297 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
3298 reformatting. Minor code reorganization (add 9 argument version of
3301 * impunit.adb: Remove s-os_lib from list of system extensions.
3303 * sem_util.ads: Minor reformatting
3305 * output.adb: Add warnings off/on around System.OS_Lib.
3307 2009-07-13 Bob Duff <duff@adacore.com>
3309 * exp_dist.adb: Minor comment updates.
3311 2009-07-13 Gary Dismukes <dismukes@adacore.com>
3313 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
3314 several references to CodePeer.
3316 2009-07-13 Bob Duff <duff@adacore.com>
3318 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
3319 Build_TypeCode_Function_All): Do not recurse if the type is the base
3322 2009-07-13 Robert Dewar <dewar@adacore.com>
3324 * exp_ch4.adb: Minor comment change
3326 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3328 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
3329 type of iteration, to prevent spurious warnings.
3331 2009-07-13 Nicolas Roche <roche@adacore.com>
3333 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
3336 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3338 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
3339 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
3341 (CodePeer_Mode): New -gnatC switch.
3342 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
3345 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
3347 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
3348 integer bound forces the check if it is compared to its subtype range.
3350 2009-07-13 Robert Dewar <dewar@adacore.com>
3352 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
3353 prj-strt.ads: Minor reformatting
3355 2009-07-13 Thomas Quinot <quinot@adacore.com>
3357 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
3358 set the type of the From_Any call to the base type.
3360 2009-07-13 Doug Rupp <rupp@adacore.com>
3362 * symbols-processing-vms-ia64.adb (Process): Add variables and
3363 constants to retrieve and check for symbol visibility.
3365 2009-07-13 Javier Miranda <miranda@adacore.com>
3367 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
3368 the identical type we remove the conversion completely because
3371 2009-07-13 Emmanuel Briot <briot@adacore.com>
3373 * prj-err.adb (Error_Msg): One more case where a message should be
3374 considered as a warning.
3376 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
3378 2009-07-13 Thomas Quinot <quinot@adacore.com>
3380 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
3381 calling stubs in the (library level) scope of the RCI locator, where it
3382 is attached, not in the caller's scope.
3384 2009-07-13 Javier Miranda <miranda@adacore.com>
3386 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
3387 interface object declarations we delay the generation of the equivalent
3388 record type declarations until its expansion because there are cases in
3389 which they are not required.
3391 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
3393 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
3394 addition of assertion.
3396 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
3397 interface types require no equivalent constrained type declarations
3398 because the expanded code only references the tag component associated
3400 (Find_Interface_Tag): Improve management of interfaces that are
3401 ancestors of tagged types.
3403 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
3404 class-wide object declarations to add missing support to statically
3405 displace the pointer to the object to reference the tag component
3406 associated with the interface.
3408 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
3409 auxiliary types associated with user-defined dispatching calls if the
3410 type has no user-defined primitives.
3412 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
3414 * mingw32.h: Make it explicit that we need XP or later.
3416 * initialize.c: Remove useless extern symbol declaration.
3418 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
3419 code reuse in expect.c.
3421 * adaint.c: Changes throughout the Windows section to redesign storage
3422 of the child process list and the process identification.
3424 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
3425 for interfacing, fix errors.
3426 (__gnat_expect_portable_execvp): use function in adaint.c
3428 2009-07-13 Emmanuel Briot <briot@adacore.com>
3430 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
3431 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
3432 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
3433 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
3434 (Prj.Nmsc.Report_Error): Removed, no longer needed.
3435 Always use Prj.Err.Report_Message.
3437 2009-07-13 Robert Dewar <dewar@adacore.com>
3439 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
3442 2009-07-13 Robert Dewar <dewar@adacore.com>
3444 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3445 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
3447 2009-07-13 Emmanuel Briot <briot@adacore.com>
3449 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
3450 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
3451 Ada_Prj_Include_File_Set): Removed, since not needed
3454 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3456 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
3457 Analyze_Membership_Op.
3459 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
3460 Resolve_Membership_Op.
3462 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
3465 2009-07-13 Robert Dewar <dewar@adacore.com>
3467 * clean.adb: Minor reformattting
3469 2009-07-13 Emmanuel Briot <briot@adacore.com>
3471 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
3472 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
3473 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
3474 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
3475 and attributes in a project tree.
3476 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
3477 Remove last remaining mode-specific code (ada_only or
3478 multi_language). This was duplicating code
3479 (Get_Mode, Set_Mode): removed, no longer used.
3480 (Initialize_Project_Path): all tools will now take into account both
3481 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
3482 Remove some global variables and subprograms no longer used
3483 Make temporary files tree-specific, to avoid interferences between
3484 trees loaded in memory at the same time.
3485 (Prj.Delete_Temporary_File): new subprogram
3486 (Object_Paths, Source_Paths): fields no longer stored in the project
3487 tree, since they are only needed locally in Set_Ada_Paths.
3488 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
3490 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
3491 by local variables in the appropriate subprograms
3492 (Has_Foreign_Sources): removed.
3494 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
3496 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3498 * gnat1drv.adb (Adjust_Global_Switches): No longer set
3499 Back_Annotate_Rep_Info in inspector mode.
3500 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
3502 * opt.ads: Update comment.
3504 2009-07-13 Robert Dewar <dewar@adacore.com>
3506 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
3507 prj.ads: Minor reformatting and code reorganization.
3509 * par-ch3.adb (Check_Restricted_Expression): New procedure
3511 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3513 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
3514 attribute into a call of the corresponding suprogram, create extra
3515 formals for the subprogram, because it may be a renaming whose
3516 analysis does not create extra formals.
3518 2009-07-13 Emmanuel Briot <briot@adacore.com>
3520 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3521 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3522 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
3523 prj-tree.ads: Minor reformatting.
3524 (Processing_Flags): new record to encapsulate the set of common
3525 parameters to several subprograms in the project manager.
3526 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
3527 Remove the need for the Current_Dir parameter in subprograms.
3528 (Look_For_Sources): minor refactoring, now that we no longer need to
3529 share subprograms between the two Ada_Only and Multi_Language modes
3530 (Processing_Flags): New field Error_On_Unknown_Language.
3531 Merge tests for library project between gnatmake and gprbuild.
3533 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3535 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
3538 2009-07-13 Emmanuel Briot <briot@adacore.com>
3540 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
3543 2009-07-13 Thomas Quinot <quinot@adacore.com>
3545 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
3546 Write,Input,Output} from private view to full view.
3548 * sem_type.adb, sem_type.ads: Minor reformatting
3550 2009-07-13 Nicolas Setton <setton@adacore.com>
3552 * exp_dbug.ads: Add documentation note on the utility of
3553 DW_AT_GNAT_encoding for IDEs.
3555 2009-07-13 Robert Dewar <dewar@adacore.com>
3557 * g-socthi-vxworks.adb: Minor reformatting
3559 * gnatcmd.adb: Minor reformatting
3561 2009-07-13 Thomas Quinot <quinot@adacore.com>
3563 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
3564 removed, not used anymore.
3565 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
3566 New subprogram, implements copy of an Any value into a limited object.
3567 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
3568 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
3569 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
3570 of parameters of a limited type, use the above new subprogram.
3572 2009-07-13 Emmanuel Briot <briot@adacore.com>
3574 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
3576 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
3578 (Error_Report): Remove global variable, replaced by parameters.
3580 2009-07-13 Thomas Quinot <quinot@adacore.com>
3582 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
3583 standard sendto(2) interface for connected sockets (passing a null
3584 destination address). Use send(2) instead for that case.
3586 2009-07-13 Pascal Obry <obry@adacore.com>
3588 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
3590 2009-07-13 Emmanuel Briot <briot@adacore.com>
3592 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3593 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
3594 variables and tables in prj-nmsc.adb.
3595 (Tree_Processing_Data): Renames Processing_Data, some new fields added
3596 (Project_Processing_Data): New record
3597 Simplify/unify check for missing sources.
3599 2009-07-13 Emmanuel Briot <briot@adacore.com>
3601 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
3602 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3603 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
3604 prj-tree.ads (Immediate_Directory_Of): Removed.
3605 (Prj.Pars): Now parse the project simulating a default config file.
3606 (Add_Default_GNAT_Naming_Scheme): New subprogram
3607 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
3608 Remove gnatmake-specific parsing of source files.
3609 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
3610 the error itself to provide more precise diagnostics.
3611 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
3612 a unit belongs to several projects.
3613 (Copy_Interface_Sources): Search the full path of files to copy in the
3614 list of sources of the application rather than in the list of units.
3615 (Parse_Project_And_Apply_Config): Do not reset the name of the main
3617 (Check_File): Use htables to find out whether a source is duplicated.
3618 (Add_Source): check whether the source or unit were already seen earlier
3620 * gcc-interface/Makefile.in: Update gnatmake dependencies.
3622 2009-07-13 Robert Dewar <dewar@adacore.com>
3624 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
3625 expression if extensions permitted.
3627 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
3629 (P_Relation): Use P_Membership_Test
3631 * par.adb (P_Membership_Test): New procedure (implement membership set
3634 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
3636 * sprint.adb (Sprint_Node): Handle set form for membership tests.
3638 2009-07-13 Thomas Quinot <quinot@adacore.com>
3640 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
3641 Do not attempt to generate stubs for predefined primitives of
3642 synchronized interfaces.
3643 (Add_Stub_Type): Factor some code from the PCS-specific variants of
3646 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3648 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
3649 Controlling_Result flag from the operation they override.
3651 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3653 * gcc-interface/Make-lang.in: Update dependencies
3655 2009-07-13 Robert Dewar <dewar@adacore.com>
3657 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
3658 details on unsupported constructs.
3660 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
3663 * s-trafor-default.adb: Correct some warnings
3665 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
3666 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
3669 * par-ch4.adb (Conditional_Expression): Capture proper location for
3670 conditional expression, should point to IF.
3672 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
3673 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
3674 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
3675 reorganization (use conditional expressions).
3677 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3679 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
3680 build-in-place function that returns an inherently limited type (not
3681 just a task type) create proper object declaration so that extra
3682 build-in-place actuals are properly added to the call.
3684 2009-07-13 Robert Dewar <dewar@adacore.com>
3686 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
3688 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
3690 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
3692 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
3693 Warn_On_Suspicious_Modulus_Value.
3695 * ug_words: Add entries for -gnatw.m/-gnatw.M.
3697 * usage.adb: Add lines for -gnatw.m/.M switches.
3699 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
3701 2009-07-13 Javier Miranda <miranda@adacore.com>
3703 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
3704 reading the Is_Interface attribute of the dispatching type.
3706 2009-07-13 Robert Dewar <dewar@adacore.com>
3708 * a-convec.adb: Minor code reorganization (use conditional expressions)
3710 2009-07-13 Robert Dewar <dewar@adacore.com>
3712 * freeze.adb (Check_Suspicious_Modulus): New procedure.
3714 2009-07-13 Robert Dewar <dewar@adacore.com>
3716 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
3719 * par-ch4.adb: Minor reformatting
3721 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3723 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
3724 => Is_Atomic_Aggregate
3726 2009-07-13 Emmanuel Briot <briot@adacore.com>
3728 * prj-nmsc.adb: Avoid traversing the list of source files if
3729 we have already processed all locally removed files.
3731 2009-07-13 Jose Ruiz <ruiz@adacore.com>
3733 * gnat_ugn.texi: Fix typo.
3735 2009-07-13 Robert Dewar <dewar@adacore.com>
3737 * freeze.adb: Minor reformatting
3738 Minor code reorganization (use Nkind_In)
3740 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
3742 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3744 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
3745 local variable and do not test it in Compile_Time_Bad_Alignment.
3746 Do not issue size or alignment warnings for the X'Address form.
3747 * sem_util.ads (Find_Overlaid_Object): Delete.
3748 (Find_Overlaid_Entity): New procedure.
3749 * sem_util.adb (Find_Overlaid_Object): Rename to...
3750 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
3751 whether the address is offseted within the overlaid entity.
3752 (Has_Compatible_Alignment): Track the offset globally instead of
3753 passing it to Check_Offset. For an indexed component, compute the
3754 full offset when possible. If the resulting offset is zero, only
3756 (Check_Offset): Delete.
3757 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
3758 (Address_Aliased_Entity): Delete.
3759 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
3760 Find_Overlaid_Entity to find the overlaid entity and the offset.
3761 Adjust throughout for above change.
3762 (Validate_Address_Clauses): Always use attributes of entities, not of
3763 their type. Tweak message for warning. Call Has_Compatible_Alignment
3764 if the address is offseted to warn about incompatible alignments.
3765 * gcc-interface/gigi.h (annotate_object): Declare.
3766 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
3767 entity. Call annotate_object instead of annotating manually objects.
3768 (annotate_object): New function.
3769 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
3772 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3774 * gcc-interface/ada-tree.h: Minor reorganization.
3775 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
3776 (gnat_print_type): Likewise.
3778 2009-07-11 Thomas Quinot <quinot@adacore.com>
3780 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
3783 * exp_ch6.adb: Minor reformatting
3785 2009-07-11 Ed Schonberg <schonberg@adacore.com>
3787 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
3788 account possible type qualification to determine whether aggregate
3789 needs a target temporary to respect atomic type or object.
3791 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
3792 Expand_Atomic_Aggregate.
3794 2009-07-11 Emmanuel Briot <briot@adacore.com>
3796 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
3798 (Excluded_Sources_Htable): No longer a global table.
3799 Change error message to indicate which files are illegal in the list
3800 of excluded files, as opposed to only the location in the project
3802 (Find_Source): New subprogram.
3804 2009-07-10 Thomas Quinot <quinot@adacore.com>
3806 * exp_ch7.adb: Update comments.
3808 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3810 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
3811 clause if -gnatI is set instead of crashing.
3813 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3815 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
3816 Additional work to remove redundant successive raise statements, in
3817 this case access checks.
3819 2009-07-10 Vincent Celier <celier@adacore.com>
3821 * make.adb (Compile): Always create a deep copy of the mapping file
3822 argument (-gnatem=...) as it may be deallocate/reallocate by
3823 Normalize_Arguments.
3825 2009-07-10 Javier Miranda <miranda@adacore.com>
3827 * einfo.adb (Directly_Designated_Type): Add assertion.
3829 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
3830 access types before using attribute Directly_Designated_Type.
3832 2009-07-10 Emmanuel Briot <briot@adacore.com>
3834 * prj.ads: Minor typo fix
3836 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3838 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
3841 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
3842 subprogram is a function call, resolve properly, to ensure that extra
3843 actuals are added as needed.
3845 2009-07-10 Thomas Quinot <quinot@adacore.com>
3847 * sem_aggr.adb: Minor comments editing
3849 * exp_tss.adb, exp_ch3.adb: Minor reformatting
3851 2009-07-10 Robert Dewar <dewar@adacore.com>
3853 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
3855 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
3858 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
3859 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
3860 case of conditional expressions that may not be elaborated.
3862 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
3863 conditional expression where we may not execute then then or else
3866 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3868 * i-cexten.ads (bool): New type.
3870 2009-07-10 Robert Dewar <dewar@adacore.com>
3872 * sinfo.ads (N_Short_Circuit): New definition
3874 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
3875 treepr.adb: Minor code reorganization (use N_Short_Circuit)
3877 2009-07-10 Javier Miranda <miranda@adacore.com>
3879 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
3880 non-tagged record types.
3883 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
3884 with non-tagged types. Required to import C++ classes that have no
3886 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
3887 returning non-tagged types. For backward compatibility, if the
3888 constructor returns a class wide type we internally change the
3889 returned type to the corresponding non class-wide type.
3892 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
3893 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
3894 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
3895 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
3898 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
3900 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
3902 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
3904 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
3906 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
3909 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
3912 (pragma CPP_Class): Document that it can be used now with non-tagged
3914 (pragma CPP_Constructor): Document that it can be used now with
3915 functions returning specific types. For backward compatibility
3916 we also support functions returning class-wide types.
3919 (Interfacing with C++ constructors): Update the examples to incorporate
3920 the new syntax in which the functions used to import C++ constructors
3921 return specific types.
3922 (Interfacing with C++ at the Class Level): Update the examples to
3923 incorporate the new syntax in which the functions used to import
3924 C++ constructors return specific types.
3926 2009-07-10 Thomas Quinot <quinot@adacore.com>
3928 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
3929 Make_Disp_Conditional_Select_Body,
3930 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
3931 interface nor a concurrent type, the primitive body is empty. Generate
3932 a null statement so that it remains well formed.
3934 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3936 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
3937 replace references to them in defaulted component expressions with
3938 references to the values of the discriminants of the target object.
3940 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3942 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
3943 pragma, to capture global references if the context is generic.
3945 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
3946 appears within the initialization procedure for the corresponding
3947 record, replace it with the proper discriminal.
3949 2009-07-10 Vincent Celier <celier@adacore.com>
3951 * make.adb: Do not include object directories or library ALI
3952 directories of library projects in the object path.
3954 2009-07-10 Javier Miranda <miranda@adacore.com>
3956 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
3957 Typ argument to ensure proper management of access types.
3959 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3961 * exp_ch7.adb (Build_Final_List): If the list is being built for a
3962 Taft-Amendment type, place the finalization list in the package body,
3963 to ensure that the tree for the spec is identical whenever it is
3966 2009-07-10 Javier Miranda <miranda@adacore.com>
3968 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
3969 inheriting attributes from a private Parent_Base.
3971 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3973 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
3974 statements with the same condition.
3976 2009-07-10 Robert Dewar <dewar@adacore.com>
3978 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
3980 2009-07-09 Tom Tromey <tromey@redhat.com>
3982 * raise-gcc.c: Include dwarf2h (unconditionally).
3984 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3986 * sem_ch10.adb (Install_Context): If the unit is a package body,
3987 install the private with_clauses of the corresponding package
3990 2009-07-09 Robert Dewar <dewar@adacore.com>
3992 * checks.adb: Minor reformatting
3994 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3996 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3999 2009-07-09 Thomas Quinot <quinot@adacore.com>
4001 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
4002 Do not warn for a constant overlaying any constant object
4004 2009-07-09 Ed Schonberg <schonberg@adacore.com>
4006 * sem_ch10.adb (Install_Context): If the unit is a package body,
4007 install the private with_clauses of the corresponding package
4010 2009-07-09 Robert Dewar <dewar@adacore.com>
4012 * checks.adb: Minor reformatting
4014 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
4016 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
4019 2009-07-09 Thomas Quinot <quinot@adacore.com>
4021 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
4022 Do not warn for a constant overlaying any constant object
4024 2009-07-09 Arnaud Charlet <charlet@adacore.com>
4026 * gcc-interface/Make-lang.in: Update dependencies
4028 2009-07-09 Thomas Quinot <quinot@adacore.com>
4030 * g-socket.adb (Check_Selector): Do not create local copies of the
4031 socket sets on the stack.
4033 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
4035 * gnat_ugn.texi: Add missing VMS translations.
4037 2009-07-09 Ed Schonberg <schonberg@adacore.com>
4039 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
4040 condition, to prevent generation of visible code during expansion,
4041 when Check is not enabled.
4043 2009-07-09 Gary Dismukes <dismukes@adacore.com>
4045 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
4046 the check gets registered for any available local handler
4049 * sem_util.adb: Add with and use of Exp_Ch11.
4050 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
4051 that the check gets registered for any available local handler.
4053 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
4056 2009-07-09 Steve Baird <baird@adacore.com>
4058 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
4060 (Expand_N_Exception_Declaration): Fix handling of exceptions
4061 declared in a subprogram.
4063 2009-07-09 Emmanuel Briot <briot@adacore.com>
4065 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
4068 2009-07-09 Thomas Quinot <quinot@adacore.com>
4070 * freeze.adb: Minor reformatting
4072 * exp_ch3.adb: Minor comment fix.
4074 * sinfo.ads: Minor comment fix
4076 2009-07-09 Ed Schonberg <schonberg@adacore.com>
4078 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
4080 2009-07-09 Ed Schonberg <schonberg@adacore.com>
4082 * freeze.adb (Freeze_Expression): If the expression is the name of a
4083 function in a call, and the function has not been frozen yet, create
4084 extra formals for it to ensure that the proper actuals are created
4085 when expanding the call.
4087 2009-07-09 Emmanuel Briot <briot@adacore.com>
4089 * prj-pp.adb (Print): Fix handling of source index when set on a
4092 2009-07-09 Ed Schonberg <schonberg@adacore.com>
4094 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
4095 a temporary to the source expression whose value it captures.
4097 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
4099 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4101 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
4104 2009-07-07 Gary Dismukes <dismukes@adacore.com>
4106 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
4107 parameters when the subtype of the actual is not known to be a subrange
4108 of the formal's subtype.
4109 (Expand_Call): Generate a range check only in the E_In_parameter case
4110 (in out parameter range checks are now handled in Expand_Actuals).
4112 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
4115 2009-07-07 Robert Dewar <dewar@adacore.com>
4117 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
4119 2009-07-07 Javier Miranda <miranda@adacore.com>
4121 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
4122 designated type comes from a limited views.
4124 2009-07-07 Emmanuel Briot <briot@adacore.com>
4126 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
4127 locally removed files that are later made visible again in an importing
4130 2009-07-07 Robert Dewar <dewar@adacore.com>
4132 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
4134 2009-07-07 Sergey Rybin <rybin@adacore.com>
4136 * gnat_ugn.texi: Add an example to the description of gnatcheck
4137 'Style_Checks' rule option.
4139 2009-07-07 Tristan Gingold <gingold@adacore.com>
4141 * seh_init.c: Fix inline assembly statement in seh_init.c
4143 2009-07-07 Ed Schonberg <schonberg@adacore.com>
4145 * sem_warn.adb (Check_References): Do not emit warnings on formals of
4146 an entry body. Only the formals of the entry declaration are traced.
4148 2009-07-07 Robert Dewar <dewar@adacore.com>
4150 * s-osprim-mingw.adb: Minor code reorganization
4152 2009-07-07 Robert Dewar <dewar@adacore.com>
4154 * prj-nmsc.adb: Minor reformatting
4156 2009-07-07 Pascal Obry <obry@adacore.com>
4158 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
4159 cases where Pattern is longer than Source.
4161 2009-07-07 Pascal Obry <obry@adacore.com>
4163 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
4165 2009-07-07 Emmanuel Briot <briot@adacore.com>
4167 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
4170 2009-07-07 Ed Schonberg <schonberg@adacore.com>
4172 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
4173 primitive operations, in case one of them is called in the
4174 initialization procedure for the type.
4176 2009-07-07 Robert Dewar <dewar@adacore.com>
4178 * a-calend.adb: Minor code reorganization (use conditional expressions)
4180 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
4181 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
4182 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
4183 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
4184 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
4185 g-comlin.adb, exp_ch11.adb: Minor reformatting.
4187 2009-07-07 Gary Dismukes <dismukes@adacore.com>
4189 * checks.adb (Generate_Range_Check): Replace type conversions with
4190 unchecked conversions to support the case of performing range checks
4191 on Enum'Val (permits integer values to be converted to enumeration).
4193 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
4194 Attribute_Succ): Set Do_Range_Check to False before calling
4195 Expand_Pred_Succ, to prevent gigi from generating any range checks.
4196 (Expand_N_Attribute_Reference, case Attribute_Val):
4197 Generate a range check when needed (and set Do_Range_Check to False).
4199 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
4200 scalar object initialization if needed.
4202 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
4203 when needed on scalar allocators.
4204 (Expand_N_Qualified_Expression): Generate range check when needed.
4205 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
4206 Checks on slice ranges handled in Resolve_Slice.
4208 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
4209 when needed, for all scalar assignments, not just discrete.
4210 (Expand_Simple_Function_Return): Resolve the conversion created for a
4211 scalar function return so that the conversion will get expanded to
4212 generate a possible constraint check.
4214 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
4215 in out scalar actuals when subtypes don't match, to ensure generation
4216 of return checks (and set Do_Range_Check to False).
4217 (Expand_Call): Uncomment code to perform range checks, but make it apply
4218 only to in and in out parameters (checks on parameter returns are
4219 handled in Expand_Actuals). If a scalar actual for a call to a derived
4220 subprogram is marked as needing a range check, peform it here (and set
4221 Do_Range_Check to False).
4223 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
4224 range check on scalar component associations when needed.
4226 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
4227 infinities but the second type does not, as these aren't compatible
4228 floating-point types.
4230 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
4231 slice is itself a slice, pick up the Etype of the prefix. This handles
4232 the case where the prefix was an Image attribute expanded to a slice,
4233 and ensures that we get the subtype with the slice constraint rather
4234 than the unconstrained subbtype of the 'Image.
4236 2009-07-07 Ed Schonberg <schonberg@adacore.com>
4238 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
4239 overloaded expressions in a conditional expressions.
4241 * sem_res.adb (Resolve): Handle properly overloaded conditional
4244 2009-07-07 Robert Dewar <dewar@adacore.com>
4246 * scng.adb: Minor reformattting
4248 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
4249 association allows conditional expression without parens.
4251 * par-ch4.adb (P_Name): Attribute arguments can be conditional
4252 expressions without enclosing parentheses, and also as parameters,
4253 indexing expressions etc.
4254 (P_Conditional_Expression): New procedure
4255 (P_Expression_If_OK): New procedure
4257 * par.adb (P_Conditional_Expression): New procedure
4258 (P_Expression_If_OK): New procedure
4260 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
4261 form of conditional expression.
4263 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
4264 missing True argument if ELSE argument missing.
4266 * sinfo.adb (Is_Elsif): New flag
4268 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
4269 part of the language, and the documentation is modified accordingly.
4270 (Is_Elsif): New flag
4272 2009-07-06 Olivier Hainque <hainque@adacore.com>
4274 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
4275 setjmp_longjmp): Attach the exception propagation reraise fallback
4276 to the sequence end label location when we have it.
4278 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4281 * init.c (APPLE): Include <mach/mach_init.h>.
4282 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
4284 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
4286 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
4287 (SET_DECL_LANG_SPECIFIC): Likewise.
4288 (TYPE_RM_VALUE): New macro.
4289 (SET_TYPE_RM_VALUE): Likewise.
4290 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
4291 (TYPE_RM_MIN_VALUE): Likewise.
4292 (TYPE_RM_MAX_VALUE): Likewise.
4293 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
4294 (SET_TYPE_RM_MIN_VALUE): Likewise.
4295 (SET_TYPE_RM_MAX_VALUE): Likewise.
4296 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
4298 2009-07-04 Laurent GUERBY <laurent@guerby.net>
4301 * tracebak.c (__gnat_backtrace): Fix old-style definition.
4303 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4305 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
4307 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4310 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
4313 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
4315 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
4317 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4319 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
4320 the type of the left operand if it pads a self-referential type when
4321 the right operand is a constructor.
4323 * gcc-interface/lang-specs.h: Fix copyright date.
4325 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4327 * gcc-interface/decl.c: Include tree-inline.h.
4328 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
4329 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
4330 * gcc-interface/utils2.c: Include tree-inline.
4331 (known_alignment) <CALL_EXPR>: Likewise.
4333 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4335 * raise-gcc.c: Include dwarf2.h conditionally.
4337 2009-06-29 Tom Tromey <tromey@redhat.com>
4339 * raise-gcc.c: Include elf/dwarf2.h.
4341 2009-06-27 Laurent GUERBY <laurent@guerby.net>
4343 * tb-gcc.c (trace_callback): Add casts to silence warning.
4345 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
4347 * tb-gcc.c: Fix copyright notice.
4349 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
4351 * init.c (__gnat_set_globals): Add prototype.
4352 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
4353 (__gnat_sals_init_using_constructors): Likewise.
4354 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
4355 (get_block_jmpbuf_decl): Likewise.
4356 (gnat_poplevel): Likewise.
4357 (merge_sizes): Rename local variable.
4358 (copy_type): Likewise.
4359 (build_vms_descriptor32): Likewise.
4360 (build_vms_descriptor): Likewise.
4361 (convert_vms_descriptor64): Likewise.
4362 (convert_vms_descriptor32): Likewise.
4363 (convert_to_fat_pointer): Likewise.
4364 (maybe_unconstrained_array): Likewise.
4365 (def_fn_type): Use promoted type with va_arg.
4366 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
4367 (substitute_in_type): Rename local variable.
4368 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
4370 2009-06-26 Laurent GUERBY <laurent@guerby.net>
4372 * tb-gcc.c (trace_callback): Use char* instead of void*.
4373 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
4374 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
4375 (Attribute_to_gnu): Adjust for above change.
4376 (Subprogram_Body_to_gnu): Likewise.
4377 * gcc-interface/utils.c (merge_sizes): Rename local variable.
4378 (copy_type): Likewise.
4379 (build_vms_descriptor32): Likewise.
4380 (build_vms_descriptor): Likewise.
4381 (convert_vms_descriptor64): Likewise.
4382 (convert_vms_descriptor32): Likewise.
4383 (convert_to_fat_pointer): Likewise.
4384 (maybe_unconstrained_array): Likewise.
4385 * gcc-interface/decl.c (substitute_in_type): Likewise.
4387 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4389 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
4390 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
4391 of the upper bound of the index types.
4393 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4395 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
4396 out common predicate. Use the maximum to compute the upper bound of
4397 the index type only when it is not wider than sizetype. Perform the
4398 comparison in the index type for the generic expression. Use real
4399 precision to decide whether to generate special types for debugging
4402 2009-06-26 Matthew Gingell <gingell@adacore.com>
4404 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
4406 2009-06-26 Vincent Celier <celier@adacore.com>
4408 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
4411 2009-06-26 Robert Dewar <dewar@adacore.com>
4413 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
4415 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4417 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
4418 correct arguments to create_field_decl. Remove redundant iteration.
4419 Rewrite computation of the maximum size.
4420 <E_Array_Subtype>: Reorder and simplify handling of special cases.
4421 Rewrite computation of the maximum size. Use consistent naming.
4422 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
4423 comparison order for consistency. Use generic integer node to
4424 build the operator and fold the result.
4426 2009-06-25 Vincent Celier <celier@adacore.com>
4428 * vms_data.ads: Minor comment change
4430 2009-06-25 Gary Dismukes <dismukes@adacore.com>
4432 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
4433 assignment statement to targeting a caller-provided object when the
4434 result type is an interface type.
4436 * exp_ch6.adb (Expand_Call): Remove redundant test of
4437 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
4438 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
4440 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
4441 to OK_For_Limited_Init.
4443 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
4444 condition so that True is returned for all limited interfaces, not
4445 just synchronized ones. Ignore components of an interface type when
4446 checking for limited components (such a component can be a parent
4449 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
4450 (OK_For_Limited_Init): Add type parameter.
4452 * sem_ch3.adb (Check_Initialization): Add type in call to
4453 OK_For_Limited_Init.
4454 (OK_For_Limited_Init): Add new type param in call to
4455 OK_For_Limited_Init_In_05.
4456 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
4457 nonlimited type when the context type is a limited interface. Add type
4460 * sem_ch4.adb (Analyze_Allocator): Add type in call to
4461 OK_For_Limited_Init.
4463 * sem_ch6.adb (Check_Limited_Return): Add type in call to
4464 OK_For_Limited_Init.
4466 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
4467 OK_For_Limited_Init.
4468 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
4470 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
4471 class-wide interface, get the base type before applying Etype, in order
4472 to account for class-wide subtypes.
4474 2009-06-25 Emmanuel Briot <briot@adacore.com>
4476 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
4477 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
4478 between gnatmake and gprbuild.
4479 (Naming_Data): Removed, no longer used
4480 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
4481 needed locally in one subprogram, no need to store forever in the
4483 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
4485 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
4486 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
4487 Spec_Suffix_Id_Of): removed, no longer used.
4489 2009-06-25 Javier Miranda <miranda@adacore.com>
4491 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
4492 types on qualified expression in calls to imported C++ constructors.
4494 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
4495 imported C++ constructors.
4497 2009-06-25 Sergey Rybin <rybin@adacore.com>
4499 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
4501 2009-06-25 Vincent Celier <celier@adacore.com>
4503 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
4504 provided, on Windows change all '/' to '\'.
4506 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
4507 used. Minor comment changes
4509 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
4510 Remove_Forbidden_File_Name.
4512 2009-06-25 Quentin Ochem <ochem@adacore.com>
4514 * prj.ads (Unit_Index): Now general access type.
4516 2009-06-25 Pascal Obry <obry@adacore.com>
4518 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
4520 2009-06-25 Emmanuel Briot <briot@adacore.com>
4522 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
4523 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
4524 computed efficiently from the other fields.
4525 (Object_To_Global_Archive): New subprogram
4526 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
4527 (Override_Kind): Fix handling of separates in Ada.
4528 (Create_Mapping_File): Remove duplicate code
4529 (Naming_Data.Implementation_Exception, Specification_Exception):
4530 field removed, since never used.
4531 (Naming_Data.Specs, .Bodies): field removed, since this is only
4532 used while processing the project and is not needed once the tree
4533 is in memory. This brings Naming_Data and Lang_Naming_Data
4534 closer (same content now, but different use still).
4536 2009-06-25 Pascal Obry <obry@adacore.com>
4538 * sem_ch4.adb: Minor reformatting.
4540 * a-strsea.adb: Fix confusion between 'Length and 'Last.
4542 2009-06-25 Ed Schonberg <schonberg@adacore.com>
4544 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
4545 Unchecked_Access): If the context is an interface type, and the prefix
4546 is of the corresponding class-wide type, do not insert a conversion
4547 because the pointer displacement has already taken place, and we must
4548 retain the class-wide type in a dispatching context.
4550 2009-06-25 Emmanuel Briot <briot@adacore.com>
4552 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
4553 the previous source file.
4554 (Create_Mapping): Iterate on sources rather than on units.
4556 2009-06-25 Emmanuel Briot <briot@adacore.com>
4558 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
4559 prj-env.adb, prj-env.ads (Slash): removed, no longer used
4560 (Source_Data): no longer use Path.Name to point to a locally removed
4561 file. Instead we use the field Locally_Removed which is clearer
4563 2009-06-25 Arnaud Charlet <charlet@adacore.com>
4565 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
4567 * sem_maps.adb, sem_maps.ads: Removed, not used.
4569 2009-06-25 Ed Falis <falis@adacore.com>
4571 * s-vxwext-rtp.ads: Add missing declaration
4573 2009-06-25 Matthew Gingell <gingell@adacore.com>
4575 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
4576 speed up unmapped case.
4578 2009-06-25 Vincent Celier <celier@adacore.com>
4580 * prj-nmsc.adb (Check): Change error message for illegal abstract
4583 2009-06-25 Robert Dewar <dewar@adacore.com>
4585 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
4587 2009-06-25 Emmanuel Briot <briot@adacore.com>
4589 * fmap.ads: Add documentation on mapping files
4591 2009-06-25 Robert Dewar <dewar@adacore.com>
4593 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
4596 2009-06-24 Robert Dewar <dewar@adacore.com>
4598 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
4600 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
4604 2009-06-24 Ed Schonberg <schonberg@adacore.com>
4606 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
4607 present when checking whether a call may be interpreted as an indexing
4608 of the result of a call.
4610 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
4611 body for a null procedure on the freeze actions for the procedure, so
4612 that it will be analyzed at the proper place without premature freezing
4615 * sem_ch3.adb (Check_Completion): Code cleanup.
4616 Do not diagnose a null procedure without a body, if previous errors
4617 have disabled expansion.
4619 2009-06-24 Doug Rupp <rupp@adacore.com>
4621 * init.c [VMS] Resignal C$_SIGKILL
4623 2009-06-24 Ed Falis <falis@adacore.com>
4625 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
4626 Define ERROR in body for VxWorks 6 kernel
4628 2009-06-24 Pascal Obry <obry@adacore.com>
4630 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
4631 in [Send/Receive]_Socket.
4633 2009-06-24 Emmanuel Briot <briot@adacore.com>
4635 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
4636 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
4637 to several subprograms.
4638 (Source_Data.Other_Part): Removed, since can be computed from the
4640 (Other_Part): New subprogram.
4642 2009-06-24 Emmanuel Briot <briot@adacore.com>
4644 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
4645 the full base name of the file when the suffix doesn't start with a '.'.
4647 2009-06-24 Vincent Celier <celier@adacore.com>
4649 * prj-nmsc.adb (Check): A project declared abstract is legal if no
4650 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
4653 2009-06-24 Robert Dewar <dewar@adacore.com>
4655 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
4656 prj-env.adb: Minor reformatting
4658 2009-06-24 Ed Falis <falis@adacore.com>
4660 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
4661 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
4662 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
4663 support for VxWorks SMP.
4665 * gcc-interface/Make-lang.in: Update dependencies
4667 2009-06-24 Emmanuel Briot <briot@adacore.com>
4669 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4670 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
4672 (Source_Data.Lang_Kind): Removed, since it duplicates information
4673 already available through Language.Config.
4674 (Source_Data.Compile): Removed, since information is already available
4675 through the language.
4676 (Is_Compilable): New subprogram.
4677 (Source_Data.Dependency): Removed, since already available through
4679 (Source_Data.Object_Exist, Object_Linked): Removed since available
4680 through the language already.
4681 (Unit_Data.File_Names): Is now also set in multi_language mode, to
4682 bring the two modes closer in the resulting data structures.
4683 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
4684 just the name that would point into a hash table.
4685 (Get_Language_From_Name): New subprogram.
4687 2009-06-24 Javier Miranda <miranda@adacore.com>
4689 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
4690 visible through limited-with context clauses. In addition, avoid an
4691 extra tag check that is not required when the class-wide
4692 designated types of the operand and target types are
4694 (Tagged_Membership): Handle entities from the limited view.
4696 2009-06-24 Emmanuel Briot <briot@adacore.com>
4698 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
4699 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
4700 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
4701 different vocabularies for similar concepts (Impl/Body_Part and
4702 Spec/Specification).
4703 (Unit_Data): now points directly to a Source_Id, rather than duplicating
4704 some of the information in File_Name_Data. This also saves a bit of
4705 memory. However, since we are now using a pointer we need to test
4706 for null explicitly in several places of the code
4708 2009-06-24 Javier Miranda <miranda@adacore.com>
4710 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
4711 from processing the type conversion when the node is
4712 replaced by an N_Raise_Program_Error node.
4714 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
4716 * sem_ch6.adb (Designates_From_With_Type): New routine.
4717 (Process_Formals): Since anonymous access types are no longer flagged
4718 as from with types, traverse the designated type to determine whether
4719 it is coming from a limited view.
4721 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
4722 (Full_Designated_Type): Use Available_View to extract the non-limited /
4723 full view of a type.
4725 2009-06-24 Robert Dewar <dewar@adacore.com>
4727 * exp_ch6.adb: Minor reformatting
4729 * layout.adb: Minor reformatting
4731 * make.adb: Minor reformatting
4733 2009-06-24 Thomas Quinot <quinot@adacore.com>
4735 * sem_ch10.adb: Minor code reorganization.
4737 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
4739 * ttypes.ads: Minor editing.
4741 2009-06-24 Robert Dewar <dewar@adacore.com>
4743 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
4744 in deciding to do call-by-copy code.
4746 2009-06-24 Vincent Celier <celier@adacore.com>
4748 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
4749 check if an externally built library file is more current than the
4752 2009-06-23 Olivier Hainque <hainque@adacore.com>
4754 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
4755 c-common.c and populate in gnat_internal_attribute_table.
4757 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4759 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
4760 Available_View only when designated type of an anonymous access type
4763 2009-06-23 Robert Dewar <dewar@adacore.com>
4765 * sem_ch10.adb: Minor reformatting
4767 * ali.ads: Mino reformatting.
4769 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
4770 turning off inlining if ASIS mode active).
4772 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
4773 This belongs in gnat1drv.adb after switches are scanned.
4775 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
4777 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
4778 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
4779 when dealing with class-wide types. Detect a legal shadow entity and
4780 retrieve its non-limited view.
4782 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
4783 subprogram to top package level from Intall_Limited_Withed_Unit.
4784 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
4785 Add check which prevents the installation of a limited view if the
4786 non-limited view is already visible through a with clause.
4787 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
4788 legal shadow entity which may occur in subprogram formals of anonymous
4791 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
4793 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
4794 From_With_Type from the designated type to the generated anonymous
4795 access type. Remove associated comment.
4797 * sem_res.adb Add with and use clauses for Sem_Ch10.
4798 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
4799 non-limited view. Since the shadow entity may replace a regular
4800 incomplete type, return the available full view.
4802 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4804 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
4805 incomplete type declarations. Previous code was potentially quadratic
4806 in the number of visible declarations in any package appearing in a
4807 limited_with_clause.
4809 2009-06-23 Robert Dewar <dewar@adacore.com>
4811 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
4812 xref_lib.adb: Minor reformatting
4814 2009-06-23 Robert Dewar <dewar@adacore.com>
4816 * a-stzhas.adb: Provide dummy body to avoid build problems with old
4817 versions which did have a body for this unit.
4819 2009-06-23 Vincent Celier <celier@adacore.com>
4821 * prj-attr.adb: Attribute names Initial_Required_Switches and
4822 Final_Required_Switches changed to Leading_Required_Switches and
4823 Trailing_Required_Switches.
4825 * prj-nmsc.adb (Process_Compiler): Attribute names
4826 Initial_Required_Switches and Final_Required_Switches changed to
4827 Leading_Required_Switches and Trailing_Required_Switches.
4829 * prj.ads (Language_Config): Component Initial_Required_Switches and
4830 Final_Required_Switches changed to Leading_Required_Switches and
4831 Trailing_Required_Switches.
4833 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
4834 Final_Required_Switches; add standard names Leading_Required_Switches
4835 and Trailing_Required_Switches.
4837 2009-06-23 Thomas Quinot <quinot@adacore.com>
4839 * prj-conf.adb: Minor reformatting
4841 * xref_lib.adb: Minor cleanup
4843 2009-06-23 Emmanuel Briot <briot@adacore.com>
4845 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
4846 prj-conf.ads (Check_Configuration): New parameter
4847 Compiler_Driver_Mandatory.
4849 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4851 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
4852 context of the current unit has an inline pragma, the instance is not
4853 rewritten as the declaration of the package wrapper. Handle both
4854 possibilities when retrieving the visible subprogram that renames the
4855 instantiation itself.
4857 2009-06-23 Javier Miranda <miranda@adacore.com>
4859 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
4860 designated types referencing entities from the limited view.
4862 2009-06-23 Robert Dewar <dewar@adacore.com>
4864 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
4866 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
4869 * prj-conf.ads: Minor reformatting
4871 * prj-conf.adb: Minor reformatting
4873 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
4875 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
4876 to correspond to the log format that gnatmem now expects.
4878 2009-06-23 Vincent Celier <celier@adacore.com>
4880 * prj-attr.adb: New attributes Initial_Required_Switches,
4881 Final_Required_Switches and Object_File_Switches
4883 * prj-nmsc.adb (Process_Compiler): Process new attributes
4884 Name_Final_Required_Switches, Name_Initial_Required_Switches and
4885 Name_Object_File_Switches.
4887 * prj.ads (Language_Config): New component
4888 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
4889 Compiler_Final_Required_Switches and Object_File_Switches.
4891 * snames.ads-tmpl: New standard names Initial_Required_Switches,
4892 Final_Required_Switches and Object_File_Switches
4894 2009-06-23 Pascal Obry <obry@adacore.com>
4896 * s-strhas.adb, s-strhas.ads: Minor reformatting.
4898 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4900 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
4901 not indicate that the enclosing unit needs a body.
4903 2009-06-23 Emmanuel Briot <briot@adacore.com>
4905 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
4907 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4909 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
4910 primitive equality include it with its source name even if the
4911 operation is currently invisible, to make sure that the corresponding
4912 slot in the dispatch table is reserved for the internal equality
4913 subsequently generated during expansion.
4915 2009-06-23 Matthew Gingell <gingell@adacore.com>
4917 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
4919 2009-06-22 Jose Ruiz <ruiz@adacore.com>
4921 * sysdep.c (__gnat_localtime_tzoff for RTX):
4922 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
4923 GetTimeZoneInformation instead.
4925 2009-06-22 Robert Dewar <dewar@adacore.com>
4927 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
4929 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4931 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
4932 instantiations declared in a previous generic package body.
4934 2009-06-22 Robert Dewar <dewar@adacore.com>
4936 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
4937 restriction No_Direct_Boolean_Operators.
4939 2009-06-22 Thomas Quinot <quinot@adacore.com>
4941 * bindusg.adb: Minor fixes to gnatbind usage message
4943 * sem_eval.adb: Minor reformatting
4945 2009-06-22 Javier Miranda <miranda@adacore.com>
4947 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
4948 freezing point the check on the use of abstract types in object
4949 declarations. Done to allow the declaration of C++ imported variables
4950 or constants whose type corresponds with an imported C++ classes for
4951 which the constructor is not imported.
4953 2009-06-22 Thomas Quinot <quinot@adacore.com>
4955 * sem_ch6.adb: Minor reformatting
4957 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4959 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
4960 component is constrained with an expression rather than with a
4961 discriminant of the enclosing type, use that expression when building
4962 the call to default-initialize the component, when the call is part of
4963 an aggregate with box initialization.
4965 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4967 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
4968 unconditional rather than a style check, because a formal name out of
4969 order is suspicious.
4971 2009-06-22 Vincent Celier <celier@adacore.com>
4973 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
4974 creating a directory automatically.
4976 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
4978 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
4979 untagged derived type, add a hidden component for every constrained
4980 discriminant of the parent type to keep record layout consistent.
4982 2009-06-22 Thomas Quinot <quinot@adacore.com>
4984 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
4987 2009-06-22 Matthew Gingell <gingell@adacore.com>
4989 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
4990 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
4991 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
4992 a-swuwha.adb: New unit System.String_Hash.
4993 Refactor redundant cut and pasted hash functions with instances of a
4994 new generic hash function.
4995 Implement a new string hashing algorithm which appears in testing to
4996 be move effective than to previous approach.
4998 2009-06-22 Ed Falis <falis@adacore.com>
5000 * sysdep.c: remove include for nfsLib.h and an NFS specific error
5001 message for VxWorks 653 vThreads: not supported by the OS.
5003 * gsocket.h: disable sockets for VxWorks 653 vThreads.
5005 2009-06-22 Robert Dewar <dewar@adacore.com>
5007 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
5009 2009-06-22 Robert Dewar <dewar@adacore.com>
5011 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
5014 * freeze.adb: Minor comment updates
5016 * s-valrea.adb (Bad_Based_Value): New procedure
5017 (Scan_Real): Raise exceptions with messages
5019 2009-06-22 Matthew Gingell <gingell@adacore.com>
5021 * adaint.h: Complete previous change.
5023 2009-06-22 Thomas Quinot <quinot@adacore.com>
5025 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
5027 2009-06-22 Ed Schonberg <schonberg@adacore.com>
5029 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
5030 enabled, emit warning when a non-controlling argument of the overriding
5031 operation appears out of place vis-a-vis of the formal of the
5032 overridden operation.
5034 2009-06-22 Vincent Celier <celier@adacore.com>
5036 * gnatcmd.adb (Check_Files): Close temporary files after all file names
5037 have been written into it.
5039 2009-06-22 Matthew Gingell <gingell@adacore.com>
5041 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
5044 2009-06-22 Thomas Quinot <quinot@adacore.com>
5046 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
5047 view of the root type is visible at the point of the call.
5049 2009-06-22 Pat Rogers <rogers@adacore.com>
5051 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
5053 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
5055 * freeze.adb: Add comments.
5057 2009-06-21 Thomas Quinot <quinot@adacore.com>
5059 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
5060 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
5061 Factor out code to new subprogram...
5062 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
5063 for a default initialized variable.
5064 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
5065 entity that has an associated freeze node.
5066 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
5067 If there is an init call for the object, defer it to the object freeze
5069 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
5070 name clash with new subprogram introduced in Exp_Util.
5072 2009-06-21 Robert Dewar <dewar@adacore.com>
5074 * einfo.ads: Minor reformatting
5076 2009-06-21 Ed Falis <falis@adacore.com>
5078 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
5080 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
5082 * einfo.ads: Update comments.
5084 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
5086 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
5087 where the controlling formal is of private class-wide type whose
5088 completion is a synchronized type can be converted into direct calls.
5090 2009-06-21 Vincent Celier <celier@adacore.com>
5092 * gnatcmd.adb (Check_Files): When all sources of the project are to be
5093 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
5094 of sources using -files=, so that the distinction can be made by the
5095 tool of a call with no source (to display the usage) from a call with
5096 a project file that contains no source.
5098 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
5100 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
5101 case of VM convention arrays.
5103 2009-06-20 Robert Dewar <dewar@adacore.com>
5105 * a-nudira.adb: Minor reformatting
5107 2009-06-20 Ed Schonberg <schonberg@adacore.com>
5109 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
5110 expressions (possibly from a parent type) indicate that the scope of
5111 the new itypes is the initialization procedure being built.
5113 2009-06-20 Robert Dewar <dewar@adacore.com>
5115 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
5116 Needs_64, and now computed without anomolies for some dynamic types.
5118 2009-06-20 Thomas Quinot <quinot@adacore.com>
5120 * sem_prag.adb: Minor reformatting
5122 * exp_disp.ads: Minor reformatting
5124 2009-06-20 Ed Schonberg <schonberg@adacore.com>
5126 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
5127 function call is a legal expression to initialize a limited object.
5129 * exp_ch3.adb: Rename various freeze operations that perform expansion
5130 actions, to prevent confusion with subprograms in the freeze package.
5132 2009-06-20 Ed Schonberg <schonberg@adacore.com>
5134 * sem.adb (Walk_Library_Units): Check instantiations first.
5136 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
5137 private primitive if it is a function with a controlling result that is
5138 a type extension with progenitors.
5140 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
5141 a primitive operation of a synchronized tagged type that has a
5144 2009-06-20 Thomas Quinot <quinot@adacore.com>
5146 * einfo.ads: Fix typo.
5148 2009-06-20 Ed Falis <falis@adacore.com>
5150 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
5152 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
5154 * gcc-interface/trans.c (emit_check): Do not wrap up the result
5156 (protect_multiple_eval): Always protect complex expressions.
5158 2009-06-19 Emmanuel Briot <briot@adacore.com>
5160 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
5161 make sure we always return a name ending with a path separator.
5163 2009-06-19 Javier Miranda <miranda@adacore.com>
5165 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
5166 Save and restore the visibility of the parent when installed.
5168 2009-06-19 Jose Ruiz <ruiz@adacore.com>
5170 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
5171 by Common which contains all these fields.
5173 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
5174 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
5175 Remove code duplication in this package by means of calling the
5176 equivalent code in s-taprob.
5178 2009-06-19 Robert Dewar <dewar@adacore.com>
5180 * a-einuoc.ads: Minor reformatting
5182 2009-06-19 Ed Falis <falis@adacore.com>
5184 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
5185 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
5187 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
5189 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
5191 2009-06-19 Robert Dewar <dewar@adacore.com>
5193 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
5196 * checks.adb (Determine_Range): Move the test for generic types later.
5198 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
5200 (Eval_Relational_Op): Fold more cases including string compares
5202 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
5205 2009-06-19 Robert Dewar <dewar@adacore.com>
5207 * sem_type.ads, sem_ch12.adb: Minor reformatting
5209 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
5211 2009-06-19 Ed Schonberg <schonberg@adacore.com>
5213 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
5214 primitive operation of a rivate extension whose controlling argument
5215 is an out parameter.
5217 * sem.adb (Walk_Library_Units): exclude generic package declarations
5220 2009-06-19 Thomas Quinot <quinot@adacore.com>
5222 * i-vxwoio.ads: Add comments
5224 2009-06-19 Thomas Quinot <quinot@adacore.com>
5226 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5227 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5228 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
5229 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
5230 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
5231 Thin_Common.Socket_Ioctl.
5232 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
5233 __gnat_socket_ioctl.
5234 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
5235 argument after the file descriptor and request code.
5237 2009-06-19 Robert Dewar <dewar@adacore.com>
5239 * checks.adb: Minor reformatting
5241 2009-06-19 Jose Ruiz <ruiz@adacore.com>
5243 * env.c (__gnat_environ): RTX does not support this functionality.
5245 2009-06-19 Ed Schonberg <schonberg@adacore.com>
5247 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
5248 traverse, to account for front-end inlining and instantiations in a
5249 spec or in the main unit.
5251 2009-06-19 Robert Dewar <dewar@adacore.com>
5253 * checks.adb (Determine_Range): Do not attempt to get range of generic
5256 2009-06-19 Sergey Rybin <rybin@adacore.com>
5258 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
5259 gnatmetric option for generating the schema file for gnatmetric XML
5260 output. Add corresponding VMS qualifier.
5262 2009-06-19 Robert Dewar <dewar@adacore.com>
5264 * g-cgi.adb: Minor reformatting
5266 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
5268 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
5269 signal code for SIGFPE and raise Program_Error for SIGILL.
5271 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
5273 2009-06-19 Ed Schonberg <schonberg@adacore.com>
5275 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
5276 generic package if there is a visibility candidate that is declared in
5279 2009-06-18 Olivier Hainque <hainque@adacore.com>
5281 * system-aix64.ads: New file.
5282 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
5283 64bit system.ads for ppc64 multilib variants.
5285 2009-06-16 Robert Dewar <dewar@adacore.com>
5286 Olivier Hainque <hainque@adacore.com>
5288 Relax constraints on Machine_Attribute argument types:
5289 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
5291 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
5292 * gcc-interface/decl.c (prepend_attributes): Accept static
5293 expressions of any type as attribute arguments, not only string
5295 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
5296 the relaxation of the restriction on the Info argument type.
5298 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
5300 * gcc-interface/utils.c (record_builtin_type): Pass location
5301 argument to build_decl.
5302 (create_type_stub_decl): Same.
5303 (create_type_decl): Same.
5304 (create_var_decl_1): Same.
5305 (create_field_decl): Same.
5306 (create_param_decl): Same.
5307 (create_label_decl): Same.
5308 (create_subprog_decl): Same.
5309 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
5310 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
5311 argument to create_artificial_label.
5312 (Loop_Statement_to_gnu): Same.
5313 (Subprogram_Body_to_gnu): Same.
5314 (gnat_gimplify_stmt): Same.
5316 2009-06-11 Richard Henderson <rth@redhat.com>
5318 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
5321 2009-06-11 Ed Schonberg <schonberg@adacore.com>
5323 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
5324 accessibiliy check on access_to_subprogram in the context of an
5325 anonymous access that is not an access parameter.
5327 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
5329 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
5331 2009-06-11 Quentin Ochem <ochem@adacore.com>
5333 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
5334 comments for message handled by GPS.
5336 2009-06-11 Matthew Gingell <gingell@adacore.com>
5338 * adaint.c: Use fopen64 instead of fopen on platforms where we know
5341 2009-06-11 Pascal Obry <obry@adacore.com>
5343 * g-cgi.ads: Fix comment typo.
5345 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
5347 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
5349 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
5350 a reference to the original type for the type of the field of the
5352 (maybe_pad_type): Likewise.
5354 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
5355 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
5356 Pass correctly typed arguments to create_field_decl.
5357 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
5358 case of contrained discriminants as well. Use the padded base type
5359 in the other case as well. Rename temporary variable. Tweak test.
5360 Factor common access pattern. Set GNU_SIZE only once.
5362 2009-06-09 Olivier Hainque <hainque@adacore.com>
5364 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
5365 helper for build_call_alloc_dealloc with arguments to be interpreted
5366 identically. Process the case where a GNAT_PROC to call is provided.
5367 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
5368 and return an allocator for DATA_SIZE bytes aimed at containing a
5369 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
5370 DATA_TYPE alignments greater than what the latter offers.
5371 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
5372 release a DATA_TYPE object designated by DATA_PTR using the
5373 __gnat_free entry point.
5374 (build_call_alloc_dealloc): Expect object data type instead of naked
5375 alignment constraint. Use the new helpers.
5376 (build_allocator): Remove special processing for the super-aligned
5377 case, now handled by build_call_alloc_dealloc. Pass data
5378 type instead of the former alignment argument, as expected by the new
5380 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
5382 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
5383 Remove special processing for the super-aligned case, now handled
5384 by build_call_alloc_dealloc. Pass data type instead of the former
5385 alignment argument, as expected by the new interface.
5387 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
5389 * lib-writ.adb (flag_compare_debug): Import.
5390 (Write_ALI): Skip during -fcompare-debug-second.
5392 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5394 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
5395 adjusting the discriminant nodes in an extension, use the full view
5396 of the parent subtype if it is of a private kind.
5398 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5400 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
5401 _Parent field, if any, to the record before adding the other fields.
5402 <E_Record_Subtype>: Put the _Controller field before the other fields
5403 except for the _Tag or _Parent fields.
5404 (components_to_record): Likewise. Retrieve the _Parent field from the
5407 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5409 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
5410 remove unused parameter and simplify.
5411 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
5412 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
5413 as context for all discriminants. Fix formatting nits.
5414 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
5415 before Discriminant_Constraint. Adjust for above renaming. Do not
5416 set GNU_TYPE more than once.
5417 (elaborate_entity): Test Has_Discriminants on the entity and use
5418 Implementation_Base_Type.
5419 (components_to_record): Rename component_list to gnat_component_list.
5420 Retrieve the _Parent field from the list. Fix nits in comments.
5421 Clarify logic in loop. Pass correct arguments to create_field_decl.
5423 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
5425 * gcc-interface/Make-lang.in: Fix formatting.
5427 2009-06-01 Olivier Hainque <hainque@adacore.com>
5428 Eric Botcazou <ebotcazou@adacore.com>
5430 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
5431 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
5432 on the result if at least one of the input fields couldn't be output
5433 as a static constant any more.
5435 2009-06-01 Olivier Hainque <hainque@adacore.com>
5436 Eric Botcazou <ebotcazou@adacore.com>
5438 * gcc-interface/utils2.c (gnat_build_constructor): Factor
5439 out code. Use initializer_constant_valid_for_bitfield_p and
5440 CONSTRUCTOR_BITFIELD_P for bit-fields.
5442 2009-05-26 Ian Lance Taylor <iant@google.com>
5444 * gcc-interface/Makefile.in (COMPILER): Define.
5445 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
5446 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
5447 (seh_init.o, tracebak.o): Likewise.
5448 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
5449 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
5450 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
5451 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
5452 (ada/utils2.o): Likewise.
5454 2009-05-24 Olivier Hainque <hainque@adacore.com>
5456 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
5457 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
5458 Add -auxbase variants to the list of recognized internal switches.
5459 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
5461 * lib.ads: Make comment on internal GCC switches more general.
5462 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
5465 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5467 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
5469 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5471 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
5474 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5476 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
5477 original type because of the alignment when there is an address clause.
5479 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
5481 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
5482 discriminants affect the shape of the subtype, retrieve the GCC type
5483 directly from the original field if the GNAT types for the field and
5484 the original field are the same.
5486 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
5488 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
5490 (TYPE_RM_VALUES): Likewise.
5491 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
5492 (SET_TYPE_RM_SIZE): New macro.
5493 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
5494 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
5495 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
5496 * gcc-interface/gigi.h (create_range_type): Declare.
5497 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
5498 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
5499 <E_Signed_Integer_Subtype>: Build a regular integer type first and
5500 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5501 <E_Floating_Point_Subtype>: Build a regular floating-point type first
5502 and then set the RM bounds.
5503 <E_Array_Type>: Use create_range_type instead of build_range_type.
5504 <E_Array_Subtype>: Build a regular integer type first and then set
5505 the RM bounds for the extra subtype.
5506 <E_String_Literal_Subtype>: Use create_range_type instead of
5508 <all>: Set the RM bounds for enumeration types and the GCC bounds for
5509 floating-point types.
5510 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
5511 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
5512 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5513 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
5514 types and with RM bounds for subtypes.
5515 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
5516 (gnat_print_type) <REAL_TYPE>: New case.
5517 <ENUMERAL_TYPE>: Fall through to above case.
5518 (gnat_get_subrange_bounds): New function.
5519 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
5520 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
5521 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
5522 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
5523 (create_range_type): New function.
5524 (create_param_decl): Build a regular integer type first and then set
5525 the RM bounds for the extra subtype.
5526 (unchecked_convert): Remove kludge for 'Valid.
5527 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
5528 the index to sizetype instead of TYPE_DOMAIN.
5530 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
5532 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
5533 parameter and move check for static expression to...
5534 (elaborate_expression): ...here. Adjust call to above function.
5535 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
5536 in calls to elaborate_expression.
5537 (elaborate_entity): Likewise.
5538 (substitution_list): Likewise.
5539 (maybe_variable): Fix formatting.
5540 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
5542 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
5544 2009-05-07 Arnaud Charlet <charlet@adacore.com>
5546 * gcc-interface/Make-lang.in: Update dependencies.
5548 2009-05-06 Laurent GUERBY <laurent@guerby.net>
5550 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
5551 Define sa_handler_pos.
5552 * s-osinte-linux.ads: Use it.
5553 * s-linux-mipsel.ads: New.
5554 * system-linux-mips64el.ads: New.
5555 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
5558 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5560 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
5561 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
5562 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
5563 (Tagged_Type_Expansion): New flag.
5564 Replace use of VM_Target related to tagged types expansion by
5565 Tagged_Type_Expansion, since tagged type expansion is not necessarily
5566 linked to VM targets.
5568 2009-05-06 Robert Dewar <dewar@adacore.com>
5570 * sem_attr.adb: Add processing for Standard'Compiler_Version
5572 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
5574 (Expr_First_Char): Add ??? comment that paren skipping needs work
5575 (Expr_Last_Char): Add ??? comment that paren skipping needs work
5577 * exp_attr.adb: Add processing for Compiler_Version
5579 * sem_attr.adb: New attribute Compiler_Version
5581 * snames.ads-tmpl: Add entries for Compiler_Version attribute
5583 * gnat_rm.texi: Document Compiler_Version attribute
5585 2009-05-06 Robert Dewar <dewar@adacore.com>
5587 * errout.adb: Minor reformatting
5589 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
5590 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
5591 styleg.adb: Add stylized comments to error messages that are included
5592 in the codefix circuitry of IDE's such as GPS.
5594 2009-05-06 Sergey Rybin <rybin@adacore.com>
5596 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
5597 new form of the rule parameter that allows to specify the suffix for
5598 access-to-access type names.
5600 2009-05-06 Robert Dewar <dewar@adacore.com>
5602 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
5603 out parameter assigned when exception handlers are present.
5605 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
5606 assignments on exit.
5608 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
5609 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
5610 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
5611 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
5612 messages that are included in the codefix circuitry of IDE's such as
5615 * sinput.ads, sinput.adb (Expr_First_Char): New function
5616 (Expr_Last_Char): New function
5618 2009-05-06 Sergey Rybin <rybin@adacore.com>
5620 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
5621 Add formal definition for extra exit point metric
5623 2009-05-06 Pascal Obry <obry@adacore.com>
5625 * adaint.c: Support for setting attributes on unicode filename on
5628 2009-05-06 Robert Dewar <dewar@adacore.com>
5630 * sem_warn.adb: Minor reformatting
5632 2009-05-06 Javier Miranda <miranda@adacore.com>
5634 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
5635 not have discriminants or components with default expressions.
5636 (Analyze_Pragma): For pragma CPP_Class check that imported types
5637 have no discriminants and components have no default expression.
5639 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
5640 class-wide types in the expression of a record component association.
5642 2009-05-06 Sergey Rybin <rybin@adacore.com>
5644 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
5646 * gnat_ugn.texi: Add description for the new extra exit points metric
5647 (gnatmetric section).
5649 2009-05-06 Robert Dewar <dewar@adacore.com>
5651 * s-fileio.adb: Minor comment update
5653 * sem_ch8.adb: Minor reformatting
5655 * exp_ch3.adb: Update comments.
5657 2009-05-06 Tristan Gingold <gingold@adacore.com>
5659 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
5661 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5663 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
5664 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
5666 * gcc-interface/Make-lang.in: Update dependencies
5668 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5670 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
5671 change. The context clause of a generic instance declaration must be
5672 preserved until the end of the compilation, because it may have to be
5673 installed/removed repeatedly.
5674 The latest change to sem.adb ensures that the context of both spec and
5675 body of an instance is traversed before the instance itself, making
5676 this patch redundant.
5678 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5680 * sem_aggr.adb: Fix typo.
5682 2009-05-06 Thomas Quinot <quinot@adacore.com>
5684 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
5685 declaration, do not adjust if the declaration is to be rewritten into
5688 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5690 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
5693 2009-05-06 Bob Duff <duff@adacore.com>
5695 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
5696 otherwise the compiler would be allowed to optimize away the cleanup
5699 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5701 * gnat_ugn.texi: Fix typo.
5703 2009-05-06 Thomas Quinot <quinot@adacore.com>
5705 * g-debuti.adb: Minor reformatting
5707 * exp_attr.adb: Minor reformatting
5709 2009-05-06 Robert Dewar <dewar@adacore.com>
5711 * sem_aggr.adb: Minor reformatting.
5713 * g-socthi-vms.adb: Minor reformatting
5715 2009-05-06 Bob Duff <duff@adacore.com>
5717 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
5718 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
5720 2009-05-06 Bob Duff <duff@adacore.com>
5722 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
5725 2009-05-06 Javier Miranda <miranda@adacore.com>
5727 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
5728 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
5729 extension aggregates.
5730 (Resolve_Record_Aggregate): Add support for C++ constructors in
5731 extension aggregates.
5733 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
5734 constructors in extension aggregates.
5736 2009-05-06 Robert Dewar <dewar@adacore.com>
5738 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
5741 2009-05-06 Thomas Quinot <quinot@adacore.com>
5743 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
5744 packed type, since on OpenVMS, struct msghdr is packed.
5746 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5748 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5749 call returning an unconstrained composite value, create the proper
5750 subtype for it, as is done for object dclarations with unconstrained
5751 nominal subtypes. Perform this transformation regarless of whether
5752 call comes from source.
5754 2009-05-06 Robert Dewar <dewar@adacore.com>
5756 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
5760 Add documentation for pragma Implicit_Packing applied to record
5763 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5765 * sem.adb (Walk_Library_Items): Place all with_clauses of an
5766 instantiation on the spec, because late instance bodies may generate
5767 with_clauses for the instance body but are inserted in the instance
5770 2009-05-06 Emmanuel Briot <briot@adacore.com>
5772 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
5773 support for returning the directory even if it doesn't exist. This is
5774 used for the object directory, since we are always setting it to a
5775 non-null value, and we should set it to an absolute name rather than a
5776 relative name for the sake of external tools that might depend on it.
5777 (Check_Library_Attributes): When Project.Library_Dir is known, check
5778 that the directory exists.
5780 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5782 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
5783 reference is an implicit dereference, do not freeze the designated type
5784 if within a default expression or when preanalyzing a pre/postcondtion.
5786 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5788 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5789 call returning an unconstrained composite value, create the proper
5790 subtype for it, as is done for object dclarations with unconstrained
5793 2009-05-06 Robert Dewar <dewar@adacore.com>
5795 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
5798 * freeze.adb: Minor reformatting
5800 2009-05-06 Thomas Quinot <quinot@adacore.com>
5802 * sem_ch3.adb (Access_Type_Declaration): An access type whose
5803 designated type is a limited view from a limited with clause (flagged
5804 From_With_Type) is not itself such a limited view.
5806 2009-05-06 Emmanuel Briot <briot@adacore.com>
5808 * prj-nmsc.adb: Remove unused variable.
5810 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
5811 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
5812 makeutl.ads, since not all users of prj.ads need this.
5814 2009-05-06 Javier Miranda <miranda@adacore.com>
5816 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
5817 constructor in case of aggregates whose type is a CPP_Class type.
5819 2009-05-06 Robert Dewar <dewar@adacore.com>
5821 * sem_ch13.adb: Minor comment additions
5823 * osint.adb: Minor reformatting
5825 2009-05-06 Pascal Obry <obry@adacore.com>
5827 * initialize.c: On Windows, keep full pathname to expanded command
5830 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5832 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
5833 an aggregate with box default is of a discriminated private type, do
5834 not build a subaggregate for it.
5835 A proper call to the initialization procedure is generated for it.
5837 2009-05-06 Thomas Quinot <quinot@adacore.com>
5839 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
5840 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
5841 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
5842 use standard array code for Standard.String.
5843 (Exp_Dist): Bump PolyORB s-parint API version to 3.
5844 (Rtsfind): New entities TA_Std_String, Unbounded_String.
5846 2009-05-06 Robert Dewar <dewar@adacore.com>
5848 * g-comlin.ads: Minor reformatting
5850 * xoscons.adb: Minor reformatting
5852 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5854 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
5855 Underlying_Type before retrieving the type definition for gathering
5856 components, to account for the case where the type is private.
5858 2009-05-06 Tristan Gingold <gingold@adacore.com>
5860 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
5862 2009-05-06 Thomas Quinot <quinot@adacore.com>
5864 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5865 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
5866 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
5867 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
5868 Windows versions): Fix incorrect base
5869 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
5870 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
5871 System.Address for the To parameter instead of a Sockaddr_In_Access, to
5872 achieve independance from AF_INET family, and also to allow this
5873 parameter to be retrieved from a Msghdr for the Windows case where
5874 these routines are used to implement C_Sendmsg and C_Recvmsg.
5876 2009-05-06 Bob Duff <duff@adacore.com>
5878 * g-expect.adb, g-expect.ads: Minor reformatting
5880 * sdefault.ads: Minor comment fix
5882 * g-expect-vms.adb: Minor reformatting
5884 * table.ads, table.adb (Append_All): New convenience procedure for
5885 appending a whole array.
5887 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
5888 box message. Call Osint.Dump_Source_File_Names to print out the file
5889 list, instead of rummaging around in various data structures.
5891 * debug.adb: New switch -gnatd.n, to print source file names as they
5894 * alloc.ads: Add parameters for Osint.File_Name_Chars.
5896 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
5897 out source file names during a "bug box".
5898 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
5899 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
5900 If it's not part of the runtimes, store it for later printing by
5901 Dump_Source_File_Names.
5903 2009-05-06 Javier Miranda <miranda@adacore.com>
5905 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
5906 documentation and add reference to the GNAT user guide for further
5909 2009-05-06 Javier Miranda <miranda@adacore.com>
5911 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
5912 also wrong examples that use extension aggregates.
5914 2009-05-06 Albert Lee <lee@adacore.com>
5916 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
5917 of Msg_Iovlen_T for VMS.
5919 2009-05-04 Laurent GUERBY <laurent@guerby.net>
5922 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
5924 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5926 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
5927 box-defaulted operator in an instantiation, when the type of the
5928 operands is not directly visible.
5930 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5932 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
5933 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
5934 analysis of the ancestor part. Remove prohibition against limited
5935 interpretations of the ancestor expression in the case of Ada 2005.
5936 Revise error message in overloaded case, adding a message to cover
5939 2009-04-29 Thomas Quinot <quinot@adacore.com>
5941 * xoscons.adb: Minor reformatting
5943 2009-04-29 Bob Duff <duff@adacore.com>
5945 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
5946 attribute_definition_clauses for the following attributes when the
5947 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
5948 Storage_Size, Write. Otherwise, we get spurious errors (for example,
5949 missing Read attribute on remote types).
5951 * gnat_ugn.texi: Document the change, and add a stern warning.
5953 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5955 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
5956 disabled not just for the current scope, but for the innermost dynamic
5959 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5961 * gcc-interface/Make-lang.in: Update dependencies
5963 2009-04-29 Vincent Celier <celier@adacore.com>
5965 * prj-part.adb: Minor comment update
5967 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5969 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
5970 box-initialized records with discriminated subcomponents that are
5971 constrained by discriminants of enclosing components. New subsidiary
5972 procedures Add_Discriminant_Values, Propagate_Discriminants.
5974 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5976 * g-socket.adb: Code clean up.
5978 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5980 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
5981 function entity, to cover the case of a parameterless function call
5982 that has not been resolved.
5984 2009-04-29 Robert Dewar <dewar@adacore.com>
5986 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
5987 reformatting and comment updates.
5989 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5991 * gnat_ugn.texi: Update some documentation about interfacing with C++
5992 Mention -fkeep-inline-functions.
5994 * gnat_ugn.texi: Minor edits
5996 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5998 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
5999 for a defaulted component of an enclosing aggregate, inherit the type
6000 from the component declaration of the enclosing type.
6002 2009-04-29 Albert Lee <lee@adacore.com>
6004 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
6005 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
6006 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
6007 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
6008 Relocate the Msghdr record type from GNAT.Sockets.Thin to
6009 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
6010 type for the Msg_Iovlen field.
6012 2009-04-29 Vincent Celier <celier@adacore.com>
6014 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
6015 Source_File_Index_Table entries for the source, to avoid crash when
6018 * gnatcmd.adb (Test_If_Relative_Path): Use
6019 Makeutl.Test_If_Relative_Path.
6021 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
6022 Including_RTS is True.
6024 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
6025 Including_RTS defaulted to False.
6027 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
6030 2009-04-29 Javier Miranda <miranda@adacore.com>
6032 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
6034 2009-04-29 Javier Miranda <miranda@adacore.com>
6036 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
6037 associated with dyamically tagged expressions if the expression
6038 initializing a tagged type corresponds with a non default CPP
6040 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
6041 of limited type objects.
6043 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
6044 when a CPP constructor is called in an assignment. Disable also the
6045 error message associated with dyamically tagged expressions if the
6046 exporession initializing a tagged type corresponds with a non default
6049 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
6050 non-default C++ constructors.
6052 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
6054 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
6055 non-default constructors.
6056 (Init_Proc): Add support for non-default constructors.
6058 * exp_disp.adb (Set_Default_Constructor): Removed.
6059 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
6060 but extending its functionality to handle non-default constructors.
6062 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
6063 constructors. Minor code cleanup removing unrequired label and goto
6066 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
6068 (Build_Init_Statements): Add support for non-default constructors.
6069 (Expand_N_Object_Declaration): Add support for non-default constructors.
6070 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
6071 to Set_CPP_Constructors.
6073 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
6074 non-default constructors.
6075 Required to handle its use in build-in-place statements.
6077 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
6078 pragma for non-default C++ constructors and the new compiler support
6079 that allows the use of these constructors in record components, limited
6080 aggregates, and extended return statements.
6082 2009-04-29 Vincent Celier <celier@adacore.com>
6084 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
6085 project extending an abstract project.
6087 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
6089 * targparm.ads: Fix oversight.
6091 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6093 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
6094 derivation when necessary, to find the user-subprogram that is actally
6097 2009-04-29 Robert Dewar <dewar@adacore.com>
6099 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
6102 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6104 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
6105 primitive operation, rather than source line of synchronized type, when
6106 building the wrapper for a primitive operation that overrides an
6107 operation inherited from a progenitor, to improve the error message on
6108 duplicate declarations.
6110 * sem_ch3.adb (Process_Full_View): Use new signature of
6113 2009-04-29 Robert Dewar <dewar@adacore.com>
6115 * prj-nmsc.ads: Minor reformatting
6117 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
6119 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
6120 expression on the existing parent If statement.
6122 2009-04-29 Robert Dewar <dewar@adacore.com>
6124 * prj-proc.adb, prj.ads: Minor reformatting
6126 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
6128 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
6129 existing parent If statement on the newly created one.
6131 2009-04-29 Emmanuel Briot <briot@adacore.com>
6133 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
6134 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
6135 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
6136 (Set_In_Configuration, In_Configuration): Removed.
6137 Replaced by an extra parameter Is_Config_File in several parameter to
6138 avoid global variables to store the state of the parser.
6140 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6142 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
6143 with_clauses generated for the same unit through rtsfind, and that
6144 appear in the context of different units.
6146 * rtsfind.adb: New attribute First_Implicit_With, component of the
6147 Unit_Record that stores information about a unit loaded through rtsfind.
6149 2009-04-29 Gary Dismukes <dismukes@adacore.com>
6151 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
6152 (other conditions permitting), so that abstract stream subprograms will
6153 be declared for them.
6155 2009-04-29 Bob Duff <duff@adacore.com>
6157 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
6159 * g-expect.ads: Minor comment fixes.
6161 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6163 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
6164 dispatching operation is a body without previous spec, update the list
6165 of primitive operations to ensure that cross-reference information is
6168 2009-04-29 Albert Lee <lee@adacore.com>
6170 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6171 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
6172 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
6173 (GNAT.Sockets.Thin.C_Readv,
6174 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
6175 (GNAT.Sockets.Thin.C_Recvmsg,
6176 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
6178 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
6179 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
6181 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6183 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
6184 operation is a body without previous spec, update the list of
6185 primitive operations to ensure that cross-reference information is
6188 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
6189 new compilation unit node for the instance declaration, keep the
6190 context items of the original unit on it, so that the context of the
6191 instance body only holds the context inherited from the generic body.
6193 2009-04-29 Bob Duff <duff@adacore.com>
6195 * sem_res.adb: Minor comment fix.
6197 2009-04-29 Thomas Quinot <quinot@adacore.com>
6199 * sem_elim.adb: Minor reformatting
6201 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6203 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
6204 predefined unit, allow arbitrary number of components in static
6205 aggregate, to ensure that the same level of constant folding applies
6206 for Ada 95 and Ada 05 versions of the file.
6208 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6210 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
6211 information: no need for full scope check.
6212 (Eliminate_Error): Do not emit error in a generic context.
6214 2009-04-29 Ed Falis <falis@adacore.com>
6216 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
6217 VxWorks 653 POS does not support rmdir.
6219 2009-04-29 Matteo Bordin <bordin@adacore.com>
6221 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
6222 results are printed.
6224 2009-04-29 Arnaud Charlet <charlet@adacore.com>
6226 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
6229 2009-04-29 Thomas Quinot <quinot@adacore.com>
6231 * make.adb: Minor reformatting.
6232 Minor code reorganization throughout.
6234 2009-04-29 Matteo Bordin <bordin@adacore.com>
6236 * s-stausa.ads: Changed visibility of type Task_Result: moved to
6237 public part to give application visibility over it.
6238 This is for future improvement and to build a public API on top of it.
6239 Changed record components name of type Task_Result to reflect the new
6242 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
6243 reporting Stack usage.
6245 * gnat_ugn.texi: Update doc of stack usage report.
6247 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
6249 * Makefile.rtl: Add new run-time files.
6251 2009-04-29 Pascal Obry <obry@adacore.com>
6253 * initialize.c: Do not expand quoted arguments.
6255 2009-04-29 Emmanuel Briot <briot@adacore.com>
6257 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
6259 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
6260 Prj.Ultimate_Extending_Project_Of
6262 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6264 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
6265 Amendment type, add the with_clause for Finalization.List_Controller
6266 only if the current context is a package body.
6268 2009-04-29 Thomas Quinot <quinot@adacore.com>
6270 * sem_ch12.adb: Minor reformatting
6272 * sem_aggr.adb: Minor reformatting
6274 * sem_ch6.adb, sem_cat.ads: Minor reformatting
6276 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
6278 2009-04-29 Quentin Ochem <ochem@adacore.com>
6280 * prj.ads (Source_Id): Now general pointer type.
6282 2009-04-29 Thomas Quinot <quinot@adacore.com>
6284 * exp_ch7.adb, rtsfind.adb: Minor reformatting
6286 * sem_res.adb: Minor reformatting
6288 2009-04-29 Thomas Quinot <quinot@adacore.com>
6290 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
6291 operands is static only if it is a predefined concatenation operator.
6293 * sem_util.adb: Minor reformatting
6295 * sem_ch12.adb (Save_References): When propagating semantic information
6296 from generic copy back to generic template, for the case of an
6297 identifier that has been rewritten to an explicit dereference whose
6298 prefix is either an object name or a parameterless funcion call
6299 denoting a global object or function, properly capture the denoted
6300 global entity: perform the corresponding rewriting in the template,
6301 and point the rewritten identifier to the correct global entity (not
6302 to the associated identifier in the generic copy).
6304 2009-04-29 Robert Dewar <dewar@adacore.com>
6306 * rtsfind.adb, prj-env.adb: Minor reformatting
6307 Minor code reorganization
6309 2009-04-29 Emmanuel Briot <briot@adacore.com>
6311 * make.adb: Fix comment
6313 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
6314 is given as argument, as might happen in gnatmake.
6316 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6318 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
6319 an abstract operation of a progenitor is not properly overridden by an
6320 operation of a derived synchronized type.
6322 2009-04-29 Robert Dewar <dewar@adacore.com>
6324 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
6325 prj-proc.adb: Minor reformatting
6326 Minor code reorganization
6328 2009-04-29 Bob Duff <duff@adacore.com>
6330 * exp_ch7.adb (Build_Final_List): For an access type that designates a
6331 Taft Amendment type, if the access type needs finalization, make sure
6332 the implicit with clause for List_Controller occurs on the package spec.
6334 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
6335 with's created for the pseudo-children of Text_IO and friends. In
6336 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
6337 Ada.Text_IO.Integer_IO both with-ing each other.
6339 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
6340 oddball cases when pragma Extend_System is used.
6342 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
6343 the case where a package spec instantiates a generic whose body with's
6344 this package, so Walk_Library_Items won't complain about cyclic with's.
6346 2009-04-29 Emmanuel Briot <briot@adacore.com>
6348 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
6349 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
6350 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
6351 (Project_Id): now a real pointer to Project_Data, instead of an index
6352 into the Projects_Table. This simplifies the API significantly, avoiding
6353 extra lookups in this table and the need to pass the Project_Tree_Ref
6354 parameter in several cases
6356 2009-04-29 Nicolas Setton <setton@adacore.com>
6358 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
6361 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
6363 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
6366 2009-04-24 Robert Dewar <dewar@adacore.com>
6368 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
6369 clean.adb: Minor reformatting.
6370 Minor code reorganization and message improvement.
6372 2009-04-24 Emmanuel Briot <briot@adacore.com>
6374 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
6375 (Alternate_Languages): now implemented as a malloc-ed list rather
6376 than through a table.
6378 2009-04-24 Thomas Quinot <quinot@adacore.com>
6380 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
6381 accurately handle cases such as "lit" & "lit" and
6382 "lit" & static_string_constant
6384 2009-04-24 Emmanuel Briot <briot@adacore.com>
6386 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
6387 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
6388 removed. Lists of projects are now implemented via standard malloc
6389 rather than through the table.
6391 2009-04-24 Thomas Quinot <quinot@adacore.com>
6393 * sem_ch12.adb: Minor reformatting
6395 * g-trasym.adb: Minor reformatting
6397 * exp_ch6.adb: Minor reformatting
6399 2009-04-24 Robert Dewar <dewar@adacore.com>
6401 * layout.adb (Layout_Type): For packed array type, copy unset
6402 size/alignment fields from the referenced Packed_Array_Type.
6404 2009-04-24 Bob Duff <duff@adacore.com>
6406 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
6407 longer needed after sem_ch12 changes.
6409 * sem.adb (Walk_Library_Items): Include with's in some debugging
6412 2009-04-24 Emmanuel Briot <briot@adacore.com>
6414 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
6415 only ever using the Project field.
6417 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6419 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
6420 Body_Required on the generated compilation node. The new node is linked
6421 to its body, but both share the same file, so we do not set this flag
6422 on the new unit so as not to create a spurious dependency on a
6423 non-existent body in the ali file for the instance.
6425 2009-04-24 Robert Dewar <dewar@adacore.com>
6427 * make.adb: Minor reformatting
6429 2009-04-24 Emmanuel Briot <briot@adacore.com>
6431 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
6432 Add_Source): merge some code between those. In particular change where
6433 file normalization is done to avoid a few extra calls to
6434 Canonicalize_File_Name. This also removes the need for passing
6435 Current_Dir in a number of subprograms.
6437 2009-04-24 Bob Duff <duff@adacore.com>
6439 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
6440 False, assign the correct unit to the Cunit field of the new table
6441 entry. We want the spec unit, not the body unit.
6443 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
6444 interface for these.
6445 (Maybe_Add_With): Check whether we're trying to a with on the current
6446 unit, and avoid creating such directly self-referential with clauses.
6447 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
6448 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
6449 and matches existing comments in the spec.
6451 * sem.adb (Walk_Library_Items): Add various special cases to make the
6454 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
6455 instead of Parent (N), for uniformity.
6457 2009-04-24 Robert Dewar <dewar@adacore.com>
6459 * errout.ads: Minor reformatting
6461 2009-04-24 Emmanuel Briot <briot@adacore.com>
6463 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
6464 behavior when the project includes sources from multiple languages
6466 2009-04-24 Vincent Celier <celier@adacore.com>
6468 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
6469 is a language other than Ada declared.
6471 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
6472 Imported_First set to True.
6474 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6476 * sem_res.adb: additional optimization to inhibit creation of
6477 redundant transient scopes.
6479 2009-04-24 Bob Duff <duff@adacore.com>
6481 * rtsfind.ads: Minor comment fix
6483 2009-04-24 Emmanuel Briot <briot@adacore.com>
6485 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
6486 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
6487 basically doing the same work (for explicit or implicit sources).
6488 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
6489 role. Rewritten to share some code (testing that all explicit sources
6490 have been found) between ada_only and multi_language modes.
6492 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
6494 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
6495 for CLI imported types.
6496 (Analyze_Pragma): Allow CIL or Java imported functions returning
6497 access-to-subprogram types.
6499 2009-04-24 Emmanuel Briot <briot@adacore.com>
6501 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
6502 (Project_Data.Dir_Path): field removed, since it can be computed
6503 directly from .Directory, and is needed only once when processing the
6504 project is buildgpr.adb or make.adb
6506 2009-04-24 Robert Dewar <dewar@adacore.com>
6508 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
6509 rtsfind.adb: Minor reformatting.
6510 Minor code reorganization
6512 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6514 * mlib-prj.adb: Use friendlier english identifier.
6516 * gnatcmd.adb, make.adb: Use better english identifiers.
6518 2009-04-24 Robert Dewar <dewar@adacore.com>
6520 * clean.adb: Minor reformatting
6522 2009-04-24 Robert Dewar <dewar@adacore.com>
6524 * einfo.adb (OK_To_Rename): New flag
6526 * einfo.ads (OK_To_Rename): New flag
6528 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
6531 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
6533 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
6536 2009-04-24 Emmanuel Briot <briot@adacore.com>
6538 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
6539 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
6540 field removed. This is not a property of the
6541 project, just a boolean used to traverse the project tree, and storing
6542 it in the structure prevents doing multiple traversal in parallel.
6543 (Project_Data.Checked): also removed, since it was playing the same role
6544 as Seen when we had two nested loops, and this is no longer necessary
6545 (For_All_Imported_Projects): removed, since in fact there was already
6546 the equivalent in For_Every_Project_Imported. The latter was rewritten
6547 to use a local hash table instead of Project_Data.Seen
6548 Various loops were rewritten to use For_Every_Project_Imported, thus
6549 removing the need for Project_Data.Seen. This avoids a lot of code
6552 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6554 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
6555 statements, even though the actual of the call is a concatenation,
6556 because the argument is static, and we want to preserve warning
6557 messages about sequences of code statements that are not marked
6560 * sem_warn.adb: remove obsolete comment about warning being obsolete
6562 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
6563 requeued and the delay has expired while within the accept statement
6564 that executes the requeue, do not perform the requeue and indicate that
6565 the timed call has been aborted.
6567 2009-04-24 Emmanuel Briot <briot@adacore.com>
6569 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6570 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
6571 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
6572 since they can be computed from the above.
6574 2009-04-24 Vincent Celier <celier@adacore.com>
6576 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
6578 * prj-env.adb: Move all global variables to the private part of the
6580 Access these new components instead of the global variables no longer
6582 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
6583 components that were previously global variables.
6585 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
6586 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
6589 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
6590 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
6592 * prj.adb (Initialize): Do not call Prj.Env.Initialize
6593 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
6594 components in the private part of the project tree data.
6596 * prj.ads (Private_Project_Tree_Data): new components moved from
6597 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
6598 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
6599 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
6601 2009-04-24 Vincent Celier <celier@adacore.com>
6603 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
6605 * prj-nmsc.adb (Check_Library): No error for imports by shared library
6606 projects, when --unchecked-shared-lib-imports is used.
6608 2009-04-24 Robert Dewar <dewar@adacore.com>
6610 * sem_ch7.adb: Minor reformatting
6612 2009-04-24 Tristan Gingold <gingold@adacore.com>
6614 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
6617 2009-04-24 Emmanuel Briot <briot@adacore.com>
6619 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
6620 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
6621 (For_All_Imported_Projects): new procedure
6622 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
6623 above rather than duplicating code.
6625 2009-04-24 Emmanuel Briot <briot@adacore.com>
6627 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6628 (Source_Id, Source_Data): use a real list to store sources rather than
6629 using an external table to store the elements. This makes code more
6630 efficient and more readable.
6632 2009-04-24 Emmanuel Briot <briot@adacore.com>
6634 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6635 (Source_Iterator): new type.
6636 This removes the need for having the sources on three different
6637 lists at the project tree, project and language level. They are now
6640 2009-04-24 Emmanuel Briot <briot@adacore.com>
6642 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
6644 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6646 * sem_warn.adb: Add comment on obsolete warning
6648 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6650 * s-tassta.adb (Create_Task): Fix violation of locking rule.
6652 2009-04-24 Emmanuel Briot <briot@adacore.com>
6654 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
6655 to Language_Ptr to better reflect its new implementation.
6656 (Project_Data.First_Languages_Processing): renamed to Languages now
6657 that the field with that name is no longer used
6658 (Project_Data.Languages): removed, no longer used, and duplicates
6659 information already available through First_Language_Processing.
6660 (Prj.Language_Index): now an actual pointer, instead of an index into
6661 a table. This makes the list somewhat more obvious, but more importantly
6662 removes the need to pass a pointer to the project_tree_data in a few
6663 places, and makes accessing the attributes of a languages more
6666 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6667 Thomas Quinot <quinot@adacore.com>
6669 * fe.h (Set_Identifier_Casing): Add const to second parameter.
6670 * gcc-interface/misc.c (internal_error_function): Make copy of return
6671 from pp_formatted_text before assigning BUFFER to it.
6672 (gnat_init): Likewise for main_input_filename and gnat_argv.
6673 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
6675 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6677 * ttypes.ads (Target_Double_Float_Alignment): New variable.
6678 (Target_Double_Scalar_Alignment): Likewise.
6679 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
6680 (Get_Double_Float_Alignment): New imported function.
6681 (Get_Double_Scalar_Alignment): Likewise.
6682 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
6683 the alignment of "double" floating-point types and "double" or larger
6684 scalar types, as parameterized by Target_Double_Float_Alignment and
6685 Target_Double_Scalar_Alignment respectively.
6686 * gcc-interface/gigi.h (double_float_alignment): Declare.
6687 (double_scalar_alignment): Likewise.
6688 (is_double_float_or_array): Likewise.
6689 (is_double_scalar_or_array): Likewise.
6690 (get_target_double_float_alignment): Likewise.
6691 (get_target_double_scalar_alignment): Likewise.
6692 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
6693 (get_target_strict_alignment): ...this.
6694 (get_target_double_float_alignment): New function.
6695 (get_target_double_scalar_alignment): Likewise.
6696 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6697 Test the presence of an alignment clause for under-aligned integer
6698 types. Take into account specific caps for the alignment of "double"
6699 floating-point types and "double" or larger scalar types, as
6700 parameterized by Target_Double_Float_Alignment and
6701 Target_Double_Scalar_Alignment respectively.
6702 (validate_alignment): Likewise.
6703 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
6704 (gigi): Initialize double_float_alignment and double_scalar_alignment.
6705 * gcc-interface/utils.c (double_float_alignment): New global variable.
6706 (double_scalar_alignment): Likewise.
6707 (is_double_float_or_array): New predicate.
6708 (is_double_scalar_or_array): Likewise.
6710 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6712 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
6713 the conditional expression only if it is common to both arms.
6715 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6717 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
6718 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
6719 arguments to build_allocator.
6720 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
6721 Remove code handling special allocator and assert its uselessness.
6723 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6725 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
6726 alignment is specified, do not promote that of the component type
6728 <E_Array_Subtype>: Likewise.
6730 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6732 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
6733 * sinfo.ads (Object Declaration): Likewise.
6734 (Assignment Statement): Likewise.
6735 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
6736 Do not force Is_True_Constant to false on the temporary.
6737 (Freeze_Entity): Do not force Is_True_Constant to false on names on
6738 the RHS of object declarations.
6739 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
6740 New case. Return 1 if the object is atomic.
6741 <N_Assignment_Statement>: Likewise.
6743 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6745 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
6746 For packed array types, make the original array type a parallel type
6747 for the modular type and its JM wrapper if the type is bit-packed.
6748 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
6749 record type for packed array types. Remove kludge.
6751 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6753 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
6754 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6755 Use front-end predicates to compute signedness and precision.
6756 <E_String_Literal_Subtype>: Fold range type.
6757 Make sure to set longest_float_type_node to a scalar type.
6758 (elaborate_entity): Use consistent Constraint_Error spelling.
6759 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
6760 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
6761 output for the modulus, if any.
6762 <ENUMERAL_TYPE>: Likewise for the RM size.
6763 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
6765 * gcc-interface/utils.c (finish_record_type): Really test the alignment
6766 of BLKmode bit-fields to compute their addressability.
6767 (create_index_type): Adjust comments.
6768 (create_param_decl): Create the biased subtype manually.
6769 * gcc-interface/utils2.c (build_component_ref): Use consistent
6770 Constraint_Error spelling.
6772 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6774 * gcc-interface/cuintp.c: Clean up include directives.
6775 * gcc-interface/targtyps.c: Likewise.
6776 * gcc-interface/decl.c: Likewise.
6777 * gcc-interface/misc.c: Likewise.
6778 * gcc-interface/trans.c: Likewise.
6779 * gcc-interface/utils.c: Likewise.
6780 * gcc-interface/utils2.c: Likewise.
6781 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
6783 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6785 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
6786 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
6787 (SET_DECL_LANG_SPECIFIC): Likewise.
6789 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6790 Update comment about use of build_range_type.
6791 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
6792 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
6793 check for other cases of overloading.
6794 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
6795 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
6796 Use size_int in lieu of build_int_cst.
6797 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
6800 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6802 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
6803 type is an enumeral or a boolean type, change it to an integer type
6804 with the same mode and signedness.
6806 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6808 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
6809 for an external constant whose initializer is not absolute.
6811 2009-04-22 Taras Glek <tglek@mozilla.com>
6813 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
6814 * gcc-interface/trans.c: Likewise.
6815 * gcc-interface/utils.c: Likewise.
6817 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6819 * sem_res.adb: Create block around procedure call when actual is a
6822 2009-04-22 Thomas Quinot <quinot@adacore.com>
6824 * s-soflin.ads: Fix typos
6826 2009-04-22 Vincent Celier <celier@adacore.com>
6828 * prj-env.adb: Minor comment change
6830 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
6831 Get_Name_String with No_File.
6833 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
6834 cannot be created even when not in verbose mode.
6836 2009-04-22 Emmanuel Briot <briot@adacore.com>
6838 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
6839 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
6840 Multi_Language modes, to avoid code duplication.
6841 (Project_Data.Include_Language): Removed.
6843 2009-04-22 Vincent Celier <celier@adacore.com>
6845 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
6846 the temporary file cannot be created, indicating the directory when the
6847 creation was attempted.
6849 2009-04-22 Emmanuel Briot <briot@adacore.com>
6851 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
6852 the language names, not their indices.
6854 2009-04-22 Emmanuel Briot <briot@adacore.com>
6856 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
6857 (Source_Data.Language_Name): Field removed.
6859 2009-04-22 Emmanuel Briot <briot@adacore.com>
6861 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
6864 2009-04-22 Emmanuel Briot <briot@adacore.com>
6866 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
6867 separate_suffix to the same value as the body_suffix.
6869 2009-04-22 Robert Dewar <dewar@adacore.com>
6871 * prj.adb: Minor code reorganization
6874 * prj-proc.adb: Minor code reorganization, clean up.
6876 * prj-nmsc.adb: Minor reformatting
6877 Minor code reorganization
6879 * gnat_ugn.texi: Add to doc on strict aliasing
6881 2009-04-22 Pascal Obry <obry@adacore.com>
6883 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
6886 * s-tasini.adb: Minor reformatting.
6888 * s-tassta.adb: Minor reformatting.
6890 2009-04-22 Emmanuel Briot <briot@adacore.com>
6892 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
6893 smaller subprograms.
6894 Renamed to Check_File_Naming_Schemes to avoid confusion with the
6895 other Check_Naming_Schemes functions that plays a totally different
6897 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
6898 extracted from the above. These were partially rewritten to avoid
6899 unnecessary code and temporary variables.
6900 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
6901 and Get_Unit (which for now still exist since they contain mode-specific
6904 2009-04-22 Emmanuel Briot <briot@adacore.com>
6906 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
6907 Remove duplicated code.
6908 (Canonical_Case_File_Name): new subprogram
6909 (Check_And_Normalize_Unit_Names): new subprogram
6910 (Write_Attr): new subprogram
6911 Better sharing of code
6912 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
6913 split Check_Naming and help find duplicated code
6914 (Check_Common): new subprogram, sharing code between ada_only and
6915 multi_language mode.
6916 (Naming_Data.Dot_Repl_Loc): field removed
6918 2009-04-22 Emmanuel Briot <briot@adacore.com>
6920 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
6921 Minor refactoring to reduce the size of
6922 Process_Sources_In_Multi_Language_Mode.
6923 Avoid extra copied of Source_Data, which we found in the past could be
6925 (Mark_Excluded_Sources): new subprogram.
6926 (Remove_Locally_Removed_Files_From_Units): merged into the above
6927 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
6928 and allow better sharing of code between multi_lang and ada_only modes
6929 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
6931 2009-04-22 Emmanuel Briot <briot@adacore.com>
6933 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
6934 Removed, since unused.
6936 2009-04-22 Vincent Celier <celier@adacore.com>
6938 * prj-attr.adb: New single project level attribute
6939 Separate_Run_Path_Options.
6941 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6942 attribute Seperate_Run_Path_Options.
6944 * prj.ads: (Project_Configuration): New Boolean component
6945 Separate_Run_Path_Options, defaulted to False.
6947 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
6949 2009-04-22 Robert Dewar <dewar@adacore.com>
6951 * sem_type.adb: Minor reformatting
6953 * mlib.adb: Minor reformatting
6955 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
6958 2009-04-22 Nicolas Setton <setton@adacore.com>
6960 * link.c: Add flag __gnat_separate_run_path_options.
6962 * mlib.adb (Separate_Run_Path_Options): New subprogram.
6964 * mlib.ads (Separate_Run_Path_Options): Declare.
6966 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
6967 switch per directory, rather than one "rpath" switch listing all
6970 * gnatlink.adb (Process_Binder_File): Likewise.
6972 * make.adb (Gnatmake): Likewise.
6974 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
6976 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
6977 Add a call to Move_Final_List when the target of the assignment is a
6978 return object that needs finalization and the expression is a
6979 controlled build-in-place function.
6981 2009-04-22 Vincent Celier <celier@adacore.com>
6983 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
6984 Including_Libraries set to True.
6986 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6988 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
6989 create a unit table entry for the subprogram declaration created for a
6990 child suprogram body that has no separate specification.
6992 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
6993 subprogram body, call Make_Child_Decl_Unit.
6995 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
6996 table can only be the created specification of a child subprogram body
6997 that is the main unit, which has not been entered in the table yet.
6999 * errout.adb (Output_Messages): Ignore created specification of a
7000 child subprogram body to prevent repeated listing of error messages.
7002 * gnat1drv.adb (gnat1drv): The generated specification for a child
7003 subprogram body does not generate code.
7005 2009-04-22 Arnaud Charlet <charlet@adacore.com>
7007 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
7008 since this unit is now part of bootstrap units, so must use Ada 95
7011 2009-04-22 Thomas Quinot <quinot@adacore.com>
7013 * a-tasatt.adb: Minor reformatting
7015 2009-04-22 Bob Duff <duff@adacore.com>
7017 * s-stalib.ads: Remove "with System;" since we're inside System, so
7020 2009-04-22 Vincent Celier <celier@adacore.com>
7022 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
7023 the source record, as there may be a dependency file even if no object
7026 2009-04-22 Robert Dewar <dewar@adacore.com>
7028 * lib-load.adb: Minor reformatting
7030 * lib-load.ads: Minor reformatting
7032 * sinfo.ads: Minor reformatting
7034 2009-04-22 Bob Duff <duff@adacore.com>
7036 * exp_pakd.adb: Minor comment fixes.
7038 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
7039 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
7040 include units containing instantiations, as well as units that are
7041 generic instantiations.
7043 * sem.adb: Include dependents and corresponding specs/bodies in the
7046 * gcc-interface/Make-lang.in:
7047 sem now depends on s-bitops, because of the packed array of Booleans.
7049 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
7051 * gcc-interface/ada-tree.def: Fix formatting nits.
7052 (REGION_STMT): Delete.
7053 (HANDLER_STMT): Likewise.
7054 * gcc-interface/ada-tree.h: Fix formatting nits.
7056 (REGION_STMT_BODY): Likewise.
7057 (REGION_STMT_HANDLE): Likewise.
7058 (REGION_STMT_BLOCK): Likewise.
7059 (HANDLER_STMT_ARG): Likewise.
7060 (HANDLER_STMT_LIST): Likewise.
7061 (HANDLER_STMT_BLOCK): Likewise.
7062 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
7063 (fp_size_to_prec): Likewise.
7064 (largest_move_alignment): Delete.
7065 (gnat_compute_largest_alignment): Likewise.
7067 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
7068 Remove redundant code.
7069 <E_Array_Type>: Remove redundant assert.
7070 <E_Array_Subtype>: Exit early from index computation in pathological
7072 Rewrite conditional assignment.
7073 (make_type_from_size): Likewise.
7074 * gcc-interface/misc.c (largest_move_alignment): Delete.
7075 (gnat_finish_incomplete_decl): Likewise.
7076 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
7077 (asm_out_file): Likewise
7078 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
7079 (gnat_dwarf_name): Move around.
7080 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
7081 (gigi): Remove call to gnat_compute_largest_alignment.
7082 * utils.c (create_field_decl): Rewrite conditional assignment.
7085 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
7087 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
7088 on entry. Defer common processing for types. Reorder and clean up.
7089 Compute the equivalent GNAT node and the default size for types only.
7090 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
7091 <E_Access_Type>: For an unconstrained designated type, do not pretend
7092 that a dummy type is always made.
7093 <all> Fix nits in comments.
7094 (validate_size): Fix formatting nits and comments.
7095 (set_rm_size): Likewise.
7096 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
7097 passed to TARGET_PROMOTE_PROTOTYPES hook.
7099 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
7101 * fe.h (Get_External_Name): Declare.
7102 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
7103 (concat_name): ...this.
7104 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
7105 gnu_entity_name and adjust for above renaming.
7106 <E_Access_Type>: Use create_concat_name to get the name of the various
7107 types associated with unconstrained array types.
7108 (make_aligning_type): Adjust for above renaming.
7109 (maybe_pad_type): Likewise.
7110 (components_to_record): Likewise. Use get_identifier_with_length for
7111 the encoding of the variant.
7112 (get_entity_name): Use get_identifier_with_length.
7113 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
7114 Do not fiddle with Name_Buffer.
7115 (concat_id_with_name): Rename to...
7116 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
7118 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
7121 2009-04-21 Joseph Myers <joseph@codesourcery.com>
7123 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
7126 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7128 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
7130 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7132 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
7133 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
7134 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
7135 Remove useless support code for packed array types and assert its
7137 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
7138 adjust for TYPE_RM_SIZE change.
7139 <all> Fix nits in comments. Use Original_Array_Type accessor instead
7140 of Associated_Node_For_Itype accessor for packed array types.
7141 (make_packable_type): Likewise.
7142 (maybe_pad_type): Likewise.
7143 (set_rm_size): Likewise. Rework conditional statement. Adjust for
7144 TYPE_RM_SIZE change.
7145 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
7146 (rm_size): Fix nits in comments. Rework conditional statements.
7147 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
7149 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
7150 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
7151 appropriate function to initialize the size_type_node. Adjust for
7152 TYPE_RM_SIZE change.
7154 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7156 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
7157 for imported subprograms.
7159 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7161 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
7162 constant objects covered by 13.3(19) volatile.
7164 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7166 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
7167 of dummy fat pointer types to the debug back-end.
7169 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7171 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
7172 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
7173 before wrapping it up in the record type. Do not overwrite the
7174 Ada size of the record type with the Esize.
7176 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7178 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
7179 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
7180 if the conversion is on the LHS of an assignment and a no-op.
7181 <all> Do not convert the result to the result type if the Parent
7182 node is such a conversion.
7184 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7186 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
7187 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
7188 of types with unknown discriminants.
7189 (substitute_in_type): Rewrite and restrict to formal substitutions.
7190 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
7191 (update_pointer_to): Update comment.
7193 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7195 * sem_ch8.adb (Use_One_Package): In an instance, if two
7196 potentially_use_visible and non-overloadable homonyms are available
7197 from the actuals of distinct formal packages, retain the current one,
7198 which was visible in the generic, to prevent spurious visibility
7200 (End_Use_Package): Restore use_visibility when needed.
7202 2009-04-20 Sergey Rybin <rybin@adacore.com>
7204 * gnat_ugn.texi, vms_data.ads: Update doc.
7206 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7208 * gcc-interface/Make-lang.in: Update dependencies
7210 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
7213 2009-04-20 Robert Dewar <dewar@adacore.com>
7215 * checks.ads: Fix documentation of range check handling
7217 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7219 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
7220 a redundant use_type clause.
7222 2009-04-20 Robert Dewar <dewar@adacore.com>
7224 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
7225 this attribute can be evaluated at compile time.
7226 (Eval_Attribute, case Range_Length): Same improvement
7228 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
7230 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7232 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
7233 for better handling of null procedures.
7234 (Check_Overriding_Indicator): Do not emit a warning on a missing
7235 overriding indicator on an operator when the type of which the operator
7236 is a primitive is private.
7238 2009-04-20 Bob Duff <duff@adacore.com>
7240 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
7243 2009-04-20 Robert Dewar <dewar@adacore.com>
7245 * sem_attr.adb: Minor reformatting
7247 * gnatcmd.adb: Minor reformatting
7249 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7251 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
7252 overloaded and one interpretation matches the context, label the
7253 operand with the type of first formal.
7255 2009-04-20 Bob Duff <duff@adacore.com>
7257 * debug.ads: Minor comment fix.
7259 * debug.adb: Minor comment fixes.
7261 2009-04-20 Javier Miranda <miranda@adacore.com>
7263 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
7265 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
7267 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
7268 is expanded into a call to Raise_Exception, avoid passing the
7269 exception-name'identity in runtimes in which this argument
7272 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
7274 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
7275 generated bindings for cil.
7277 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7279 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
7280 discriminants, collect components from the Underlying_Record_View,
7281 which will be used in the expansion of the aggregate into assignments.
7283 * sem_ch3.adb: Do not label derived type with unknown discriminants as
7284 having a private declaration.
7286 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7288 * exp_util.adb (Expand_Subtype_From_Expr): use the
7289 underlying_record_view when available, to create the proper constrained
7290 subtype for an object of a derived type with unknown discriminants.
7292 2009-04-20 Javier Miranda <miranda@adacore.com>
7294 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
7295 formals that have pragma unreferenced.
7297 2009-04-20 Pascal Obry <obry@adacore.com>
7299 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
7300 Remove all calls to To_Lower_If_Case_Insensitive to preserve
7301 the pathname original casing.
7303 2009-04-20 Robert Dewar <dewar@adacore.com>
7305 * g-trasym.adb: Minor reformatting
7307 * s-os_lib.adb: Minor reformatting
7309 * sem.adb: Minor reformatting
7310 Minor code reorganization
7312 * sem_ch3.adb: Minor reformatting
7314 * sem_ch4.adb: Minor reformatting
7316 * sem_ch8.adb: Minor reformatting
7318 * sem_type.adb: Minor reformatting
7320 2009-04-20 Javier Miranda <miranda@adacore.com>
7322 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
7323 generated by derivations of tagged types use the aliased subprogram a
7324 reference to locate their controlling type.
7326 2009-04-20 Tristan Gingold <gingold@adacore.com>
7328 * g-trasym.adb: Set size of result buffer before calling
7331 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7333 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
7334 to a function returning an array can be interpreted as a call with
7335 defaulted parameters whose result is indexed, take into account the
7336 types of all the indices of the array result type.
7338 2009-04-20 Pascal Obry <obry@adacore.com>
7340 * a-direct.adb, s-os_lib.adb: Minor reformatting.
7342 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7344 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
7345 null exclusion qualifiers for object renaming declarations.
7347 2009-04-20 Nicolas Roche <roche@adacore.com>
7349 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
7350 unsigned long long. So compare local_time and utc_time before computing
7353 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7355 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7356 of the Underlying_Record_View before that of the derived type.
7358 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
7359 with unknown discriminants with regard to the parent subtype.
7361 2009-04-20 Bob Duff <duff@adacore.com>
7363 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
7364 that are not included. This is necessary if the main unit is a generic
7367 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
7368 because it doesn't work if -gnatn is used.
7370 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7372 * rtsfind.adb (RTE, RTE_Record_Component): In
7373 Configurable_Run_Time_Mode, do not enable front-end inlining.
7375 2009-04-20 Thomas Quinot <quinot@adacore.com>
7377 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
7378 System.Address_To_Access_Conversions.
7380 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7382 * sem.adb: Guard against ill-formed subunits.
7384 2009-04-20 Bob Duff <duff@adacore.com>
7386 * output.adb (Flush_Buffer): Do not indent blank lines.
7387 (Ignore_Output): New procedure for output suppression.
7389 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7391 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
7392 when it is positive. This avoids a potential constraint error raised
7393 by the conversion to Natural.
7395 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7397 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
7398 involves a target that has a specified address, don't set Forward_OK
7399 and Backward_OK to False if the rhs is an aggregate, since overlap
7402 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7404 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
7405 in an object renaming declaration when the expected type is an
7406 anonymous access type.
7408 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
7409 ambiguity when one interpretation is an anonymous access type and the
7410 other is a named access type, and the context itself is anonymous
7412 2009-04-20 Thomas Quinot <quinot@adacore.com>
7414 * einfo.ads: Minor comment rewording
7416 * sem_aggr.adb: Minor comment rewording
7418 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
7420 2009-04-20 Pascal Obry <obry@adacore.com>
7422 * adaint.c (__gnat_is_readable_file): Check for file existence
7423 when not using ACL (always the case on remote drives).
7425 2009-04-20 Robert Dewar <dewar@adacore.com>
7427 * sinfo.ads: Minor comment fixes
7429 * exp_disp.adb: Minor reformatting
7431 * gnat1drv.adb: Minor reformatting
7433 * output.adb: Minor reformatting
7435 * s-vxwext-kernel.ads: Minor reformatting
7437 * sem.ads: Minor reformatting
7439 * sem.adb: Minor reformatting
7441 * sem_elim.adb: Minor reformatting
7443 * uname.ads: Minor reformatting
7445 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7447 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
7448 a small dope of 4 words to the adjustment to the stack pointer.
7450 2009-04-20 Thomas Quinot <quinot@adacore.com>
7452 * xoscons.adb: generate C header s-oscons.h in
7453 addition to s-oscons.ads.
7455 * socket.c: On VMS, use s-oscons.h.
7457 * sem_ch3.adb: Minor reformatting
7459 * exp_ch9.adb: Minor reformatting
7461 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7463 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
7464 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
7465 (call_to_gnu): Likewise.
7467 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7469 * gcc-interface/trans.c (gigi): Declare the name of the compilation
7470 unit as the first global name at the very beginning.
7472 2009-04-20 Thomas Quinot <quinot@adacore.com>
7474 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7475 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
7476 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
7477 since HP-UX supports neither inet_aton nor inet_pton (altough the
7478 latter is part of the Single UNIX Specification!).
7479 So reorganize code, and share C implementation based on inet_addr(3)
7480 with VMS (instead of having a VMS specific Ada implementation in
7483 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7485 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
7486 to return the object file name saved by Set_Object_Output_File_Name.
7488 2009-04-20 Emmanuel Briot <briot@adacore.com>
7490 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
7491 for the standard command line, when argc has been modified since the
7492 start of the application.
7494 2009-04-20 Thomas Quinot <quinot@adacore.com>
7496 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
7497 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
7499 2009-04-20 Bob Duff <duff@adacore.com>
7501 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
7504 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7506 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
7507 subprogram as Eliminated when source operation is.
7508 (Expand_N_Protected_Type_Declaration): Generate protected and
7509 unprotected specs for the internal operations, even if the source
7510 operation is eliminated.
7512 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7514 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
7515 Predefined_Primitive_Bodies): Do not create the declarations and bodies
7516 of the primitive subprograms associated with dispatching select
7517 statements when the runtime is in configurable mode.
7519 2009-04-20 Ed Falis <falis@adacore.com>
7521 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
7523 2009-04-20 Thomas Quinot <quinot@adacore.com>
7525 * s-oscons-tmplt.c: Add support for generating a dummy version of
7526 s-oscons.ads providing all possible constants.
7528 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
7530 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
7531 ANSI version (not the UNICODE version) of WSAStringToAddress.
7533 2009-04-20 Pascal Obry <obry@adacore.com>
7535 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
7536 allocated for the security descriptor and make sure all
7537 handles are closed before leaving this procedure.
7539 2009-04-20 Javier Miranda <miranda@adacore.com>
7541 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
7542 (Set_Is_Underlying_Record_View): New subprogram
7544 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
7545 private types with unknown discriminants use the underlying record view
7548 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
7549 underlying record view in the full view of private types whose parent
7550 has unknown discriminants.
7551 (Build_Derived_Record_Type): Avoid generating the class-wide entity
7552 associated with an underlying record view.
7553 (Derived_Type_Declaration): Avoid deriving parent primitives in
7554 underlying record views.
7556 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
7557 records with unknown discriminants.
7559 * sem_type.adb (Covers): Handle underlying record views.
7560 (Is_Ancestor): Add support for underlying record views.
7562 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
7563 dispatching call if the type of the target object is tagged and has
7564 unknown discriminants.
7566 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
7567 unknown discriminants.
7569 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
7570 tables for internally built underlying record views.
7572 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
7573 empty list of component associations.
7575 2009-04-20 Thomas Quinot <quinot@adacore.com>
7577 * sem_ch10.adb: Minor reformatting
7579 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7580 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
7581 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
7582 standard inet_pton API (and emulate it on platforms that do not
7584 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
7585 DECC$INET_ADDR, imported in Ada.
7586 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
7587 implementation provided by GNAT runtime.
7588 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
7591 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7593 * gnat_ugn.texi: Add documentation for -fno-ivopts.
7595 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7597 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
7598 with_clause if it is the main unit.
7600 2009-04-20 Thomas Quinot <quinot@adacore.com>
7602 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
7603 (no behaviour change): Use Append instead of Increment_Last followed
7606 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7608 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
7609 declarations of all primitives associated with dispatching asynchronous,
7610 conditional and timed selects when dispaching calls are forbidden and
7611 select statements are not allowed (such as in Ravenscar).
7612 (Predefined_Primitive_Bodies): Ditto for bodies.
7614 * exp_disp.ad (Make_DT): Do not create and populate the
7615 Select_Specific_Data of the dispatch table when dispatching calls are
7616 forbidden and select statements are not allowed (such as in Ravenscar).
7618 2009-04-20 Robert Dewar <dewar@adacore.com>
7620 * a-tifiio.adb: Minor reformatting
7622 2009-04-20 Thomas Quinot <quinot@adacore.com>
7624 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
7625 other C library functions, report *failure* with a zero status, and
7626 success with a non-zero status.
7628 2009-04-20 Bob Duff <duff@adacore.com>
7630 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
7631 (Semantics): After analyzing each unit, Append it to the
7632 Comp_Unit_List, if appropriate.
7634 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
7636 (Gnat1drv): Correct comment regarding Back_End_Mode.
7638 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7640 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
7642 2009-04-20 Thomas Quinot <quinot@adacore.com>
7644 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7645 output.adb, output.ads, s-taprop-hpux-dce.adb,
7646 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
7649 2009-04-20 Thomas Quinot <quinot@adacore.com>
7651 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
7652 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
7653 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
7654 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
7655 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
7656 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
7658 * debug.adb: Fix typo
7660 * gnat_rm.texi: Minor doc fix.
7662 * sem_ch7.adb, freeze.adb: Minor reformatting
7664 2009-04-20 Thomas Quinot <quinot@adacore.com>
7666 * g-socket.ads: Add new constants:
7668 Unspecified_Group_Inet_Addr
7669 All_Hosts_Group_Inet_Addr
7670 All_Routers_Group_Inet_Addr
7672 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
7673 ERANGE (Result too large).
7674 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
7675 propagation of errno to caller.
7677 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7679 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
7680 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
7683 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7685 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
7686 checking for references to eliminated subprograms that should be
7688 (Eliminate_Error_Message): Update comment to say "references" rather
7689 than "calls" (since attribute cases are handled here as well).
7691 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
7692 checking for references to eliminated subprograms that should be
7693 flagged. Add with and use of Sem and Sem_Util.
7695 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
7696 Add with and use of Sem_Elim.
7698 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
7699 applied to eliminated subprograms.
7700 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
7701 eliminated subprograms.
7702 Add with and use of Sem_Elim.
7704 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
7705 to eliminated subprograms, now handled during Resolve_Call.
7706 Remove with and use of Sem_Elim.
7708 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
7709 testing Is_Eliminated, for proper handling of primitive derived from
7710 eliminated subprograms.
7712 2009-04-20 Vincent Celier <celier@adacore.com>
7714 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
7715 has been declared (Library_GCC or Linker'Driver), for the driver name.
7717 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
7718 Linker'Driver is, use Linker'Driver as the shared library linker.
7719 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
7720 Library_GCC is declared.
7721 (Check_Library_Attributes): Set up the shared linker driver: either
7722 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
7725 2009-04-20 Thomas Quinot <quinot@adacore.com>
7727 * g-socket.ads (Send_Socket): Fix misleading comment.
7729 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7731 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
7734 2009-04-20 Geert Bosch <bosch@adacore.com>
7736 * a-tifiio.adb (Put): Avoid generating too many digits for certain
7737 fixed types with smalls that are neither integer or the reciprocal
7740 2009-04-20 Bob Duff <duff@adacore.com>
7742 * uname.ads: Minor comment fix.
7744 * types.ads: Minor comment fix.
7746 2009-04-20 Pascal Obry <obry@adacore.com>
7748 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
7749 avoid warning. At the same time fix a memory leak.
7751 * osint.adb (Get_Libraries_From_Registry): Properly free memory
7752 returned by the above routine.
7754 2009-04-20 Robert Dewar <dewar@adacore.com>
7756 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
7757 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
7758 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
7759 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
7761 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
7763 2009-04-20 Pascal Obry <obry@adacore.com>
7765 * initialize.c (__gnat_initialize): Add braces to kill warning.
7767 * adaint.c: Minor reformatting, remove trailing spaces.
7769 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7771 * gcc-interface/Make-lang.in: Update dependencies.
7773 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7775 * adaint.h (__gnat_lwp_self): Declare on Linux.
7777 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
7779 2009-04-20 Robert Dewar <dewar@adacore.com>
7781 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
7782 front-end part of -fpreserve-control-flow switch.
7784 2009-04-20 Bob Duff <duff@adacore.com>
7786 * rtsfind.adb: Minor comment fix
7788 2009-04-20 Robert Dewar <dewar@adacore.com>
7790 * exp_aggr.adb: Minor reformatting
7791 Minor code reorganization (use Nkind_In)
7793 * g-socket.adb: Minor reformatting
7795 * g-socket.ads: Minor comment fix
7797 * s-auxdec.ads: Minor comment and organization update.
7799 * s-auxdec-vms_64.ads: Minor comment and organization update.
7801 * sem_ch10.adb: Minor addition of ??? comment
7803 * sem_disp.adb: Minor reformatting
7805 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7807 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
7808 list a caller of an inlined subprogram, if the caller itself is not
7811 2009-04-20 Pascal Obry <obry@adacore.com>
7813 * adaint.c: Disable use of ACL on network drives.
7815 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7817 * gnat_ugn.texi: Add examples.
7819 2009-04-20 Thomas Quinot <quinot@adacore.com>
7821 * g-socket.ads (Abort_Selector): Clarify documentation.
7823 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7825 * opt.ads (Inspector_Mode): Update documentation of this flag.
7827 2009-04-20 Thomas Quinot <quinot@adacore.com>
7829 * g-socket.ads: Minor reformatting
7831 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
7832 consider S_resolvLib error codes since we only use the hostLib wrappers.
7834 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7836 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7837 of the Underlying_Record_View after that of the derived type.
7839 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7841 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
7844 2009-04-20 Javier Miranda <miranda@adacore.com>
7846 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
7848 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
7851 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
7854 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
7855 in internally built overriding subprograms.
7857 2009-04-20 Doug Rupp <rupp@adacore.com>
7859 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
7861 * s-auxdec.ads: Likewise
7863 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7865 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
7866 type by an interface.
7868 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
7869 minimze difference in expanded tree when compiled as spec of the main
7870 unit, or as a spec in the context of another unit.
7872 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7874 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
7875 (localtime_tzoff): This routine no longer accepts an actual of type
7877 (UTC_Time_Offset): Remove local variable Secs_TM.
7879 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
7880 actual of type struct tm*. Add local variable of type struct tm for all
7881 targets that provide localtime_r and need to invoke it.
7883 2009-04-20 Thomas Quinot <quinot@adacore.com>
7885 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
7886 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
7887 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
7889 2009-04-20 Robert Dewar <dewar@adacore.com>
7891 * sem_ch3.adb: Minor reformatting
7893 * lib-load.adb: Minor reformatting
7895 * sem_ch4.adb: Minor reformatting
7897 2009-04-20 Robert Dewar <dewar@adacore.com>
7899 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
7900 (equal values => False).
7902 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7904 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
7905 to null procedures can be inlined unconditionally.
7907 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7909 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
7910 non-addressable parameter passed by reference, do not convert the
7911 actual if its type is already the nominal type, unless it is of
7912 self-referential size.
7914 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7916 * gnat_ugn.texi: Fix typos.
7918 2009-04-20 Robert Dewar <dewar@adacore.com>
7920 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
7921 Validate_Unchecked_Warnings to suppress warnings about size or
7922 alignment or extra bits if either type involved has pragma Warnings
7923 (Off) set for the type entity.
7925 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
7927 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
7928 a builtin type and give it a name.
7930 2009-04-17 Diego Novillo <dnovillo@google.com>
7932 * gcc-interface/misc.c (gnat_expand_expr): Remove.
7933 (LANG_HOOKS_EXPAND_EXPR): Remove.
7935 2009-04-17 Robert Dewar <dewar@adacore.com>
7937 * sem_ch3.adb: Minor reformatting
7939 2009-04-17 Pascal Obry <obry@adacore.com>
7941 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
7943 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7945 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
7946 illegal constraints on type derived from formal discrete types.
7948 2009-04-17 Thomas Quinot <quinot@adacore.com>
7952 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7953 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7954 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
7955 g-socket.ads (GNAT.Sockets.Thin.C_Send,
7956 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
7957 Replace calls to send(2) with equivalent sendto(2) calls.
7958 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
7959 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
7960 report an error in that case. Factor code common to the two versions
7961 (datagram and stream) in common routine Stream_Write.
7963 2009-04-17 Robert Dewar <dewar@adacore.com>
7965 * exp_disp.adb: Minor reformatting
7966 Minor code reorganization (use Nkind_In)
7968 * prepcomp.adb: Minor reformatting
7970 * sem_ch3.adb: Minor reformatting
7972 * sem_res.adb: Minor comment addition
7974 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
7977 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
7978 setting Is_Referenced
7980 * types.ads: Minor reformatting
7982 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7984 * gnat_ugn.texi: Initial documentation on binding generator.
7986 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7988 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
7989 type extensions whose parent is a type with unknown discriminants.
7991 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
7992 aggregate has unknown discriminants, use the Underlying_Record_View to
7993 obtain the discriminants of the ancestor part.
7995 * exp_disp.adb (Build_Dispatch_Tables): Types that are
7996 Underlying_Record_Views share the dispatching information of the
7997 original record extension.
7999 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
8000 discriminants, propagate dispach table information to the
8001 Underlying_Record_View.
8003 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
8004 discriminants and declaration is not a completion, generate
8005 Underlying_Record_View to provide proper discriminant information to
8006 the front-end and to gigi.
8008 2009-04-17 Robert Dewar <dewar@adacore.com>
8010 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
8011 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
8012 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
8013 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
8014 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
8015 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
8016 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
8017 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
8018 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
8019 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
8020 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
8021 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
8022 s-conca3.ads: Remove unneeded pragma Warnings
8024 2009-04-17 Robert Dewar <dewar@adacore.com>
8026 * g-moreex.adb: Add comments.
8028 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
8030 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
8033 * prepcomp.adb: Add ??? comment
8035 * a-tasatt.adb: Minor reformatting
8037 * g-trasym-vms-alpha.adb: Add ??? comment
8039 * g-trasym-vms-ia64.adb: Add ??? comment
8041 * xoscons.adb: Minor reformatting
8043 * s-tassta.adb: Minor reformatting
8045 * s-scaval.adb: Add ??? comment
8047 * stand.ads: Minor code clean up (remove junk with of Namet)
8049 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
8050 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
8051 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
8052 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
8053 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
8054 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
8055 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
8056 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
8057 Warnings off pragmas.
8059 2009-04-17 Pascal Obry <obry@adacore.com>
8061 * initialize.c: Fix test for reallocating the arguments array.
8063 2009-04-17 Geert Bosch <bosch@adacore.com>
8065 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
8066 conversion truncate only for decimal fixed point types.
8068 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
8070 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
8073 2009-04-17 Robert Dewar <dewar@adacore.com>
8075 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
8076 Backwards_OK if either operand has an address clause.
8078 2009-04-17 Pascal Obry <obry@adacore.com>
8080 * initialize.c: Code clean up, use realloc.
8082 2009-04-17 Pascal Obry <obry@adacore.com>
8084 * initialize.c: Do not get Unicode command line if Unicode support not
8086 Add support for wildcard expansion for Unicode parameters on Win32.
8088 * mingw32.h: Add missing macros when Unicode support not activated.
8090 2009-04-17 Javier Miranda <miranda@adacore.com>
8092 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
8093 avoid generating code that references the Current_Master
8094 when compiling without tasks.
8096 2009-04-17 Vincent Celier <celier@adacore.com>
8098 * prj-attr.adb: New project level attribute Target
8100 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
8103 * prj.ads (Project_Configuration): New component Target
8105 2009-04-17 Thomas Quinot <quinot@adacore.com>
8107 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
8108 case for the case of an aggregate component, the attach call for the
8109 result is actually needed.
8111 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
8112 an array aggregate must be disabled if the component type requires
8115 * exp_ch3.adb: Minor reformatting
8117 2009-04-17 Bob Duff <duff@adacore.com>
8119 * output.ads (Indent,Outdent): New procedures for indenting the output.
8120 (Write_Char): Correct comment -- LF _is_ allowed.
8122 * output.adb (Indent,Outdent): New procedures for indenting the output.
8123 Keep track of the indentation level, and make sure it doesn't get too
8125 (Flush_Buffer): Insert spaces at the beginning of each line, if
8126 indentation level is nonzero.
8127 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
8129 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
8130 "Next_Col := 1;". Flush_Buffer does that.
8132 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
8133 controlled by the -gnatdc switch. It now occurs on entry/exit to the
8134 relevant analysis routines, and calls Indent/Outdent to make the
8135 indentation reflect the nesting level. Add "helper" routines, since
8136 otherwise lots of "return;" statements would skip the debugging output.
8138 2009-04-17 Arnaud Charlet <charlet@adacore.com>
8140 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
8141 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
8142 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
8144 2009-04-17 Thomas Quinot <quinot@adacore.com>
8146 * exp_aggr.adb: Minor code reorganization, no behaviour change.
8148 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8150 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
8151 clause in a unit that is a package body or a subunit, when the previous
8152 clause appears in a spec or a parent.
8154 2009-04-17 Thomas Quinot <quinot@adacore.com>
8156 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
8158 * exp_ch7.adb: Minor reformatting
8160 2009-04-17 Bob Duff <duff@adacore.com>
8162 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
8163 allocator, check that the expression of the qualified expression obeys
8164 the constraints of the subtype of the qualified expression.
8166 2009-04-17 Thomas Quinot <quinot@adacore.com>
8168 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
8170 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8172 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
8173 aggregate, using context imposed by subtype mark in allocator.
8175 2009-04-17 Pascal Obry <obry@adacore.com>
8177 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
8179 2009-04-17 Nicolas Roche <roche@adacore.com>
8181 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
8184 2009-04-17 Gary Dismukes <dismukes@adacore.com>
8186 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
8187 cover both calls and attribute references ("call" => "reference").
8189 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8191 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
8192 type for which Storage_Size is set to 0 is legal in a pure unit.
8194 2009-04-17 Thomas Quinot <quinot@adacore.com>
8196 * exp_ch7.adb: Minor reformatting
8198 2009-04-17 Robert Dewar <dewar@adacore.com>
8200 * restrict.adb (Check_Restriction_No_Dependence): Don't check
8201 restriction if outside main extended source unit.
8203 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
8204 for parents of child units as well as the child unit itself.
8206 2009-04-17 Bob Duff <duff@adacore.com>
8208 * checks.ads: Minor comment fix
8210 * exp_aggr.ads: Minor comment fix
8212 2009-04-17 Nicolas Roche <roche@adacore.com>
8214 * adaint.c: Improve cross compiler detection and handling.
8216 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
8218 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
8220 2009-04-17 Pascal Obry <obry@adacore.com>
8222 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
8225 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
8226 value when no encoding form paramter is set on Text_IO services.
8228 * adaint.c: CurrentCodePage new variable on Windows.
8229 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
8232 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
8235 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
8236 environment variable value. Default is UTF-8.
8238 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
8239 fopen and freopen encoding parameter is now set to Unspecified.
8240 The default value is in this case UTF-8 (as it was before) but
8241 use the new macros that convert to/from the code page set
8242 at runtime (CurrentCodePage).
8244 * s-fileio.adb: When no encoding specified use Unspecified value.
8246 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8248 * atree.adb, atree.ads: Remove dead code.
8250 2009-04-17 Arnaud Charlet <charlet@adacore.com>
8252 * gcc-interface/Make-lang.in: Update dependencies.
8254 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8256 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
8257 illegal uses of incomplete types in formal parts and return types.
8259 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
8260 access to subprograms.
8262 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
8263 Taft-amendment types as the return type of an access_to_function type.
8265 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
8266 type for access_to_subprograms. The check is performed on package exit.
8268 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8270 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
8272 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
8274 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
8276 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
8277 semantic units, because the handling of itypes in the copied tree
8278 requires semantic information that does not belong in atree.
8280 2009-04-17 Robert Dewar <dewar@adacore.com>
8282 * par-ch6.adb: Minor reformatting
8284 * prj.adb: Minor reformatting
8286 2009-04-17 Gary Dismukes <dismukes@adacore.com>
8288 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
8289 on protected subprogram bodies, so exclude the case where Pf_Flags is
8290 Pf_Decl_Pbod from the error check.
8292 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
8293 indicators on subprograms in protected bodies, and proceed with parsing
8296 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
8297 subprograms from the check for primitiveness on subprograms with
8298 overriding indicators.
8299 (Check_Overriding_Indicator): Include protected subprograms in the
8300 style check for missing overriding indicators.
8302 2009-04-17 Tristan Gingold <gingold@adacore.com>
8304 * init.c: Fix stack checking for x86 Darwin.
8306 2009-04-17 Vincent Celier <celier@adacore.com>
8308 * prj-attr.adb: New project level attribute Object_File_Suffix
8311 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
8313 (Process_Compiler): Process attribute Object_File_Suffix
8315 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
8316 platform suffix, when specified.
8318 * prj.ads (Language_Config): New component Object_File_Suffix,
8319 defaulted to No_Name.
8320 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
8322 * snames.ads-tmpl: New standard name Object_File_Suffix
8324 2009-04-17 Robert Dewar <dewar@adacore.com>
8326 * gnat_rm.texi: Add documentation about No_Streams restriction
8328 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
8329 attributes when checking No_Streams restriction.
8331 2009-04-17 Thomas Quinot <quinot@adacore.com>
8333 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
8335 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
8336 missing calls to RE_Request_Destroy to deallocate request objects after
8339 2009-04-17 Nicolas Setton <setton@adacore.com>
8341 * link.c: Fix support for passing a response file under Darwin.
8343 2009-04-17 Emmanuel Briot <briot@adacore.com>
8345 * prj.adb (Free): new subprogram.
8347 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8349 * sem_ch3.adb: additional initialization on incomplete subtypes.
8351 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
8352 part and one of the formals is an incomplete tagged type, attach to
8353 list of private dependends of the type for later validation.
8355 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
8356 primitive operations of a Taft-amendmment type.
8358 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
8359 type. The check is performed on package exit, possibly after the
8360 subprogram is frozen.
8362 2009-04-17 Vincent Celier <celier@adacore.com>
8364 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
8365 before looking for source directories, but make sure that there are nil
8366 if they are not explicitely declared and there is explicitely no
8367 sources in the project.
8369 2009-04-17 Pascal Obry <obry@adacore.com>
8371 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
8373 * init.c: Fix minor typo and style fix.
8375 2009-04-17 Robert Dewar <dewar@adacore.com>
8377 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
8379 * sem_attr.adb (Analyze_Attribute, case Address): Use
8380 PE_Address_Of_Intrinsic.
8382 * types.ads: Add PE_Address_Of_Intrinsic
8384 * types.h: Add PE_Address_Of_Intrinsic
8386 2009-04-17 Nicolas Setton <setton@adacore.com>
8388 * gcc-interface/Makefile.in: Under darwin, build shared libraries
8389 with install_name starting with "@rpath/".
8391 2009-04-17 Nicolas Setton <setton@adacore.com>
8393 * link.c: Add darwin section
8395 2009-04-16 Robert Dewar <dewar@adacore.com>
8397 * g-pehage.adb: Minor reformatting
8399 * sem_ch12.adb: Minor reformatting
8401 * exp_dist.adb: Minor reformatting
8403 * bindgen.adb: Minor style fixes.
8405 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8407 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
8408 indexed components to the case where the prefix is a static string
8411 2009-04-16 Javier Miranda <miranda@adacore.com>
8413 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
8414 objects avoid any further expansion of the expression initializing the
8417 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8419 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
8420 that hides an outer homograph, make that homograph invisible when
8421 analyzing the actuals, to to prevent illegal direct visibility on it.
8423 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8425 * g-pehage.adb (Initialize): Fix off-by-one error.
8427 2009-04-16 Tristan Gingold <gingold@adacore.com>
8429 * init.c: Detect real stack overflow on Darwin.
8431 * system-darwin-x86.ads: Use stack probing on darwin x86.
8433 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8435 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
8436 take the address of an intrinsic subprogram.
8438 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8440 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
8441 for the targets where GNAT.Traceback.Symbolic is not supported.
8443 2009-04-16 Vincent Celier <celier@adacore.com>
8445 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
8447 * g-trasym.ads: Update comments.
8449 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8451 * tracebak.c (STOP_FRAME): Verify validity of the current address
8452 before dereferencing.
8454 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8456 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
8457 the original location of the index expressions and the index subtypes,
8458 to prevent spurious out-of-scope references in gigi.
8460 2009-04-16 Tristan Gingold <gingold@adacore.com>
8462 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
8463 Add support for stack checking on darwin.
8465 2009-04-16 Vincent Celier <celier@adacore.com>
8467 * prj-attr.adb: New attribute Runtime_Source_Dir
8469 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
8470 attribute Runtime_Source_Dir.
8471 (Check_Naming_Schemes): Give default values to out parameters to avoid
8474 * prj.ads (Language_Config): New component Runtime_Source_Dir
8476 * snames.ads-tmpl: New standard name Runtime_Source_Dir
8478 2009-04-16 Pascal Obry <obry@adacore.com>
8480 * adaint.h, adaint.c (__gnat_rmdir): New routine.
8481 Simple wrapper routines used to convert to proper encoding on
8484 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
8486 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
8489 2009-04-16 Pascal Obry <obry@adacore.com>
8491 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
8493 2009-04-16 Thomas Quinot <quinot@adacore.com>
8495 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
8496 integrated preprocessor.
8498 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
8499 (Initialize): Split into two subprograms, Initialize (to be called
8500 prior to compiler command line processing) and Setup_Hooks (to be called
8501 later on when the first source file is loaded).
8503 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
8504 Add call to Prep.Initialize.
8506 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
8507 to Prep.Setup_Hooks.
8509 2009-04-16 Pascal Obry <obry@adacore.com>
8511 * adaint.h, adaint.c (__gnat_chdir): New routine.
8512 Simple wrapper routines used to convert to proper encoding on
8515 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
8517 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
8519 2009-04-16 Quentin Ochem <ochem@adacore.com>
8521 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
8524 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8526 * a-convec.ads (Is_Empty): Mark inline.
8528 2009-04-16 Nicolas Roche <roche@adacore.com>
8530 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
8532 2009-04-16 Thomas Quinot <quinot@adacore.com>
8534 * prepcomp.adb: Minor reformatting
8536 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8538 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
8539 Access_Subprogram types can also be imported.
8540 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
8543 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8545 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8546 preserve homonym chain when the declaration is rewritten into a
8547 renaming declaration, in order to preserve visibility structure.
8549 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8551 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
8552 taken into account for VM targets.
8554 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8556 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
8558 (Year_Week_In_Year): New routine which contains the original code from
8559 Week_In_Year. Add the missing special case for January 1st falling on
8562 2009-04-16 Thomas Quinot <quinot@adacore.com>
8564 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
8565 actual type, use the base type to build the To_Any function.
8566 (Build_From_Any_Function): Remove junk, useless subtype conversion.
8568 2009-04-16 Thomas Quinot <quinot@adacore.com>
8570 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
8571 restrict.adb: Minor code reorganization (use
8572 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
8574 2009-04-16 Bob Duff <duff@adacore.com>
8576 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
8579 2009-04-16 Thomas Quinot <quinot@adacore.com>
8581 * sem_ch4.adb: Minor reformatting
8583 * adaint.c: Remove junk duplicated code.
8585 * sem_ch3.adb: Minor reformatting
8587 * exp_dist.adb: Minor comment rewording
8589 2009-04-16 Robert Dewar <dewar@adacore.com>
8591 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
8594 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8596 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
8597 usable before calling Add_One_Interp, to resolve spurious ambiguities.
8599 2009-04-16 Robert Dewar <dewar@adacore.com>
8601 * Make-lang.in: Add entries for s-conca?.o
8603 * Makefile.rtl: Add entries for s-conca?
8605 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
8606 of concatenation expansion
8608 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
8609 string cases instead of expanding assignments inline.
8611 * opt.ads (Optimize_Size): New flag
8613 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
8614 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
8615 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
8616 s-conca9.adb, s-conca9.ads: New file.
8618 2009-04-16 Robert Dewar <dewar@adacore.com>
8620 * exp_ch6.adb: Add comments
8622 * rtsfind.ads: Add entries for s-conca? routines
8624 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8626 * gcc-interface/Make-lang.in: Update dependencies.
8628 * gcc-interface/Makefile.in: Update translation for vms.
8630 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8632 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
8633 and made global, to be used when installing parents of a child
8634 instance, to provide mappings for entities declared in formal packages
8635 of ancestor units. Now called from Install_Formal_Packages.
8637 2009-04-16 Doug Rupp <rupp@adacore.com>
8639 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
8640 notation for clarity.
8642 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8643 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
8644 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
8645 (Initialize): Initialize Known_Tasks with Environment task.
8647 * s-taskin.ads (Task_States): Move new states to end for the sake of
8650 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
8652 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8654 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
8655 operation has an inline pragma, propagate the flag to the internal
8656 unprotected subprogram.
8658 2009-04-16 Doug Rupp <rupp@adacore.com>
8660 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
8661 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
8662 s-taprop-hpux-dce.adb, s-taprop-posix.adb
8663 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
8665 * s-taprop-vms.adb (Enter_Task): Likewise.
8666 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
8668 * s-tassta.adb (Activate_Tasks): After task creation set state to
8669 Activating, vice Runnable. Initialize Known_Tasks, moved here from
8670 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
8671 Set state to Runnable after above.
8672 (Task_Wrapper): Set Debug_Event_Run. In exception block set
8673 Debug_Event_Terminated.
8675 * s-taskin.ads (Task_States): Add new states Activiting and
8676 Activator_Delay_Sleep.
8677 (Bit_Array, Debug_Event_Array): New types.
8678 (Global_Task_Debug_Event_Set: New flag.
8679 (Common_ATCB): New field Debug_Events.
8681 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
8683 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
8686 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
8687 Activating and when Acceptor_Delay_Sleep.
8689 * s-tasdeb.ads: Add constants for Debug_Events.
8690 (Debug_Event_Kind_Type): New subtype.
8691 (Signal_Debug_Event): New subprogram.
8693 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
8695 2009-04-16 Thomas Quinot <quinot@adacore.com>
8697 * sem_elim.adb: Minor reformatting
8699 * freeze.adb: Minor reformatting
8701 * exp_ch4.adb: Minor reformatting
8703 2009-04-16 Emmanuel Briot <briot@adacore.com>
8705 * prj-nmsc.adb (Path_Name_Of): fix memory leak
8707 2009-04-16 Robert Dewar <dewar@adacore.com>
8709 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
8711 2009-04-16 Vincent Celier <celier@adacore.com>
8713 * fmap.adb (Initialize): Show the current line when the mapping file
8714 is detected as "incorrectly formatted".
8716 2009-04-16 Robert Dewar <dewar@adacore.com>
8718 * sem_ch12.adb: Minor reformatting
8720 * sem_ch5.adb: Minor comment addition
8722 * sem_util.adb: Minor reformatting
8724 * sinput-p.adb: Minor reformatting
8725 Add missing pragma Warnings (On)
8727 2009-04-16 Ed Falis <falis@adacore.com>
8729 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
8731 2009-04-16 Vincent Celier <celier@adacore.com>
8733 * ali-util.adb: Minor comment spelling error fix
8735 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8737 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
8738 generate an assignment loop in case of overlap.
8740 2009-04-16 Olivier Hainque <hainque@adacore.com>
8742 * gnat_ugn.texi (gnatmem description): Make it explicit that
8743 gnatmem is designed to work in association with static runtime
8746 2009-04-16 Thomas Quinot <quinot@adacore.com>
8748 * sem_type.adb: Minor reformatting
8750 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8752 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
8753 concerning return codes of gettimeofday and return value check.
8755 2009-04-16 Ed Falis <falis@adacore.com>
8757 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
8758 body can be renaming of imported routines.
8760 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8762 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
8765 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8767 * exp_ch9.adb: Comment improvements.
8768 (Build_Entry_Family_Name): Add parentheses around the index of a entry
8771 2009-04-15 Bob Duff <duff@adacore.com>
8773 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
8774 "while X /= null loop" where X is unchanged inside the loop. We were
8775 not warning in this case, because of the pointers -- we feared that the
8776 loop variable could be updated via a pointer, if there are any pointers
8777 around the place. But that is impossible in this case.
8779 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
8780 the case of dereferences. In X.all, X cannot be an l-value. We now
8781 catch that case (and implicit dereferences, too).
8783 2009-04-15 Vincent Celier <celier@adacore.com>
8785 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
8787 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8789 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
8791 (Analyze_Package_Instantiation): If generic unit in child instance is
8792 the same as generic unit in parent instance, look for an outer homonym
8793 to locate the desired generic.
8795 2009-04-15 Bob Duff <duff@adacore.com>
8797 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
8798 warnings unless the loop comes from source, because checking generated
8799 loops is a waste of time, and makes it harder to debug
8800 Check_Infinite_Loop_Warning.
8802 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
8803 tested in the while loop is a renaming, do not warn. Otherwise, we get
8804 false alarms, because it's usually renaming something that we can't
8805 deal with (an indexed component, a global variable, ...).
8807 * gnat_rm.texi: Fix typo
8809 2009-04-15 Thomas Quinot <quinot@adacore.com>
8811 * sem_ch6.adb: Minor reformatting
8813 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8815 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
8816 immediate parent of the controlled function call is a component
8819 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8821 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
8822 corresponding class-wide type is also in use.
8824 2009-04-15 Thomas Quinot <quinot@adacore.com>
8826 * frontend.adb: Minor comment fix
8828 2009-04-15 Robert Dewar <dewar@adacore.com>
8830 * gnatchop.adb (BOM_Length): New global variable
8831 (Write_Unit): Add new parameter Write_BOM
8832 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
8835 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
8837 2009-04-15 Geert Bosch <bosch@adacore.com>
8839 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
8840 (Backend_Overflow_Checks): Set to True.
8842 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8844 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
8845 keyword is given in a record extension.
8847 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8849 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
8850 of a controlled function call in the context of a record aggregate.
8851 This does not apply to array aggregates since the call will be expanded
8854 2009-04-15 Ed Falis <falis@adacore.com>
8856 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
8857 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
8858 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
8859 s-osinte-vxworks* and s-vxwext*.
8861 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8863 * gcc-interface/Make-lang.in: Update dependencies.
8865 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
8868 2009-04-15 Robert Dewar <dewar@adacore.com>
8870 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
8871 of node for location for warning messages.
8873 * gnatchop.adb: Minor reformatting
8875 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8877 * exp_ch6.adb: additional guard for renaming declarations for in
8878 parameters of an array type.
8880 2009-04-15 Robert Dewar <dewar@adacore.com>
8882 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
8883 in case they were rewritten by expander (Force_Evaluation).
8885 * targparm.adb (Get_Target_Parameters): Correct check for
8886 Suppress_Exception_Locations.
8888 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8890 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
8891 inlined is of an array type that is not bit-packed, use a renaming
8892 declaration to capture its value, rather than a constant declaration.
8894 2009-04-15 Robert Dewar <dewar@adacore.com>
8896 * rtsfind.adb: Minor reformatting.
8898 2009-04-15 Emmanuel Briot <briot@adacore.com>
8900 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
8901 Restore, and free the saved context.
8903 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8905 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
8906 for illegal private extension from a synchronized interface parent in
8907 front of check for illegal limited extension so that limited extension
8908 from a synchronized interface will be rejected.
8909 (Check_Ifaces): Check that a private extension that has a synchronized
8910 interface as a progenitor must be explicitly declared synchronized.
8911 Also check that a record extension cannot derive from a synchronized
8914 2009-04-15 Pascal Obry <obry@adacore.com>
8916 * adaint.h (__gnat_unlink): Add spec.
8917 (__gnat_rename): Likewise.
8919 2009-04-15 Vincent Celier <celier@adacore.com>
8921 * prj-nmsc.adb: Minor spelling error corrections in error messages
8923 2009-04-15 Robert Dewar <dewar@adacore.com>
8925 * sinfo.ads: Minor comment update
8927 * opt.ads: Minor comment updates
8929 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
8932 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8934 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
8935 that generates the code needed to update a dispatch table when a
8936 primitive operation is declared with a subprogram body without previous
8937 spec. Insertion of the generated code is responsibility of the caller.
8938 (Make_DT): When building static tables, append the code created by
8939 Register_Primitive to update a secondary table after it has been
8942 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
8944 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
8945 on an overriding operation that implements an interface operation only
8946 if not building static dispatch tables.
8948 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8950 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
8951 does not cause overflow when converted to Duration. Use the safe value
8952 as the maximum allowable time delay..
8954 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
8956 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
8957 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
8958 translated to "-j 2".
8960 2009-04-15 Bob Duff <duff@adacore.com>
8962 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
8963 with_clauses, to avoid code duplication. Change this processing so we
8964 always add a with_clause on the main unit if needed.
8966 2009-04-15 Pascal Obry <obry@adacore.com>
8968 Add support for Win32 native encoding for delete/rename routines.
8970 * adaint.c (__gnat_unlink): New routine.
8971 (__gnat_rename): New routine.
8972 Simple wrapper routines used to convert to proper encoding on
8975 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
8976 call to the C library.
8978 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
8980 2009-04-15 Robert Dewar <dewar@adacore.com>
8982 * s-tassta.adb: Minor reformatting
8984 2009-04-15 Robert Dewar <dewar@adacore.com>
8986 * frontend.adb (Frontend): Set proper default for
8987 Warn_On_Non_Local_Exception.
8989 * opt.ads (Exception_Handler_Encountered): New flag
8990 (No_Warn_On_Non_Local_Exception): New flag
8992 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
8994 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8995 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8997 2009-04-15 Cyrille Comar <comar@adacore.com>
8999 * s-tassta.adb, a-exextr.adb, a-elchha.adb
9000 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
9001 message when exception traces are active since it would generate
9002 redundant information.
9003 (Exception_Traces.Notify_Exception): put message output by a critical
9004 section to avoid unsynchronized output.
9005 (Trace_Unhandled_Exception_In_Task): put message output by a critical
9006 section to avoid unsynchronized output.
9008 2009-04-15 Emmanuel Briot <briot@adacore.com>
9010 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
9011 (Free): New subprogram.
9013 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
9015 * a-calend.adb: Add new constant Nanos_In_Four_Years.
9016 (Formatting_Operations.Time_Of): Change the way four year chunks of
9017 nanoseconds are added to the intermediate result.
9019 2009-04-15 Nicolas Setton <setton@adacore.com>
9021 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
9022 does not need to wait for a carriage return.
9024 2009-04-15 Tristan Gingold <gingold@adacore.com>
9026 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
9029 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9031 * freeze.adb (Freeze_Entity): improve error message for improper use of
9033 Diagnose additional illegal uses of incomplete types in formal parts.
9034 appearing in formal parts.
9036 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
9038 2009-04-15 Robert Dewar <dewar@adacore.com>
9040 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
9042 2009-04-15 Nicolas Roche <roche@adacore.com>
9044 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
9047 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
9049 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
9051 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9053 * sem_ch4.adb: improve error message on exponentiation.
9055 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
9057 * a-calend.adb: Move constant Epoch_Offset from package
9058 Conversion_Operations to top level.
9059 (Delay_Operations.To_Duration): Define a constant which represents
9060 "end of time" and use it as a guard against very distant delay dates.
9061 Protect the code against overflow when performing the origin shift to
9064 2009-04-15 Robert Dewar <dewar@adacore.com>
9066 * sem_prag.adb: Minor reformatting.
9068 * sem_type.adb: Minor reformatting
9070 2009-04-15 Javier Miranda <miranda@adacore.com>
9072 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
9073 support to check eliminated subprograms.
9075 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
9077 * sem_elim.adb (Set_Eliminated): Add support for elimination of
9078 dispatching subprograms.
9080 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
9081 operations. Initialize with "null" the slots of eliminated dispaching
9083 (Write_DT): Add output for eliminated primitives.
9085 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
9087 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9089 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
9090 the second is redundant, regardless of scopes.
9092 2009-04-15 Vincent Celier <celier@adacore.com>
9094 * prj-nmsc.adb (Get_Directories): Check for sources before checking
9095 the object directory as when there are no sources, they may not be any
9098 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
9099 directory, when there are no exec directory.
9101 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9103 * sem_type.adb (Remove_Conversions): In order to resolve spurious
9104 ambiguities, refine removal of universal interpretations from complex
9105 expressions with literal arguments, when some numeric operators have
9106 been declared abstract.
9108 2009-04-15 Ed Falis <falis@adacore.com>
9110 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
9111 and backward compatibility for targets using probing for stack overflow
9113 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9115 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
9116 after any declaration, including renaming declarations.
9118 2009-04-15 Arnaud Charlet <charlet@adacore.com>
9120 * gcc-interface/Make-lang.in: Update dependencies.
9122 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
9123 Update xenomai target pairs.
9125 2009-04-15 Javier Miranda <miranda@adacore.com>
9127 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9129 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
9130 functions returning anonymous access to class-wide limited types. Mark
9131 also the containing scope as a task master.
9133 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
9134 limited-withed packages. Required to restore their visibility after
9135 processing packages associated with implicit with-clauses.
9137 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
9138 associated with return statements because this work is now done by
9139 Check_Anonymous_Return.
9140 (Build_Master): Code cleanup.
9142 2009-04-15 Thomas Quinot <quinot@adacore.com>
9144 * sem_warn.ads: Minor reformatting
9146 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9148 * sem_ch3.adb: better error message for illegal interfaces
9150 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
9151 formal is an incomplete type from a limited_with clause.
9153 2009-04-15 Vincent Celier <celier@adacore.com>
9155 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
9156 Externally_Built indicating if the project is externally built. If it
9157 is, and --subdirs is specified, but the subdir does not exist, look
9158 for the specified directory, without the subdir.
9160 2009-04-15 Gary Dismukes <dismukes@adacore.com>
9162 * a-tasatt.adb: Fix typo, plus minor reformatting
9164 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
9166 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
9168 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9170 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
9171 private extension whose parent is a synchronized interface carries an
9172 explicit synchronized keyword.
9174 2009-04-15 Thomas Quinot <quinot@adacore.com>
9176 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
9177 instantiate generic shared object package with the corresponding
9180 2009-04-15 Arnaud Charlet <charlet@adacore.com>
9182 * system-linux-sparc.ads: Remove obsolete entries.
9184 2009-04-15 Thomas Quinot <quinot@adacore.com>
9186 * s-tasuti.ads: Add ??? comment
9188 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9190 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
9191 type even if the designated type comes from a limited_with clause, to
9192 ensure that the symbol for the finalization list of the access type is
9195 2009-04-10 Robert Dewar <dewar@adacore.com>
9197 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
9198 for warning suppression.
9200 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9202 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
9203 identical, there is no redudancy to check.
9205 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9207 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
9208 calls initializing SS_Allocator (which is initialized in following
9210 (Expand_Simple_Function_Return): Add comment about False value for
9211 Comes_From_Source on secondary-stack allocator.
9213 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
9214 (Build_Entry_Name): Add comment.
9216 2009-04-10 Robert Dewar <dewar@adacore.com>
9218 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
9220 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
9221 bound tested, since this is now done more generally in Sem_Res.
9223 * sem_res.adb (Resolve_Comparison_Op): Add call to
9224 Check_Lower_Bound_Tested.
9225 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
9227 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
9228 (Low_Bound_Tested): New name for Low_Bound_Known flag
9230 * exp_ch5.adb: Minor reformatting
9233 Add comments on copying the Comes_From_Source flag for allocators
9236 Add comments on copying the Comes_From_Source flag for allocators
9238 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
9239 Comes_From_Source flag from old allocator to new one.
9241 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9243 * sem_ch6.ads: Address missing documentation query
9245 2009-04-10 Vincent Celier <celier@adacore.com>
9248 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
9249 and Response_File_Switches.
9251 * prj-nmsc.adb (Process_Linker): Process new attributes
9252 Max_Command_Line_Length, Response_File_Format and
9253 Response_File_Switches.
9255 * prj.ads (Response_File_Format): New enumeration type
9256 (Project_Configuration): New componants Max_Command_Line_Length,
9257 Resp_File_Format and Resp_File_Options.
9259 * snames.ads-tmpl: Add new standard names for linking response files
9260 for gprbuild: GNU, None, Object_List, Option_List,
9261 Max_Command_Line_Length, Response_File_Format and
9262 Response_File_Switches.
9264 2009-04-10 Geert Bosch <bosch@adacore.com>
9266 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
9267 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
9268 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
9269 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
9270 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
9271 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
9272 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
9273 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
9274 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
9275 system-vxworks-arm.ads, system-vxworks-m68k.ads,
9276 system-vxworks-mips.ads, system-vxworks-ppc.ads,
9277 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
9278 (Backend_Overflow_Checks): Set to True.
9280 2009-04-10 Thomas Quinot <quinot@adacore.com>
9282 * exp_attr.adb: Minor reformatting
9284 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9286 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
9287 analyze the expression for a postcondition, even if the compiler mode
9290 2009-04-10 Robert Dewar <dewar@adacore.com>
9292 * sem_aux.adb: Minor reformatting
9294 2009-04-10 Ed Falis <falis@adacore.com>
9296 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
9298 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
9300 2009-04-10 Thomas Quinot <quinot@adacore.com>
9302 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
9303 undocumented formal.
9306 * a-direio.ads: Fix typo in comment
9308 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
9309 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
9310 Use uniform phrasing for comment at start of subprogram body.
9312 * xsnamest.adb: Add note to explain why we use specific names for the
9313 newly generated files instead of generating snames.{ads,adb,h} directly
9315 2009-04-10 Sergey Rybin <rybin@adacore.com>
9318 Add qualifier for new gnatstub option '--no-exception'
9321 Add the description of the new gnatstub option '--no-exception'
9323 2009-04-10 Robert Dewar <dewar@adacore.com>
9325 * rtsfind.adb: Minor reformatting
9327 2009-04-10 Thomas Quinot <quinot@adacore.com>
9329 * sem_disp.adb: Minor reformatting.
9330 Add comment pointing to RM clause for the case of warning against a
9331 (failed) attempt at declaring a primitive operation elsewhere than in a
9334 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9336 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
9337 an actual for a previous formal package of the current instance.
9339 2009-04-10 Bob Duff <duff@adacore.com>
9341 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
9342 them first, rather than on the extended main unit.
9344 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9346 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
9347 specification of full view carries a null exclusion indicator, create
9348 an itype for it, to check for conformance with partial view.
9350 2009-04-10 Bob Duff <duff@adacore.com>
9352 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
9354 * rtsfind.adb: Minor comment changes, and remove useless code.
9356 * sinfo.ads: Add ??? comment.
9358 2009-04-10 Vincent Celier <celier@adacore.com>
9360 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
9362 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9364 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
9365 type is a synchronized type, retrieve tag information from the
9366 corresponding record, which has the dispatch table link.
9368 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
9370 * g-comlin.adb (Group_Analysis): Take care of switches that might be
9371 decomposed afterwards, but are present as-is in the command line
9372 configuration, and thus should be kept as-is.
9374 2009-04-10 Robert Dewar <dewar@adacore.com>
9376 * gnat_rm.texi: Document that postconditions are tested on implicit
9379 * sem_aux.adb: Minor reformatting
9381 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9383 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
9386 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
9387 Null_Exclusion_In_Return_Present when an access-to-function type has a
9388 result type with an explicit not null.
9390 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
9391 given on the result type, then create a null-excluding itype for the
9394 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
9395 the case where a null exclusion is imposed on a named access type.
9396 (Analyze_Subprogram_Specification): Push and pop the scope of the
9397 function around the call to Analyze_Return_Type in the case of no
9398 formals, for consistency with handling when formals are present
9399 (Process_Formals does this). Ensures that any itype created for the
9400 return type will be associated with the proper scope.
9402 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
9403 exclusion is given on a generic function's result type, then create a
9404 null-excluding itype for the generic function.
9405 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
9406 for an actual for a formal in object according to the setting on the
9407 formal. Ensures null exclusion checks are done when the association is
9410 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
9411 N_Access_Function_Definition.
9413 * sinfo.adb: Add Get_ and Set_ operations for
9414 Null_Exclusion_In_Return_Present.
9416 2009-04-10 Bob Duff <duff@adacore.com>
9418 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
9419 call to the _Postconditions procedure in the case of implicit returns
9420 from analysis to expansion. This eliminates some duplicated code. Use
9421 the Postcondition_Proc to find the identity of this procedure during
9424 2009-04-10 Robert Dewar <dewar@adacore.com>
9426 * sem_ch6.adb: Minor code clean up.
9428 * einfo.ads, sem_attr.adb: Minor comment fixes.
9430 2009-04-10 Robert Dewar <dewar@adacore.com>
9432 * sem_ch8.adb: Minor reformatting
9434 2009-04-10 Robert Dewar <dewar@adacore.com>
9436 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
9439 * sem_ch6.adb: Minor code clean up.
9441 2009-04-10 Robert Dewar <dewar@adacore.com>
9443 * mlib-tgt-specific-xi.adb: Minor reformatting
9445 2009-04-10 Bob Duff <duff@adacore.com>
9447 * einfo.ads: Minor comment fixes
9449 2009-04-10 Vincent Celier <celier@adacore.com>
9451 * snames.ads-tmpl: Remove names that are no longer used in the
9453 Mark specifically those that are used only in gprbuild
9455 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
9457 * init.c: Adjust EH support code on Alpha/Tru64.
9459 2009-04-10 Bob Duff <duff@adacore.com>
9461 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
9462 procedure on every path that could return implicitly (not via a return
9463 statement) from a procedure.
9465 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9467 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
9468 valid scope for a task declarations and therefore for a master id.
9470 2009-04-10 Robert Dewar <dewar@adacore.com>
9472 * sem_aux.adb: Minor reformatting
9474 2009-04-10 Vincent Celier <celier@adacore.com>
9476 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
9478 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
9479 (Set_Obsolescent_Check): New procedure to change the value of
9480 Obsolescent_Check_Flag.
9482 * scn.ads (Set_Obsolescent_Check): New procedure to control
9485 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
9486 obsolescent features while preprocessing.
9488 2009-04-10 Thomas Quinot <quinot@adacore.com>
9490 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
9491 generated files on all platforms.
9493 2009-04-10 Robert Dewar <dewar@adacore.com>
9495 * sem_aux.adb: Minor reformatting
9497 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9499 * sem_ch3.adb (Access_Definition): Handle properly the case of a
9500 protected function with formals that returns an anonymous access type.
9502 2009-04-10 Thomas Quinot <quinot@adacore.com>
9504 * sem_disp.adb: Minor reformatting
9506 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
9508 * seh_init.c: Do not use the 32-bit specific implementation of
9509 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
9512 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9514 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
9515 a '/' at the end so we better use the complete target name to determine
9516 whether it is a PowerPC 55xx target.
9518 2009-04-10 Thomas Quinot <quinot@adacore.com>
9520 * sem_eval.adb: Minor reformatting
9522 2009-04-10 Thomas Quinot <quinot@adacore.com>
9524 * snames.h, snames.ads, snames.adb: Remove files, now generated from
9527 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
9530 * xsnamest.adb: New file.
9532 * gcc-interface/Make-lang.in: New target for automated generation of
9533 snames.ads, snames.adb and snames.h
9535 2009-04-10 Tristan Gingold <gingold@adacore.com>
9537 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
9538 avoid compile time warnings.
9539 Do not add gcc/config in include search list while compiling the RTS.
9540 Pragma Thread_Local_Storage is available on any target.
9542 2009-04-10 Bob Duff <duff@adacore.com>
9544 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
9546 2009-04-10 Tristan Gingold <gingold@adacore.com>
9548 * init.c: Install signal handler on Darwin.
9550 2009-04-10 Robert Dewar <dewar@adacore.com>
9552 * sem_prag.adb: Minor reformatting
9554 * exp_util.adb (Make_Non_Empty_Check): New function
9555 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
9556 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
9558 2009-04-10 Arnaud Charlet <charlet@adacore.com>
9560 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
9562 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9564 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
9565 tool prefix for AVR and PowerPC 55xx targets.
9567 2009-04-10 Robert Dewar <dewar@adacore.com>
9569 * sem_warn.adb (Within_Postcondition): New function
9570 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
9572 2009-04-10 Robert Dewar <dewar@adacore.com>
9574 * sem_warn.adb: Minor reformatting
9576 * make.adb: Minor reformatting.
9578 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9580 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
9581 entity and the scope is a subprogram, retrieve the Sloc of the
9582 subprogram's body rather than using the sloc of the spec, for better
9583 line-stepping behavior in gdb.
9584 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
9585 controller, use the Sloc of the first declaration of the containing list
9586 rather than that of the node that triggered creation of the list
9589 2009-04-10 Vincent Celier <celier@adacore.com>
9591 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
9592 to avoid gcc warning.
9594 2009-04-10 Robert Dewar <dewar@adacore.com>
9596 * g-comlin.adb: Add ??? comment
9598 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9600 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
9601 unreferenced entities for a package with no visible declarations.
9603 2009-04-10 Robert Dewar <dewar@adacore.com>
9605 * exp_ch9.adb: Minor reformatting
9607 2009-04-10 Thomas Quinot <quinot@adacore.com>
9609 * sem_prag.adb: Minor reformatting
9611 2009-04-10 Vincent Celier <celier@adacore.com>
9614 (Check_Library_Attributes): For a project qualified as a library project
9615 that is not a library project, indicate in the error message which
9616 attributes are missing (Library_Dir and/or Library_Name).
9618 2009-04-10 Bob Duff <duff@adacore.com>
9620 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
9621 generated nodes, because it might confuse various circuits in the FE.
9623 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9625 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
9626 of pragma. It will be recopied and analyzed when used in call to
9629 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
9630 initialization operations and recognize use of it in procedure calls
9633 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
9634 argument, because it may have side-effects.
9636 * exp_ch2.adb: Remove obsolete comments on default functions
9638 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9640 * adaint.c (RTX section): Do for RTX the same thing as we do for
9641 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
9643 2009-04-10 Robert Dewar <dewar@adacore.com>
9645 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
9647 * sem_res.adb (Resolve_Call): Fix test for
9648 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
9649 a non-dynamic scope).
9651 2009-04-10 Robert Dewar <dewar@adacore.com>
9653 * make.adb: Add comment.
9656 2009-04-10 Nicolas Setton <setton@adacore.com>
9658 * s-osprim-darwin.adb: New file.
9660 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
9662 2009-04-10 Thomas Quinot <quinot@adacore.com>
9664 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
9666 2009-04-09 Nick Clifton <nickc@redhat.com>
9668 * adadecode.h: Change copyright header to refer to version
9669 3 of the GNU General Public License with version 3.1 of the
9670 GCC Runtime Library Exception and to point readers at the
9671 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
9673 * 9drpc.adb: Likewise.
9674 * a-assert.adb: Likewise.
9675 * a-astaco.adb: Likewise.
9676 * a-calari.adb: Likewise.
9677 * a-calcon.adb: Likewise.
9678 * a-calcon.ads: Likewise.
9679 * a-caldel.ads: Likewise.
9680 * a-calend-vms.adb: Likewise.
9681 * a-calend-vms.ads: Likewise.
9682 * a-calend.adb: Likewise.
9683 * a-calend.ads: Likewise.
9684 * a-calfor.adb: Likewise.
9685 * a-catizo.adb: Likewise.
9686 * a-cdlili.adb: Likewise.
9687 * a-cdlili.ads: Likewise.
9688 * a-cgaaso.adb: Likewise.
9689 * a-cgaaso.ads: Likewise.
9690 * a-cgarso.adb: Likewise.
9691 * a-cgcaso.adb: Likewise.
9692 * a-chacon.adb: Likewise.
9693 * a-chacon.ads: Likewise.
9694 * a-chahan.adb: Likewise.
9695 * a-chahan.ads: Likewise.
9696 * a-chlat9.ads: Likewise.
9697 * a-chtgke.adb: Likewise.
9698 * a-chtgke.ads: Likewise.
9699 * a-chtgop.adb: Likewise.
9700 * a-chtgop.ads: Likewise.
9701 * a-chzla1.ads: Likewise.
9702 * a-chzla9.ads: Likewise.
9703 * a-cidlli.adb: Likewise.
9704 * a-cidlli.ads: Likewise.
9705 * a-cihama.adb: Likewise.
9706 * a-cihama.ads: Likewise.
9707 * a-cihase.adb: Likewise.
9708 * a-cihase.ads: Likewise.
9709 * a-ciorma.adb: Likewise.
9710 * a-ciorma.ads: Likewise.
9711 * a-ciormu.adb: Likewise.
9712 * a-ciormu.ads: Likewise.
9713 * a-ciorse.adb: Likewise.
9714 * a-ciorse.ads: Likewise.
9715 * a-clrefi.adb: Likewise.
9716 * a-clrefi.ads: Likewise.
9717 * a-cohama.adb: Likewise.
9718 * a-cohama.ads: Likewise.
9719 * a-cohase.adb: Likewise.
9720 * a-cohase.ads: Likewise.
9721 * a-cohata.ads: Likewise.
9722 * a-coinve.adb: Likewise.
9723 * a-coinve.ads: Likewise.
9724 * a-colien.adb: Likewise.
9725 * a-colien.ads: Likewise.
9726 * a-colire.adb: Likewise.
9727 * a-colire.ads: Likewise.
9728 * a-comlin.adb: Likewise.
9729 * a-comlin.ads: Likewise.
9730 * a-convec.adb: Likewise.
9731 * a-convec.ads: Likewise.
9732 * a-coorma.adb: Likewise.
9733 * a-coorma.ads: Likewise.
9734 * a-coormu.adb: Likewise.
9735 * a-coormu.ads: Likewise.
9736 * a-coorse.adb: Likewise.
9737 * a-coorse.ads: Likewise.
9738 * a-coprnu.adb: Likewise.
9739 * a-coprnu.ads: Likewise.
9740 * a-crbltr.ads: Likewise.
9741 * a-crbtgk.adb: Likewise.
9742 * a-crbtgk.ads: Likewise.
9743 * a-crbtgo.adb: Likewise.
9744 * a-crbtgo.ads: Likewise.
9745 * a-crdlli.adb: Likewise.
9746 * a-crdlli.ads: Likewise.
9747 * a-cwila1.ads: Likewise.
9748 * a-cwila9.ads: Likewise.
9749 * a-decima.adb: Likewise.
9750 * a-decima.ads: Likewise.
9751 * a-diocst.adb: Likewise.
9752 * a-diocst.ads: Likewise.
9753 * a-direct.adb: Likewise.
9754 * a-direct.ads: Likewise.
9755 * a-direio.adb: Likewise.
9756 * a-direio.ads: Likewise.
9757 * a-dirval-mingw.adb: Likewise.
9758 * a-dirval-vms.adb: Likewise.
9759 * a-dirval.adb: Likewise.
9760 * a-dirval.ads: Likewise.
9761 * a-dynpri.adb: Likewise.
9762 * a-einuoc.adb: Likewise.
9763 * a-einuoc.ads: Likewise.
9764 * a-elchha.adb: Likewise.
9765 * a-elchha.ads: Likewise.
9766 * a-envvar.adb: Likewise.
9767 * a-excach.adb: Likewise.
9768 * a-except-2005.adb: Likewise.
9769 * a-except-2005.ads: Likewise.
9770 * a-except.adb: Likewise.
9771 * a-except.ads: Likewise.
9772 * a-excpol-abort.adb: Likewise.
9773 * a-excpol.adb: Likewise.
9774 * a-exctra.adb: Likewise.
9775 * a-exctra.ads: Likewise.
9776 * a-exetim-mingw.adb: Likewise.
9777 * a-exetim-mingw.ads: Likewise.
9778 * a-exexda.adb: Likewise.
9779 * a-exexpr-gcc.adb: Likewise.
9780 * a-exexpr.adb: Likewise.
9781 * a-exextr.adb: Likewise.
9782 * a-exstat.adb: Likewise.
9783 * a-filico.adb: Likewise.
9784 * a-filico.ads: Likewise.
9785 * a-finali.adb: Likewise.
9786 * a-finali.ads: Likewise.
9787 * a-interr.ads: Likewise.
9788 * a-intnam-aix.ads: Likewise.
9789 * a-intnam-darwin.ads: Likewise.
9790 * a-intnam-dummy.ads: Likewise.
9791 * a-intnam-freebsd.ads: Likewise.
9792 * a-intnam-hpux.ads: Likewise.
9793 * a-intnam-irix.ads: Likewise.
9794 * a-intnam-linux.ads: Likewise.
9795 * a-intnam-lynxos.ads: Likewise.
9796 * a-intnam-mingw.ads: Likewise.
9797 * a-intnam-rtems.ads: Likewise.
9798 * a-intnam-solaris.ads: Likewise.
9799 * a-intnam-tru64.ads: Likewise.
9800 * a-intnam-vms.ads: Likewise.
9801 * a-intnam-vxworks.ads: Likewise.
9802 * a-intsig.adb: Likewise.
9803 * a-intsig.ads: Likewise.
9804 * a-ngcefu.adb: Likewise.
9805 * a-ngcoar.adb: Likewise.
9806 * a-ngcoty.adb: Likewise.
9807 * a-ngcoty.ads: Likewise.
9808 * a-ngelfu.adb: Likewise.
9809 * a-ngrear.adb: Likewise.
9810 * a-ngrear.ads: Likewise.
9811 * a-nudira.adb: Likewise.
9812 * a-nudira.ads: Likewise.
9813 * a-nuflra.adb: Likewise.
9814 * a-nuflra.ads: Likewise.
9815 * a-numaux-darwin.adb: Likewise.
9816 * a-numaux-darwin.ads: Likewise.
9817 * a-numaux-libc-x86.ads: Likewise.
9818 * a-numaux-vxworks.ads: Likewise.
9819 * a-numaux-x86.adb: Likewise.
9820 * a-numaux-x86.ads: Likewise.
9821 * a-numaux.ads: Likewise.
9822 * a-rbtgso.adb: Likewise.
9823 * a-rbtgso.ads: Likewise.
9824 * a-reatim.ads: Likewise.
9825 * a-retide.adb: Likewise.
9826 * a-retide.ads: Likewise.
9827 * a-rttiev.adb: Likewise.
9828 * a-rttiev.ads: Likewise.
9829 * a-secain.adb: Likewise.
9830 * a-secain.ads: Likewise.
9831 * a-sequio.adb: Likewise.
9832 * a-sequio.ads: Likewise.
9833 * a-shcain.adb: Likewise.
9834 * a-shcain.ads: Likewise.
9835 * a-siocst.adb: Likewise.
9836 * a-siocst.ads: Likewise.
9837 * a-slcain.adb: Likewise.
9838 * a-slcain.ads: Likewise.
9839 * a-ssicst.adb: Likewise.
9840 * a-ssicst.ads: Likewise.
9841 * a-stboha.adb: Likewise.
9842 * a-stmaco.ads: Likewise.
9843 * a-storio.adb: Likewise.
9844 * a-strbou.adb: Likewise.
9845 * a-strbou.ads: Likewise.
9846 * a-stream.ads: Likewise.
9847 * a-strfix.adb: Likewise.
9848 * a-strhas.adb: Likewise.
9849 * a-strmap.adb: Likewise.
9850 * a-strmap.ads: Likewise.
9851 * a-strsea.adb: Likewise.
9852 * a-strsea.ads: Likewise.
9853 * a-strsup.adb: Likewise.
9854 * a-strsup.ads: Likewise.
9855 * a-strunb.adb: Likewise.
9856 * a-strunb.ads: Likewise.
9857 * a-ststio.adb: Likewise.
9858 * a-ststio.ads: Likewise.
9859 * a-stunau.adb: Likewise.
9860 * a-stunau.ads: Likewise.
9861 * a-stunha.adb: Likewise.
9862 * a-stwibo.adb: Likewise.
9863 * a-stwibo.ads: Likewise.
9864 * a-stwifi.adb: Likewise.
9865 * a-stwiha.adb: Likewise.
9866 * a-stwima.adb: Likewise.
9867 * a-stwima.ads: Likewise.
9868 * a-stwise.adb: Likewise.
9869 * a-stwise.ads: Likewise.
9870 * a-stwisu.adb: Likewise.
9871 * a-stwisu.ads: Likewise.
9872 * a-stwiun.adb: Likewise.
9873 * a-stwiun.ads: Likewise.
9874 * a-stzbou.adb: Likewise.
9875 * a-stzbou.ads: Likewise.
9876 * a-stzfix.adb: Likewise.
9877 * a-stzhas.adb: Likewise.
9878 * a-stzmap.adb: Likewise.
9879 * a-stzmap.ads: Likewise.
9880 * a-stzsea.adb: Likewise.
9881 * a-stzsea.ads: Likewise.
9882 * a-stzsup.adb: Likewise.
9883 * a-stzsup.ads: Likewise.
9884 * a-stzunb.adb: Likewise.
9885 * a-stzunb.ads: Likewise.
9886 * a-suteio.adb: Likewise.
9887 * a-suteio.ads: Likewise.
9888 * a-swbwha.adb: Likewise.
9889 * a-swmwco.ads: Likewise.
9890 * a-swunau.adb: Likewise.
9891 * a-swunau.ads: Likewise.
9892 * a-swuwha.adb: Likewise.
9893 * a-swuwti.adb: Likewise.
9894 * a-swuwti.ads: Likewise.
9895 * a-sytaco.adb: Likewise.
9896 * a-sytaco.ads: Likewise.
9897 * a-szbzha.adb: Likewise.
9898 * a-szmzco.ads: Likewise.
9899 * a-szunau.adb: Likewise.
9900 * a-szunau.ads: Likewise.
9901 * a-szuzha.adb: Likewise.
9902 * a-szuzti.adb: Likewise.
9903 * a-szuzti.ads: Likewise.
9904 * a-tags.adb: Likewise.
9905 * a-tags.ads: Likewise.
9906 * a-tasatt.ads: Likewise.
9907 * a-taside.adb: Likewise.
9908 * a-taside.ads: Likewise.
9909 * a-taster.adb: Likewise.
9910 * a-teioed.adb: Likewise.
9911 * a-teioed.ads: Likewise.
9912 * a-textio.adb: Likewise.
9913 * a-textio.ads: Likewise.
9914 * a-tiboio.adb: Likewise.
9915 * a-ticoau.adb: Likewise.
9916 * a-ticoau.ads: Likewise.
9917 * a-ticoio.adb: Likewise.
9918 * a-ticoio.ads: Likewise.
9919 * a-tideau.adb: Likewise.
9920 * a-tideau.ads: Likewise.
9921 * a-tideio.adb: Likewise.
9922 * a-tideio.ads: Likewise.
9923 * a-tienau.adb: Likewise.
9924 * a-tienau.ads: Likewise.
9925 * a-tienio.adb: Likewise.
9926 * a-tienio.ads: Likewise.
9927 * a-tifiio.adb: Likewise.
9928 * a-tifiio.ads: Likewise.
9929 * a-tiflau.adb: Likewise.
9930 * a-tiflau.ads: Likewise.
9931 * a-tiflio.adb: Likewise.
9932 * a-tiflio.ads: Likewise.
9933 * a-tigeau.adb: Likewise.
9934 * a-tigeau.ads: Likewise.
9935 * a-tiinau.adb: Likewise.
9936 * a-tiinau.ads: Likewise.
9937 * a-tiinio.adb: Likewise.
9938 * a-tiinio.ads: Likewise.
9939 * a-timoau.adb: Likewise.
9940 * a-timoau.ads: Likewise.
9941 * a-timoio.adb: Likewise.
9942 * a-timoio.ads: Likewise.
9943 * a-tiocst.adb: Likewise.
9944 * a-tiocst.ads: Likewise.
9945 * a-titest.adb: Likewise.
9946 * a-wichun.adb: Likewise.
9947 * a-wichun.ads: Likewise.
9948 * a-witeio.adb: Likewise.
9949 * a-witeio.ads: Likewise.
9950 * a-wtcoau.adb: Likewise.
9951 * a-wtcoau.ads: Likewise.
9952 * a-wtcoio.adb: Likewise.
9953 * a-wtcstr.adb: Likewise.
9954 * a-wtcstr.ads: Likewise.
9955 * a-wtdeau.adb: Likewise.
9956 * a-wtdeau.ads: Likewise.
9957 * a-wtdeio.adb: Likewise.
9958 * a-wtdeio.ads: Likewise.
9959 * a-wtedit.adb: Likewise.
9960 * a-wtedit.ads: Likewise.
9961 * a-wtenau.adb: Likewise.
9962 * a-wtenau.ads: Likewise.
9963 * a-wtenio.adb: Likewise.
9964 * a-wtenio.ads: Likewise.
9965 * a-wtfiio.adb: Likewise.
9966 * a-wtfiio.ads: Likewise.
9967 * a-wtflau.adb: Likewise.
9968 * a-wtflau.ads: Likewise.
9969 * a-wtflio.adb: Likewise.
9970 * a-wtflio.ads: Likewise.
9971 * a-wtgeau.adb: Likewise.
9972 * a-wtgeau.ads: Likewise.
9973 * a-wtinau.adb: Likewise.
9974 * a-wtinau.ads: Likewise.
9975 * a-wtinio.adb: Likewise.
9976 * a-wtmoau.adb: Likewise.
9977 * a-wtmoau.ads: Likewise.
9978 * a-wtmoio.adb: Likewise.
9979 * a-wtmoio.ads: Likewise.
9980 * a-wttest.adb: Likewise.
9981 * a-wwboio.adb: Likewise.
9982 * a-zchuni.adb: Likewise.
9983 * a-zchuni.ads: Likewise.
9984 * a-ztcoau.adb: Likewise.
9985 * a-ztcoau.ads: Likewise.
9986 * a-ztcoio.adb: Likewise.
9987 * a-ztcstr.adb: Likewise.
9988 * a-ztcstr.ads: Likewise.
9989 * a-ztdeau.adb: Likewise.
9990 * a-ztdeau.ads: Likewise.
9991 * a-ztdeio.adb: Likewise.
9992 * a-ztdeio.ads: Likewise.
9993 * a-ztedit.adb: Likewise.
9994 * a-ztedit.ads: Likewise.
9995 * a-ztenau.adb: Likewise.
9996 * a-ztenau.ads: Likewise.
9997 * a-ztenio.adb: Likewise.
9998 * a-ztenio.ads: Likewise.
9999 * a-ztexio.adb: Likewise.
10000 * a-ztexio.ads: Likewise.
10001 * a-ztfiio.adb: Likewise.
10002 * a-ztfiio.ads: Likewise.
10003 * a-ztflau.adb: Likewise.
10004 * a-ztflau.ads: Likewise.
10005 * a-ztflio.adb: Likewise.
10006 * a-ztflio.ads: Likewise.
10007 * a-ztgeau.adb: Likewise.
10008 * a-ztgeau.ads: Likewise.
10009 * a-ztinau.adb: Likewise.
10010 * a-ztinau.ads: Likewise.
10011 * a-ztinio.adb: Likewise.
10012 * a-ztmoau.adb: Likewise.
10013 * a-ztmoau.ads: Likewise.
10014 * a-ztmoio.adb: Likewise.
10015 * a-ztmoio.ads: Likewise.
10016 * a-zttest.adb: Likewise.
10017 * a-zzboio.adb: Likewise.
10018 * adadecode.c: Likewise.
10019 * adaint.c: Likewise.
10020 * adaint.h: Likewise.
10021 * alloc.ads: Likewise.
10022 * argv.c: Likewise.
10023 * arit64.c: Likewise.
10024 * atree.adb: Likewise.
10025 * atree.ads: Likewise.
10026 * aux-io.c: Likewise.
10028 * casing.adb: Likewise.
10029 * casing.ads: Likewise.
10031 * csets.adb: Likewise.
10032 * csets.ads: Likewise.
10033 * cstreams.c: Likewise.
10034 * ctrl_c.c: Likewise.
10035 * debug.adb: Likewise.
10036 * debug.ads: Likewise.
10037 * dec.ads: Likewise.
10038 * einfo.adb: Likewise.
10039 * einfo.ads: Likewise.
10040 * elists.adb: Likewise.
10041 * elists.ads: Likewise.
10044 * errno.c: Likewise.
10045 * exit.c: Likewise.
10047 * final.c: Likewise.
10048 * fname.adb: Likewise.
10049 * fname.ads: Likewise.
10050 * g-allein.ads: Likewise.
10051 * g-alleve.adb: Likewise.
10052 * g-alleve.ads: Likewise.
10053 * g-altcon.adb: Likewise.
10054 * g-altcon.ads: Likewise.
10055 * g-altive.ads: Likewise.
10056 * g-alveop.adb: Likewise.
10057 * g-alveop.ads: Likewise.
10058 * g-alvety.ads: Likewise.
10059 * g-alvevi.ads: Likewise.
10060 * g-arrspl.adb: Likewise.
10061 * g-arrspl.ads: Likewise.
10062 * g-calend.ads: Likewise.
10063 * g-comlin.adb: Likewise.
10064 * g-debpoo.adb: Likewise.
10065 * g-debpoo.ads: Likewise.
10066 * g-eacodu-vms.adb: Likewise.
10067 * g-eacodu.adb: Likewise.
10068 * g-excact.adb: Likewise.
10069 * g-excact.ads: Likewise.
10070 * g-locfil.adb: Likewise.
10071 * g-os_lib.ads: Likewise.
10072 * g-rannum.adb: Likewise.
10073 * g-rannum.ads: Likewise.
10074 * g-regist.adb: Likewise.
10075 * g-regist.ads: Likewise.
10076 * g-signal.adb: Likewise.
10077 * g-signal.ads: Likewise.
10078 * g-soccon.ads: Likewise.
10079 * g-string.adb: Likewise.
10080 * g-string.ads: Likewise.
10081 * g-strspl.ads: Likewise.
10082 * g-timsta.adb: Likewise.
10083 * g-timsta.ads: Likewise.
10084 * g-trasym-vms-alpha.adb: Likewise.
10085 * g-trasym-vms-ia64.adb: Likewise.
10086 * g-utf_32.adb: Likewise.
10087 * g-utf_32.ads: Likewise.
10088 * g-wistsp.ads: Likewise.
10089 * g-zstspl.ads: Likewise.
10090 * gmem.c: Likewise.
10091 * gnatvsn.adb: Likewise.
10092 * gnatvsn.ads: Likewise.
10093 * gsocket.h: Likewise.
10094 * hostparm.ads: Likewise.
10095 * i-c.adb: Likewise.
10096 * i-cexten.ads: Likewise.
10097 * i-cobol.adb: Likewise.
10098 * i-cobol.ads: Likewise.
10099 * i-cpoint.adb: Likewise.
10100 * i-cpoint.ads: Likewise.
10101 * i-cpp.adb: Likewise.
10102 * i-cpp.ads: Likewise.
10103 * i-cstrea-vms.adb: Likewise.
10104 * i-cstrea.adb: Likewise.
10105 * i-cstrea.ads: Likewise.
10106 * i-cstrin.adb: Likewise.
10107 * i-cstrin.ads: Likewise.
10108 * i-forbla-darwin.adb: Likewise.
10109 * i-forbla-unimplemented.ads: Likewise.
10110 * i-forbla.adb: Likewise.
10111 * i-forbla.ads: Likewise.
10112 * i-forlap.ads: Likewise.
10113 * i-fortra.adb: Likewise.
10114 * i-pacdec.adb: Likewise.
10115 * i-pacdec.ads: Likewise.
10116 * i-vxwoio.adb: Likewise.
10117 * i-vxwoio.ads: Likewise.
10118 * indepsw-aix.adb: Likewise.
10119 * indepsw-gnu.adb: Likewise.
10120 * indepsw-mingw.adb: Likewise.
10121 * indepsw.adb: Likewise.
10122 * indepsw.ads: Likewise.
10123 * init.c: Likewise.
10124 * initialize.c: Likewise.
10125 * interfac.ads: Likewise.
10126 * krunch.adb: Likewise.
10127 * krunch.ads: Likewise.
10128 * lib-list.adb: Likewise.
10129 * lib-sort.adb: Likewise.
10130 * lib.adb: Likewise.
10131 * lib.ads: Likewise.
10132 * link.c: Likewise.
10133 * math_lib.adb: Likewise.
10134 * memtrack.adb: Likewise.
10135 * mingw32.h: Likewise.
10136 * mkdir.c: Likewise.
10137 * namet-sp.adb: Likewise.
10138 * namet-sp.ads: Likewise.
10139 * namet.adb: Likewise.
10140 * namet.ads: Likewise.
10141 * nlists.adb: Likewise.
10142 * nlists.ads: Likewise.
10143 * opt.adb: Likewise.
10144 * opt.ads: Likewise.
10145 * output.adb: Likewise.
10146 * output.ads: Likewise.
10147 * raise-gcc.c: Likewise.
10148 * raise.c: Likewise.
10149 * raise.h: Likewise.
10150 * repinfo.adb: Likewise.
10151 * repinfo.ads: Likewise.
10152 * repinfo.h: Likewise.
10153 * rident.ads: Likewise.
10154 * s-addima.adb: Likewise.
10155 * s-addima.ads: Likewise.
10156 * s-addope.adb: Likewise.
10157 * s-addope.ads: Likewise.
10158 * s-arit64.adb: Likewise.
10159 * s-arit64.ads: Likewise.
10160 * s-assert.adb: Likewise.
10161 * s-assert.ads: Likewise.
10162 * s-asthan-vms-alpha.adb: Likewise.
10163 * s-asthan.adb: Likewise.
10164 * s-asthan.ads: Likewise.
10165 * s-atacco.adb: Likewise.
10166 * s-atacco.ads: Likewise.
10167 * s-auxdec-empty.adb: Likewise.
10168 * s-auxdec-empty.ads: Likewise.
10169 * s-auxdec-vms_64.ads: Likewise.
10170 * s-auxdec.adb: Likewise.
10171 * s-auxdec.ads: Likewise.
10172 * s-bitops.adb: Likewise.
10173 * s-bitops.ads: Likewise.
10174 * s-boarop.ads: Likewise.
10175 * s-carsi8.adb: Likewise.
10176 * s-carsi8.ads: Likewise.
10177 * s-carun8.adb: Likewise.
10178 * s-carun8.ads: Likewise.
10179 * s-casi16.adb: Likewise.
10180 * s-casi16.ads: Likewise.
10181 * s-casi32.adb: Likewise.
10182 * s-casi32.ads: Likewise.
10183 * s-casi64.adb: Likewise.
10184 * s-casi64.ads: Likewise.
10185 * s-casuti.ads: Likewise.
10186 * s-caun16.adb: Likewise.
10187 * s-caun16.ads: Likewise.
10188 * s-caun32.adb: Likewise.
10189 * s-caun32.ads: Likewise.
10190 * s-caun64.adb: Likewise.
10191 * s-caun64.ads: Likewise.
10192 * s-chepoo.ads: Likewise.
10193 * s-crc32.adb: Likewise.
10194 * s-crc32.ads: Likewise.
10195 * s-crtl.ads: Likewise.
10196 * s-direio.adb: Likewise.
10197 * s-direio.ads: Likewise.
10198 * s-dsaser.ads: Likewise.
10199 * s-except.adb: Likewise.
10200 * s-except.ads: Likewise.
10201 * s-exctab.adb: Likewise.
10202 * s-exctab.ads: Likewise.
10203 * s-exnint.adb: Likewise.
10204 * s-exnint.ads: Likewise.
10205 * s-exnllf.adb: Likewise.
10206 * s-exnllf.ads: Likewise.
10207 * s-exnlli.adb: Likewise.
10208 * s-exnlli.ads: Likewise.
10209 * s-expint.adb: Likewise.
10210 * s-expint.ads: Likewise.
10211 * s-explli.adb: Likewise.
10212 * s-explli.ads: Likewise.
10213 * s-expllu.adb: Likewise.
10214 * s-expllu.ads: Likewise.
10215 * s-expmod.adb: Likewise.
10216 * s-expmod.ads: Likewise.
10217 * s-expuns.adb: Likewise.
10218 * s-expuns.ads: Likewise.
10219 * s-fatflt.ads: Likewise.
10220 * s-fatgen.adb: Likewise.
10221 * s-fatgen.ads: Likewise.
10222 * s-fatlfl.ads: Likewise.
10223 * s-fatllf.ads: Likewise.
10224 * s-fatsfl.ads: Likewise.
10225 * s-ficobl.ads: Likewise.
10226 * s-fileio.adb: Likewise.
10227 * s-fileio.ads: Likewise.
10228 * s-filofl.ads: Likewise.
10229 * s-finimp.adb: Likewise.
10230 * s-finimp.ads: Likewise.
10231 * s-finroo.adb: Likewise.
10232 * s-finroo.ads: Likewise.
10233 * s-fishfl.ads: Likewise.
10234 * s-fore.adb: Likewise.
10235 * s-fore.ads: Likewise.
10236 * s-fvadfl.ads: Likewise.
10237 * s-fvaffl.ads: Likewise.
10238 * s-fvagfl.ads: Likewise.
10239 * s-gearop.adb: Likewise.
10240 * s-gearop.ads: Likewise.
10241 * s-gecobl.adb: Likewise.
10242 * s-gecobl.ads: Likewise.
10243 * s-gecola.adb: Likewise.
10244 * s-gecola.ads: Likewise.
10245 * s-gerebl.adb: Likewise.
10246 * s-gerebl.ads: Likewise.
10247 * s-gerela.adb: Likewise.
10248 * s-gerela.ads: Likewise.
10249 * s-geveop.adb: Likewise.
10250 * s-geveop.ads: Likewise.
10251 * s-gloloc.adb: Likewise.
10252 * s-gloloc.ads: Likewise.
10253 * s-hibaen.ads: Likewise.
10254 * s-imenne.adb: Likewise.
10255 * s-imenne.ads: Likewise.
10256 * s-imgbiu.adb: Likewise.
10257 * s-imgbiu.ads: Likewise.
10258 * s-imgboo.adb: Likewise.
10259 * s-imgboo.ads: Likewise.
10260 * s-imgcha.adb: Likewise.
10261 * s-imgcha.ads: Likewise.
10262 * s-imgdec.adb: Likewise.
10263 * s-imgdec.ads: Likewise.
10264 * s-imgenu.adb: Likewise.
10265 * s-imgenu.ads: Likewise.
10266 * s-imgint.adb: Likewise.
10267 * s-imgint.ads: Likewise.
10268 * s-imgllb.adb: Likewise.
10269 * s-imgllb.ads: Likewise.
10270 * s-imglld.adb: Likewise.
10271 * s-imglld.ads: Likewise.
10272 * s-imglli.adb: Likewise.
10273 * s-imglli.ads: Likewise.
10274 * s-imgllu.adb: Likewise.
10275 * s-imgllu.ads: Likewise.
10276 * s-imgllw.adb: Likewise.
10277 * s-imgllw.ads: Likewise.
10278 * s-imgrea.adb: Likewise.
10279 * s-imgrea.ads: Likewise.
10280 * s-imguns.adb: Likewise.
10281 * s-imguns.ads: Likewise.
10282 * s-imgwch.adb: Likewise.
10283 * s-imgwch.ads: Likewise.
10284 * s-imgwiu.adb: Likewise.
10285 * s-imgwiu.ads: Likewise.
10286 * s-inmaop-dummy.adb: Likewise.
10287 * s-inmaop-vms.adb: Likewise.
10288 * s-inmaop.ads: Likewise.
10289 * s-interr-hwint.adb: Likewise.
10290 * s-interr-sigaction.adb: Likewise.
10291 * s-interr-vms.adb: Likewise.
10292 * s-interr.adb: Likewise.
10293 * s-interr.ads: Likewise.
10294 * s-intman-dummy.adb: Likewise.
10295 * s-intman-mingw.adb: Likewise.
10296 * s-intman-posix.adb: Likewise.
10297 * s-intman-solaris.adb: Likewise.
10298 * s-intman-vms.adb: Likewise.
10299 * s-intman-vms.ads: Likewise.
10300 * s-intman-vxworks.adb: Likewise.
10301 * s-intman-vxworks.ads: Likewise.
10302 * s-intman.ads: Likewise.
10303 * s-io.adb: Likewise.
10304 * s-io.ads: Likewise.
10305 * s-linux-alpha.ads: Likewise.
10306 * s-linux-hppa.ads: Likewise.
10307 * s-linux.ads: Likewise.
10308 * s-maccod.ads: Likewise.
10309 * s-mantis.adb: Likewise.
10310 * s-mantis.ads: Likewise.
10311 * s-mastop-irix.adb: Likewise.
10312 * s-mastop.adb: Likewise.
10313 * s-mastop.ads: Likewise.
10314 * s-memcop.ads: Likewise.
10315 * s-memory-mingw.adb: Likewise.
10316 * s-memory.adb: Likewise.
10317 * s-memory.ads: Likewise.
10318 * s-os_lib.ads: Likewise.
10319 * s-oscons-tmplt.c: Likewise.
10320 * s-osinte-aix.adb: Likewise.
10321 * s-osinte-darwin.adb: Likewise.
10322 * s-osinte-freebsd.adb: Likewise.
10323 * s-osinte-irix.adb: Likewise.
10324 * s-osinte-lynxos-3.adb: Likewise.
10325 * s-osinte-rtems.ads: Likewise.
10326 * s-osinte-tru64.adb: Likewise.
10327 * s-osinte-vxworks-kernel.adb: Likewise.
10328 * s-osinte-vxworks.adb: Likewise.
10329 * s-osprim-mingw.adb: Likewise.
10330 * s-osprim-posix.adb: Likewise.
10331 * s-osprim-solaris.adb: Likewise.
10332 * s-osprim-unix.adb: Likewise.
10333 * s-osprim-vms.adb: Likewise.
10334 * s-osprim-vms.ads: Likewise.
10335 * s-osprim-vxworks.adb: Likewise.
10336 * s-osprim.ads: Likewise.
10337 * s-pack03.adb: Likewise.
10338 * s-pack03.ads: Likewise.
10339 * s-pack05.adb: Likewise.
10340 * s-pack05.ads: Likewise.
10341 * s-pack06.adb: Likewise.
10342 * s-pack06.ads: Likewise.
10343 * s-pack07.adb: Likewise.
10344 * s-pack07.ads: Likewise.
10345 * s-pack09.adb: Likewise.
10346 * s-pack09.ads: Likewise.
10347 * s-pack10.adb: Likewise.
10348 * s-pack10.ads: Likewise.
10349 * s-pack11.adb: Likewise.
10350 * s-pack11.ads: Likewise.
10351 * s-pack12.adb: Likewise.
10352 * s-pack12.ads: Likewise.
10353 * s-pack13.adb: Likewise.
10354 * s-pack13.ads: Likewise.
10355 * s-pack14.adb: Likewise.
10356 * s-pack14.ads: Likewise.
10357 * s-pack15.adb: Likewise.
10358 * s-pack15.ads: Likewise.
10359 * s-pack17.adb: Likewise.
10360 * s-pack17.ads: Likewise.
10361 * s-pack18.adb: Likewise.
10362 * s-pack18.ads: Likewise.
10363 * s-pack19.adb: Likewise.
10364 * s-pack19.ads: Likewise.
10365 * s-pack20.adb: Likewise.
10366 * s-pack20.ads: Likewise.
10367 * s-pack21.adb: Likewise.
10368 * s-pack21.ads: Likewise.
10369 * s-pack22.adb: Likewise.
10370 * s-pack22.ads: Likewise.
10371 * s-pack23.adb: Likewise.
10372 * s-pack23.ads: Likewise.
10373 * s-pack24.adb: Likewise.
10374 * s-pack24.ads: Likewise.
10375 * s-pack25.adb: Likewise.
10376 * s-pack25.ads: Likewise.
10377 * s-pack26.adb: Likewise.
10378 * s-pack26.ads: Likewise.
10379 * s-pack27.adb: Likewise.
10380 * s-pack27.ads: Likewise.
10381 * s-pack28.adb: Likewise.
10382 * s-pack28.ads: Likewise.
10383 * s-pack29.adb: Likewise.
10384 * s-pack29.ads: Likewise.
10385 * s-pack30.adb: Likewise.
10386 * s-pack30.ads: Likewise.
10387 * s-pack31.adb: Likewise.
10388 * s-pack31.ads: Likewise.
10389 * s-pack33.adb: Likewise.
10390 * s-pack33.ads: Likewise.
10391 * s-pack34.adb: Likewise.
10392 * s-pack34.ads: Likewise.
10393 * s-pack35.adb: Likewise.
10394 * s-pack35.ads: Likewise.
10395 * s-pack36.adb: Likewise.
10396 * s-pack36.ads: Likewise.
10397 * s-pack37.adb: Likewise.
10398 * s-pack37.ads: Likewise.
10399 * s-pack38.adb: Likewise.
10400 * s-pack38.ads: Likewise.
10401 * s-pack39.adb: Likewise.
10402 * s-pack39.ads: Likewise.
10403 * s-pack40.adb: Likewise.
10404 * s-pack40.ads: Likewise.
10405 * s-pack41.adb: Likewise.
10406 * s-pack41.ads: Likewise.
10407 * s-pack42.adb: Likewise.
10408 * s-pack42.ads: Likewise.
10409 * s-pack43.adb: Likewise.
10410 * s-pack43.ads: Likewise.
10411 * s-pack44.adb: Likewise.
10412 * s-pack44.ads: Likewise.
10413 * s-pack45.adb: Likewise.
10414 * s-pack45.ads: Likewise.
10415 * s-pack46.adb: Likewise.
10416 * s-pack46.ads: Likewise.
10417 * s-pack47.adb: Likewise.
10418 * s-pack47.ads: Likewise.
10419 * s-pack48.adb: Likewise.
10420 * s-pack48.ads: Likewise.
10421 * s-pack49.adb: Likewise.
10422 * s-pack49.ads: Likewise.
10423 * s-pack50.adb: Likewise.
10424 * s-pack50.ads: Likewise.
10425 * s-pack51.adb: Likewise.
10426 * s-pack51.ads: Likewise.
10427 * s-pack52.adb: Likewise.
10428 * s-pack52.ads: Likewise.
10429 * s-pack53.adb: Likewise.
10430 * s-pack53.ads: Likewise.
10431 * s-pack54.adb: Likewise.
10432 * s-pack54.ads: Likewise.
10433 * s-pack55.adb: Likewise.
10434 * s-pack55.ads: Likewise.
10435 * s-pack56.adb: Likewise.
10436 * s-pack56.ads: Likewise.
10437 * s-pack57.adb: Likewise.
10438 * s-pack57.ads: Likewise.
10439 * s-pack58.adb: Likewise.
10440 * s-pack58.ads: Likewise.
10441 * s-pack59.adb: Likewise.
10442 * s-pack59.ads: Likewise.
10443 * s-pack60.adb: Likewise.
10444 * s-pack60.ads: Likewise.
10445 * s-pack61.adb: Likewise.
10446 * s-pack61.ads: Likewise.
10447 * s-pack62.adb: Likewise.
10448 * s-pack62.ads: Likewise.
10449 * s-pack63.adb: Likewise.
10450 * s-pack63.ads: Likewise.
10451 * s-parame-ae653.ads: Likewise.
10452 * s-parame-hpux.ads: Likewise.
10453 * s-parame-rtems.adb: Likewise.
10454 * s-parame-vms-alpha.ads: Likewise.
10455 * s-parame-vms-ia64.ads: Likewise.
10456 * s-parame-vms-restrict.ads: Likewise.
10457 * s-parame-vxworks.adb: Likewise.
10458 * s-parame-vxworks.ads: Likewise.
10459 * s-parame.adb: Likewise.
10460 * s-parame.ads: Likewise.
10461 * s-parint.adb: Likewise.
10462 * s-parint.ads: Likewise.
10463 * s-pooglo.adb: Likewise.
10464 * s-pooglo.ads: Likewise.
10465 * s-pooloc.adb: Likewise.
10466 * s-pooloc.ads: Likewise.
10467 * s-poosiz.adb: Likewise.
10468 * s-poosiz.ads: Likewise.
10469 * s-powtab.ads: Likewise.
10470 * s-proinf-irix-athread.adb: Likewise.
10471 * s-proinf-irix-athread.ads: Likewise.
10472 * s-proinf.adb: Likewise.
10473 * s-proinf.ads: Likewise.
10474 * s-purexc.ads: Likewise.
10475 * s-rannum.adb: Likewise.
10476 * s-rannum.ads: Likewise.
10477 * s-restri.adb: Likewise.
10478 * s-restri.ads: Likewise.
10479 * s-rident.ads: Likewise.
10480 * s-rpc.adb: Likewise.
10481 * s-rpc.ads: Likewise.
10482 * s-scaval.adb: Likewise.
10483 * s-scaval.ads: Likewise.
10484 * s-secsta.adb: Likewise.
10485 * s-secsta.ads: Likewise.
10486 * s-sequio.adb: Likewise.
10487 * s-sequio.ads: Likewise.
10488 * s-shasto.adb: Likewise.
10489 * s-shasto.ads: Likewise.
10490 * s-soflin.adb: Likewise.
10491 * s-soflin.ads: Likewise.
10492 * s-solita.adb: Likewise.
10493 * s-solita.ads: Likewise.
10494 * s-sopco3.adb: Likewise.
10495 * s-sopco3.ads: Likewise.
10496 * s-sopco4.adb: Likewise.
10497 * s-sopco4.ads: Likewise.
10498 * s-sopco5.adb: Likewise.
10499 * s-sopco5.ads: Likewise.
10500 * s-stache.adb: Likewise.
10501 * s-stache.ads: Likewise.
10502 * s-stalib.adb: Likewise.
10503 * s-stalib.ads: Likewise.
10504 * s-stausa.adb: Likewise.
10505 * s-stausa.ads: Likewise.
10506 * s-stchop-limit.ads: Likewise.
10507 * s-stchop-rtems.adb: Likewise.
10508 * s-stchop-vxworks.adb: Likewise.
10509 * s-stchop.adb: Likewise.
10510 * s-stchop.ads: Likewise.
10511 * s-stoele.adb: Likewise.
10512 * s-stoele.ads: Likewise.
10513 * s-stopoo.adb: Likewise.
10514 * s-stopoo.ads: Likewise.
10515 * s-stratt.adb: Likewise.
10516 * s-stratt.ads: Likewise.
10517 * s-strcom.adb: Likewise.
10518 * s-strcom.ads: Likewise.
10519 * s-string.adb: Likewise.
10520 * s-string.ads: Likewise.
10521 * s-strops.adb: Likewise.
10522 * s-strops.ads: Likewise.
10523 * s-strxdr.adb: Likewise.
10524 * s-ststop.adb: Likewise.
10525 * s-ststop.ads: Likewise.
10526 * s-taasde.adb: Likewise.
10527 * s-taasde.ads: Likewise.
10528 * s-tadeca.adb: Likewise.
10529 * s-tadeca.ads: Likewise.
10530 * s-tadert.adb: Likewise.
10531 * s-tadert.ads: Likewise.
10532 * s-taenca.adb: Likewise.
10533 * s-taenca.ads: Likewise.
10534 * s-taprob.ads: Likewise.
10535 * s-taprop-dummy.adb: Likewise.
10536 * s-taprop-hpux-dce.adb: Likewise.
10537 * s-taprop-irix.adb: Likewise.
10538 * s-taprop-linux.adb: Likewise.
10539 * s-taprop-lynxos.adb: Likewise.
10540 * s-taprop-mingw.adb: Likewise.
10541 * s-taprop-posix.adb: Likewise.
10542 * s-taprop-solaris.adb: Likewise.
10543 * s-taprop-tru64.adb: Likewise.
10544 * s-taprop-vms.adb: Likewise.
10545 * s-taprop-vxworks.adb: Likewise.
10546 * s-taprop.ads: Likewise.
10547 * s-tarest.adb: Likewise.
10548 * s-tarest.ads: Likewise.
10549 * s-tasdeb.adb: Likewise.
10550 * s-tasdeb.ads: Likewise.
10551 * s-tasinf-irix.ads: Likewise.
10552 * s-tasinf-linux.adb: Likewise.
10553 * s-tasinf-linux.ads: Likewise.
10554 * s-tasinf-mingw.adb: Likewise.
10555 * s-tasinf-mingw.ads: Likewise.
10556 * s-tasinf-solaris.adb: Likewise.
10557 * s-tasinf-solaris.ads: Likewise.
10558 * s-tasinf-tru64.ads: Likewise.
10559 * s-tasinf.adb: Likewise.
10560 * s-tasinf.ads: Likewise.
10561 * s-tasini.adb: Likewise.
10562 * s-tasini.ads: Likewise.
10563 * s-taskin.adb: Likewise.
10564 * s-taskin.ads: Likewise.
10565 * s-taspri-dummy.ads: Likewise.
10566 * s-taspri-hpux-dce.ads: Likewise.
10567 * s-taspri-mingw.ads: Likewise.
10568 * s-taspri-solaris.ads: Likewise.
10569 * s-taspri-tru64.ads: Likewise.
10570 * s-taspri-vms.ads: Likewise.
10571 * s-taspri-vxworks.ads: Likewise.
10572 * s-tasque.adb: Likewise.
10573 * s-tasque.ads: Likewise.
10574 * s-tasren.adb: Likewise.
10575 * s-tasren.ads: Likewise.
10576 * s-tasres.ads: Likewise.
10577 * s-tassta.adb: Likewise.
10578 * s-tassta.ads: Likewise.
10579 * s-tasuti.adb: Likewise.
10580 * s-tasuti.ads: Likewise.
10581 * s-tfsetr-default.adb: Likewise.
10582 * s-tfsetr-vxworks.adb: Likewise.
10583 * s-tpinop.adb: Likewise.
10584 * s-tpinop.ads: Likewise.
10585 * s-tpoben.adb: Likewise.
10586 * s-tpoben.ads: Likewise.
10587 * s-tpobop.adb: Likewise.
10588 * s-tpobop.ads: Likewise.
10589 * s-tpopde-vms.adb: Likewise.
10590 * s-tpopde-vms.ads: Likewise.
10591 * s-tpopsp-lynxos.adb: Likewise.
10592 * s-tpopsp-posix-foreign.adb: Likewise.
10593 * s-tpopsp-posix.adb: Likewise.
10594 * s-tpopsp-solaris.adb: Likewise.
10595 * s-tpopsp-vxworks.adb: Likewise.
10596 * s-tporft.adb: Likewise.
10597 * s-tposen.adb: Likewise.
10598 * s-tposen.ads: Likewise.
10599 * s-traceb.adb: Likewise.
10600 * s-traceb.ads: Likewise.
10601 * s-traces-default.adb: Likewise.
10602 * s-traces.adb: Likewise.
10603 * s-traces.ads: Likewise.
10604 * s-traent-vms.adb: Likewise.
10605 * s-traent-vms.ads: Likewise.
10606 * s-traent.adb: Likewise.
10607 * s-traent.ads: Likewise.
10608 * s-trafor-default.adb: Likewise.
10609 * s-trafor-default.ads: Likewise.
10610 * s-tratas-default.adb: Likewise.
10611 * s-tratas.adb: Likewise.
10612 * s-tratas.ads: Likewise.
10613 * s-unstyp.ads: Likewise.
10614 * s-utf_32.adb: Likewise.
10615 * s-utf_32.ads: Likewise.
10616 * s-vaflop-vms-alpha.adb: Likewise.
10617 * s-vaflop.adb: Likewise.
10618 * s-vaflop.ads: Likewise.
10619 * s-valboo.adb: Likewise.
10620 * s-valboo.ads: Likewise.
10621 * s-valcha.adb: Likewise.
10622 * s-valcha.ads: Likewise.
10623 * s-valdec.adb: Likewise.
10624 * s-valdec.ads: Likewise.
10625 * s-valenu.adb: Likewise.
10626 * s-valenu.ads: Likewise.
10627 * s-valint.adb: Likewise.
10628 * s-valint.ads: Likewise.
10629 * s-vallld.adb: Likewise.
10630 * s-vallld.ads: Likewise.
10631 * s-vallli.adb: Likewise.
10632 * s-vallli.ads: Likewise.
10633 * s-valllu.adb: Likewise.
10634 * s-valllu.ads: Likewise.
10635 * s-valrea.adb: Likewise.
10636 * s-valrea.ads: Likewise.
10637 * s-valuns.adb: Likewise.
10638 * s-valuns.ads: Likewise.
10639 * s-valuti.adb: Likewise.
10640 * s-valuti.ads: Likewise.
10641 * s-valwch.adb: Likewise.
10642 * s-valwch.ads: Likewise.
10643 * s-veboop.adb: Likewise.
10644 * s-veboop.ads: Likewise.
10645 * s-vector.ads: Likewise.
10646 * s-vercon.adb: Likewise.
10647 * s-vercon.ads: Likewise.
10648 * s-vmexta.adb: Likewise.
10649 * s-vmexta.ads: Likewise.
10650 * s-vxwext-kernel.ads: Likewise.
10651 * s-vxwext-rtp.adb: Likewise.
10652 * s-vxwext-rtp.ads: Likewise.
10653 * s-vxwext.ads: Likewise.
10654 * s-vxwork-arm.ads: Likewise.
10655 * s-vxwork-m68k.ads: Likewise.
10656 * s-vxwork-mips.ads: Likewise.
10657 * s-vxwork-ppc.ads: Likewise.
10658 * s-vxwork-sparcv9.ads: Likewise.
10659 * s-vxwork-x86.ads: Likewise.
10660 * s-wchcnv.adb: Likewise.
10661 * s-wchcnv.ads: Likewise.
10662 * s-wchcon.adb: Likewise.
10663 * s-wchcon.ads: Likewise.
10664 * s-wchjis.adb: Likewise.
10665 * s-wchjis.ads: Likewise.
10666 * s-wchstw.adb: Likewise.
10667 * s-wchstw.ads: Likewise.
10668 * s-wchwts.adb: Likewise.
10669 * s-wchwts.ads: Likewise.
10670 * s-widboo.adb: Likewise.
10671 * s-widboo.ads: Likewise.
10672 * s-widcha.adb: Likewise.
10673 * s-widcha.ads: Likewise.
10674 * s-widenu.adb: Likewise.
10675 * s-widenu.ads: Likewise.
10676 * s-widlli.adb: Likewise.
10677 * s-widlli.ads: Likewise.
10678 * s-widllu.adb: Likewise.
10679 * s-widllu.ads: Likewise.
10680 * s-widwch.adb: Likewise.
10681 * s-widwch.ads: Likewise.
10682 * s-win32.ads: Likewise.
10683 * s-winext.ads: Likewise.
10684 * s-wwdcha.adb: Likewise.
10685 * s-wwdcha.ads: Likewise.
10686 * s-wwdenu.adb: Likewise.
10687 * s-wwdenu.ads: Likewise.
10688 * s-wwdwch.adb: Likewise.
10689 * s-wwdwch.ads: Likewise.
10690 * scans.adb: Likewise.
10691 * scans.ads: Likewise.
10692 * seh_init.c: Likewise.
10693 * sfn_scan.adb: Likewise.
10694 * sinfo.adb: Likewise.
10695 * sinfo.ads: Likewise.
10696 * sinput.adb: Likewise.
10697 * sinput.ads: Likewise.
10698 * snames.adb: Likewise.
10699 * snames.ads: Likewise.
10700 * socket.c: Likewise.
10701 * stand.adb: Likewise.
10702 * stand.ads: Likewise.
10703 * stringt.adb: Likewise.
10704 * stringt.ads: Likewise.
10705 * sysdep.c: Likewise.
10706 * system-aix.ads: Likewise.
10707 * system-darwin-ppc.ads: Likewise.
10708 * system-darwin-x86.ads: Likewise.
10709 * system-darwin-x86_64.ads: Likewise.
10710 * system-freebsd-x86.ads: Likewise.
10711 * system-hpux-ia64.ads: Likewise.
10712 * system-hpux.ads: Likewise.
10713 * system-irix-n32.ads: Likewise.
10714 * system-irix-n64.ads: Likewise.
10715 * system-irix-o32.ads: Likewise.
10716 * system-linux-alpha.ads: Likewise.
10717 * system-linux-hppa.ads: Likewise.
10718 * system-linux-ia64.ads: Likewise.
10719 * system-linux-mips.ads: Likewise.
10720 * system-linux-mipsel.ads: Likewise.
10721 * system-linux-ppc.ads: Likewise.
10722 * system-linux-ppc64.ads: Likewise.
10723 * system-linux-s390.ads: Likewise.
10724 * system-linux-s390x.ads: Likewise.
10725 * system-linux-sh4.ads: Likewise.
10726 * system-linux-sparc.ads: Likewise.
10727 * system-linux-sparcv9.ads: Likewise.
10728 * system-linux-x86.ads: Likewise.
10729 * system-linux-x86_64.ads: Likewise.
10730 * system-lynxos-ppc.ads: Likewise.
10731 * system-lynxos-x86.ads: Likewise.
10732 * system-mingw-x86_64.ads: Likewise.
10733 * system-mingw.ads: Likewise.
10734 * system-rtems.ads: Likewise.
10735 * system-solaris-sparc.ads: Likewise.
10736 * system-solaris-sparcv9.ads: Likewise.
10737 * system-solaris-x86.ads: Likewise.
10738 * system-solaris-x86_64.ads: Likewise.
10739 * system-tru64.ads: Likewise.
10740 * system-vms-ia64.ads: Likewise.
10741 * system-vms-zcx.ads: Likewise.
10742 * system-vms.ads: Likewise.
10743 * system-vms_64.ads: Likewise.
10744 * system-vxworks-arm.ads: Likewise.
10745 * system-vxworks-m68k.ads: Likewise.
10746 * system-vxworks-mips.ads: Likewise.
10747 * system-vxworks-ppc.ads: Likewise.
10748 * system-vxworks-sparcv9.ads: Likewise.
10749 * system-vxworks-x86.ads: Likewise.
10750 * system.ads: Likewise.
10751 * table.adb: Likewise.
10752 * table.ads: Likewise.
10753 * targext.c: Likewise.
10754 * targparm.ads: Likewise.
10755 * tree_in.adb: Likewise.
10756 * tree_in.ads: Likewise.
10757 * tree_io.adb: Likewise.
10758 * tree_io.ads: Likewise.
10759 * types.adb: Likewise.
10760 * types.ads: Likewise.
10761 * uintp.adb: Likewise.
10762 * uintp.ads: Likewise.
10763 * uname.adb: Likewise.
10764 * uname.ads: Likewise.
10765 * urealp.adb: Likewise.
10766 * urealp.ads: Likewise.
10767 * vx_stack_info.c: Likewise.
10768 * widechar.adb: Likewise.
10769 * widechar.ads: Likewise.
10770 * exp_attr.adb: Change copyright header to refer to version
10771 3 of the GNU General Public License and to point readers at the
10772 COPYING3 file and the FSF's license web page.
10773 * sem.adb: Likewise.
10774 * sem_attr.ads: Likewise.
10775 * freeze.adb: Likewise.
10776 * freeze.ads: Likewise.
10777 * errout.ads: Likewise.
10778 * erroutc.adb: Likewise.
10779 * exp_ch11.ads: Likewise.
10781 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10783 * config-lang.in: Change copyright header to refer to version
10784 3 of the GNU General Public License and to point readers at the
10785 COPYING3 file and the FSF's license web page.
10786 * gcc-interface/trans.c: Likewise.
10787 * gnathtml.pl: Likewise.
10788 * gcc-interface/ada.h: Likewise. Remove runtime exception.
10789 * gcc-interface/gigi.h: Likewise.
10790 * gcc-interface/misc.c: Likewise.
10791 * gcc-interface/targtyps.c: Likewise.
10793 2009-04-09 Nicolas Setton <setton@adacore.com>
10795 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
10797 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
10800 2009-04-09 Bob Duff <duff@adacore.com>
10802 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
10803 internally-generated nodes related to select statements to avoid
10804 confusing the debugger.
10806 2009-04-09 Pascal Obry <obry@adacore.com>
10808 * make.adb: Ensure that all linker arguments are duplicated.
10810 2009-04-09 Robert Dewar <dewar@adacore.com>
10812 * sem_ch5.adb: Minor reformatting
10814 2009-04-09 Vincent Celier <celier@adacore.com>
10817 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
10818 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
10819 New qualifier /LXDEBUG=nnn for -gnatDnnn
10823 Update documentation for VMS qualifiers equivalent to -gnatGnn and
10826 2009-04-09 Nicolas Setton <setton@adacore.com>
10828 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
10829 to match layout of siginfo_t in sys/signal.h.
10831 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
10833 2009-04-09 Thomas Quinot <quinot@adacore.com>
10835 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
10837 2009-04-09 Nicolas Setton <setton@adacore.com>
10839 * s-oscons-tmplt.c: Allow long lines in the generated spec.
10840 Add generation of Darwin-specific constants needed when binding to the
10843 2009-04-09 Robert Dewar <dewar@adacore.com>
10846 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
10847 when no invalid values exist, Avoid duplicate read of atomic variable.
10849 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
10850 (Standard_Unsigned): Set Is_Known_Valid
10852 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
10853 subtype declaration if no constraint.
10854 (Set_Modular_Size): Set Is_Known_Valid if appropriate
10855 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
10857 2009-04-09 Robert Dewar <dewar@adacore.com>
10859 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
10860 switch.ads: for numeric switches, an optional equal sign is always
10863 2009-04-09 Vincent Celier <celier@adacore.com>
10865 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
10866 the case of file names is not significant.
10868 2009-04-09 Vincent Celier <celier@adacore.com>
10870 * errout.adb: Remove dependency on package Style
10872 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
10875 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
10878 * errutil.adb, par.adb: Import Stylesw
10880 2009-04-09 Arnaud Charlet <charlet@adacore.com>
10882 * opt.ads: Fix typos.
10884 2009-04-09 Robert Dewar <dewar@adacore.com>
10886 * einfo.adb: Minor reformatting
10888 2009-04-09 Robert Dewar <dewar@adacore.com>
10890 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
10893 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
10895 2009-04-09 Robert Dewar <dewar@adacore.com>
10897 * g-comver.adb: Minor reformatting.
10899 2009-04-09 Thomas Quinot <quinot@adacore.com>
10901 * lib-load.ads (Load_Unit): Update documentation.
10903 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10905 * lib-load.adb (Load_Unit): When loading the parent of a child unit
10906 named in a with_clause, retain the with_clause to preserve a
10907 limited_with indication.
10909 2009-04-09 Robert Dewar <dewar@adacore.com>
10911 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
10912 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
10913 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
10914 possible to replace an OR of two separate tests.
10916 2009-04-09 Robert Dewar <dewar@adacore.com>
10918 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
10921 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
10922 warning status as well.
10924 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
10926 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
10929 * bindusg.adb, usage.adb: Update line for -gnatm switch
10931 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
10932 -mnn binder switch.
10934 2009-04-09 Robert Dewar <dewar@adacore.com>
10936 * sem_ch10.adb: Minor reformatting.
10938 2009-04-09 Bob Duff <duff@adacore.com>
10940 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
10941 Set Sloc of generated nodes for calls to Undefer_Aborts and
10942 Save_Occurrence to No_Location, so the debugger ignores them and
10943 therefore does not jump back and forth when single stepping.
10945 2009-04-09 Robert Dewar <dewar@adacore.com>
10947 * switch-b.adb: Minor reformatting.
10949 2009-04-09 Robert Dewar <dewar@adacore.com>
10951 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
10952 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
10953 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
10954 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
10955 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
10956 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
10957 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
10958 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
10959 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
10960 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
10961 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
10963 2009-04-09 Robert Dewar <dewar@adacore.com>
10965 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
10967 * atree.h: Add Elist26
10969 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
10972 2009-04-09 Javier Miranda <miranda@adacore.com>
10974 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
10975 retrieve from the Dispatch_Table_Wrappers list the external name.
10976 Addition of documentation.
10977 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
10978 used to export secondary dispatch tables (in the previous version of
10979 the frontend only primary dispatch tables were exported). Addition of
10981 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
10982 dispatch table of a given tagged type.
10983 (Make_Tags): Modified to import secondary dispatch tables.
10985 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
10986 (Constant_Redeclaration): Code cleanup.
10988 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
10989 Dispatch_Table_Wrappers. Update documentation.
10991 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
10992 Renamed to Dispatch_Table_Wrappers.
10994 * sem_util.adb (Collect_Interface_Components): Improve handling of
10997 * atree.ads (Elist26, Set_Elist26): New subprograms
10999 * atree.adb (Elist26, Set_Elist26): New subprograms
11001 2009-04-09 Javier Miranda <miranda@adacore.com>
11003 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
11004 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
11007 2009-04-09 Robert Dewar <dewar@adacore.com>
11009 * s-direio.adb: Minor reformatting
11011 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
11013 2009-04-09 Robert Dewar <dewar@adacore.com>
11015 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
11017 2009-04-09 Pascal Obry <obry@adacore.com>
11019 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
11020 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
11021 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
11022 a-filico.ads: Add some missing overriding keywords.
11024 2009-04-09 Pascal Obry <obry@adacore.com>
11026 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
11027 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
11028 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
11031 2009-04-09 Ed Schonberg <schonberg@adacore.com>
11033 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
11034 missing overriding indicator if the new declaration is not seen as
11037 2009-04-09 Thomas Quinot <quinot@adacore.com>
11039 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
11040 overflows in computation of bounds.
11042 2009-04-09 Pascal Obry <obry@adacore.com>
11044 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
11047 2009-04-09 Robert Dewar <dewar@adacore.com>
11049 * sem_attr.adb (Check_Stream_Attribute): Check violation of
11050 restriction No_Streams
11052 * gnat_rm.texi: Clarify No_Streams restriction
11054 * g-socket.adb: Minor reformatting.
11056 2009-04-09 Thomas Quinot <quinot@adacore.com>
11058 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
11060 2009-04-09 Geert Bosch <bosch@adacore.com>
11062 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
11063 (Set_Result): Likewise.
11064 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
11065 conversion, as required by RM 4.6(31).
11067 2009-04-08 Robert Dewar <dewar@adacore.com>
11069 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
11072 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
11075 2009-04-08 Robert Dewar <dewar@adacore.com>
11077 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
11078 No_Local_Allocators restriction preventing local instantiation.
11080 2009-04-08 Thomas Quinot <quinot@adacore.com>
11082 * sem_eval.adb: Minor comment fix
11084 2009-04-08 Thomas Quinot <quinot@adacore.com>
11086 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
11087 New limited controlled type used to automate the initialization and
11088 finalization of the sockets implementation.
11089 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
11091 2009-04-08 Vincent Celier <celier@adacore.com>
11093 * prj-attr.adb: New read-only project-level attribute Project_Dir
11095 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
11096 read-only attribute of the same name.
11097 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
11098 (Recursive_Process): Ditto
11100 * snames.adb: Add new standard name Project_Dir
11102 * snames.ads: Add new standard name Project_Dir
11104 2009-04-08 Thomas Quinot <quinot@adacore.com>
11106 * checks.adb: Minor reformatting
11108 2009-04-08 Vincent Celier <celier@adacore.com>
11110 * vms_data.ads: Add documentation for new style keyword
11111 OVERRIDING_INDICATORS
11113 2009-04-08 Robert Dewar <dewar@adacore.com>
11115 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
11116 spec is in the current unit.
11118 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11120 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
11121 presence of entity.
11123 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
11125 2009-04-08 Vincent Celier <celier@adacore.com>
11127 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
11129 2009-04-08 Thomas Quinot <quinot@adacore.com>
11131 * checks.ads: Minor reformatting
11133 2009-04-08 Robert Dewar <dewar@adacore.com>
11135 * gnat_rm.texi: Update documentation of pragma Obsolescent
11137 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
11138 be omitted, and allow Entity parameter to be omitted.
11140 2009-04-08 Thomas Quinot <quinot@adacore.com>
11142 * exp_util.adb: Minor comment fix
11144 2009-04-08 Robert Dewar <dewar@adacore.com>
11146 * g-socket.ads: Fix bad syntax in pragma Obsolescent
11148 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
11149 argument with no identifier following one that has an identifier. Was
11150 missed in some cases.
11152 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
11154 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
11156 * snames.adb: Add Name_Policy
11158 * snames.ads: Add Name_Policy
11160 2009-04-08 Robert Dewar <dewar@adacore.com>
11162 * gnat_rm.texi: Minor reformatting
11164 * par-ch2.adb: Minor reformatting
11166 2009-04-08 Robert Dewar <dewar@adacore.com>
11168 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
11170 2009-04-08 Robert Dewar <dewar@adacore.com>
11172 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
11173 properly in the presence of Remote_Types or Remote_Call_Interface.
11175 * sem_util.adb: Add comment.
11177 2009-04-08 Robert Dewar <dewar@adacore.com>
11179 * ug_words: Add /ASSUME_VALID for -gnatB
11181 * vms_data.ads: Add /ASSUME_VALID for -gnatB
11183 * sem_cat.adb: Add clarifying commment
11185 * a-direio.ads (Bytes): Make sure value is non-zero
11187 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11189 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
11190 that does not come from source, check for a rewritten function call in
11191 prefixed notation before other forms of rewriting.
11193 2009-04-08 Robert Dewar <dewar@adacore.com>
11195 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
11196 these are now obsolescent units used only for bootrapping with an
11199 2009-04-08 Robert Dewar <dewar@adacore.com>
11201 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
11203 * sem_ch3.adb: Minor comment updates
11205 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11207 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
11208 that come from source.
11210 2009-04-08 Tristan Gingold <gingold@adacore.com>
11212 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
11213 * gcc-interface/decl.c (prepend_attributes): New case
11214 Pragma_Thread_Local_Storage.
11215 * gcc-interface/utils.c (process_attributes): New case
11216 ATTR_THREAD_LOCAL_STORAGE.
11218 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11220 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
11221 by the back-end if it contains a call to a subprogram without a
11222 previous spec that is declared in the same unit.
11224 * errout.ads: Update comments on uses of dirs
11226 2009-04-08 Robert Dewar <dewar@adacore.com>
11228 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
11230 2009-04-08 Tristan Gingold <gingold@adacore.com>
11232 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
11234 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
11236 2009-04-08 Vincent Celier <celier@adacore.com>
11239 (Add_Source): Add the mapping of the unit name to source file name in
11240 the Unit_Sources_HT hash table, if the unit name is not null.
11242 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
11244 * prj.ads (Unit_Sources_Htable): New hash table instantiation
11245 (Project_Tree_Data): New component Unit_Sources_HT
11247 2009-04-08 Thomas Quinot <quinot@adacore.com>
11249 * sem_ch8.adb: Minor reformatting.
11250 Minor code reorganization.
11252 2009-04-08 Robert Dewar <dewar@adacore.com>
11254 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
11255 snames.ads, freeze.adb, par-prag.adb: Add implementation of
11256 pragma Thread_Local_Storage, setting new flag
11257 Has_Pragma_Thread_Local_Storage in corresponding entities.
11259 2009-04-08 Emmanuel Briot <briot@adacore.com>
11261 * prj.ads: Update comment on switches file
11263 * prj-nmsc.adb: Code clean up. Use renaming clauses.
11265 2009-04-08 Robert Dewar <dewar@adacore.com>
11267 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
11269 2009-04-08 Thomas Quinot <quinot@adacore.com>
11271 * ali-util.adb: Minor comment fix
11273 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11275 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
11276 appears in a context clause, and the enclosing package is mentioned in
11277 a limited_with_clause.
11278 (Use_One_Type): Reject clause if type is still incomplete.
11280 2009-04-08 Emmanuel Briot <briot@adacore.com>
11282 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
11283 avoid copies of Source_Data variables when possible, since these
11284 involve calls to memcpy() which are done too many times.
11286 2009-04-08 Robert Dewar <dewar@adacore.com>
11288 * exp_ch4.adb (Expand_Concatenate): Clean up code
11290 2009-04-07 Thomas Quinot <quinot@adacore.com>
11292 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
11293 type for the case of concatenating a constrained array indexed by an
11296 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11298 * sem_ch6.adb (Check_Conformance): when checking conformance of an
11299 operation that overrides an abstract operation inherited from an
11300 interface, return False if only one of the controlling formals is an
11303 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11305 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
11306 mandated by AI05-105.
11308 2009-04-07 Vincent Celier <celier@adacore.com>
11310 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
11312 2009-04-07 Thomas Quinot <quinot@adacore.com>
11314 * usage.adb: Minor fix in usage message.
11316 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
11317 match declaration; the correct subtype is Node_Id, not Entity_Id,
11318 because the expected node kind is an identifier, not a defining
11321 * switch-c.adb: Minor reformatting.
11323 * uintp.adb: Minor reformatting.
11325 2009-04-07 Robert Dewar <dewar@adacore.com>
11327 * exp_ch13.adb: Minor reformatting
11329 2009-04-07 Robert Dewar <dewar@adacore.com>
11331 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
11332 against missing parent.
11334 2009-04-07 Thomas Quinot <quinot@adacore.com>
11336 * xoscons.adb: Minor reformatting
11338 2009-04-07 Robert Dewar <dewar@adacore.com>
11340 * rtsfind.ads: Remove obsolete string concatenation entries
11342 2009-04-07 Robert Dewar <dewar@adacore.com>
11344 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
11346 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11348 * sem_ch10.adb (Check_Body_Required): Handle properly imported
11351 2009-04-07 Gary Dismukes <dismukes@adacore.com>
11353 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
11354 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
11355 is of a scalar or string type then suppress the setting of the
11356 expression to Empty.
11358 * freeze.adb (Warn_Overlay): Also emit the warnings about default
11359 initialization for the cases of scalar and string objects when
11360 Init_Or_Norm_Scalars is True.
11362 2009-04-07 Bob Duff <duff@adacore.com>
11364 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
11366 2009-04-07 Bob Duff <duff@adacore.com>
11368 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
11369 Form parameter of Text_Translation=No allows binary mode for Text_IO
11372 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
11374 2009-04-07 Javier Miranda <miranda@adacore.com>
11376 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
11377 processing the bounds for bit packed arrays or VM target machines.
11379 2009-04-07 Thomas Quinot <quinot@adacore.com>
11381 * g-sothco.ads (Int_Access): Remove extraneous access type (use
11382 anonymous access instead).
11383 (Get_Socket_From_Set): Fix incorrectly reverted formals
11384 Last and Socket to match the underlying C routine.
11386 * g-socket.adb, g-socket.ads
11387 (Get): Use named parameter associations instead of positional ones in
11388 call go Get_Socket_From_Set, since this routine has two formals of the
11390 (Image): New procedure.
11392 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11393 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
11394 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
11395 for type of Arg formal.
11397 * sem_warn.adb: Minor reformatting
11399 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11401 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
11402 over record components.
11404 2009-04-07 Nicolas Roche <roche@adacore.com>
11407 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
11408 has disappeared between VxWorks 6.4 and VxWorks 6.5
11409 In RTP mode use time.h instead of times.h
11411 2009-04-07 Robert Dewar <dewar@adacore.com>
11413 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
11415 2009-04-07 Kevin Pouget <pouget@adacore.com>
11417 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
11418 expanded code for constrained types.
11420 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11422 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
11423 AI05-105: in an object renaming declaration, anonymousness is a name
11426 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
11428 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11430 * g-comlin.adb (Expansion): Fix old regression: also return directory
11431 names when matching.
11433 2009-04-07 Robert Dewar <dewar@adacore.com>
11436 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
11437 (Expand_Concatenate): New name for Expand_Concatenate_String which has
11438 been rewritten to handle all types.
11439 (Expand_Concatenate_Other): Remove
11441 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11443 * lib-xref.adb (Generate_Reference): A default subprogram in an
11444 instance appears within the tree for the instance, but generates an
11445 implicit reference in the ALI.
11447 2009-04-07 Javier Miranda <miranda@adacore.com>
11449 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
11450 derived type that has discriminants, propagate the list of interfaces
11451 to the corresponding new base type. In addition, propagate also
11452 attribute Limited_Present (found working in this patch).
11454 2009-04-07 Robert Dewar <dewar@adacore.com>
11456 * exp_ch4.adb: Rewrite concatenation expansion.
11458 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11460 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
11461 relevant to packages.
11463 2009-04-07 Robert Dewar <dewar@adacore.com>
11465 * sem_attr.adb: Minor reformatting
11467 * sem_ch6.adb: Minor reformatting
11469 2009-04-07 Tristan Gingold <gingold@adacore.com>
11471 * socket.c: Add more protections against S_resolvLib_ macros.
11473 2009-04-07 Thomas Quinot <quinot@adacore.com>
11475 * sem_attr.adb: Minor reformatting
11477 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11479 * sem_ch6.adb (New_Overloaded_Entity): New predicate
11480 Is_Overriding_Alias to handle properly types that inherit two homonym
11481 operations that have distinct dispatch table entries.
11483 2009-04-07 Emmanuel Briot <briot@adacore.com>
11485 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
11486 looking for the end of a parenthesis group
11488 2009-04-07 Tristan Gingold <gingold@adacore.com>
11490 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
11492 * socket.c Don't use resolvLib_ macros if not defined.
11494 2009-04-07 Robert Dewar <dewar@adacore.com>
11496 * g-socket.adb: Minor reformatting.
11498 * g-socthi-mingw.adb: Minor reformatting
11500 * g-sothco.ads: Minor reformatting
11503 (Expand_Concatenate_String): Complete rewrite to generate efficient code
11504 inline instead of relying on external library routines.
11506 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
11507 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
11510 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11513 (Eval_Attribute): for attributes of array objects that are not strings,
11514 attributes are not static if nominal subtype of object is unconstrained.
11516 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11518 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
11519 operations for a type T in an instance do not override each other,
11520 when T is derived from a formal private type, the corresponding
11521 operations inherited by a type derived from T outside
11522 of the instance do not override each other either.
11524 2009-04-07 Robert Dewar <dewar@adacore.com>
11526 (Osint.Fail): Change calling sequence to have one string arg
11527 (Make.Make_Failed): Same change
11528 All callers are adjusted to use concatenation
11530 2009-04-07 Robert Dewar <dewar@adacore.com>
11532 * exp_ch4.adb: Fix documentation typo
11534 2009-04-07 Robert Dewar <dewar@adacore.com>
11536 * tbuild.ads: Minor reformatting
11538 2009-04-07 Javier Miranda <miranda@adacore.com>
11540 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
11541 when compiling under ZFP runtime.
11543 2009-04-07 Robert Dewar <dewar@adacore.com>
11545 * g-comlin.adb: Minor reformatting
11547 2009-04-07 Thomas Quinot <quinot@adacore.com>
11549 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11550 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
11551 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
11552 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
11554 2009-04-07 Robert Dewar <dewar@adacore.com>
11556 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
11558 * opt.ads (Sprint_Line_Limit): New parameter
11560 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
11562 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
11564 * usage.adb: Output information for -gnatGnn -gnatDnn
11566 2009-04-07 Robert Dewar <dewar@adacore.com>
11568 * make.adb: Minor reformatting
11570 2009-04-07 Robert Dewar <dewar@adacore.com>
11572 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
11574 2009-04-07 Robert Dewar <dewar@adacore.com>
11576 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
11578 2009-04-07 Robert Dewar <dewar@adacore.com>
11581 Remove Assume_Valid parameter from In_Subrange_Of calls
11584 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11585 (Is_In_Range): Remove incorrect use of Assume_Valid
11586 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
11589 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11590 (Is_In_Range): Documentation cleanup
11591 (Is_Out_Of_Range): Documentation cleanup
11594 Add documentation for Assume_No_Invalid_Values pragma
11596 * sem_ch12.adb: Minor reformatting
11598 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
11600 * sem_prag.adb: Improve error message.
11602 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
11603 LF/CR no longer recognized as line terminator
11605 * switch.ads: Minor documentation improvement
11607 * vms_data.ads: Minor reformatting
11609 2009-04-07 Robert Dewar <dewar@adacore.com>
11611 * checks.adb (Determine_Range): Add Assume_Valid parameter
11613 * checks.ads (Determine_Range): Add Assume_Valid parameter
11615 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
11616 Is_Null_Loop to suppress warnings in a loop body.
11619 (Rewrite_Comparison): Major rewrite to accomodate invalid values
11622 (Expand_N_Loop_Statement): Delete loop known not to execute
11625 (Assume_No_Invalid_Values): Now set to False, and as documented, this
11626 fully enables the proper handling of invalid values.
11629 New calling sequence for Is_In_Range
11632 (Analyze_Iteration_Scheme): Accomodate possible invalid values
11633 in determining if a loop range is null.
11636 (Is_In_Range): Add Assume_Valid parameter
11637 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11638 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
11639 also to do more accurate and complete range analysis, catching more
11643 (Is_In_Range): Add Assume_Valid parameter
11644 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11647 New calling sequence for Is_In_Range
11650 (Suppress_Loop_Warnings): New flag
11653 (Is_Null_Loop): Update documentation
11654 (Suppress_Loop_Warnings): New flag
11656 * gnat_ugn.texi: Document -gnatB switch
11658 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11660 * gnatvsn.ads: Bump version number.
11662 2009-04-07 Thomas Quinot <quinot@adacore.com>
11664 * exp_ch3.adb: Minor rewording (comments)
11666 2009-04-07 Robert Dewar <dewar@adacore.com>
11668 * exp_disp.adb: Minor reformatting
11670 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11672 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
11674 * gcc-interface/trans.c (lvalue_required_p): Likewise.
11676 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11678 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
11679 Do not convert the result. Remove obsolete comment.
11681 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11683 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
11685 (Subprogram_Body_to_gnu): Fix pasto.
11687 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11689 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
11690 (void_type_decl_node): Remove.
11691 (init_gigi_decls): Likewise.
11692 (gnat_install_builtins): Declare.
11693 (record_builtin_type): Likewise.
11694 (create_type_stub_decl): Likewise.
11695 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
11696 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
11698 <E_Array_Subtype>: Use the index types, not only their name, in the
11699 record giving the names of the bounds, if any.
11700 For a packed array type, make it artificial only if the base type
11701 was artificial as well. Remove redundant statement.
11702 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
11704 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
11705 (rest_of_type_decl_compilation_no_defer): Likewise.
11706 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
11707 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
11708 and use create_type_stub_decl to build it.
11709 (gnat_pushdecl): Rewrite condition.
11710 (gnat_install_builtins): Remove bogus declaration.
11711 (record_builtin_type): New function.
11712 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
11714 (create_type_stub_decl): New function.
11715 (create_type_decl): Assert that the type is not dummy. If the type
11716 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
11717 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
11718 (build_vms_descriptor): Likewise.
11719 (init_gigi_decls): Delete and move bulk of code to...
11720 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
11721 (emit_range_check): Add gnat_node parameter.
11722 (emit_index_check): Likewise.
11723 (emit_check): Likewise.
11724 (build_unary_op_trapv): Likewise.
11725 (build_binary_op_trapv): Likewise.
11726 (convert_with_check): Likewise.
11727 (Attribute_to_gnu): Adjust calls for above changes.
11728 (call_to_gnu): Likewise.
11729 (gnat_to_gnu): Likewise.
11730 (assoc_to_constructor): Likewise.
11731 (pos_to_constructor): Likewise.
11732 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
11733 (process_type): Do not create TYPE_DECL for dummy types.
11735 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11737 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
11738 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
11739 * gcc-interface/utils.c: Fix comments.
11741 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11743 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
11745 (gnat_to_gnu_type): Move around.
11746 (get_unpadded_type): Likewise.
11747 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
11750 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11752 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
11753 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
11754 (call_to_gnu): Invoke it instead of manually checking.
11756 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
11758 * gcc-interface/utils.c (finish_record_type): Force structural equality
11759 checks if the record type is discriminated.
11761 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
11763 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
11764 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
11765 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
11766 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
11767 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
11768 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
11769 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
11771 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
11773 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
11774 of TREE_CONSTANT_OVERFLOW.
11776 2009-03-30 Joseph Myers <joseph@codesourcery.com>
11778 PR rtl-optimization/323
11779 * gcc-interface/misc.c (gnat_post_options): Set
11780 flag_excess_precision_cmdline. Give an error for
11781 -fexcess-precision=standard for processors where the option is
11784 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11787 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
11790 2009-03-11 Olivier Hainque <hainque@adacore.com>
11792 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
11793 checks processing, remove unintended TREE_TYPE walk on index type.
11795 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
11798 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
11799 call make_packable_type on fat pointer types.
11800 <E_Array_Subtype>: Likewise.
11801 <E_Record_Subtype>: Call make_packable_type on all record types
11802 except for fat pointer types.
11803 (make_packable_type): Likewise.
11804 (gnat_to_gnu_field): Likewise.
11806 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
11808 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
11809 EH_MECHANISM change made on 2007-12-06.
11811 2009-02-26 Andreas Schwab <schwab@suse.de>
11814 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
11815 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
11816 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
11818 (target_cpu_default): Substitute.
11820 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11823 * a-teioed.adb (Expand): Fix Result overflow.
11825 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11827 * gcc-interface/Makefile.in: Fix multilib handling for
11830 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11832 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
11834 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
11836 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
11838 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
11840 * gcc-interface/deftarg.c: Remove.
11842 2009-02-10 Olivier Hainque <hainque@adacore.com>
11843 Eric Botcazou <ebotcazou@adacore.com>
11845 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
11846 (copy_alias_set): Rename into...
11847 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
11848 underlying array of unconstrained arrays for the new type as well.
11849 If the old and new alias sets don't conflict, make one a subset of
11850 the other as per the OP parameter.
11851 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
11852 <E_Record_Type>: Do not copy the alias set for derived types.
11853 For all types, make the alias set of derived types a superset of
11854 that of their parent type.
11855 (make_aligning_type): Adjust calls to copy_alias_set.
11856 (make_packable_type): Likewise.
11857 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
11858 Check for alias set conflict instead of strict equality to issue the
11861 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
11863 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11864 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
11865 (copy_alias_set): Assert that arrays have the same aliasing settings.
11866 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
11868 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
11870 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11871 Set TYPE_NONALIASED_COMPONENT on the array type.
11873 2009-01-31 Laurent GUERBY <laurent@guerby.net>
11875 * gcc-interface/Makefile.in: Fix mipsel linux handling.
11877 2009-01-16 Jakub Jelinek <jakub@redhat.com>
11879 * gcc-interface/Makefile.in: Fix multilib handling for
11882 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
11884 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
11885 only useless conversions around renamed objects.
11887 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
11889 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
11890 the _Tag field before any discriminants in the field list.
11891 (components_to_record): Remove obsolete comment.
11895 Copyright (C) 2009 Free Software Foundation, Inc.
11897 Copying and distribution of this file, with or without modification,
11898 are permitted in any medium without royalty provided the copyright
11899 notice and this notice are preserved.