1 2009-11-30 Javier Miranda <miranda@adacore.com>
3 * exp_ch6.adb, sem_scil.adb (Adjust_SCIL_Node): Add missing management
4 of N_Unchecked_Type_Conversion nodes when searching for SCIL nodes.
5 (Expand_Call): Adjust decoration of SCIL node associated with relocated
8 2009-11-30 Emmanuel Briot <briot@adacore.com>
10 * prj-env.adb (Add_To_Source_Path): Preserve casing of directories
12 2009-11-30 Vincent Celier <celier@adacore.com>
14 * opt.ads (No_Split_Units): New flag initialized to False
16 2009-11-30 Jerome Lambourg <lambourg@adacore.com>
18 * exp_ch7.adb (Needs_Finalization): Add comments.
19 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Improve handling of
22 2009-11-30 Robert Dewar <dewar@adacore.com>
24 * osint.adb, a-rttiev.adb: Minor reformatting.
26 2009-11-30 Robert Dewar <dewar@adacore.com>
28 * gnat_rm.texi: Remove list of warning letters, and refer instead to
29 using gnatmake to get a brief list.
31 * debug.adb: Document -gnatd.i to disable pragma Warnings
32 * par-prag.adb, sem_prag.adb: Recognize -gnatd.i to disable Warnings
34 * vms_data.ads: Add /NOWARNINGS_PRAGMS for -gnatd.i
36 2009-11-30 Geert Bosch <bosch@adacore.com>
38 * a-ngelfu.adb (Sin): Correct spelling of sine in comment.
40 2009-11-30 Vincent Celier <celier@adacore.com>
42 * gnatls.adb: Do not call Get_Target_Parameters in Verbose_Mode, as it
43 is not needed and gnatls fails when called with -v -nostdinc.
45 2009-11-30 Emmanuel Briot <briot@adacore.com>
47 * osint.adb, osint.ads (File_Time_Stamp): new subprogram.
49 2009-11-30 Ed Schonberg <schonberg@adacore.com>
51 * gnat_rm.texi, gnat_ugn.texi: Document new syntax for pragma Annotate
53 2009-11-30 Robert Dewar <dewar@adacore.com>
55 * scans.ads (Wide_Wide_Character_Found): New flag
56 * scn.adb (Post_Scan): Set new flag Has_Wide_Wide_Character
57 * scng.adb (Set_String): Set new flag Wide_Wide_Character_Found
58 (Set_String): Fix failure to reset Wide_Character_Found
59 * sinfo.adb (Has_Wide_Wide_Character): New flag in N_String_Literal
60 * sinfo.ads (Has_Wide_Wide_Character): New flag in N_String_Literal
61 * a-ngelfu.adb: Minor reformatting & code reorganization.
62 * usage.adb: Fix typo in -gnatw.W line
64 2009-11-30 Robert Dewar <dewar@adacore.com>
66 * osint.adb, prj-nmsc.adb, sem_prag.adb, sem_util.adb: Minor
68 * csinfo.adb: Terminate run if improper use of reserved flag
69 * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): Don't use reserved
70 Flag12, used Flag13 instead.
72 2009-11-30 Vincent Celier <celier@adacore.com>
74 * gnatcmd.adb (Check_Files): Recognize documented switches that have a
77 2009-11-30 Robert Dewar <dewar@adacore.com>
79 * sem_util.ads: Minor reformatting
80 * errout.adb: Minor reformatting
81 Minor code reorganization (use N_Subprogram_Specification to simplify)
82 * exp_ch7.adb: Add comment.
84 2009-11-30 Thomas Quinot <quinot@adacore.com>
86 * put_scos.adb (Put_SCOs): Do not generate a SCO unit header for a unit
88 * scos.ads: Minor reformatting
90 2009-11-30 Ed Schonberg <schonberg@adacore.com>
92 * sem_prag.adb: Second unanalyzed parameter of Annotate is optional.
94 2009-11-30 Eric Botcazou <ebotcazou@adacore.com>
96 * init.c (__gnat_adjust_context_for_raise, Linux version): Add guard
97 for null PC saved in the context.
99 2009-11-30 Hristian Kirtchev <kirtchev@adacore.com>
101 * a-calend.adb (Day_Of_Week): Rewritten. The routine determines the
102 number of days from the Ada Epoch to the input date while ensuring that
103 both dates are in the same time zone.
105 2009-11-30 Emmanuel Briot <briot@adacore.com>
107 * clean.adb ("-eL"): Also set Follow_Links_For_Dirs, to match what is
108 done in other project-aware tools like gnatmake and gprbuild.
110 2009-11-30 Jerome Lambourg <lambourg@adacore.com>
112 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Take care of CIL
114 * exp_ch7.adb (Needs_Finalization): Do not finalize CIL valuetypes.
115 * sem_util.adb (Is_Value_Type): Protect against invalid calls to Chars
116 (Is_Delegate): New method used for CIL.
117 * sem_util.ads (Is_Delegate): New method for CIL handling.
118 (Is_Value_Type): Improve documentation.
120 2009-11-30 Ed Schonberg <schonberg@adacore.com>
122 * errout.adb (Unwind_Internal_Type): Improve error reporting if the
123 type is an anonymous access to subprogram that is the type of a formal
124 in a subprogram spec.
126 2009-11-30 Vincent Celier <celier@adacore.com>
128 * prj-nmsc.adb (Check_Interfaces): In a Stand-Alone Library project, if
129 attribute Interfaces is not declared, then Library_Interface should
130 define the interfaces.
132 2009-11-30 Ed Schonberg <schonberg@adacore.com>
134 * sem_prag.adb: New semantics for Annotate.
136 2009-11-30 Tristan Gingold <gingold@adacore.com>
138 * gcc-interface/Makefile.in: Do not link with -static-libgcc on Darwin.
140 2009-11-30 Emmanuel Briot <briot@adacore.com>
142 * gnat_ugn.texi: Extend doc for -eL
144 2009-11-30 Vincent Celier <celier@adacore.com>
146 * osint.adb (Executable_Name (File_Name_Type)): Put the Name in the
147 Name_Buffer before testing for a dot in the Name.
149 2009-11-30 Vincent Celier <celier@adacore.com>
151 * prj-part.adb (Project_Path_Name_Of): Resolve links for final result
152 if -eL has been specified.
154 2009-11-30 Vincent Celier <celier@adacore.com>
156 * osint.adb (Executable_Name): Test the name instead of the name buffer
157 to check if there is a dot in the given name.
159 2009-11-30 Sergey Rybin <rybin@adacore.com>
161 * gnat_ugn.texi: Update gnatcheck doc.
163 2009-11-30 Robert Dewar <dewar@adacore.com>
165 * sem_ch3.adb, sem_disp.adb, usage.adb: Minor reformatting
167 2009-11-30 Vasiliy Fofanov <fofanov@adacore.com>
169 * gnat_ugn.texi: Minor editing.
171 2009-11-30 Emmanuel Briot <briot@adacore.com>
173 * prj-nmsc.adb (Search_Directories): when -eL was not specified, assume
174 that no directory matches the naming scheme for sources.
176 2009-11-30 Emmanuel Briot <briot@adacore.com>
178 * prj.adb, prj.ads, prj-nmsc.adb (Has_Multi_Unit_Sources): New field in
181 2009-11-30 Vincent Celier <celier@adacore.com>
183 * osint.adb (Executable_Name): Correctly decide if the executable
184 suffix should be added when Only_If_No_Suffix is True.
186 2009-11-30 Robert Dewar <dewar@adacore.com>
188 * frontend.adb, gnatlink.adb, prj-conf.adb, prj-tree.adb,
189 prj-tree.ads: Minor reformatting
191 2009-11-30 Vincent Celier <celier@adacore.com>
193 * gnatlink.adb (Process_Args): Call Executable_Name on argument of -o
194 with Only_If_No_Suffix set to True.
195 * osint.adb (Executable_Name): Do not add executable suffix if there is
196 already a suffix and Only_If_No_Suffix is True.
197 * osint.ads (Executable_Name): New Boolean parameter Only_If_No_Suffix,
200 2009-11-30 Javier Miranda <miranda@adacore.com>
202 * exp_atag.adb (Build_TSD): Change argument name because the actual is
203 now the address of a tag (instead of the tag). Update implementation
205 (Build_CW_Membership): New implementation. Converted into a procedure
206 because it has an additional out mode parameter. Its implementation has
207 been rewritten to improve the generated code but also to facilitate
208 referencing the relocated object node in the caller.
209 * exp_atag.ads (Build_CW_Membership): Update profile and documentation.
210 * sinfo.ads (N_SCIL_Membership_Test) New_Node.
211 (SCIL_Tag_Value): New field of N_SCIL_Membership_Test nodes.
212 (Is_Syntactic_Field): Add entry of new node.
213 (SCIL_Tag_Value/Set_SCIL_Tag_Value): New subprograms.
214 * sinfo.adb (SCIL_Related_Node, SCIL_Entity): Update assertions to
215 handle N_SCIL_Membership_Test nodes.
216 (SCIL_Tag_Value/Set_SCIL_Tag_Value): New subprograms.
217 * sem.adb (Analyze): Add null management for new node.
218 * sem_scil.adb (Find_SCIL_Node): Add null management for new node.
219 (Check_SCIL_Node): Add checks of N_SCIL_Membership_Test nodes.
220 * exp_ch4.adb (Tagged_Membership): Change profile from function to
221 procedure. Add generation of SCIL node associated with class-wide
223 (Expand_N_In): Complete decoration of SCIL nodes.
224 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Tune call to
225 Build_CW_Membership because its profile has been changed.
226 * exp_util.adb (Insert_Actions): Add null management for new node.
227 * sprint.adb (Sprint_Node_Actual): Handle new node.
228 * gcc-interface/trans.c Add no processing for N_SCIL_Membership_Test
230 * gcc-interface/Make-lang.in: Update dependencies.
232 2009-11-30 Ed Schonberg <schonberg@adacore.com>
234 * opt.ads: New flags Init_Or_Norm_Scalars_Config,
235 Initialize_Scalars_Config, to capture the presence of the corresponding
236 pragmas in a configuration file.
237 * opt.adb (Register_, Save_, Set_, Restore_Opt_Configuration_Switches):
238 handle new flags so that they are restored for each compilation unit.
239 * frontend.adb: At the end of compilation, scan the context of the main
240 unit to recover occurrences of pragma Initialize_Scalars, to annotate
241 the ALI file accordingly.
243 2009-11-30 Vincent Celier <celier@adacore.com>
245 * prj-tree.ads: Minor comment updates
246 * prj-tree.adb: Minor reformatting
248 2009-11-30 Ed Schonberg <schonberg@adacore.com>
250 * sem_ch3.adb (Derive_Subprogram): Indicate that an inherited
251 predefined control operation is hidden if the parent type is not
253 * sem_ch6.adb (Check_Overriding_Indicator): Do not report error if
254 overridden operation is not visible, as may be the case with predefined
256 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on
257 non-overriding control operation when type is not visibly controlled,
258 if the subprogram has an explicit overriding indicator.
259 * sem_util.ads, sem_util.adb (Is_Visibly_Controlled): Moved here from
262 2009-11-30 Emmanuel Briot <briot@adacore.com>
264 * prj-tree.adb (Create_Attribute): Fix handling of VMS and Windows
265 * prj-attr.ads: Minor comment updates
267 2009-11-30 Robert Dewar <dewar@adacore.com>
269 * gnat_rm.texi: Document pragma Short_Circuit
271 2009-11-30 Emmanuel Briot <briot@adacore.com>
273 * prj-conf.adb, prj-tree.adb, prj-tree.ads (Create_Attribute): Now set
274 the index either on the attribute or on its value, depending on the
275 kind of the attribute. Done to match recent changes in Prj.PP that were
276 not synchronized with this function.
278 2009-11-30 Arnaud Charlet <charlet@adacore.com>
280 * gcc-interface/Make-lang.in: Fix typo.
283 2009-11-30 Robert Dewar <dewar@adacore.com>
285 * gnat_rm.texi: Add documentation for attribute Result.
287 2009-11-30 Arnaud Charlet <charlet@adacore.com>
289 * s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
290 s-osinte-tru64.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads
291 (Get_Page_Size): Update comment since Get_Page_Size is now required.
293 2009-11-30 Jerome Lambourg <lambourg@adacore.com>
295 * freeze.adb: Disable Warning on VM targets concerning C Imports, not
298 2009-11-30 Bob Duff <duff@adacore.com>
300 * sprint.adb (Source_Dump): Minor comment fix.
301 (Write_Itype): When writing a string literal subtype, use Expr_Value
302 instead of Intval to get the low bound.
304 2009-11-30 Vincent Celier <celier@adacore.com>
306 * gnatlink.adb (Process_Args): Do not call Executable_Name on arguments
309 2009-11-30 Robert Dewar <dewar@adacore.com>
311 * exp_ch4.adb (Expand_N_Op_And): Implement pragma Short_Circuit_And_Or
312 (Expand_N_Op_Or): Implement pragma Short_Circuit_And_Or
313 * opt.ads (Short_Circuit_And_Or): New flag
314 * par-prag.adb: Add dummy entry for pragma Short_Circuit_And_Or
315 * sem_prag.adb: Implement pragma Short_Circuit_And_Or
316 * snames.ads-tmpl: Add entries for pragma Short_Circuit_And_Or
318 2009-11-30 Arnaud Charlet <charlet@adacore.com>
320 * s-taprop-posix.adb: Fix casing.
321 * s-osinte-tru64.adb: Complete previous check-in.
323 2009-11-30 Robert Dewar <dewar@adacore.com>
325 * gnat_rm.texi: Document pragma Compiler_Unit
326 * s-bitops.adb, s-restri.adb, g-htable.adb, s-restri.ads,
327 a-comlin.ads, a-strhas.ads, s-strhas.adb, s-parame.adb,
328 s-parame.ads, a-clrefi.adb, a-clrefi.ads, a-ioexce.ads: Supply missing
329 Compiler_Unit pragmas.
330 * freeze.adb (Freeze_Entity): Improve message for 8-bit boolean passed
333 2009-11-30 Robert Dewar <dewar@adacore.com>
335 * makeutl.adb, makeutl.ads, prj-proc.adb, prj.adb, prj.ads: Minor
338 2009-11-30 Thomas Quinot <quinot@adacore.com>
340 * osint.adb: Minor reformatting
342 2009-11-30 Vincent Celier <celier@adacore.com>
344 * makeutl.ads, makeutl.adb (Base_Name_Index_For): New function to get
345 the base name of a main without the extension, with an eventual source
347 (Mains.Get_Index): New procedure to set the source index of a main
348 (Mains.Get_Index): New function to get the source index of a main
349 * prj-attr.adb: New attributes Config_Body_File_Name_Index,
350 Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
352 * prj-nmsc.adb (Process_Compiler): Takle into account new attributes
353 Config_Body_File_Name_Index, Config_Spec_File_Name_Index,
354 Multi_Unit_Object_Separator and Multi_Unit_Switches.
355 Allow only one character for Multi_Unit_Object_Separator.
356 * prj-proc.adb (Process_Declarative_Items): Take into account the
357 source indexes in indexes of associative array attribute declarations.
358 * prj.adb (Object_Name): New function to get the object file name for
359 units in multi-unit sources.
360 * prj.ads (Language_Config): New components Multi_Unit_Switches,
361 Multi_Unit_Object_Separator Config_Body_Index and Config_Spec_Index.
362 (Object_Name): New function to get the object file name for units in
364 * snames.ads-tmpl: New standard names Config_Body_File_Name_Index,
365 Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
368 2009-11-30 Arnaud Charlet <charlet@adacore.com>
370 * s-tassta.adb: Update comment.
372 2009-11-30 Robert Dewar <dewar@adacore.com>
374 * a-ngelfu.adb: Minor code reorganization.
376 2009-11-30 Robert Dewar <dewar@adacore.com>
378 * osint.ads, prj.adb, prj.ads: Minor reformatting
379 * s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
380 s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
381 s-strxdr.adb, s-taprop-irix.adb, s-osinte-hpux-dce.adb,
382 s-osinte-tru64.adb, s-taenca.adb, s-taprop-hpux-dce.adb, s-stausa.adb,
383 s-taprop-posix.adb: Minor code reorganization (use conditional
386 2009-11-30 Bob Duff <duff@adacore.com>
388 * g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change.
390 2009-11-30 Bob Duff <duff@adacore.com>
392 * socket.c: Add more accessor functions for struct servent (need
393 setters as well as getters).
394 * g-sothco.ads (Servent): Declare interfaces to C setter functions for
396 * g-sttsne-locking.adb (Copy_Service_Entry): Use setter functions for
399 2009-11-30 Robert Dewar <dewar@adacore.com>
401 * s-stchop-vxworks.adb: Add comment.
403 2009-11-30 Emmanuel Briot <briot@adacore.com>
405 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Now acts
406 on the whole tree, to better share code with gprbuild.
407 (Length): New subprogram, to share code in gprbuild.
408 (Project_Data): Remove fields that are only needed when compiling a
409 project in gprbuild (where we use local variables instead)
410 * osint.adb, osint.ads: Added minor comment on memory management
412 2009-11-30 Sergey Rybin <rybin@adacore.com>
414 * gnat_ugn.texi: Update gnatcheck doc.
416 2009-11-30 Robert Dewar <dewar@adacore.com>
418 make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting
419 * s-taprop-dummy.adb: Minor code reorganization (raise with msgs start
421 * i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb,
422 g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb,
423 s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb,
424 g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb,
425 g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code
426 reorganization (use conditional expressions).
428 2009-11-30 Vincent Celier <celier@adacore.com>
430 * prj-makr.adb (Source_Files): New hash table to keep track of source
432 (Finalize): Avoid putting several times the same source file name
433 in the source list file.
434 * prj-pp.adb (Print): Fix a bug in the placement of "at nn" for
435 associative array indexes.
437 2009-11-30 Robert Dewar <dewar@adacore.com>
439 * g-dyntab.ads: Add missing pragma Compiler_Unit
441 2009-11-30 Thomas Quinot <quinot@adacore.com>
443 * s-crtrun.ads, s-crtl.ads, g-stseme.adb, Makefile.rtl, s-fileio.adb
444 (System.CRTL.Runtime): New unit, to contain parts of s-crtl that are
445 used in the Ada runtime but can't be used in the compiler because of
447 * socket.c, s-oscons-tmplt.c, g-sothco.ads
448 (System.OS_Constants.SIZEOF_struct_servent): New constant.
449 Use s-oscons constant instead of external variable to get size of
452 2009-11-30 Thomas Quinot <quinot@adacore.com>
454 * s-crtl.ads, g-stseme.adb, s-fileio.adb (System.CRTL.strerror): Change
455 return type to Interfaces.C.Strings.chars_ptr to eliminate need for
456 dubious unchecked conversion at call sites.
457 * s-errrep.adb, s-errrep.ads, Makefile.rtl (System.Error_Reporting):
458 Remove obsolete, unused runtime unit.
459 * gcc-interface/Make-lang.in: Update dependencies.
460 * gcc-interface/Makefile.in: Remove VMS specialization of s-crtl, not
463 2009-11-30 Vincent Celier <celier@adacore.com>
465 * gnatlink.adb: Delete an eventual existing executable file, in case it
466 is a symbolic link, to avoid modifying the target of the symbolic link.
468 2009-11-30 Bob Duff <duff@adacore.com>
470 * socket.c: Add accessor functions for struct servent.
471 * g-sothco.ads (Servent): Declare interfaces to C accessor functions
473 * g-socket.adb (To_Service_Entry): Use accessor functions for struct
476 2009-11-30 Robert Dewar <dewar@adacore.com>
478 * g-arrspl.adb: Minor reformatting
479 * g-dyntab.adb: Add missing pragma Compiler_Unit
481 2009-11-30 Thomas Quinot <quinot@adacore.com>
483 * s-crtl.ads, s-oscons-tmplt.c: Fix support for VMS
484 * make.adb, g-comlin.ads, exp_ch6.adb: Minor reformatting
486 2009-11-30 Robert Dewar <dewar@adacore.com>
488 * bcheck.adb, gnatlink.adb, make.adb, makeutl.adb, osint.adb,
489 osint.ads, prj-ext.adb, sem_case.adb: Minor reformatting
490 * g-alleve.adb: Minor code reorganization (use conditional expressions)
492 2009-11-30 Matthew Heaney <heaney@adacore.com>
494 * a-crbtgo.adb (Delete_Fixup): Changed always-true predicates to
497 2009-11-30 Thomas Quinot <quinot@adacore.com>
499 * a-tasatt.adb, s-crtl.ads, s-taprop-dummy.adb (System.CRTL.malloc32,
500 System.CRTL.realloc32): Remove VMS-specific routines.
501 (Ada.Task_Attributes.Reference): Remove unreachable code.
502 (System.Task_Primitives.Operations.Initialize, dummy version):
503 Use plain Program_Error rather than call to
504 System.Error_Reporting.Shutdown.
506 2009-11-30 Thomas Quinot <quinot@adacore.com>
508 * s-oscons-tmplt.c, xoscons.adb: Add new constants in preparation for
509 sharing s-crtl across all platforms.
511 2009-11-30 Thomas Quinot <quinot@adacore.com>
513 * s-commun.adb, s-commun.ads: New internal support unit,
514 allowing code sharing between GNAT.Sockets and
515 GNAT.Serial_Communication.
516 * g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb,
517 g-socket.adb (GNAT.Sockets.Last_Index): Move to System.Communication.
518 (GNAT.Serial_Communication.Read): Handle correctly the case where no
519 data was read, and Buffer'First = Stream_Element_Offset'First.
520 * Makefile.rtl: Add entry for s-commun
521 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
522 g-socthi-vxworks.ads, g-stseme.adb, g-socthi-mingw.ads,
523 g-socthi.adb, g-socthi.ads (GNAT.Sockets.Thin.Socket_Error_Message):
524 Reimplement in terms of System.CRTL.strerror.
526 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
528 * gcc-interface/utils.c (copy_type): Unshare the language-specific data
529 and the contents of the language-specific slot if needed.
531 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
533 * gcc-interface/trans.c (gnat_to_gnu) <N_In>: Set the source location
534 of the operator on both branches of the test in the generic case.
536 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
538 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): Rename into...
539 (unchecked_conversion_nop): ...this. Handle actual parameters.
540 (gnat_to_gnu): Adjust for above renaming.
542 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
544 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
545 Translate regular boolean types into BOOLEAN_TYPEs.
547 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
549 * sem_util.adb (Set_Debug_Info_Needed): For an E_Class_Wide_Subtype,
550 also set the flag on the Equivalent_Type.
551 * gcc-interface/utils.c (finish_record_type): Replace DO_NOT_FINALIZE
552 parameter with DEBUG_INFO_P. Rename FIELDLIST into FIELD_LIST.
553 (rest_of_record_type_compilation): Rename FIELDLIST into FIELD_LIST.
554 (build_vms_descriptor32): Adjust call to finish_record_type.
555 (build_vms_descriptor): Likewise.
556 (build_unc_object_type): Likewise.
557 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust calls to
558 finish_record_type and components_to_record.
559 (make_packable_type): Adjust call to finish_record_type.
560 (maybe_pad_type): Likewise. Tweak condition.
561 (components_to_record): Likewise. Replace DO_NOT_FINALIZE parameter
562 with MAYBE_UNUSED. Adjust recursive call.
563 (create_variant_part_from): Adjust call to finish_record_type. Do not
564 call rest_of_record_type_compilation on the new record types.
565 * gcc-interface/trans.c (gigi): Adjust call to finish_record_type.
566 * gcc-interface/gigi.h (finish_record_type): Adjust prototype and
568 (rest_of_record_type_compilation): Adjust comment.
570 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
572 * exp_util.adb (Make_CW_Equivalent_Type): Do not mark the type as
573 frozen for targets that do not require front-end layout.
574 (New_Class_Wide_Subtype): Always reset the freezing status to False.
575 * exp_ch8.adb: Do not 'with' Targparm.
576 (Expand_N_Object_Renaming_Declaration): Always freeze a class-wide
577 subtype that has been built from the expression.
578 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
579 class wide, freeze the implicit type that has been built from the
580 expression at the dereference point.
581 * freeze.adb (Freeze_Entity): Adjust comment.
582 * gcc-interface/decl.c (Gigi_Equivalent_Type) <E_Class_Wide_Type>:
584 * gcc-interface/trans.c (process_freeze_entity): Do not special-case
587 * s-osinte-aix.adb (clock_gettime): Fix comment.
588 * s-osinte-darwin.adb (clock_gettime): Likewise.
590 2009-11-23 Eric Botcazou <ebotcazou@adacore.com>
592 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Pass the list
593 of attributes when building the corresponding variable of a constant.
594 * gcc-interface/utils.c (create_var_decl_1): Do not process attributes
597 2009-11-23 Laurent GUERBY <laurent@guerby.net>
598 Eric Botcazou <ebotcazou@adacore.com>
601 * s-osinte-linux.ads (struct_timeval): Delete.
602 * s-osinte-hpux.ads (struct_timeval, To_Duration, To_Timeval): Delete.
603 * s-osinte-kfreebsd-gnu.ads: Likewise.
604 * s-osinte-rtems.ads: Likewise.
605 * s-osinte-aix.ads: Likewise.
606 * s-osinte-hpux-dce.ads: Likewise.
607 * s-osinte-darwin.ads: Likewise.
608 * s-osinte-solaris-posix.ads: Likewise.
609 * s-osinte-irix.ads: Likewise.
610 * s-osinte-solaris.ads: Likewise.
611 * s-osinte-hpux-dce.adb (To_Duration, To_Timeval): Delete.
612 * s-osinte-irix.adb: Likewise.
613 * s-osinte-solaris.adb: Likewise.
614 * s-osinte-rtems.adb: Likewise. Minor reformatting.
615 * s-osinte-aix.adb (To_Duration, To_Timeval): Delete.
616 (clock_gettime): Use cal.c's timeval_to_duration.
617 * s-osinte-darwin.adb: Likewise.
619 2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
621 * adaint.h: Assume large file support on IRIX only if _LFAPI.
623 2009-11-21 Laurent GUERBY <laurent@guerby.net>
624 Eric Botcazou <ebotcazou@adacore.com>
626 * s-osinte-linux.ads (struct_timeval, To_Duration, To_Timeval,
627 gettimeofday): Delete.
628 * s-osinte-posix.adb (To_Duration, To_Timeval): Delete.
629 * s-osprim-posix.adb (struct_timezone, struct_timeval, gettimeofday):
631 (Clock): Use cal.c's timeval_to_duration.
632 * s-taprop-linux.adb (Monotonic_Clock): Likewise.
634 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
635 Laurent GUERBY <laurent@guerby.net>
637 * init.c (GNU/Linux Section): Enable for all architectures.
639 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
642 * system-linux-alpha.ads (Stack_Check_Probes): Set to true.
643 * system-linux-hppa.ads (Stack_Check_Probes): Likewise.
644 * system-linux-sparc.ads (Stack_Check_Probes): Likewise.
645 * system-linux-sparcv9.ads (Stack_Check_Probes): Likewise.
647 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
649 * system-linux-alpha.ads (AAMP, Compiler_System_Version, OpenVMS,
650 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
652 (Stack_Check_Limits, Always_Compatible_Rep): New.
653 * system-linux-mips.ads (AAMP, Compiler_System_Version, OpenVMS,
654 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
656 (Stack_Check_Limits, Always_Compatible_Rep): New.
657 * system-linux-mips64el.ads (AAMP, Compiler_System_Version, OpenVMS,
658 Functions_Return_By_DSP, Front_End_ZCX_Support, High_Integrity_Mode,
659 Long_Shifts_Inlined): Delete.
660 (Stack_Check_Limits, Always_Compatible_Rep): New.
661 * system-linux-mipsel.ads (AAMP, Compiler_System_Version, OpenVMS,
662 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
664 (Stack_Check_Limits, Always_Compatible_Rep): New.
665 * system-linux-s390.ads (AAMP, Compiler_System_Version, OpenVMS,
666 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
668 (Stack_Check_Limits, Always_Compatible_Rep): New.
669 * system-linux-s390x.ads (AAMP, Compiler_System_Version, OpenVMS,
670 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
672 (Stack_Check_Limits, Always_Compatible_Rep): New.
673 * system-linux-sh4.ads (Stack_Check_Limits, Always_Compatible_Rep):
675 * system-linux-sparc.ads (AAMP, Compiler_System_Version, OpenVMS,
676 Front_End_ZCX_Support): Delete.
677 (Stack_Check_Limits, Always_Compatible_Rep): New.
678 * system-linux-sparcv9.ads (AAMP, Compiler_System_Version, OpenVMS,
679 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
681 (Stack_Check_Limits, Always_Compatible_Rep): New.
682 * system-rtems.ads (OpenVMS): Delete.
683 (Stack_Check_Limits, Always_Compatible_Rep): New.
685 2009-11-08 Eric Botcazou <ebotcazou@adacore.com>
687 * gcc-interface/decl.c (make_packable_type): Fix oversight.
688 (gnat_to_gnu_field): Do not attempt to change the form of the type
689 if the field requires strict alignment. Always change the form of
690 the type if the specified size is smaller than its size.
692 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
694 * gcc-interface/utils.c (gnat_type_for_mode): Handle vector modes.
696 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
698 * gcc-interface/trans.c (lvalue_required_p) <N_Unchecked_Conversion>:
701 2009-10-30 Eric Botcazou <ebotcazou@adacore.com>
703 * gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete.
704 (create_field_decl): Update description. In a packed record, round
705 the size up to a byte boundary only if the field's type has BLKmode.
706 * gcc-interface/gigi.h (create_field_decl): Update description.
708 2009-10-30 Emmanuel Briot <briot@adacore.com>
710 * make.adb (Start_Compile_If_Possible): Compute location of resulting
711 ALI file in this procedure instead of after the compilation itself,
712 since the current directory might have changed in between when using
715 * osint.ads: Addded missing alignment clause.
717 * adaint.c, adaint.h, osint.adb (__gnat_reset_attributes,
718 __gnat_size_of_file_attributes): Rename reset_attributes and
719 size_of_file_attributes.
721 2009-10-30 Javier Miranda <miranda@adacore.com>
723 * sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences
724 of statements when searching for SCIL nodes.
726 2009-10-30 Tristan Gingold <gingold@adacore.com>
728 * gnatlink.adb, link.c: By default use shared libgcc on darwin.
730 2009-10-30 Emmanuel Briot <briot@adacore.com>
732 * make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is
734 This saves system calls when looking for ALI files
735 (Scan_Make_Args): The parameter to gnatmake's -D is now converted to an
736 absolute PATH (so that the above improvement properly occurs if both
737 -D<dir> and -aO<dir> are specified).
739 2009-10-30 Thomas Quinot <quinot@adacore.com>
741 * a-direct.adb: Minor reformatting
743 2009-10-30 Emmanuel Briot <briot@adacore.com>
745 * make.adb, adaint.c, adaint.h, osint.adb, osint.ads, bcheck.adb
746 (*_attr): new subprograms.
747 (File_Length, File_Time_Stamp, Is_Writable_File): new subprograms
748 (Read_Library_Info_From_Full, Full_Library_Info_Name,
749 Full_Source_Name): Now benefit from a previous cache of the file
750 attributes, to further save on system calls.
751 (Smart_Find_File): now also cache the file attributes. This makes the
752 package File_Stamp_Hash_Table useless, and it was removed.
753 (Compile_Sources): create subprograms for the various steps of the main
754 loop, for readibility and to avoid sharing variables between the
757 2009-10-30 Emmanuel Briot <briot@adacore.com>
759 * make.adb, osint.adb, osint.ads (Library_File_Stamp): Removed, since
761 (Read_Library_Info_From_Full): New subprogram.
763 2009-10-30 Robert Dewar <dewar@adacore.com>
765 * a-tideio.adb: Minor reformatting
766 * a-wtdeio.adb, a-ztdeio.adb: Update comments, code clean up.
768 * a-reatim.adb, a-tideau.adb, a-ngelfu.adb, a-ztdeau.adb, a-ngrear.adb,
769 a-wtedit.adb, a-ststio.adb, a-ztedit.adb: Minor code reorganization
770 (use conditional expressions).
772 2009-10-30 Ed Schonberg <schonberg@adacore.com>
774 * gnat_ugn.texi: Additional info on gnatw.i and gnatw.I
776 * sem_case.adb: Improved error message.
778 2009-10-30 Emmanuel Briot <briot@adacore.com>
780 * a-direct.adb, gnatcmd.adb, gnatname.adb, makeutl.adb, opt.ads,
781 osint.adb, prj-ext.adb, switch-m.adb (Follow_Links_For_Dirs): Now
782 defaults to False, and controlled by -eL.
783 * a-direct.adb: Add comments.
784 * osint.adb (File_Stamp): Avoid unneeded duplicate system call
786 2009-10-30 Robert Dewar <dewar@adacore.com>
788 * sem_res.adb (Resolve_Type_Conversion): Avoid false positive when
789 converting non-static subtype to "identical" static subtype.
791 2009-10-30 Ed Schonberg <schonberg@adacore.com>
793 * usage.adb: Add -gnatw.i switch.
795 2009-10-30 Vincent Celier <celier@adacore.com>
797 * xsnamest.adb: Update comments with regards to the template files
800 2009-10-30 Bob Duff <duff@adacore.com>
802 * s-fileio.adb (Errno_Message): Suppress VMS-specific warning.
804 2009-10-30 Ed Schonberg <schonberg@adacore.com>
806 * sem_case.adb (Check_Choices): Add explanatory message when there are
807 missing alternatives when the required range of alternatives is given
808 by the base type of the case expression or discriminant in a variant
811 * opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially
812 dangerous overlap between actuals in a call, activated by -gnatw.i
813 * sem_warn.adb (Set_Dot_Warning_Switch): set flag.
814 (Warn_On_Overlapping_Actuals): use new flag.
816 * gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals
818 2009-10-30 Robert Dewar <dewar@adacore.com>
820 * exp_aggr.adb, exp_ch9.adb: Minor reformatting
822 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
824 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
825 create integer types with precision 0.
827 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
830 * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
831 parameters and rewrite comments. For a derived type, return the
832 setting of its parent type.
833 (gnat_to_gnu_entity): Do an alias set copy for derived types if they
834 are composite. Adjust calls to above function.
836 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
838 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not
839 return the RM size for padded types.
841 2009-10-28 Robert Dewar <dewar@adacore.com>
843 * sem_type.adb: Minor reformatting
845 2009-10-28 Arnaud Charlet <charlet@adacore.com>
847 * exp_ch9.adb (Build_Task_Proc_Specification): Generate a different
848 suffix for task type bodies.
850 2009-10-28 Ed Schonberg <schonberg@adacore.com>
852 * exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a
853 finalization list if the designated type requires no control actions,
854 to prevent a useless semantic dependence on ada.tags.
856 2009-10-28 Bob Duff <duff@adacore.com>
858 * s-fileio.adb: Give more information in exception messages.
860 2009-10-28 Robert Dewar <dewar@adacore.com>
862 * gnat_ugn.texi: Document new -gnatyt requirement for space after right
863 paren if next token starts with digit or letter.
864 * styleg.adb (Check_Right_Paren): New rule for space after if next
865 character is a letter or digit.
867 2009-10-28 Thomas Quinot <quinot@adacore.com>
869 * s-crtl.ads (System.CRTL.strerror): New function.
871 2009-10-28 Ed Schonberg <schonberg@adacore.com>
873 * sem_type.adb: Add guard to recover some type errors.
875 2009-10-28 Vincent Celier <celier@adacore.com>
877 * prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
878 Add_If_Not_In_List to account to the fact that a directory may be
879 removed from the list. Only remove directory if Removed is True.
881 2009-10-28 Gary Dismukes <dismukes@adacore.com>
883 * a-textio.ads, a-textio.ads: Put back function EOF_Char in private
884 part. Put back body of function EOF_Char.
885 * a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
888 2009-10-28 Emmanuel Briot <briot@adacore.com>
890 * prj-tree.adb (Free): Fix memory leak.
892 2009-10-28 Thomas Quinot <quinot@adacore.com>
894 * s-fileio.adb: Minor reformatting
896 2009-10-28 Arnaud Charlet <charlet@adacore.com>
898 * gcc-interface/Make-lang.in: Update dependencies.
900 2009-10-28 Robert Dewar <dewar@adacore.com>
902 * exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
903 types.ads: Minor reformatting
905 2009-10-28 Tristan Gingold <gingold@adacore.com>
907 * init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
909 2009-10-28 Thomas Quinot <quinot@adacore.com>
911 * exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
912 the operand of the unary minus and ABS operators.
914 * sem_type.adb (Covers): A concurrent type and its corresponding record
916 * exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
917 attribute reference for the current instance of a protected type while
918 analyzing an access discriminant constraint in a component definition.
919 Such a reference is handled in the corresponding record's init proc,
920 while initializing the constrained component.
921 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
922 corresponding record type, propagate components'
923 Has_Per_Object_Constraint flag.
924 * exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
925 For a concurrent type, set up concurrent aspects before initializing
926 components with a per object constrain, because they may be controlled,
927 and their initialization may call entries or protected subprograms of
928 the enclosing concurrent object.
930 2009-10-28 Emmanuel Briot <briot@adacore.com>
932 * prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
934 (Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
935 processing the directories specified explicitly in the project file.
937 2009-10-28 Robert Dewar <dewar@adacore.com>
939 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
940 a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
942 (Initialize_Standard_Files): New procedure.
943 * a-tienau.adb: Minor change to make EOF directly visible
944 * a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
945 a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
946 * gnat_rm.texi: Add documentation for
947 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
948 * Makefile.rtl: Add entries for
949 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
951 2009-10-28 Thomas Quinot <quinot@adacore.com>
953 * exp_ch9.ads: Minor reformatting
954 * sem_ch3.adb: Minor reformatting
955 * sem_aggr.adb: Minor reformatting.
956 * sem_attr.adb: Minor reformatting
957 * tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
959 Minor code reorganization/factoring.
961 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
963 * gcc-interface/decl.c (purpose_member_field): New static function.
964 (annotate_rep): Use it instead of purpose_member.
966 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
968 * raise-gcc (db_region_for): Use _Unwind_GetIPInfo instead of
969 _Unwind_GetIP if HAVE_GETIPINFO is defined.
970 (db_action_for): Likewise.
972 2009-10-27 Robert Dewar <dewar@adacore.com>
974 * s-fileio.adb, s-fileio.ads, sem_util.adb, sem_warn.adb,
975 sem_warn.ads: Minor reformatting
977 2009-10-27 Robert Dewar <dewar@adacore.com>
979 * sem_warn.adb, sem_util.adb, sem_util.ads: Minor reformatting. Add
982 2009-10-27 Robert Dewar <dewar@adacore.com>
984 * s-os_lib.ads, s-os_lib.adb, prj-err.adb, makeutl.adb: Minor
987 2009-10-27 Ed Schonberg <schonberg@adacore.com>
989 * sem.util.ads, sem_util.adb (Denotes_Same_Object,
990 Denotes_Same_Prefix): New functions to detect overlap between actuals
991 that are not by-copy in a call, when one of them is in-out.
992 * sem_warn.ads, sem_warn.adb (Warn_On_Overlapping_Actuals): New
993 procedure, called on a subprogram call to warn when an in-out actual
994 that is not by-copy overlaps with another actual, thus leadind to
995 potentially dangerous aliasing in the body of the called subprogram.
996 Currently the warning is under control of the -gnatX switch.
997 * sem_res.adb (resolve_call): call Warn_On_Overlapping_Actuals.
999 2009-10-27 Thomas Quinot <quinot@adacore.com>
1001 * sem_ch12.adb (Install_Formal_Packages): Do not omit installation of
1002 visible entities when the formal package doesn't have a box.
1004 * checks.adb: Minor reformatting.
1006 2009-10-27 Vincent Celier <celier@adacore.com>
1008 * prj-part.adb (Parse): Catch exception Types.Unrecoverable_Error and
1009 set Project to Empty_Node.
1011 2009-10-27 Robert Dewar <dewar@adacore.com>
1013 * gnatbind.adb: Minor reformatting
1015 2009-10-27 Arnaud Charlet <charlet@adacore.com>
1017 * exp_aggr.adb: Fix comment.
1019 2009-10-27 Emmanuel Briot <briot@adacore.com>
1021 * prj-err.adb (Error_Msg): take into account continuation lines when
1022 computing whether we have a warning.
1024 2009-10-27 Vasiliy Fofanov <fofanov@adacore.com>
1026 * make.adb, s-os_lib.adb, s-os_lib.ads (Create_Temp_Output_File): New
1027 routine that is designed to create temp file descriptor specifically
1028 for redirecting an output stream.
1030 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
1032 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
1033 processing the parent type, build the COMPONENT_REF for a discriminant
1034 with the proper type.
1036 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
1038 * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo.
1039 * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO.
1040 Pass GNATLIBCFLAGS_FOR_C to recursive invocations.
1042 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
1044 * gcc-interfaces/decl.c (build_subst_list): Convert the expression of
1045 the constraint to the type of the discriminant.
1047 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
1049 * gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
1050 TYPE_DECL when a type is padded if there is already one and reset
1051 TYPE_STUB_DECL in this case.
1053 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
1055 * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
1056 main_identifier_node.
1058 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1060 * gcc-interface/utils.c (convert): When converting to a padded type
1061 with an inner type of self-referential size, pad the expression before
1062 doing the unchecked conversion.
1064 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1066 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
1067 sure the element type is consistent.
1069 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1071 * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
1073 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
1075 * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
1076 (TYPE_IS_FAT_POINTER_P): ...this.
1077 (TYPE_THIN_POINTER_P): Rename into...
1078 (TYPE_IS_THIN_POINTER_P): ...this.
1079 (TYPE_FAT_OR_THIN_POINTER_P): Rename into...
1080 (TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
1081 (TYPE_IS_PADDING_P): Change definition, move old one to...
1082 (TYPE_PADDING_P): ...this.
1083 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
1084 (get_unpadded_type): Likewise.
1085 (gnat_to_gnu_component_type): Likewise.
1086 (gnat_to_gnu_param): Likewise.
1087 (relate_alias_sets): Likewise.
1088 (make_packable_type): Likewise.
1089 (maybe_pad_type): Likewise.
1090 (gnat_to_gnu_field): Likewise.
1091 (is_variable_size): Likewise.
1092 (annotate_object): Likewise.
1093 (validate_size): Likewise.
1094 (set_rm_size): Likewise.
1095 (make_type_from_size): Likewise.
1096 (rm_size): Likewise.
1097 * gcc-interface/misc.c (gnat_print_type): Likewise.
1098 (gnat_get_alias_set): Likewise.
1099 * gcc-interface/trans.c (Identifier_to_gnu): Likewise.
1100 (Attribute_to_gnu): Likewise.
1101 (call_to_gnu): Likewise.
1102 (gnat_to_gnu): Likewise.
1103 (add_decl_expr): Likewise.
1104 (convert_with_check): Likewise.
1105 (addressable_p): Likewise.
1106 (maybe_implicit_deref): Likewise.
1107 (protect_multiple_eval): Likewise.
1108 (gnat_stabilize_reference_1): Likewise.
1109 * gcc-interface/utils.c (gnat_pushdecl): Likewise.
1110 (finish_record_type): Likewise.
1111 (rest_of_record_type_compilation): Likewise.
1112 (create_type_decl): Likewise.
1113 (gnat_types_compatible_p): Likewise.
1114 (build_template): Likewise.
1115 (convert_vms_descriptor64): Likewise.
1116 (convert_vms_descriptor32): Likewise.
1117 (build_unc_object_type_from_ptr): Likewise.
1118 (update_pointer_to): Likewise.
1119 (convert_to_fat_pointer): Likewise.
1120 (convert_to_fat_pointer): Likewise.
1121 (convert): Likewise.
1122 (remove_conversions): Likewise.
1123 (maybe_unconstrained_array): Likewise.
1124 (unchecked_convert): Likewise.
1125 (handle_vector_type_attribute): Likewise.
1126 * gcc-interface/utils2.c (build_binary_op): Likewise.
1127 (build_unary_op): Likewise.
1128 (build_allocator): Likewise.
1130 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
1132 * exp_dbug.ads: Adjust type names in comments.
1133 * gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
1134 add new IS_COMPONENT_TYPE parameter. Adjust. Remove dead code.
1135 (gnat_to_gnu_entity): Adjust for above change.
1136 (gnat_to_gnu_component_type): Likewise.
1137 (gnat_to_gnu_field): Likewise.
1138 * gcc-interface/trans.c (call_to_gnu): Likewise. Do not unnecessarily
1140 * gcc-interface/utils.c (finish_record_type): Remove obsolete code.
1141 * gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.
1143 2009-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
1145 * s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
1146 * s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.
1148 2009-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1150 * env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
1152 2009-10-10 Samuel Tardieu <sam@rfc1149.net>
1154 * sem_eval.adb: Give a more precise error message.
1156 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
1159 * a-rttiev.adb (Time_Of_Event): Return Time_First for unset event.
1161 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
1164 * sem_prag.adb (Process_Import_Or_Interface): Forbid an abstract
1165 subprogram to be completed with a "pragma Import".
1167 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1169 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>:
1170 Generate an XVZ variable alongside the XVS type if the size is
1172 (maybe_pad_type): Minor tweak.
1174 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1176 * gcc-interface/decl.c (check_ok_for_atomic): Do nothing if the type
1177 doesn't come from source.
1179 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1181 * gcc-interface/decl.c (gnat_to_gnu_component_type): Force at least
1182 unit size for the component size of an array with aliased components.
1183 (maybe_pad_type): Do not warn for MAX_EXPR.
1185 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
1187 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
1188 common code processing the component type into...
1189 <E_Array_Subtype>: Likewise.
1190 (gnat_to_gnu_component_type): ...this new static function.
1191 (maybe_pad_type): Minor cleanup.
1193 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
1195 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
1196 the handling of constrained discriminated record subtypes.
1197 (components_to_record): Declare the type of the variants and of the
1199 (build_subst_list): Move around.
1200 (compute_field_positions): Rename into...
1201 (build_position_list): ...this. Return a TREE_VEC.
1202 (annotate_rep): Adjust for above renaming.
1203 (build_variant_list): New static function.
1204 (create_field_decl_from): Likewise.
1205 (get_rep_part): Likewise.
1206 (get_variant_part): Likewise.
1207 (create_variant_part_from): Likewise.
1208 (copy_and_substitute_in_size): Likewise.
1210 2009-09-28 Olivier Hainque <hainque@adacore.com>
1213 * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
1214 Account for observable alignments out of default allocators.
1216 2009-09-28 Richard Henderson <rth@redhat.com>
1218 * gcc-interface/utils.c (gnat_install_builtins): Update call to
1219 build_common_builtin_nodes.
1221 2009-09-26 Eric Botcazou <ebotcazou@adacore.com>
1223 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
1224 negative size for the array dimensions like in the constrained case.
1225 <E_Array_Subtype>: Do not create an artificially non-constant high
1226 bound if the low bound is non-constant. Minor tweaks.
1228 * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
1229 and turn ALIASED into a boolean parameter. Adjust calls to self.
1230 <N_Attribute_Reference>: Return 1 for more attributes.
1231 <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
1232 <N_Assignment_Statement>: Return 1 for the LHS.
1233 (Identifier_to_gnu): Adjust calls to lvalue_required_p.
1234 (call_to_gnu): Be prepared for wrapped boolean rvalues.
1236 2009-09-25 Olivier Hainquqe <hainque@adacore.com>
1237 Eric Botcazou <ebotcazou@adacore.com>
1239 * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
1240 specific node. Representative array type for VECTOR_TYPE entities.
1241 * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
1242 Turn an ARRAY_TYPE entity into a VECTOR_TYPE.
1243 (gnat_types_compatible_p): Handle VECTOR_TYPEs.
1244 (convert): Likewise. Arrange to produce VECTOR_CST out of constant
1245 array aggregates for VECTOR_TYPE entities.
1246 (unchecked_convert): Likewise.
1247 (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
1248 converted to the associated TYPE_REPRESENTATIVE_ARRAY.
1249 (handle_pure_attribute, handle_sentinel_attribute,
1250 handle_noreturn_attribute, handle_malloc_attribute,
1251 handle_vector_size_attribute): Replace uses of qE format by qs.
1252 Remove GCC_DIAG_STYLE definition.
1253 * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
1254 vector input to representative array type on entry.
1255 <N_Op_Eq, etc>: Likewise.
1256 * gcc-interface/gigi.h (maybe_vector_array): Declare.
1257 (VECTOR_TYPE_P): New predicate.
1258 * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
1260 2009-09-24 Eric Botcazou <ebotcazou@adacore.com>
1262 * gcc-interface/ada.h: Fix outdated comment.
1263 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
1264 lieu of mark_visited.
1265 * gcc-interface/gigi.h (mark_visited): Change type of parameter.
1266 (MARK_VISITED): New macro.
1267 (gnat_truthvalue_conversion): Delete.
1268 * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
1270 (annotate_rep): Fix formatting and tidy.
1271 (compute_field_positions): Get rid of useless variable.
1272 * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
1273 node only once. Use IN operator for the Nkind in more cases.
1274 Remove calls to gnat_truthvalue_conversion.
1275 (mark_visited): Change type of parameter and adjust.
1276 (mark_visited_r): Dereference TP only once.
1277 (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
1278 * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
1279 (build_binary_op): Remove calls to gnat_truthvalue_conversion.
1280 (build_unary_op): Likewise.
1282 2009-09-24 Dave Korn <dave.korn.cygwin@gmail.com>
1284 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
1285 a-except% in target pairs list; don't (implicitly) compare whitespace.
1287 2009-09-24 Jakub Jelinek <jakub@redhat.com>
1289 * gcc-interface/utils.c (gnat_pushdecl): Don't set
1290 DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
1293 2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
1295 * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
1296 Bind to getpagesize() in RTEMS 4.10 and newer.
1298 2009-09-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1300 * env.c [__alpha__ && __osf__] (_BSD): Define.
1301 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
1304 2009-09-18 Pascal Obry <obry@adacore.com>
1306 * mingw32.h: Activate Unicode support for x86-64 Windows platform.
1308 2009-09-18 Vadim Godunko <godunko@adacore.com>
1310 * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
1312 2009-09-18 Javier Miranda <miranda@adacore.com>
1314 * exp_aggr.adb (Backend_Processing_Possible): Disable backend
1315 processing for array aggregates in the VM backend if the array has
1318 2009-09-18 Ed Schonberg <schonberg@adacore.com>
1320 * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
1321 the prefix indicates a previous semantic error, and this is the first
1322 error in the program.
1324 2009-09-18 Bob Duff <duff@adacore.com>
1326 * gnat_ugn.texi: Minor editing.
1328 2009-09-18 Vincent Celier <celier@adacore.com>
1330 * prj.ads, prj.adb (Project_Data): New component
1331 Imported_Directories_Switches.
1333 2009-09-18 Pascal Obry <obry@adacore.com>
1335 * mingw32.h: Include standard _mingw.h file.
1336 Define _WIN32_WINNT only if not already defined.
1338 2009-09-18 Thomas Quinot <quinot@adacore.com>
1340 * g-socket.adb (Is_Open): New function indicating whether a
1341 Selector_Type object is open.
1343 2009-09-18 Vincent Celier <celier@adacore.com>
1345 * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
1346 is deleted before creating it.
1348 2009-09-18 Robert Dewar <dewar@adacore.com>
1350 * bindgen.adb: Minor reformatting
1352 2009-09-18 Arnaud Charlet <charlet@adacore.com>
1354 * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
1355 s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
1356 signal handler is installed.
1357 * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
1358 tasks if Abort_Task_Interrupt cannot be used.
1360 2009-09-18 Vincent Celier <celier@adacore.com>
1362 * prj-tree.ads: Minor comment update
1364 2009-09-17 Bob Duff <duff@adacore.com>
1366 * g-socket.ads: Document the fact that Close_Selector has no effect on
1368 * g-socket.adb: Raise an exception when a Selector that should be open
1370 (Check_Selector): Declare RSig as a constant rather than a renames,
1373 2009-09-17 Robert Dewar <dewar@adacore.com>
1375 * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
1376 prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
1377 prj-tree.ads: Minor reformatting
1379 2009-09-17 Emmanuel Briot <briot@adacore.com>
1381 * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
1383 (Do_Autoconf): If the object directory does not exists, create auto.cgpr
1384 in a temporary directory instead
1386 2009-09-17 Bob Duff <duff@adacore.com>
1388 * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
1390 (Get_Priority): Correct message for "terminated" case -- it said "null".
1392 2009-09-17 Robert Dewar <dewar@adacore.com>
1394 * exp_ch6.adb: Minor reformatting
1396 2009-09-17 Emmanuel Briot <briot@adacore.com>
1398 * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
1399 switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
1400 (Project_Node_Tree_Data.Project_Path): New field.
1402 * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
1404 2009-09-17 Emmanuel Briot <briot@adacore.com>
1406 * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
1407 Remove duplicate code.
1408 (Prj.Ext): Fix memory leak
1409 (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
1410 variable. This was previously allowed in the code in
1411 Is_External_Assignment, and some tests rely on it
1413 2009-09-17 Bob Duff <duff@adacore.com>
1415 * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
1417 2009-09-17 Emmanuel Briot <briot@adacore.com>
1419 * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
1420 makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
1421 prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
1422 prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
1423 Scenario variables are now specific to each project tree loaded in
1427 2009-09-17 Javier Miranda <miranda@adacore.com>
1429 * exp_disp.adb (Make_DT): Remove wrong line of code that was
1430 undocumented and probably added by mistake.
1432 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1434 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
1435 conversions between original and packable version of types from
1438 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1440 * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
1441 If a padding type was made for the field, declare it.
1442 (components_to_record): Add DEBUG_INFO_P parameter. Adjust call
1443 to gnat_to_gnu_field and call to self.
1444 (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
1445 <E_Array_Subtype>: Likewise.
1446 Adjust calls to gnat_to_gnu_field and components_to_record.
1448 2009-09-16 Robert Dewar <dewar@adacore.com>
1450 * prj-nmsc.adb: Minor reformatting
1452 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1454 * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
1455 expression is a by-reference type (tagged or inherently limited)
1456 introduce an access type to capture references to the values of each
1457 branch of the conditional.
1459 2009-09-16 Emmanuel Briot <briot@adacore.com>
1461 * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
1462 (Project_Name_And_Node.Display_Name): new field
1463 The display name of a project (as written in the .gpr file) is now
1464 computed when the project file itself is parsed, not when it is
1467 2009-09-16 Thomas Quinot <quinot@adacore.com>
1469 * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
1470 intrinsics untouched (to be expanded later on by gigi) if an external
1471 name has been specified.
1472 (Freeze_Entity): Do not generate a default external name for
1473 imported subprograms with convention Intrinsic (so that the above code
1474 can identify the case where an external name has been explicitly
1477 * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
1478 replaced by something else due to an existing #define clause.
1480 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1482 * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
1483 Parameter_Association node, created for the extra actual generated for
1484 an access parameter of a function that dispatches on result, to prevent
1485 double generation of such actuals when the call is rewritten is a
1487 * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
1488 * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
1489 that carry this flag when rewriting the original call as a dispatching
1490 call, after propagating the controlling tag.
1492 2009-09-16 Vincent Celier <celier@adacore.com>
1494 * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
1496 (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
1498 (Find_Source_Dirs): New parameter Rank to be recorded with the source
1500 (Search_Directories): Call Check_File with the rank of the directory
1501 * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
1502 (Free): Free also Number_Lists
1503 (Reset): Init also Number_Lists
1504 * prj.ads (Number_List_Table): New dynamic table for lists of numbers
1505 (Source_Data): New component Source_Dir_Rank. Remove component
1506 Known_Order_Of_Source_Dirs, no longer needed.
1507 (Project_Data): New component Source_Dir_Ranks
1508 (Project_Tree_Data): New components Number_Lists
1510 2009-09-16 Vincent Celier <celier@adacore.com>
1512 * gprep.adb (Yes_No): New global constant
1513 Unix_Line_Terminators: New global Boolean variable
1514 (Process_One_File): Create the out file with a "Text_Translation=" form
1515 that depends on the use of option -T.
1516 (Scan_Command_Line): Add option -T
1517 (Usage): Add line for option -T
1519 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1521 * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
1522 predicate that describes a proper subset of
1523 Is_Predefined_Dispatching_Operation and excludes stream operations,
1524 which can be overridden by the user.
1525 * sem_ch6.adb (Create_Extra_Formals): use
1526 Is_Predefined_Internal_Operation, so that stream operations get extra
1528 * exp_ch6.adb (Prevent double generation of extra actuals in calls to
1529 'Input, which may be expanded twice, first as a function call and then
1530 as a dispatching call.
1532 2009-09-16 Thomas Quinot <quinot@adacore.com>
1534 * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
1535 * g-expect.adb (Set_Up_Child_Communications): Use
1536 System.OS_Constants.Target_OS to determine whether running on Windows.
1538 2009-09-14 Richard Henderson <rth@redhat.com>
1540 * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
1542 2009-09-14 Eric Botcazou <ebotcazou@adacore.com>
1544 * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
1545 the unconstrained case.
1546 * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
1547 the encoding. Do not give a name to the pointer type to the XUT type.
1548 * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
1549 for fat pointer types, if any. Make sure DECL_ARTIFICIAL is cleared
1550 on nodes with DECL_ORIGINAL_TYPE set.
1551 (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
1552 for fat pointer types. Make sure DECL_ARTIFICIAL is cleared.
1554 2009-09-14 Richard Henderson <rth@redhat.com>
1556 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
1557 default_init_unwind_resume_libfunc.
1558 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
1559 __builtin_eh_pointer.
1560 * gcc-interface/utils.c (gnat_install_builtins): Update call
1561 to build_common_builtin_nodes.
1563 2009-09-13 Richard Guenther <rguenther@suse.de>
1564 Rafael Avila de Espindola <espindola@google.com>
1566 * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
1567 eh_personality_libfunc and lang_eh_runtime_type.
1568 (LANG_HOOKS_EH_PERSONALITY): Define.
1569 (gnat_eh_personality_decl): New static variable.
1570 (gnat_eh_personality): New static function.
1571 Include gt-ada-misc.h.
1572 * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
1573 * gcc-interface/config-lang.in (gtfiles): Add misc.c.
1575 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1578 * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
1580 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1582 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
1584 Avoid useless work when processing the Treat_As_Volatile flag.
1586 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1588 * gcc-interface/targtyps.c: Reorder include directives.
1590 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1592 * gcc-interface/targtyps.c: Add missing include for tm_p.h.
1593 * gcc-interface/Make-lang.in: Update dependencies.
1595 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1597 * make.adb: Add missing documentation for multilib handling.
1599 2009-09-03 Diego Novillo <dnovillo@google.com>
1601 * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
1603 2009-09-02 Richard Henderson <rth@redhat.com>
1605 * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
1607 2009-09-02 Olivier Hainque <hainque@adacore.com>
1609 * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
1612 2009-09-02 Olivier Hainque <hainque@adacore.com>
1614 * gcc-interface/decl.c (cannot_be_superflat_p): Handle
1615 Signed_Integer_Type_Definition Scalar_Ranges.
1617 2009-09-02 Eric Botcazou <ebotcazou@adacore.com>
1619 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
1620 SAVE_EXPR built for misaligned arguments. Remove redundant stuff.
1621 (addressable_p): Return true for more rvalues.
1623 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1625 * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
1626 POINTER_SIZE to HOST_WIDE_INT.
1628 2009-09-01 Richard Guenther <rguenther@suse.de>
1630 * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1632 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
1634 * gcc-interface/trans.c (call_to_gnu): Tidy.
1635 (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
1636 non-constant size but the array itself has constant size.
1637 * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
1639 (convert_vms_descriptor32): Likewise.
1641 2009-08-22 Aurelien Jarno <aurelien@aurel32.net>
1643 * gcc-interface/Makefile.in: Add Ada support for
1644 GNU/kFreeBSD x86_64.
1645 * system-freebsd-x86_64.ads: New file based on
1646 system-freebsd-x86.ads.
1648 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1650 * gcc-interface/utils.c (convert): In the padded case, do the final
1651 conversion as an unchecked conversion if the underlying types are
1652 array types with variable size.
1654 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1656 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
1658 * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
1660 * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
1662 (gnat_gimplify_expr) <DECL_EXPR>: New case.
1664 2009-08-17 Aurelien Jarno <aurelien@aurel32.net>
1666 * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
1667 (stack_t): New record type.
1668 (sigaltstack): New imported function.
1669 (Alternate_Stack): New imported variable.
1670 (Alternate_Stack_Size): New constant.
1672 2009-08-17 Vasiliy Fofanov <fofanov@adacore.com>
1674 * a-calend-vms.adb: Fix typo.
1676 2009-08-17 Tristan Gingold <gingold@adacore.com>
1678 * s-taprop-posix.adb: Round up the stack size to avoid failure on
1681 2009-08-17 Gary Dismukes <dismukes@adacore.com>
1683 * sem_cat.adb (Validate_Static_Object_Name): Update comment.
1685 2009-08-17 Vincent Celier <celier@adacore.com>
1687 * make.adb (Arguments_Collected): Unneeded, removed
1688 (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
1689 ensure caller does not pass in No_Project.
1690 (Compile): Add new parameter Project. Let procedure
1691 Collect_Arguments_And_Compile provide the proper value.
1693 * switch-c.adb: Add documentation for -gnatea and -gnatez
1695 2009-08-17 Ben Brosgol <brosgol@adacore.com>
1697 * gnat_ugn.texi: Changed name of package in SAL example, to avoid
1698 clash with Ada 2005 reserved word (interface).
1700 2009-08-17 Robert Dewar <dewar@adacore.com>
1702 * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
1703 a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
1704 a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
1705 (use conditional expressions).
1707 2009-08-17 Robert Dewar <dewar@adacore.com>
1709 * make.adb: Add ??? comment
1710 * tbuild.adb: Minor reformatting
1712 2009-08-17 Thomas Quinot <quinot@adacore.com>
1714 * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
1715 Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
1716 Use Tbuild.Make_Temporary to create entity for the temporary.
1718 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1720 * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
1721 and ignore -mieee switch to avoid spawning an extra gcc in this case.
1723 2009-08-17 Thomas Quinot <quinot@adacore.com>
1725 * tbuild.adb: Minor reformatting
1727 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1729 * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
1730 exist, as is the case for synchronized types, use the type of the
1731 discriminal in the parameter specification, to prevent a spurious
1732 subtype mismatch in gigi.
1734 2009-08-17 Robert Dewar <dewar@adacore.com>
1736 * prj-env.adb: Minor reformatting
1737 * make.adb: Minor reformatting
1740 2009-08-17 Javier Miranda <miranda@adacore.com>
1742 * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
1744 2009-08-17 Emmanuel Briot <briot@adacore.com>
1746 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
1747 (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
1748 object directories must be present. In the case of gprclean at least,
1749 these are optional (if they do not exist there is nothing to clean)
1751 2009-08-17 Robert Dewar <dewar@adacore.com>
1753 * prj-env.adb: Minor reformatting
1754 * sem_ch3.adb: Minor reformatting
1756 2009-08-17 Hristian Kirtchev <kirtchev@adacore.com>
1758 * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
1759 the time zone since VxWorks chose positive values to represent west
1760 time zones and negative for east zones.
1762 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1764 * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
1765 an anonymous access type whose designated type is generic.
1767 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1769 * comperr.adb (Compiler_Abort): Do not generate a bug box when in
1770 codepeer mode, friendlier.
1772 2009-08-10 Laurent GUERBY <laurent@guerby.net>
1774 * make.adb: Handle multilib
1776 2009-08-10 Vincent Celier <celier@adacore.com>
1778 * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
1779 the temporary file name in the error message when the temporary file
1782 2009-08-10 Yannick Moy <moy@adacore.com>
1784 * gnat_ugn.texi: Fix typo
1786 2009-08-10 Robert Dewar <dewar@adacore.com>
1788 * exp_ch7.adb: Add ??? comment for last change
1790 2009-08-10 Vincent Celier <celier@adacore.com>
1792 * prj-env.adb (Add_To_Buffer): New procedure
1793 (Create_Config_Pragmas_File): Write to temporary file in one shot
1794 (Create_Mapping_File): Ditto
1795 (Set_Ada_Paths): Ditto
1797 2009-08-10 Vincent Celier <celier@adacore.com>
1800 * xref_lib.adb (Print_Xref): Make sure that there is at least one space
1801 between a declaration name and its type.
1803 2009-08-07 Javier Miranda <miranda@adacore.com>
1805 * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
1808 2009-08-07 Robert Dewar <dewar@adacore.com>
1810 * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
1812 2009-08-07 Vincent Celier <celier@adacore.com>
1814 * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
1815 specified on the command line and there are switches in the Compiler
1816 package of the project file, use these compilation switches to invoke
1819 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1821 * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
1823 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1825 * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
1826 even if not in main unit, to simplify debugging.
1828 2009-08-07 Arnaud Charlet <charlet@adacore.com>
1830 * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
1831 * gcc-interface/Make-lang.in: Update dependencies.
1833 2009-08-07 Robert Dewar <dewar@adacore.com>
1835 * types.ads: Minor reformatting
1836 * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
1837 * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
1838 Output_Non_Modified_In_Out_Warnings.
1839 * sem_ch13.adb: Remove ??? comment.
1841 2009-08-07 Vincent Celier <celier@adacore.com>
1843 * mlib-prj.adb (Build_Library): Include binder generate object file
1844 for SAL when library name is only one character.
1846 2009-08-07 Thomas Quinot <quinot@adacore.com>
1848 * targparm.adb: Minor reformatting
1849 * sem.adb: Minor reformatting
1850 * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
1852 2009-08-07 Emmanuel Briot <briot@adacore.com>
1854 * prj-conf.adb: Remove duplicate directory separator in the output when
1855 an object directory does not exist.
1857 2009-08-07 Robert Dewar <dewar@adacore.com>
1859 * exp_util.adb: Minor reformatting
1861 2009-08-07 Vincent Celier <celier@adacore.com>
1863 * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
1866 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1868 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
1869 detect non-static private components that will violate restriction
1870 No_Implicit_Heap_Allocation.
1872 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1874 * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
1876 2009-08-02 Eric Botcazou <ebotcazou@adacore.com>
1878 * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
1879 * gcc-interface/utils.c (end_subprog_body): Likewise.
1880 * gcc-interface/trans.c (gigi): Likewise.
1881 (gnat_to_gnu): Likewise.
1883 2009-07-30 Ben Brosgol <brosgol@adacore.com>
1885 * gnat_ugn.texi: Correct minor texi glitch.
1887 2009-07-30 Ed Schonberg <schonberg@adacore.com>
1889 * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
1890 expression has an underlying representation that is an unchecked union,
1891 there is no subtype to build.
1893 2009-07-30 Robert Dewar <dewar@adacore.com>
1895 * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
1896 s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
1897 sem_ch7.adb, adaint.c: Minor reformatting
1899 2009-07-29 Javier Miranda <miranda@adacore.com>
1901 * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
1902 moved from the expander to the semantic analyzer to allow the
1903 generation of these internal entities when compiling with no code
1904 generation. Required by ASIS.
1905 * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
1906 * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
1907 * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
1908 (Expand_Freeze_Record_Type): Remove call to
1909 Add_Internal_Interface_Entities because this routine is now called at
1910 early stage --when the freezing node is analyzed.
1912 2009-07-29 Robert Dewar <dewar@adacore.com>
1914 * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
1915 exp_disp.adb, g-socket.adb: Minor reformatting
1917 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1919 * sem_ch7.adb (New_Private_Type): Create class-wide type after other
1920 attributes have been established, so that they are all inherited by the
1922 * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
1923 properly named subtypes of class-wide types.
1925 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1927 * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
1928 indicators on user-defined operators.
1930 2009-07-29 Vadim Godunko <godunko@adacore.com>
1932 * g-socket.adb (Receive_Vector): Add comment.
1934 2009-07-29 Javier Miranda <miranda@adacore.com>
1936 * frontend.adb (Frontend): Code cleanup.
1937 * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
1938 Rewriten as a procedure because it a new out-mode parameters to
1939 keep up-to-date the controlling tag node in the caller.
1940 (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
1941 new out-mode parameter to keep up-to-date the controlling tag node in
1943 * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
1944 exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
1946 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
1947 available in new package Sem_SCIL.
1948 (Next_Non_SCIL_Node): Ditto.
1949 * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
1951 (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
1952 plus complete decoration of SCIL dispatching node.
1953 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1954 * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
1956 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1957 * exp_ch3.adb (Build_Init_Procedure): Fix comment.
1958 * sem_scil.ads, sem_scil.adb: New files.
1959 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
1960 Update dependencies.
1962 2009-07-28 Robert Dewar <dewar@adacore.com>
1964 * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
1965 makeutl.adb: Minor reformatting & code reorganization
1966 * sem_ch3.adb: Minor reformatting.
1967 Fix spelling error (constraint for constrain) in error msg.
1969 2009-07-28 Emmanuel Briot <briot@adacore.com>
1971 * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
1972 global variable that also exists in makeutl.ads, and that some routines
1973 in that package use already.
1974 (Check): Moved part of the code to makeutl.adb for better sharing with
1977 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1979 * gcc-interface/Make-lang.in: Update dependencies.
1981 2009-07-28 Emmanuel Briot <briot@adacore.com>
1983 * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
1984 importing project does not end up in the list, in the case of extending
1986 * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
1987 makeutl.ads, for better sharing with gprbuild.
1989 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1991 * gnat_ugn.texi: Fix typo.
1993 2009-07-28 Ed Schonberg <schonberg@adacore.com>
1995 * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
1996 derivation that renames some discriminants and constrain others.
1997 * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
1998 prefix is a derived untagged type, convert to the root type to conform
1999 to the signature of the protected operations.
2001 2009-07-28 Robert Dewar <dewar@adacore.com>
2003 * sinfo.ads: Update comments.
2004 * exp_attr.adb: Minor reformatting
2006 2009-07-28 Ed Schonberg <schonberg@adacore.com>
2008 * sem_aggr.adb (Get_Value): A named association in a record aggregate
2009 should be treated as a modification of the named component, not as a
2012 2009-07-28 Quentin Ochem <ochem@adacore.com>
2014 * prj-tree.ads, prj-tree.adb (Free): Minor editing.
2015 * prj.ads, prj.adb (Image): Ditto.
2017 2009-07-28 Arnaud Charlet <charlet@adacore.com>
2019 * frontend.adb: Minor reformatting.
2020 (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
2023 2009-07-28 Bob Duff <duff@adacore.com>
2025 * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
2026 'Address to get a pointer to the protected body wrapper.
2028 2009-07-28 Javier Miranda <miranda@adacore.com>
2030 * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
2031 nodes if we are not generating code.
2032 * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
2033 attribute SCIL_Related_Node of SCIL dispatching nodes.
2034 (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
2035 * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
2036 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
2037 (SCIL_Entity): Update documentation.
2038 (SCIL_Related_Node): Update documentation.
2039 (SCIL_Controlling_Tag): New attribute.
2040 (SCIL_Target_Prim): Update documentation.
2041 (N_Null_Statement): Remove attributes associated with SCIL nodes.
2042 (N_SCIL_Dispatch_Table_Object_Init): New node.
2043 (N_SCIL_Dispatch_Table_Tag_Init): New node.
2044 (N_SCIL_Dispatching_Call): New node.
2045 (N_SCIL_Tag_Init): New node.
2046 * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
2047 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
2048 (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
2049 (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
2050 (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
2051 (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
2052 N_SCIL_Dispatching_Call nodes.
2053 * sem.adb (Analyze): No need to analyze SCIL nodes.
2054 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
2055 (Next_Non_SCIL_Node): New subprogram
2056 * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
2058 * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
2060 * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
2062 * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
2063 null statement nodes.
2064 (Build_Init_Procedure): Generate new SCIL node.
2065 * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
2067 * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
2068 they are currently implemented as special N_Null_Statement nodes.
2069 * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
2070 procedure call then check if some SCIL node references it and needs
2072 * exp_disp.ads (SCIL_Node_Kind): Removed.
2073 (Adjust_SCIL_Node): New subprogram.
2074 (Find_SCIL_Node): New subprogram.
2075 (Get_SCIL_Node_Kind): Removed.
2076 (New_SCIL_Node): Removed.
2077 * exp_disp.adb (Adjust_SCIL_Node): New subprogram
2078 (Expand_Dispatching_Call): Generate new SCIL dispatching node including
2079 decoration of its new controlling_tag attribute.
2080 (Get_SCIL_Node_Kind): Removed.
2081 (Find_SCIL_Node): New subprogram.
2082 (Make_Secondary_DT): Generate new SCIL nodes.
2083 (Make_Tags): Generate new SCIL nodes.
2084 (New_SCIL_Node): Removed.
2085 * exp_util.adb (Insert_Actions): Handle SCIL nodes.
2086 (Remove_Side_Effects): Check if relocated nodes require readjustment
2087 of some SCIL dispatching node.
2088 * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
2090 2009-07-28 Robert Dewar <dewar@adacore.com>
2092 * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
2094 2009-07-28 Sergey Rybin <rybin@adacore.com>
2096 * gnat_ugn.texi: Add section about gnatcheck rule exemption.
2098 2009-07-28 Vadim Godunko <godunko@adacore.com>
2100 * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
2101 not defined by limits.h.
2103 * g-socket.adb (Receive_Vector): Use minimum length from user's vector
2104 length and maximum supported length of data vector.
2106 2009-07-28 Gary Dismukes <dismukes@adacore.com>
2108 * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
2109 * make.adb: Call Get_Target_Parameters before calling Usage so that
2110 VM_Target and AAMP_On_Target will be set.
2112 2009-07-28 Olivier Hainque <hainque@adacore.com>
2114 * g-ssinty.ads: Remove, pointless and just confusing at this stage.
2115 * gnat_rm.texi: Remove documentation.
2116 * g-sse.ads: Minor reorg along the way.
2117 * gcc-interface/Makefile.in: Remove processing for g-ssinty.
2118 * g-ssvety.ads: Minor comment updates.
2120 2009-07-28 Sergey Rybin <rybin@adacore.com>
2122 * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
2123 for the new format of the report file.
2125 2009-07-28 Sergey Rybin <rybin@adacore.com>
2127 * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
2129 2009-07-28 Pascal Obry <obry@adacore.com>
2131 * g-expect.adb: Record standard handles only on Windows.
2133 2009-07-27 Emmanuel Briot <briot@adacore.com>
2135 * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
2138 2009-07-27 Sergey Rybin <rybin@adacore.com>
2140 * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
2141 rule definition the paragraph that explains that generic functions and
2142 functions from generic packages are not checked.
2144 2009-07-27 Gary Dismukes <dismukes@adacore.com>
2146 * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
2147 procedure when determining whether to set the Overridden_Operation
2148 field of a subprogram overriding an inherited subprogram.
2150 2009-07-27 Robert Dewar <dewar@adacore.com>
2152 * a-except.adb, a-except-2005.ads: Minor reformatting
2154 2009-07-27 Robert Dewar <dewar@adacore.com>
2156 * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
2158 2009-07-27 Javier Miranda <miranda@adacore.com>
2160 * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
2161 add some documentation explaining why the SCIL nodes must be generated
2164 2009-07-27 Olivier Hainque <hainque@adacore.com>
2166 * a-except.adb: Bind to __builtin_longjmp directly.
2167 * a-except-2005.ads: Provide direct binding to __builtin_longjmp
2169 * a-exexpr.adb: Use it.
2170 * a-except-xi.adb: Likewise.
2171 * raise.c (_gnat_builtin_longjmp): Remove and update comments.
2172 * raise.h (_gnat_builtin_longjmp): Remove declaration.
2174 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2176 * sem_eval.adb (Compile_Time_Compare): More precise handling of
2177 Known_Valid flag, to prevent spurious range deductions when scalar
2178 variables may be uninitialized. New predicate Is_Known_Valid_Operand.
2180 2009-07-27 Robert Dewar <dewar@adacore.com>
2182 * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
2185 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2187 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
2188 Ravenscar mode. Error has already been posted on specification.
2190 * sem.adb: Further code clean ups.
2192 2009-07-27 Robert Dewar <dewar@adacore.com>
2194 * g-sse.ads: Minor reformatting
2196 2009-07-27 Arnaud Charlet <charlet@adacore.com>
2198 * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
2199 alternate ali extension.
2200 * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
2201 account Osint.ALI_Suffix.
2202 * osint.ads (ALI_Suffix): Make visible.
2203 * gnatfind.adb (Gnatfind): Add support for --ext= switch.
2204 * gnat_ugn.texi: Document new gnatfind --ext= switch.
2206 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2208 * sem.adb (Walk_Library_Items): If main unit is an instance body, do
2211 2009-07-27 Javier Miranda <miranda@adacore.com>
2213 * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
2214 the dispatching call has is expanded.
2216 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2218 * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
2219 Is_Known_Valid flag on the temporary created for the value whose
2220 validity is being checked.
2222 * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
2223 handle properly main units that are package specifications.
2225 2009-07-27 Geert Bosch <bosch@adacore.com>
2227 * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
2228 * sem_aux.ads: Fix typo in comment
2229 * sem_util.ads (Is_LHS): Adjust comment to match body
2231 2009-07-27 Sergey Rybin <rybin@adacore.com>
2233 * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
2236 2009-07-27 Olivier Hainque <hainque@adacore.com>
2238 * g-sse.ads, g-ssvety.ads: Update comments.
2240 2009-07-27 Sergey Rybin <rybin@adacore.com>
2242 * gnat_ugn.texi: Update gnatcheck doc.
2244 2009-07-27 Arnaud Charlet <charlet@adacore.com>
2246 * lib-xref.ads: Allocate/document 'o' char for use by references to
2247 spark 'own' variables.
2249 2009-07-27 Gary Dismukes <dismukes@adacore.com>
2251 * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
2252 objects, since these are implicitly referenced by the return statement.
2253 * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
2254 Is_Return_Object in this procedure, as return objects will never make
2255 it here since they're now marked as Referenced.
2257 2009-07-27 Robert Dewar <dewar@adacore.com>
2259 * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
2261 2009-07-27 Robert Dewar <dewar@adacore.com>
2263 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
2265 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
2267 2009-07-27 Geert Bosch <bosch@adacore.com>
2269 * checks.adb (Find_Check): Minor streamlining of logic.
2270 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
2271 * debug.adb: Document -gnatdX debug flag
2272 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
2273 list information about reads from scalar entities.
2274 Also slightly simplify condition for Expand_Current_Value.
2275 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
2278 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
2281 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
2282 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
2284 (__gnat_stat): Adjust reference to STAT in prototype.
2285 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
2286 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
2287 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
2288 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
2289 __gnat_is_writable_file, __gnat_is_executable_file,
2290 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
2291 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
2292 __gnat_copy_attribs): Adjust all references to the above.
2293 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
2295 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2297 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
2298 done at the same time, guard against listing a body more than once.
2300 2009-07-23 Robert Dewar <dewar@adacore.com>
2302 * exp_ch6.adb: Minor reformatting
2304 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2306 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
2307 static expression is known valid.
2308 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
2309 operands of a subtype with a single value.
2311 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2313 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
2314 are in the context of the main unit body.
2316 2009-07-23 Sergey Rybin <rybin@adacore.com>
2318 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
2319 misprint in rule description.
2321 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2323 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
2324 test that the object declaration is within an extended return statement
2325 with direct test of whether the declared object associated with the
2326 build-in-place call is a return object, since the enclosing function
2327 might not even be a build-in-place function.
2329 2009-07-23 Robert Dewar <dewar@adacore.com>
2331 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
2332 Minor code reorganization
2334 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2336 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
2337 for static analysis, only packed arrays are causing troubles.
2339 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2341 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
2342 ancestor part is a call to a limited function with an unconstrained
2343 result subtype unless the aggregate has a null extension type.
2344 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
2345 the parent type declaration to avoid blowups on subtype cases.
2347 2009-07-23 Robert Dewar <dewar@adacore.com>
2349 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
2352 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
2354 * s-regexp.adb: Minor reformatting
2355 * scos.ads: Minor reformatting.
2357 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2359 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
2360 other similar messages.
2361 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
2362 messages/implicit packing in CodePeer mode.
2363 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
2364 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
2367 2009-07-23 Pascal Obry <obry@adacore.com>
2369 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
2372 2009-07-23 Robert Dewar <dewar@adacore.com>
2374 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
2377 2009-07-23 Yannick Moy <moy@adacore.com>
2379 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
2381 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
2383 (Raise_Exception): Ditto.
2385 2009-07-23 Olivier Hainque <hainque@adacore.com>
2387 * g-sse.ads: Simplify comment.
2389 2009-07-23 Olivier Hainque <hainque@adacore.com>
2391 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
2392 low level internal type definitions for distinct higher level
2393 binding development activities (user type definitions and
2395 * gnat_rm.texi: Document it.
2396 * g-ssvety.ads: Use it.
2397 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
2398 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
2399 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
2400 for the "may_alias" attribute.
2402 2009-07-23 Thomas Quinot <quinot@adacore.com>
2404 * scos.ads: Minor typo fix
2406 * gcc-interface/decl.c (validate_alignment): For the case of an
2407 implicit array base type, look for alignment clause on first subtype.
2409 2009-07-23 Robert Dewar <dewar@adacore.com>
2411 * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
2412 with tagged parent if tagged parent is fully repped.
2414 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2416 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
2417 in the context depends on the spec of the main unit, by delaying
2418 processing of the main unit body until all other units have been
2421 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2423 * a-convec.adb: Add comments about suspicious/subtle code.
2425 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2427 * einfo.ads: Document use of Alias in private overriding
2429 2009-07-23 Thomas Quinot <quinot@adacore.com>
2431 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
2432 an array type, propagate alignment from first subtype to implicit base
2433 type so that other subtypes (such as the itypes for aggregates of the
2434 type) also receive the expected alignment.
2436 * g-comlin.ads: Minor documentation clarification/rewording.
2437 * scos.ads: Minor comments update.
2438 * lib-writ.ads: Minor reformatting
2440 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2442 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
2443 of a class-wide interface type that is a return object of a
2444 build-in-place function, bypass the interface-related expansions into
2445 renamings with displacement conversions, etc.
2446 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
2447 for the case where a renaming occurs in a build-in-place context, to
2448 assert that the bypassing of the build-in-place treatment only occurs
2449 in the case of a renaming that is an expansion of a return expression
2450 that is itself a build-in-place function call.
2452 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2454 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
2455 valid candidate interpretation in a prefixed view if it is hidden, but
2456 overrides an inherited operation declared in the visible part.
2458 2009-07-23 Robert Dewar <dewar@adacore.com>
2460 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2461 division operands to 64-bit at all in any circumstances.
2463 2009-07-23 Robert Dewar <dewar@adacore.com>
2465 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
2466 checking ranges for mod/rem to see if conditional jump will be
2468 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
2469 generating special -1 test for rem, generate it whenever both
2470 operands can be negative (match circuit in Sem_Res).
2471 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
2472 destroys memory of positive range.
2473 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
2474 checking ranges for mod/rem to see if conditional jump will be generated
2476 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2478 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
2479 scalar components has non-static bounds, the equivalent aggregate
2480 cannot be built, even if the expression is static, because range checks
2483 2009-07-23 Robert Dewar <dewar@adacore.com>
2485 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2486 division operands to 64-bit inside a conversion if 64-bit division not
2489 2009-07-23 Sergey Rybin <rybin@adacore.com>
2491 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
2493 2009-07-23 Javier Miranda <miranda@adacore.com>
2495 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
2496 (Entity/Set_Entity): not available in N_Null_Statement nodes
2497 (Is_Scil_Node): renamed as Is_SCIL_Node
2498 (Scil_Nkind): renamed as SCIL_Nkind
2499 (Scil_Related_Node): renamed as SCIL_Related_Node
2500 (Scil_Target_Prim): renamed as SCIL_Target_Prim
2501 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
2502 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
2503 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
2504 Update documentation
2505 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
2506 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2507 (New_Scil_Node): Renamed as New_SCIL_Node
2508 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
2509 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2510 (New_Scil_Node): Renamed as New_SCIL_Node
2511 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
2513 2009-07-23 Robert Dewar <dewar@adacore.com>
2515 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
2516 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
2517 * einfo.adb: Minor reformatting
2519 2009-07-23 Robert Dewar <dewar@adacore.com>
2521 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
2522 cross-referencing the new related code in
2523 Exp_Ch4.Expand_N_Type_Conversion.
2524 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
2526 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
2529 2009-07-23 Javier Miranda <miranda@adacore.com>
2531 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
2532 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
2533 * exp_disp.ads (Scil_Node_Kind): Ditto.
2534 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
2535 * exp_ch3.adb (Build_Init_Procedure): Ditto.
2537 2009-07-23 Javier Miranda <miranda@adacore.com>
2539 * einfo.adb (Component_Type): Add missing assertion.
2540 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
2541 reading attribute Component_Size.
2542 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
2543 before reading attributes Component_Size and Component_Type.
2544 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
2545 before reading attribute Component_Type.
2547 2009-07-23 Olivier Hainque <hainque@adacore.com>
2549 * gnat_rm.texi: Document the GNAT.SSE units.
2551 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2553 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
2554 not null return if it appears on a subunit.
2556 2009-07-23 Robert Dewar <dewar@adacore.com>
2558 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
2559 check right away so it does not get skipped for early returns, e.g.
2561 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
2562 left-side unless we really know the value is valid.
2564 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
2565 reformatting. Minor code reorganization. Add comments.
2567 2009-07-23 Robert Dewar <dewar@adacore.com>
2569 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
2572 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2574 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
2575 with test of coverage, to allow specific type objects in extended
2576 returns of class-wide functions. Remove now-unnecessary special-case
2577 tests that allowed this in certain cases of expanded extended returns.
2579 2009-07-23 Javier Miranda <miranda@adacore.com>
2581 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
2582 N_Null_Statements (for SCIL nodes).
2583 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
2584 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
2585 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
2587 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
2588 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
2589 associated with dispatching call.
2590 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
2591 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
2592 initialization of dispatch tables and initialization of tags.
2593 (New_Scil_Node): New function that creates a new SCIL node.
2594 (Build_Init_Procedure): Add generation of SCIL node associated with the
2595 initialization of tags done in the IP subprogram.
2597 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2599 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
2600 Warnings_Off, do not emit continuation messages.
2602 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
2605 2009-07-23 Emmanuel Briot <briot@adacore.com>
2607 * ali.adb: Minor comment update
2609 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
2611 * s-win32.ads (HANDLE): Define to be the same size as address type.
2614 2009-07-23 Olivier Hainque <hainque@adacore.com>
2616 * g-sse.ads: New file. Root of the SSE facilities trees, with
2617 general description and common declarations.
2618 * g-ssvety.ads: New file. Expose user level SSE vector types.
2619 * impunit.adb (Non_Imp_File_Names_95): Register new units.
2620 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
2621 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
2623 2009-07-23 Ben Brosgol <brosgol@adacore.com>
2625 * gnat_ugn.texi: Wordsmithing.
2627 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2629 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
2631 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
2633 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
2634 they are already of the base type of the index.
2636 2009-07-22 Brett Porter <porter@adacore.com>
2638 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
2640 2009-07-22 Robert Dewar <dewar@adacore.com>
2642 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
2643 * gnat_ugn.texi: Add documentation for -gnateS switch
2644 * ug_words: Add entry for -gnateS /SCO_OUTPUT
2645 * gcc-interface/Make-lang.in: Update dependencies.
2647 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
2648 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
2649 complete information for SCO input/output.
2651 2009-07-22 Sergey Rybin <rybin@adacore.com>
2653 * gnat_ugn.texi: Update doc for some gnatcheck rules.
2655 2009-07-22 Robert Dewar <dewar@adacore.com>
2657 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
2658 contents of SCO tables.
2659 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
2660 scos.adb, scos.ads: New files.
2661 * gcc-interface/Make-lang.in: Update dependencies.
2663 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
2664 fixes and reformatting.
2666 2009-07-22 Robert Dewar <dewar@adacore.com>
2668 * g-socket.ads: Minor reformatting
2670 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2672 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
2673 include the entity kind for following cases of unreferenced entities:
2674 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
2676 2009-07-22 Ed Falis <falis@adacore.com>
2678 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
2681 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2683 * adadecode.c: Make this file compilable outside of GCC.
2685 2009-07-22 Thomas Quinot <quinot@adacore.com>
2687 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
2688 (partially) default-initialized socket sets are handled properly by
2689 clearing their Set component.
2691 2009-07-22 Bob Duff <duff@adacore.com>
2693 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
2695 2009-07-22 Robert Dewar <dewar@adacore.com>
2697 * gnat_ugn.texi: Minor reformatting
2699 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2701 * errout.adb (Error_Msg): A style message within an instantiation
2702 should not be labelled as an error.
2704 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2706 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
2707 in initialization expression if function does not have convention Ada.
2709 2009-07-22 Sergey Rybin <rybin@adacore.com>
2711 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
2712 '--separate-label' to control label layout.
2714 2009-07-22 Robert Dewar <dewar@adacore.com>
2716 * exp_tss.ads, sem_eval.adb: Minor reformatting
2718 2009-07-22 Bob Duff <duff@adacore.com>
2720 * exp_dist.adb, exp_dist.ads: Update comments.
2722 2009-07-22 Brett Porter <porter@adacore.com>
2724 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
2726 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
2728 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2730 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
2731 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
2733 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
2734 used poor terminology.
2736 2009-07-22 Robert Dewar <dewar@adacore.com>
2738 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
2739 * sem_eval.adb, exp_tss.adb: Minor comment update.
2740 * stylesw.adb: Code clean up.
2742 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2744 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
2745 component size is an exact number of bytes, an array type can have a
2746 size clause that forces packing even though the array type itself is
2749 2009-07-22 Thomas Quinot <quinot@adacore.com>
2751 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
2752 if there is a previous entity with the same name in the scope, ignore
2753 it if it is the renaming declaration for a generic package introduced
2756 2009-07-22 Nicolas Roche <roche@adacore.com>
2758 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
2759 handler on x86_64 windows.
2761 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2763 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
2764 false positives in CodePeer, so ignore this pragma in this mode.
2766 2009-07-22 Thomas Quinot <quinot@adacore.com>
2768 * sem_util.adb, sem_ch10.adb: Minor reformatting
2770 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
2771 special handling for the case of no data received and Item'First =
2772 Stream_Element_Offset'First.
2773 (Last_Index): New subprogram factoring the above special handling
2774 over the various locations where it is required.
2776 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2778 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
2779 checks in CodePeer_Mode.
2780 * gcc-interface/Make-lang.in: Update dependencies.
2782 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2784 * sem_aggr.adb: Improve error message.
2786 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
2787 of an address representation clause.
2788 * freeze.adb (Freeze_Static_Object): An local imported object is legal
2789 if it has an address clause.
2791 2009-07-22 Thomas Quinot <quinot@adacore.com>
2793 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
2794 expression to insert an elab check using a conditional expression, be
2795 sure to carry the original list of interpretations to the new location.
2797 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2799 * gnat1drv.adb: Fix spelling error.
2801 2009-07-22 Javier Miranda <miranda@adacore.com>
2803 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
2804 at the library level and fix a hidden bug in its implementation: its
2805 functionality for renaming objects was broken because
2806 N_Object_Renaming_Declarations nodes are not a subclass of
2807 N_Declaration nodes (as documented in sinfo.ads).
2808 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
2809 check nodes that are actuals of generic instantiations.
2811 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2813 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
2814 context of a compilation unit is being analyzed. Used to detect
2815 circularities created by with_clauses that are not detected by the
2817 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
2818 analyzing the context of the current compilation unit, to detect
2819 possible circularities created by with_clauses.
2821 2009-07-22 Thomas Quinot <quinot@adacore.com>
2823 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
2825 2009-07-22 Robert Dewar <dewar@adacore.com>
2827 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
2828 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
2830 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
2831 * gnat_ugn.texi: Add documentation of -gnatyB
2832 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
2834 2009-07-22 Robert Dewar <dewar@adacore.com>
2836 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
2837 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
2838 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
2839 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
2840 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
2841 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
2842 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
2843 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
2844 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
2845 obey short-circuit style rule.
2847 2009-07-20 Bob Duff <duff@adacore.com>
2849 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
2850 instead of "and", because otherwise Parent_Last_Bit is read
2851 uninitialized in the case where it's not a tagged type, or the tagged
2852 parent does not have a complete rep clause.
2854 2009-07-20 Robert Dewar <dewar@adacore.com>
2856 * stylesw.ads: Minor documentation change.
2858 * types.ads: Minor reformatting
2860 2009-07-20 Javier Miranda <miranda@adacore.com>
2862 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
2863 generating the tag checks associated with dispatching calls.
2864 * exp_disp.adb (Apply_Access_Checks): New subprogram.
2865 (New_Value): This routine was previously local to expand dispatching
2866 calls but it is now used also by Apply_Access_Checks.
2867 (Expand_Dispatching_Calls): Cleanup code because the functionality of
2868 tag checks is now provided by Apply_Access_Checks.
2869 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
2870 case of dispatching calls.
2872 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2874 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
2877 2009-07-20 Gary Dismukes <dismukes@adacore.com>
2879 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
2880 for VMS, only rewrite the first component of the associated exception's
2881 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
2882 and third components that were being replaced with 'M' and 'S'.
2884 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2886 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
2887 Also do not generate error when parsing a spec in CodePeer mode.
2889 2009-07-20 Javier Miranda <miranda@adacore.com>
2891 * checks.adb (Apply_Access_Check): Avoid checks on availability of
2892 runtime function Offset_To_Top_Ptr when compiling with no tagged
2894 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
2895 adding code to the init proc when compiling for VM backends.
2897 2009-07-20 Vincent Celier <celier@adacore.com>
2899 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
2900 account switches -gnatw.?
2902 2009-07-20 Thomas Quinot <quinot@adacore.com>
2904 * sem_dist.adb, exp_dist.adb: Minor reformatting
2906 * Make-generated.in: New file.
2908 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
2910 2009-07-20 Javier Miranda <miranda@adacore.com>
2912 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
2914 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
2915 dynamically tagged expression.
2916 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
2918 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
2919 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2921 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2923 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
2924 CodePeer_Mode is set, to benefit from full front-end expansion
2927 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2929 * sem_res.adb: Add guard.
2931 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
2932 for possible attribute definition of External_Tag, in case clause
2933 appears in the private part of a package.
2935 2009-07-20 Jerome Guitton <guitton@adacore.com>
2937 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
2939 2009-07-20 Vadim Godunko <godunko@adacore.com>
2941 * a-coorma.adb: Minor reformatting.
2943 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2945 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
2946 access return types.
2947 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
2948 provide an itype reference to gigi to force elaboration of the subtype
2949 at the proper point.
2951 2009-07-20 Tristan Gingold <gingold@adacore.com>
2953 * g-expect.adb: Avoid closeing already closed handle.
2955 2009-07-20 Robert Dewar <dewar@adacore.com>
2957 * sprint.adb (Write_Subprogram_Name): New procedure to output
2958 subprogram name with possible preceding $ (replaces
2959 Note_Implicit_Run_Time_Call).
2961 2009-07-20 Robert Dewar <dewar@adacore.com>
2963 * vms_data.ads: Minor reformatting
2965 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
2966 applies to base type.
2967 (Parent_Subtype): Now allowed on record subtype, applies to base type
2968 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
2969 for case of fully repped tagged type.
2970 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
2971 tag save/restore for fully repped tagged type case.
2972 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
2973 * fe.h (Is_Fully_Repped_Tagged_Type): New function
2974 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
2975 overlap of tagged type components with parent type if parent type is
2977 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
2979 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
2981 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
2982 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
2984 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
2985 logical operators (AND/OR/XOR), not comparison operators.
2987 * sprint.ads: Minor reformatting
2989 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2991 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
2992 intrinsics, check that argument is a string literal, rather than
2993 checking for staticness.
2995 2009-07-20 Robert Dewar <dewar@adacore.com>
2997 * sem_ch13.adb: Minor reformatting
2999 * einfo.ads: Minor reformatting
3000 Component_Bit_Offset is no longer considered obsolescent
3002 2009-07-20 Nicolas Roche <roche@adacore.com>
3004 * a-calend.adb: Redefine time_t as signed integer with same size as
3006 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
3008 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
3011 2009-07-20 Javier Miranda <miranda@adacore.com>
3013 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
3014 constructors that have anonymous access type formals.
3016 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
3017 class-wide arguments in case of imported C++ subprograms.
3019 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
3021 2009-07-20 Sergey Rybin <rybin@adacore.com>
3023 * vms_data.ads: Update qualifiers.
3025 2009-07-20 Robert Dewar <dewar@adacore.com>
3027 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
3030 2009-07-17 Richard Guenther <rguenther@suse.de>
3033 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
3034 state. Remove unused parameter.
3035 (gnat_gimplify_function): Do not gimplify here.
3036 Fold into its only caller and remove.
3037 (gnat_builtin_function): Adjust for end_subprog_body signature change.
3038 (gnat_write_global_declarations): Also finalize the CU.
3039 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
3040 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
3041 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
3043 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
3045 2009-07-15 Arnaud Charlet <charlet@adacore.com>
3047 * gcc-interface/Make-lang.in: Update dependencies
3049 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
3051 2009-07-15 Robert Dewar <dewar@adacore.com>
3053 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
3054 N_Label. Remove SCO table entry for entry point (not used).
3056 * par_sco.ads: Remove SCO entry point type (not used)
3058 * switch.adb: Minor code clean up.
3060 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
3062 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
3064 2009-07-15 Thomas Quinot <quinot@adacore.com>
3066 * gnatls.adb: Minor reformatting
3068 * gnatcmd.adb: Minor code reorganization
3070 2009-07-15 Ed Schonberg <schonberg@adacore.com>
3072 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
3073 determine whether a component of a private type has a composite type.
3075 2009-07-15 Robert Dewar <dewar@adacore.com>
3077 * sem_ch10.adb: Minor reformatting throughout
3078 Minor code reorganization (put nested subprograms in alpha order)
3080 2009-07-15 Ed Schonberg <schonberg@adacore.com>
3082 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
3083 when compiling a call to a protected function that returns a controlled
3086 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
3088 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
3089 one. Add task locking and unlocking around the critical region which
3090 mentions localtime_r and global variable timezone for various targets.
3091 Comment reformatting.
3093 2009-07-15 Robert Dewar <dewar@adacore.com>
3095 * gnat_rm.texi: Document s-ststop.ads
3097 * impunit.ad: (Map_Array): New table of alternative names
3098 (Get_Kind_Of_Unit): Return possible suggested alternative name
3100 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
3103 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
3104 alternative unit if an implementation unit is with'ed.
3106 2009-07-15 Robert Dewar <dewar@adacore.com>
3108 * gnat_ugn.texi: Minor updates.
3110 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
3112 2009-07-15 Ed Schonberg <schonberg@adacore.com>
3114 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
3115 conditions of a derived boolean type.
3118 2009-07-15 Robert Dewar <dewar@adacore.com>
3120 * gnat1drv.adb: Initialize SCO tables
3122 * par-load.adb: Call SCO_Record for main unit spec
3124 * par.adb: Make call to SCO_Record for main unit
3126 * par_sco.adb (Unit_Table): Change format to facilitate sort
3127 (Process_Decisions): New procedure with list argument
3128 (Traverse_Generic_Package_Declaration): New procedure
3129 (Initialize): New procedure, replaces Init
3130 (SCO_Output): Sort unit table before output
3131 (SCO_Record): Avoid duplications
3132 (SCO_Record): Handle remaining cases of units
3133 (Traverse_Declarations_Or_Statements): Handle generics
3135 * par_sco.ads (Initialize): New peocedure (replaces Init)
3137 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
3140 2009-07-15 Arnaud Charlet <charlet@adacore.com>
3142 * debug.adb: Add -gnatd.J switch for now to support scil generation in
3143 parallel. Add missing doc for -gnatd.I and -gnatd.O
3145 2009-07-15 Robert Dewar <dewar@adacore.com>
3147 * lib-load.adb: Minor reformatting
3149 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
3151 2009-07-15 Robert Dewar <dewar@adacore.com>
3153 * par.adb: Minor reformatting
3154 Add ??? comment for possible bad comment
3156 * par-ch10.adb: Minor reformatting
3158 2009-07-15 Ed Schonberg <schonberg@adacore.com>
3160 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
3161 is a literal of a derived boolean type, it appears as an unchecked
3162 conversion. Retrieve actual value from expression of conversion.
3164 2009-07-15 Robert Dewar <dewar@adacore.com>
3166 * sem_ch3.adb: Minor reformatting
3168 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
3169 lib-writ.ads, lib-writ.adb: Minor reformatting.
3170 Fix problem with SCO format in ALI files
3172 2009-07-15 Robert Dewar <dewar@adacore.com>
3174 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
3175 exp_aggr.adb: Minor code reorganization (better calling sequence for
3178 2009-07-15 Thomas Quinot <quinot@adacore.com>
3180 * opt.ads: Minor comment edits
3182 2009-07-15 Tristan Gingold <gingold@adacore.com>
3184 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
3187 2009-07-15 Robert Dewar <dewar@adacore.com>
3189 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
3192 * lib-writ.ads: Document addition of SCO lines to ALI file
3194 * par_sco.ads, par_sco.adb: New files.
3196 * opt.ads (Generate_SCO): New switch
3198 * par.adb (Par): Call SCO_Record to record SCO information
3200 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
3202 * switch-c.adb: Recognize -gnateS to generate SCO information
3204 * usage.adb: Add line for -gnateS
3206 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
3208 2009-07-15 Robert Dewar <dewar@adacore.com>
3210 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
3213 2009-07-15 Thomas Quinot <quinot@adacore.com>
3215 * g-socthi-mingw.adb: Minor comment addition
3217 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
3219 2009-07-15 Robert Dewar <dewar@adacore.com>
3221 * g-htable.ads, s-htable.ads: Minor reformatting
3223 2009-07-15 Robert Dewar <dewar@adacore.com>
3225 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
3226 new switch -gnatw.g.
3227 (Set_GNAT_Mode_Warnings): New procedure.
3229 * lib-xref.adb: Minor reformatting
3231 2009-07-15 Robert Dewar <dewar@adacore.com>
3233 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
3234 Minor code reorganization
3236 2009-07-14 Taras Glek <tglek@mozilla.com>
3237 Rafael Espindola <espindola@google.com>
3239 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
3240 installing plugin headers.
3242 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3244 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
3245 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
3246 and link it to the expression whose value it captures.
3248 2009-07-13 Robert Dewar <dewar@adacore.com>
3250 * output.adb: Minor comment addition for last change
3252 * sinfo.ads: Minor reformatting
3254 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
3256 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
3257 spawn failed like on all other targets.
3259 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3261 * exp_ch7.adb: Indicate origin of temporary for transient expression.
3263 2009-07-13 Thomas Quinot <quinot@adacore.com>
3265 * s-oscons-tmplt.c: Add comment.
3267 2009-07-13 Robert Dewar <dewar@adacore.com>
3269 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
3270 reformatting. Minor code reorganization (add 9 argument version of
3273 * impunit.adb: Remove s-os_lib from list of system extensions.
3275 * sem_util.ads: Minor reformatting
3277 * output.adb: Add warnings off/on around System.OS_Lib.
3279 2009-07-13 Bob Duff <duff@adacore.com>
3281 * exp_dist.adb: Minor comment updates.
3283 2009-07-13 Gary Dismukes <dismukes@adacore.com>
3285 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
3286 several references to CodePeer.
3288 2009-07-13 Bob Duff <duff@adacore.com>
3290 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
3291 Build_TypeCode_Function_All): Do not recurse if the type is the base
3294 2009-07-13 Robert Dewar <dewar@adacore.com>
3296 * exp_ch4.adb: Minor comment change
3298 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3300 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
3301 type of iteration, to prevent spurious warnings.
3303 2009-07-13 Nicolas Roche <roche@adacore.com>
3305 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
3308 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3310 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
3311 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
3313 (CodePeer_Mode): New -gnatC switch.
3314 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
3317 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
3319 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
3320 integer bound forces the check if it is compared to its subtype range.
3322 2009-07-13 Robert Dewar <dewar@adacore.com>
3324 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
3325 prj-strt.ads: Minor reformatting
3327 2009-07-13 Thomas Quinot <quinot@adacore.com>
3329 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
3330 set the type of the From_Any call to the base type.
3332 2009-07-13 Doug Rupp <rupp@adacore.com>
3334 * symbols-processing-vms-ia64.adb (Process): Add variables and
3335 constants to retrieve and check for symbol visibility.
3337 2009-07-13 Javier Miranda <miranda@adacore.com>
3339 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
3340 the identical type we remove the conversion completely because
3343 2009-07-13 Emmanuel Briot <briot@adacore.com>
3345 * prj-err.adb (Error_Msg): One more case where a message should be
3346 considered as a warning.
3348 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
3350 2009-07-13 Thomas Quinot <quinot@adacore.com>
3352 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
3353 calling stubs in the (library level) scope of the RCI locator, where it
3354 is attached, not in the caller's scope.
3356 2009-07-13 Javier Miranda <miranda@adacore.com>
3358 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
3359 interface object declarations we delay the generation of the equivalent
3360 record type declarations until its expansion because there are cases in
3361 which they are not required.
3363 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
3365 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
3366 addition of assertion.
3368 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
3369 interface types require no equivalent constrained type declarations
3370 because the expanded code only references the tag component associated
3372 (Find_Interface_Tag): Improve management of interfaces that are
3373 ancestors of tagged types.
3375 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
3376 class-wide object declarations to add missing support to statically
3377 displace the pointer to the object to reference the tag component
3378 associated with the interface.
3380 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
3381 auxiliary types associated with user-defined dispatching calls if the
3382 type has no user-defined primitives.
3384 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
3386 * mingw32.h: Make it explicit that we need XP or later.
3388 * initialize.c: Remove useless extern symbol declaration.
3390 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
3391 code reuse in expect.c.
3393 * adaint.c: Changes throughout the Windows section to redesign storage
3394 of the child process list and the process identification.
3396 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
3397 for interfacing, fix errors.
3398 (__gnat_expect_portable_execvp): use function in adaint.c
3400 2009-07-13 Emmanuel Briot <briot@adacore.com>
3402 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
3403 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
3404 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
3405 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
3406 (Prj.Nmsc.Report_Error): Removed, no longer needed.
3407 Always use Prj.Err.Report_Message.
3409 2009-07-13 Robert Dewar <dewar@adacore.com>
3411 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
3414 2009-07-13 Robert Dewar <dewar@adacore.com>
3416 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3417 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
3419 2009-07-13 Emmanuel Briot <briot@adacore.com>
3421 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
3422 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
3423 Ada_Prj_Include_File_Set): Removed, since not needed
3426 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3428 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
3429 Analyze_Membership_Op.
3431 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
3432 Resolve_Membership_Op.
3434 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
3437 2009-07-13 Robert Dewar <dewar@adacore.com>
3439 * clean.adb: Minor reformattting
3441 2009-07-13 Emmanuel Briot <briot@adacore.com>
3443 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
3444 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
3445 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
3446 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
3447 and attributes in a project tree.
3448 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
3449 Remove last remaining mode-specific code (ada_only or
3450 multi_language). This was duplicating code
3451 (Get_Mode, Set_Mode): removed, no longer used.
3452 (Initialize_Project_Path): all tools will now take into account both
3453 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
3454 Remove some global variables and subprograms no longer used
3455 Make temporary files tree-specific, to avoid interferences between
3456 trees loaded in memory at the same time.
3457 (Prj.Delete_Temporary_File): new subprogram
3458 (Object_Paths, Source_Paths): fields no longer stored in the project
3459 tree, since they are only needed locally in Set_Ada_Paths.
3460 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
3462 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
3463 by local variables in the appropriate subprograms
3464 (Has_Foreign_Sources): removed.
3466 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
3468 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3470 * gnat1drv.adb (Adjust_Global_Switches): No longer set
3471 Back_Annotate_Rep_Info in inspector mode.
3472 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
3474 * opt.ads: Update comment.
3476 2009-07-13 Robert Dewar <dewar@adacore.com>
3478 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
3479 prj.ads: Minor reformatting and code reorganization.
3481 * par-ch3.adb (Check_Restricted_Expression): New procedure
3483 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3485 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
3486 attribute into a call of the corresponding suprogram, create extra
3487 formals for the subprogram, because it may be a renaming whose
3488 analysis does not create extra formals.
3490 2009-07-13 Emmanuel Briot <briot@adacore.com>
3492 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3493 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3494 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
3495 prj-tree.ads: Minor reformatting.
3496 (Processing_Flags): new record to encapsulate the set of common
3497 parameters to several subprograms in the project manager.
3498 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
3499 Remove the need for the Current_Dir parameter in subprograms.
3500 (Look_For_Sources): minor refactoring, now that we no longer need to
3501 share subprograms between the two Ada_Only and Multi_Language modes
3502 (Processing_Flags): New field Error_On_Unknown_Language.
3503 Merge tests for library project between gnatmake and gprbuild.
3505 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3507 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
3510 2009-07-13 Emmanuel Briot <briot@adacore.com>
3512 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
3515 2009-07-13 Thomas Quinot <quinot@adacore.com>
3517 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
3518 Write,Input,Output} from private view to full view.
3520 * sem_type.adb, sem_type.ads: Minor reformatting
3522 2009-07-13 Nicolas Setton <setton@adacore.com>
3524 * exp_dbug.ads: Add documentation note on the utility of
3525 DW_AT_GNAT_encoding for IDEs.
3527 2009-07-13 Robert Dewar <dewar@adacore.com>
3529 * g-socthi-vxworks.adb: Minor reformatting
3531 * gnatcmd.adb: Minor reformatting
3533 2009-07-13 Thomas Quinot <quinot@adacore.com>
3535 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
3536 removed, not used anymore.
3537 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
3538 New subprogram, implements copy of an Any value into a limited object.
3539 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
3540 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
3541 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
3542 of parameters of a limited type, use the above new subprogram.
3544 2009-07-13 Emmanuel Briot <briot@adacore.com>
3546 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
3548 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
3550 (Error_Report): Remove global variable, replaced by parameters.
3552 2009-07-13 Thomas Quinot <quinot@adacore.com>
3554 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
3555 standard sendto(2) interface for connected sockets (passing a null
3556 destination address). Use send(2) instead for that case.
3558 2009-07-13 Pascal Obry <obry@adacore.com>
3560 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
3562 2009-07-13 Emmanuel Briot <briot@adacore.com>
3564 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3565 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
3566 variables and tables in prj-nmsc.adb.
3567 (Tree_Processing_Data): Renames Processing_Data, some new fields added
3568 (Project_Processing_Data): New record
3569 Simplify/unify check for missing sources.
3571 2009-07-13 Emmanuel Briot <briot@adacore.com>
3573 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
3574 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3575 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
3576 prj-tree.ads (Immediate_Directory_Of): Removed.
3577 (Prj.Pars): Now parse the project simulating a default config file.
3578 (Add_Default_GNAT_Naming_Scheme): New subprogram
3579 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
3580 Remove gnatmake-specific parsing of source files.
3581 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
3582 the error itself to provide more precise diagnostics.
3583 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
3584 a unit belongs to several projects.
3585 (Copy_Interface_Sources): Search the full path of files to copy in the
3586 list of sources of the application rather than in the list of units.
3587 (Parse_Project_And_Apply_Config): Do not reset the name of the main
3589 (Check_File): Use htables to find out whether a source is duplicated.
3590 (Add_Source): check whether the source or unit were already seen earlier
3592 * gcc-interface/Makefile.in: Update gnatmake dependencies.
3594 2009-07-13 Robert Dewar <dewar@adacore.com>
3596 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
3597 expression if extensions permitted.
3599 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
3601 (P_Relation): Use P_Membership_Test
3603 * par.adb (P_Membership_Test): New procedure (implement membership set
3606 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
3608 * sprint.adb (Sprint_Node): Handle set form for membership tests.
3610 2009-07-13 Thomas Quinot <quinot@adacore.com>
3612 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
3613 Do not attempt to generate stubs for predefined primitives of
3614 synchronized interfaces.
3615 (Add_Stub_Type): Factor some code from the PCS-specific variants of
3618 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3620 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
3621 Controlling_Result flag from the operation they override.
3623 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3625 * gcc-interface/Make-lang.in: Update dependencies
3627 2009-07-13 Robert Dewar <dewar@adacore.com>
3629 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
3630 details on unsupported constructs.
3632 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
3635 * s-trafor-default.adb: Correct some warnings
3637 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
3638 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
3641 * par-ch4.adb (Conditional_Expression): Capture proper location for
3642 conditional expression, should point to IF.
3644 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
3645 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
3646 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
3647 reorganization (use conditional expressions).
3649 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3651 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
3652 build-in-place function that returns an inherently limited type (not
3653 just a task type) create proper object declaration so that extra
3654 build-in-place actuals are properly added to the call.
3656 2009-07-13 Robert Dewar <dewar@adacore.com>
3658 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
3660 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
3662 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
3664 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
3665 Warn_On_Suspicious_Modulus_Value.
3667 * ug_words: Add entries for -gnatw.m/-gnatw.M.
3669 * usage.adb: Add lines for -gnatw.m/.M switches.
3671 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
3673 2009-07-13 Javier Miranda <miranda@adacore.com>
3675 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
3676 reading the Is_Interface attribute of the dispatching type.
3678 2009-07-13 Robert Dewar <dewar@adacore.com>
3680 * a-convec.adb: Minor code reorganization (use conditional expressions)
3682 2009-07-13 Robert Dewar <dewar@adacore.com>
3684 * freeze.adb (Check_Suspicious_Modulus): New procedure.
3686 2009-07-13 Robert Dewar <dewar@adacore.com>
3688 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
3691 * par-ch4.adb: Minor reformatting
3693 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3695 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
3696 => Is_Atomic_Aggregate
3698 2009-07-13 Emmanuel Briot <briot@adacore.com>
3700 * prj-nmsc.adb: Avoid traversing the list of source files if
3701 we have already processed all locally removed files.
3703 2009-07-13 Jose Ruiz <ruiz@adacore.com>
3705 * gnat_ugn.texi: Fix typo.
3707 2009-07-13 Robert Dewar <dewar@adacore.com>
3709 * freeze.adb: Minor reformatting
3710 Minor code reorganization (use Nkind_In)
3712 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
3714 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3716 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
3717 local variable and do not test it in Compile_Time_Bad_Alignment.
3718 Do not issue size or alignment warnings for the X'Address form.
3719 * sem_util.ads (Find_Overlaid_Object): Delete.
3720 (Find_Overlaid_Entity): New procedure.
3721 * sem_util.adb (Find_Overlaid_Object): Rename to...
3722 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
3723 whether the address is offseted within the overlaid entity.
3724 (Has_Compatible_Alignment): Track the offset globally instead of
3725 passing it to Check_Offset. For an indexed component, compute the
3726 full offset when possible. If the resulting offset is zero, only
3728 (Check_Offset): Delete.
3729 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
3730 (Address_Aliased_Entity): Delete.
3731 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
3732 Find_Overlaid_Entity to find the overlaid entity and the offset.
3733 Adjust throughout for above change.
3734 (Validate_Address_Clauses): Always use attributes of entities, not of
3735 their type. Tweak message for warning. Call Has_Compatible_Alignment
3736 if the address is offseted to warn about incompatible alignments.
3737 * gcc-interface/gigi.h (annotate_object): Declare.
3738 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
3739 entity. Call annotate_object instead of annotating manually objects.
3740 (annotate_object): New function.
3741 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
3744 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3746 * gcc-interface/ada-tree.h: Minor reorganization.
3747 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
3748 (gnat_print_type): Likewise.
3750 2009-07-11 Thomas Quinot <quinot@adacore.com>
3752 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
3755 * exp_ch6.adb: Minor reformatting
3757 2009-07-11 Ed Schonberg <schonberg@adacore.com>
3759 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
3760 account possible type qualification to determine whether aggregate
3761 needs a target temporary to respect atomic type or object.
3763 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
3764 Expand_Atomic_Aggregate.
3766 2009-07-11 Emmanuel Briot <briot@adacore.com>
3768 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
3770 (Excluded_Sources_Htable): No longer a global table.
3771 Change error message to indicate which files are illegal in the list
3772 of excluded files, as opposed to only the location in the project
3774 (Find_Source): New subprogram.
3776 2009-07-10 Thomas Quinot <quinot@adacore.com>
3778 * exp_ch7.adb: Update comments.
3780 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3782 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
3783 clause if -gnatI is set instead of crashing.
3785 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3787 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
3788 Additional work to remove redundant successive raise statements, in
3789 this case access checks.
3791 2009-07-10 Vincent Celier <celier@adacore.com>
3793 * make.adb (Compile): Always create a deep copy of the mapping file
3794 argument (-gnatem=...) as it may be deallocate/reallocate by
3795 Normalize_Arguments.
3797 2009-07-10 Javier Miranda <miranda@adacore.com>
3799 * einfo.adb (Directly_Designated_Type): Add assertion.
3801 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
3802 access types before using attribute Directly_Designated_Type.
3804 2009-07-10 Emmanuel Briot <briot@adacore.com>
3806 * prj.ads: Minor typo fix
3808 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3810 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
3813 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
3814 subprogram is a function call, resolve properly, to ensure that extra
3815 actuals are added as needed.
3817 2009-07-10 Thomas Quinot <quinot@adacore.com>
3819 * sem_aggr.adb: Minor comments editing
3821 * exp_tss.adb, exp_ch3.adb: Minor reformatting
3823 2009-07-10 Robert Dewar <dewar@adacore.com>
3825 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
3827 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
3830 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
3831 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
3832 case of conditional expressions that may not be elaborated.
3834 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
3835 conditional expression where we may not execute then then or else
3838 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3840 * i-cexten.ads (bool): New type.
3842 2009-07-10 Robert Dewar <dewar@adacore.com>
3844 * sinfo.ads (N_Short_Circuit): New definition
3846 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
3847 treepr.adb: Minor code reorganization (use N_Short_Circuit)
3849 2009-07-10 Javier Miranda <miranda@adacore.com>
3851 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
3852 non-tagged record types.
3855 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
3856 with non-tagged types. Required to import C++ classes that have no
3858 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
3859 returning non-tagged types. For backward compatibility, if the
3860 constructor returns a class wide type we internally change the
3861 returned type to the corresponding non class-wide type.
3864 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
3865 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
3866 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
3867 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
3870 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
3872 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
3874 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
3876 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
3878 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
3881 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
3884 (pragma CPP_Class): Document that it can be used now with non-tagged
3886 (pragma CPP_Constructor): Document that it can be used now with
3887 functions returning specific types. For backward compatibility
3888 we also support functions returning class-wide types.
3891 (Interfacing with C++ constructors): Update the examples to incorporate
3892 the new syntax in which the functions used to import C++ constructors
3893 return specific types.
3894 (Interfacing with C++ at the Class Level): Update the examples to
3895 incorporate the new syntax in which the functions used to import
3896 C++ constructors return specific types.
3898 2009-07-10 Thomas Quinot <quinot@adacore.com>
3900 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
3901 Make_Disp_Conditional_Select_Body,
3902 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
3903 interface nor a concurrent type, the primitive body is empty. Generate
3904 a null statement so that it remains well formed.
3906 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3908 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
3909 replace references to them in defaulted component expressions with
3910 references to the values of the discriminants of the target object.
3912 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3914 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
3915 pragma, to capture global references if the context is generic.
3917 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
3918 appears within the initialization procedure for the corresponding
3919 record, replace it with the proper discriminal.
3921 2009-07-10 Vincent Celier <celier@adacore.com>
3923 * make.adb: Do not include object directories or library ALI
3924 directories of library projects in the object path.
3926 2009-07-10 Javier Miranda <miranda@adacore.com>
3928 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
3929 Typ argument to ensure proper management of access types.
3931 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3933 * exp_ch7.adb (Build_Final_List): If the list is being built for a
3934 Taft-Amendment type, place the finalization list in the package body,
3935 to ensure that the tree for the spec is identical whenever it is
3938 2009-07-10 Javier Miranda <miranda@adacore.com>
3940 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
3941 inheriting attributes from a private Parent_Base.
3943 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3945 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
3946 statements with the same condition.
3948 2009-07-10 Robert Dewar <dewar@adacore.com>
3950 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
3952 2009-07-09 Tom Tromey <tromey@redhat.com>
3954 * raise-gcc.c: Include dwarf2h (unconditionally).
3956 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3958 * sem_ch10.adb (Install_Context): If the unit is a package body,
3959 install the private with_clauses of the corresponding package
3962 2009-07-09 Robert Dewar <dewar@adacore.com>
3964 * checks.adb: Minor reformatting
3966 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3968 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3971 2009-07-09 Thomas Quinot <quinot@adacore.com>
3973 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3974 Do not warn for a constant overlaying any constant object
3976 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3978 * sem_ch10.adb (Install_Context): If the unit is a package body,
3979 install the private with_clauses of the corresponding package
3982 2009-07-09 Robert Dewar <dewar@adacore.com>
3984 * checks.adb: Minor reformatting
3986 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3988 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3991 2009-07-09 Thomas Quinot <quinot@adacore.com>
3993 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3994 Do not warn for a constant overlaying any constant object
3996 2009-07-09 Arnaud Charlet <charlet@adacore.com>
3998 * gcc-interface/Make-lang.in: Update dependencies
4000 2009-07-09 Thomas Quinot <quinot@adacore.com>
4002 * g-socket.adb (Check_Selector): Do not create local copies of the
4003 socket sets on the stack.
4005 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
4007 * gnat_ugn.texi: Add missing VMS translations.
4009 2009-07-09 Ed Schonberg <schonberg@adacore.com>
4011 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
4012 condition, to prevent generation of visible code during expansion,
4013 when Check is not enabled.
4015 2009-07-09 Gary Dismukes <dismukes@adacore.com>
4017 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
4018 the check gets registered for any available local handler
4021 * sem_util.adb: Add with and use of Exp_Ch11.
4022 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
4023 that the check gets registered for any available local handler.
4025 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
4028 2009-07-09 Steve Baird <baird@adacore.com>
4030 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
4032 (Expand_N_Exception_Declaration): Fix handling of exceptions
4033 declared in a subprogram.
4035 2009-07-09 Emmanuel Briot <briot@adacore.com>
4037 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
4040 2009-07-09 Thomas Quinot <quinot@adacore.com>
4042 * freeze.adb: Minor reformatting
4044 * exp_ch3.adb: Minor comment fix.
4046 * sinfo.ads: Minor comment fix
4048 2009-07-09 Ed Schonberg <schonberg@adacore.com>
4050 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
4052 2009-07-09 Ed Schonberg <schonberg@adacore.com>
4054 * freeze.adb (Freeze_Expression): If the expression is the name of a
4055 function in a call, and the function has not been frozen yet, create
4056 extra formals for it to ensure that the proper actuals are created
4057 when expanding the call.
4059 2009-07-09 Emmanuel Briot <briot@adacore.com>
4061 * prj-pp.adb (Print): Fix handling of source index when set on a
4064 2009-07-09 Ed Schonberg <schonberg@adacore.com>
4066 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
4067 a temporary to the source expression whose value it captures.
4069 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
4071 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4073 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
4076 2009-07-07 Gary Dismukes <dismukes@adacore.com>
4078 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
4079 parameters when the subtype of the actual is not known to be a subrange
4080 of the formal's subtype.
4081 (Expand_Call): Generate a range check only in the E_In_parameter case
4082 (in out parameter range checks are now handled in Expand_Actuals).
4084 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
4087 2009-07-07 Robert Dewar <dewar@adacore.com>
4089 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
4091 2009-07-07 Javier Miranda <miranda@adacore.com>
4093 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
4094 designated type comes from a limited views.
4096 2009-07-07 Emmanuel Briot <briot@adacore.com>
4098 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
4099 locally removed files that are later made visible again in an importing
4102 2009-07-07 Robert Dewar <dewar@adacore.com>
4104 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
4106 2009-07-07 Sergey Rybin <rybin@adacore.com>
4108 * gnat_ugn.texi: Add an example to the description of gnatcheck
4109 'Style_Checks' rule option.
4111 2009-07-07 Tristan Gingold <gingold@adacore.com>
4113 * seh_init.c: Fix inline assembly statement in seh_init.c
4115 2009-07-07 Ed Schonberg <schonberg@adacore.com>
4117 * sem_warn.adb (Check_References): Do not emit warnings on formals of
4118 an entry body. Only the formals of the entry declaration are traced.
4120 2009-07-07 Robert Dewar <dewar@adacore.com>
4122 * s-osprim-mingw.adb: Minor code reorganization
4124 2009-07-07 Robert Dewar <dewar@adacore.com>
4126 * prj-nmsc.adb: Minor reformatting
4128 2009-07-07 Pascal Obry <obry@adacore.com>
4130 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
4131 cases where Pattern is longer than Source.
4133 2009-07-07 Pascal Obry <obry@adacore.com>
4135 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
4137 2009-07-07 Emmanuel Briot <briot@adacore.com>
4139 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
4142 2009-07-07 Ed Schonberg <schonberg@adacore.com>
4144 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
4145 primitive operations, in case one of them is called in the
4146 initialization procedure for the type.
4148 2009-07-07 Robert Dewar <dewar@adacore.com>
4150 * a-calend.adb: Minor code reorganization (use conditional expressions)
4152 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
4153 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
4154 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
4155 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
4156 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
4157 g-comlin.adb, exp_ch11.adb: Minor reformatting.
4159 2009-07-07 Gary Dismukes <dismukes@adacore.com>
4161 * checks.adb (Generate_Range_Check): Replace type conversions with
4162 unchecked conversions to support the case of performing range checks
4163 on Enum'Val (permits integer values to be converted to enumeration).
4165 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
4166 Attribute_Succ): Set Do_Range_Check to False before calling
4167 Expand_Pred_Succ, to prevent gigi from generating any range checks.
4168 (Expand_N_Attribute_Reference, case Attribute_Val):
4169 Generate a range check when needed (and set Do_Range_Check to False).
4171 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
4172 scalar object initialization if needed.
4174 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
4175 when needed on scalar allocators.
4176 (Expand_N_Qualified_Expression): Generate range check when needed.
4177 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
4178 Checks on slice ranges handled in Resolve_Slice.
4180 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
4181 when needed, for all scalar assignments, not just discrete.
4182 (Expand_Simple_Function_Return): Resolve the conversion created for a
4183 scalar function return so that the conversion will get expanded to
4184 generate a possible constraint check.
4186 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
4187 in out scalar actuals when subtypes don't match, to ensure generation
4188 of return checks (and set Do_Range_Check to False).
4189 (Expand_Call): Uncomment code to perform range checks, but make it apply
4190 only to in and in out parameters (checks on parameter returns are
4191 handled in Expand_Actuals). If a scalar actual for a call to a derived
4192 subprogram is marked as needing a range check, peform it here (and set
4193 Do_Range_Check to False).
4195 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
4196 range check on scalar component associations when needed.
4198 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
4199 infinities but the second type does not, as these aren't compatible
4200 floating-point types.
4202 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
4203 slice is itself a slice, pick up the Etype of the prefix. This handles
4204 the case where the prefix was an Image attribute expanded to a slice,
4205 and ensures that we get the subtype with the slice constraint rather
4206 than the unconstrained subbtype of the 'Image.
4208 2009-07-07 Ed Schonberg <schonberg@adacore.com>
4210 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
4211 overloaded expressions in a conditional expressions.
4213 * sem_res.adb (Resolve): Handle properly overloaded conditional
4216 2009-07-07 Robert Dewar <dewar@adacore.com>
4218 * scng.adb: Minor reformattting
4220 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
4221 association allows conditional expression without parens.
4223 * par-ch4.adb (P_Name): Attribute arguments can be conditional
4224 expressions without enclosing parentheses, and also as parameters,
4225 indexing expressions etc.
4226 (P_Conditional_Expression): New procedure
4227 (P_Expression_If_OK): New procedure
4229 * par.adb (P_Conditional_Expression): New procedure
4230 (P_Expression_If_OK): New procedure
4232 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
4233 form of conditional expression.
4235 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
4236 missing True argument if ELSE argument missing.
4238 * sinfo.adb (Is_Elsif): New flag
4240 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
4241 part of the language, and the documentation is modified accordingly.
4242 (Is_Elsif): New flag
4244 2009-07-06 Olivier Hainque <hainque@adacore.com>
4246 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
4247 setjmp_longjmp): Attach the exception propagation reraise fallback
4248 to the sequence end label location when we have it.
4250 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4253 * init.c (APPLE): Include <mach/mach_init.h>.
4254 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
4256 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
4258 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
4259 (SET_DECL_LANG_SPECIFIC): Likewise.
4260 (TYPE_RM_VALUE): New macro.
4261 (SET_TYPE_RM_VALUE): Likewise.
4262 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
4263 (TYPE_RM_MIN_VALUE): Likewise.
4264 (TYPE_RM_MAX_VALUE): Likewise.
4265 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
4266 (SET_TYPE_RM_MIN_VALUE): Likewise.
4267 (SET_TYPE_RM_MAX_VALUE): Likewise.
4268 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
4270 2009-07-04 Laurent GUERBY <laurent@guerby.net>
4273 * tracebak.c (__gnat_backtrace): Fix old-style definition.
4275 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4277 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
4279 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4282 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
4285 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
4287 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
4289 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4291 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
4292 the type of the left operand if it pads a self-referential type when
4293 the right operand is a constructor.
4295 * gcc-interface/lang-specs.h: Fix copyright date.
4297 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4299 * gcc-interface/decl.c: Include tree-inline.h.
4300 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
4301 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
4302 * gcc-interface/utils2.c: Include tree-inline.
4303 (known_alignment) <CALL_EXPR>: Likewise.
4305 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4307 * raise-gcc.c: Include dwarf2.h conditionally.
4309 2009-06-29 Tom Tromey <tromey@redhat.com>
4311 * raise-gcc.c: Include elf/dwarf2.h.
4313 2009-06-27 Laurent GUERBY <laurent@guerby.net>
4315 * tb-gcc.c (trace_callback): Add casts to silence warning.
4317 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
4319 * tb-gcc.c: Fix copyright notice.
4321 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
4323 * init.c (__gnat_set_globals): Add prototype.
4324 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
4325 (__gnat_sals_init_using_constructors): Likewise.
4326 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
4327 (get_block_jmpbuf_decl): Likewise.
4328 (gnat_poplevel): Likewise.
4329 (merge_sizes): Rename local variable.
4330 (copy_type): Likewise.
4331 (build_vms_descriptor32): Likewise.
4332 (build_vms_descriptor): Likewise.
4333 (convert_vms_descriptor64): Likewise.
4334 (convert_vms_descriptor32): Likewise.
4335 (convert_to_fat_pointer): Likewise.
4336 (maybe_unconstrained_array): Likewise.
4337 (def_fn_type): Use promoted type with va_arg.
4338 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
4339 (substitute_in_type): Rename local variable.
4340 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
4342 2009-06-26 Laurent GUERBY <laurent@guerby.net>
4344 * tb-gcc.c (trace_callback): Use char* instead of void*.
4345 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
4346 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
4347 (Attribute_to_gnu): Adjust for above change.
4348 (Subprogram_Body_to_gnu): Likewise.
4349 * gcc-interface/utils.c (merge_sizes): Rename local variable.
4350 (copy_type): Likewise.
4351 (build_vms_descriptor32): Likewise.
4352 (build_vms_descriptor): Likewise.
4353 (convert_vms_descriptor64): Likewise.
4354 (convert_vms_descriptor32): Likewise.
4355 (convert_to_fat_pointer): Likewise.
4356 (maybe_unconstrained_array): Likewise.
4357 * gcc-interface/decl.c (substitute_in_type): Likewise.
4359 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4361 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
4362 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
4363 of the upper bound of the index types.
4365 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4367 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
4368 out common predicate. Use the maximum to compute the upper bound of
4369 the index type only when it is not wider than sizetype. Perform the
4370 comparison in the index type for the generic expression. Use real
4371 precision to decide whether to generate special types for debugging
4374 2009-06-26 Matthew Gingell <gingell@adacore.com>
4376 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
4378 2009-06-26 Vincent Celier <celier@adacore.com>
4380 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
4383 2009-06-26 Robert Dewar <dewar@adacore.com>
4385 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
4387 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4389 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
4390 correct arguments to create_field_decl. Remove redundant iteration.
4391 Rewrite computation of the maximum size.
4392 <E_Array_Subtype>: Reorder and simplify handling of special cases.
4393 Rewrite computation of the maximum size. Use consistent naming.
4394 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
4395 comparison order for consistency. Use generic integer node to
4396 build the operator and fold the result.
4398 2009-06-25 Vincent Celier <celier@adacore.com>
4400 * vms_data.ads: Minor comment change
4402 2009-06-25 Gary Dismukes <dismukes@adacore.com>
4404 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
4405 assignment statement to targeting a caller-provided object when the
4406 result type is an interface type.
4408 * exp_ch6.adb (Expand_Call): Remove redundant test of
4409 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
4410 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
4412 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
4413 to OK_For_Limited_Init.
4415 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
4416 condition so that True is returned for all limited interfaces, not
4417 just synchronized ones. Ignore components of an interface type when
4418 checking for limited components (such a component can be a parent
4421 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
4422 (OK_For_Limited_Init): Add type parameter.
4424 * sem_ch3.adb (Check_Initialization): Add type in call to
4425 OK_For_Limited_Init.
4426 (OK_For_Limited_Init): Add new type param in call to
4427 OK_For_Limited_Init_In_05.
4428 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
4429 nonlimited type when the context type is a limited interface. Add type
4432 * sem_ch4.adb (Analyze_Allocator): Add type in call to
4433 OK_For_Limited_Init.
4435 * sem_ch6.adb (Check_Limited_Return): Add type in call to
4436 OK_For_Limited_Init.
4438 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
4439 OK_For_Limited_Init.
4440 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
4442 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
4443 class-wide interface, get the base type before applying Etype, in order
4444 to account for class-wide subtypes.
4446 2009-06-25 Emmanuel Briot <briot@adacore.com>
4448 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
4449 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
4450 between gnatmake and gprbuild.
4451 (Naming_Data): Removed, no longer used
4452 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
4453 needed locally in one subprogram, no need to store forever in the
4455 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
4457 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
4458 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
4459 Spec_Suffix_Id_Of): removed, no longer used.
4461 2009-06-25 Javier Miranda <miranda@adacore.com>
4463 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
4464 types on qualified expression in calls to imported C++ constructors.
4466 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
4467 imported C++ constructors.
4469 2009-06-25 Sergey Rybin <rybin@adacore.com>
4471 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
4473 2009-06-25 Vincent Celier <celier@adacore.com>
4475 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
4476 provided, on Windows change all '/' to '\'.
4478 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
4479 used. Minor comment changes
4481 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
4482 Remove_Forbidden_File_Name.
4484 2009-06-25 Quentin Ochem <ochem@adacore.com>
4486 * prj.ads (Unit_Index): Now general access type.
4488 2009-06-25 Pascal Obry <obry@adacore.com>
4490 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
4492 2009-06-25 Emmanuel Briot <briot@adacore.com>
4494 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
4495 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
4496 computed efficiently from the other fields.
4497 (Object_To_Global_Archive): New subprogram
4498 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
4499 (Override_Kind): Fix handling of separates in Ada.
4500 (Create_Mapping_File): Remove duplicate code
4501 (Naming_Data.Implementation_Exception, Specification_Exception):
4502 field removed, since never used.
4503 (Naming_Data.Specs, .Bodies): field removed, since this is only
4504 used while processing the project and is not needed once the tree
4505 is in memory. This brings Naming_Data and Lang_Naming_Data
4506 closer (same content now, but different use still).
4508 2009-06-25 Pascal Obry <obry@adacore.com>
4510 * sem_ch4.adb: Minor reformatting.
4512 * a-strsea.adb: Fix confusion between 'Length and 'Last.
4514 2009-06-25 Ed Schonberg <schonberg@adacore.com>
4516 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
4517 Unchecked_Access): If the context is an interface type, and the prefix
4518 is of the corresponding class-wide type, do not insert a conversion
4519 because the pointer displacement has already taken place, and we must
4520 retain the class-wide type in a dispatching context.
4522 2009-06-25 Emmanuel Briot <briot@adacore.com>
4524 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
4525 the previous source file.
4526 (Create_Mapping): Iterate on sources rather than on units.
4528 2009-06-25 Emmanuel Briot <briot@adacore.com>
4530 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
4531 prj-env.adb, prj-env.ads (Slash): removed, no longer used
4532 (Source_Data): no longer use Path.Name to point to a locally removed
4533 file. Instead we use the field Locally_Removed which is clearer
4535 2009-06-25 Arnaud Charlet <charlet@adacore.com>
4537 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
4539 * sem_maps.adb, sem_maps.ads: Removed, not used.
4541 2009-06-25 Ed Falis <falis@adacore.com>
4543 * s-vxwext-rtp.ads: Add missing declaration
4545 2009-06-25 Matthew Gingell <gingell@adacore.com>
4547 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
4548 speed up unmapped case.
4550 2009-06-25 Vincent Celier <celier@adacore.com>
4552 * prj-nmsc.adb (Check): Change error message for illegal abstract
4555 2009-06-25 Robert Dewar <dewar@adacore.com>
4557 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
4559 2009-06-25 Emmanuel Briot <briot@adacore.com>
4561 * fmap.ads: Add documentation on mapping files
4563 2009-06-25 Robert Dewar <dewar@adacore.com>
4565 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
4568 2009-06-24 Robert Dewar <dewar@adacore.com>
4570 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
4572 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
4576 2009-06-24 Ed Schonberg <schonberg@adacore.com>
4578 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
4579 present when checking whether a call may be interpreted as an indexing
4580 of the result of a call.
4582 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
4583 body for a null procedure on the freeze actions for the procedure, so
4584 that it will be analyzed at the proper place without premature freezing
4587 * sem_ch3.adb (Check_Completion): Code cleanup.
4588 Do not diagnose a null procedure without a body, if previous errors
4589 have disabled expansion.
4591 2009-06-24 Doug Rupp <rupp@adacore.com>
4593 * init.c [VMS] Resignal C$_SIGKILL
4595 2009-06-24 Ed Falis <falis@adacore.com>
4597 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
4598 Define ERROR in body for VxWorks 6 kernel
4600 2009-06-24 Pascal Obry <obry@adacore.com>
4602 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
4603 in [Send/Receive]_Socket.
4605 2009-06-24 Emmanuel Briot <briot@adacore.com>
4607 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
4608 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
4609 to several subprograms.
4610 (Source_Data.Other_Part): Removed, since can be computed from the
4612 (Other_Part): New subprogram.
4614 2009-06-24 Emmanuel Briot <briot@adacore.com>
4616 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
4617 the full base name of the file when the suffix doesn't start with a '.'.
4619 2009-06-24 Vincent Celier <celier@adacore.com>
4621 * prj-nmsc.adb (Check): A project declared abstract is legal if no
4622 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
4625 2009-06-24 Robert Dewar <dewar@adacore.com>
4627 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
4628 prj-env.adb: Minor reformatting
4630 2009-06-24 Ed Falis <falis@adacore.com>
4632 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
4633 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
4634 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
4635 support for VxWorks SMP.
4637 * gcc-interface/Make-lang.in: Update dependencies
4639 2009-06-24 Emmanuel Briot <briot@adacore.com>
4641 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4642 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
4644 (Source_Data.Lang_Kind): Removed, since it duplicates information
4645 already available through Language.Config.
4646 (Source_Data.Compile): Removed, since information is already available
4647 through the language.
4648 (Is_Compilable): New subprogram.
4649 (Source_Data.Dependency): Removed, since already available through
4651 (Source_Data.Object_Exist, Object_Linked): Removed since available
4652 through the language already.
4653 (Unit_Data.File_Names): Is now also set in multi_language mode, to
4654 bring the two modes closer in the resulting data structures.
4655 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
4656 just the name that would point into a hash table.
4657 (Get_Language_From_Name): New subprogram.
4659 2009-06-24 Javier Miranda <miranda@adacore.com>
4661 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
4662 visible through limited-with context clauses. In addition, avoid an
4663 extra tag check that is not required when the class-wide
4664 designated types of the operand and target types are
4666 (Tagged_Membership): Handle entities from the limited view.
4668 2009-06-24 Emmanuel Briot <briot@adacore.com>
4670 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
4671 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
4672 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
4673 different vocabularies for similar concepts (Impl/Body_Part and
4674 Spec/Specification).
4675 (Unit_Data): now points directly to a Source_Id, rather than duplicating
4676 some of the information in File_Name_Data. This also saves a bit of
4677 memory. However, since we are now using a pointer we need to test
4678 for null explicitly in several places of the code
4680 2009-06-24 Javier Miranda <miranda@adacore.com>
4682 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
4683 from processing the type conversion when the node is
4684 replaced by an N_Raise_Program_Error node.
4686 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
4688 * sem_ch6.adb (Designates_From_With_Type): New routine.
4689 (Process_Formals): Since anonymous access types are no longer flagged
4690 as from with types, traverse the designated type to determine whether
4691 it is coming from a limited view.
4693 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
4694 (Full_Designated_Type): Use Available_View to extract the non-limited /
4695 full view of a type.
4697 2009-06-24 Robert Dewar <dewar@adacore.com>
4699 * exp_ch6.adb: Minor reformatting
4701 * layout.adb: Minor reformatting
4703 * make.adb: Minor reformatting
4705 2009-06-24 Thomas Quinot <quinot@adacore.com>
4707 * sem_ch10.adb: Minor code reorganization.
4709 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
4711 * ttypes.ads: Minor editing.
4713 2009-06-24 Robert Dewar <dewar@adacore.com>
4715 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
4716 in deciding to do call-by-copy code.
4718 2009-06-24 Vincent Celier <celier@adacore.com>
4720 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
4721 check if an externally built library file is more current than the
4724 2009-06-23 Olivier Hainque <hainque@adacore.com>
4726 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
4727 c-common.c and populate in gnat_internal_attribute_table.
4729 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4731 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
4732 Available_View only when designated type of an anonymous access type
4735 2009-06-23 Robert Dewar <dewar@adacore.com>
4737 * sem_ch10.adb: Minor reformatting
4739 * ali.ads: Mino reformatting.
4741 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
4742 turning off inlining if ASIS mode active).
4744 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
4745 This belongs in gnat1drv.adb after switches are scanned.
4747 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
4749 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
4750 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
4751 when dealing with class-wide types. Detect a legal shadow entity and
4752 retrieve its non-limited view.
4754 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
4755 subprogram to top package level from Intall_Limited_Withed_Unit.
4756 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
4757 Add check which prevents the installation of a limited view if the
4758 non-limited view is already visible through a with clause.
4759 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
4760 legal shadow entity which may occur in subprogram formals of anonymous
4763 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
4765 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
4766 From_With_Type from the designated type to the generated anonymous
4767 access type. Remove associated comment.
4769 * sem_res.adb Add with and use clauses for Sem_Ch10.
4770 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
4771 non-limited view. Since the shadow entity may replace a regular
4772 incomplete type, return the available full view.
4774 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4776 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
4777 incomplete type declarations. Previous code was potentially quadratic
4778 in the number of visible declarations in any package appearing in a
4779 limited_with_clause.
4781 2009-06-23 Robert Dewar <dewar@adacore.com>
4783 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
4784 xref_lib.adb: Minor reformatting
4786 2009-06-23 Robert Dewar <dewar@adacore.com>
4788 * a-stzhas.adb: Provide dummy body to avoid build problems with old
4789 versions which did have a body for this unit.
4791 2009-06-23 Vincent Celier <celier@adacore.com>
4793 * prj-attr.adb: Attribute names Initial_Required_Switches and
4794 Final_Required_Switches changed to Leading_Required_Switches and
4795 Trailing_Required_Switches.
4797 * prj-nmsc.adb (Process_Compiler): Attribute names
4798 Initial_Required_Switches and Final_Required_Switches changed to
4799 Leading_Required_Switches and Trailing_Required_Switches.
4801 * prj.ads (Language_Config): Component Initial_Required_Switches and
4802 Final_Required_Switches changed to Leading_Required_Switches and
4803 Trailing_Required_Switches.
4805 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
4806 Final_Required_Switches; add standard names Leading_Required_Switches
4807 and Trailing_Required_Switches.
4809 2009-06-23 Thomas Quinot <quinot@adacore.com>
4811 * prj-conf.adb: Minor reformatting
4813 * xref_lib.adb: Minor cleanup
4815 2009-06-23 Emmanuel Briot <briot@adacore.com>
4817 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
4818 prj-conf.ads (Check_Configuration): New parameter
4819 Compiler_Driver_Mandatory.
4821 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4823 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
4824 context of the current unit has an inline pragma, the instance is not
4825 rewritten as the declaration of the package wrapper. Handle both
4826 possibilities when retrieving the visible subprogram that renames the
4827 instantiation itself.
4829 2009-06-23 Javier Miranda <miranda@adacore.com>
4831 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
4832 designated types referencing entities from the limited view.
4834 2009-06-23 Robert Dewar <dewar@adacore.com>
4836 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
4838 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
4841 * prj-conf.ads: Minor reformatting
4843 * prj-conf.adb: Minor reformatting
4845 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
4847 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
4848 to correspond to the log format that gnatmem now expects.
4850 2009-06-23 Vincent Celier <celier@adacore.com>
4852 * prj-attr.adb: New attributes Initial_Required_Switches,
4853 Final_Required_Switches and Object_File_Switches
4855 * prj-nmsc.adb (Process_Compiler): Process new attributes
4856 Name_Final_Required_Switches, Name_Initial_Required_Switches and
4857 Name_Object_File_Switches.
4859 * prj.ads (Language_Config): New component
4860 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
4861 Compiler_Final_Required_Switches and Object_File_Switches.
4863 * snames.ads-tmpl: New standard names Initial_Required_Switches,
4864 Final_Required_Switches and Object_File_Switches
4866 2009-06-23 Pascal Obry <obry@adacore.com>
4868 * s-strhas.adb, s-strhas.ads: Minor reformatting.
4870 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4872 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
4873 not indicate that the enclosing unit needs a body.
4875 2009-06-23 Emmanuel Briot <briot@adacore.com>
4877 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
4879 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4881 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
4882 primitive equality include it with its source name even if the
4883 operation is currently invisible, to make sure that the corresponding
4884 slot in the dispatch table is reserved for the internal equality
4885 subsequently generated during expansion.
4887 2009-06-23 Matthew Gingell <gingell@adacore.com>
4889 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
4891 2009-06-22 Jose Ruiz <ruiz@adacore.com>
4893 * sysdep.c (__gnat_localtime_tzoff for RTX):
4894 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
4895 GetTimeZoneInformation instead.
4897 2009-06-22 Robert Dewar <dewar@adacore.com>
4899 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
4901 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4903 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
4904 instantiations declared in a previous generic package body.
4906 2009-06-22 Robert Dewar <dewar@adacore.com>
4908 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
4909 restriction No_Direct_Boolean_Operators.
4911 2009-06-22 Thomas Quinot <quinot@adacore.com>
4913 * bindusg.adb: Minor fixes to gnatbind usage message
4915 * sem_eval.adb: Minor reformatting
4917 2009-06-22 Javier Miranda <miranda@adacore.com>
4919 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
4920 freezing point the check on the use of abstract types in object
4921 declarations. Done to allow the declaration of C++ imported variables
4922 or constants whose type corresponds with an imported C++ classes for
4923 which the constructor is not imported.
4925 2009-06-22 Thomas Quinot <quinot@adacore.com>
4927 * sem_ch6.adb: Minor reformatting
4929 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4931 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
4932 component is constrained with an expression rather than with a
4933 discriminant of the enclosing type, use that expression when building
4934 the call to default-initialize the component, when the call is part of
4935 an aggregate with box initialization.
4937 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4939 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
4940 unconditional rather than a style check, because a formal name out of
4941 order is suspicious.
4943 2009-06-22 Vincent Celier <celier@adacore.com>
4945 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
4946 creating a directory automatically.
4948 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
4950 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
4951 untagged derived type, add a hidden component for every constrained
4952 discriminant of the parent type to keep record layout consistent.
4954 2009-06-22 Thomas Quinot <quinot@adacore.com>
4956 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
4959 2009-06-22 Matthew Gingell <gingell@adacore.com>
4961 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
4962 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
4963 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
4964 a-swuwha.adb: New unit System.String_Hash.
4965 Refactor redundant cut and pasted hash functions with instances of a
4966 new generic hash function.
4967 Implement a new string hashing algorithm which appears in testing to
4968 be move effective than to previous approach.
4970 2009-06-22 Ed Falis <falis@adacore.com>
4972 * sysdep.c: remove include for nfsLib.h and an NFS specific error
4973 message for VxWorks 653 vThreads: not supported by the OS.
4975 * gsocket.h: disable sockets for VxWorks 653 vThreads.
4977 2009-06-22 Robert Dewar <dewar@adacore.com>
4979 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
4981 2009-06-22 Robert Dewar <dewar@adacore.com>
4983 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
4986 * freeze.adb: Minor comment updates
4988 * s-valrea.adb (Bad_Based_Value): New procedure
4989 (Scan_Real): Raise exceptions with messages
4991 2009-06-22 Matthew Gingell <gingell@adacore.com>
4993 * adaint.h: Complete previous change.
4995 2009-06-22 Thomas Quinot <quinot@adacore.com>
4997 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
4999 2009-06-22 Ed Schonberg <schonberg@adacore.com>
5001 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
5002 enabled, emit warning when a non-controlling argument of the overriding
5003 operation appears out of place vis-a-vis of the formal of the
5004 overridden operation.
5006 2009-06-22 Vincent Celier <celier@adacore.com>
5008 * gnatcmd.adb (Check_Files): Close temporary files after all file names
5009 have been written into it.
5011 2009-06-22 Matthew Gingell <gingell@adacore.com>
5013 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
5016 2009-06-22 Thomas Quinot <quinot@adacore.com>
5018 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
5019 view of the root type is visible at the point of the call.
5021 2009-06-22 Pat Rogers <rogers@adacore.com>
5023 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
5025 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
5027 * freeze.adb: Add comments.
5029 2009-06-21 Thomas Quinot <quinot@adacore.com>
5031 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
5032 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
5033 Factor out code to new subprogram...
5034 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
5035 for a default initialized variable.
5036 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
5037 entity that has an associated freeze node.
5038 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
5039 If there is an init call for the object, defer it to the object freeze
5041 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
5042 name clash with new subprogram introduced in Exp_Util.
5044 2009-06-21 Robert Dewar <dewar@adacore.com>
5046 * einfo.ads: Minor reformatting
5048 2009-06-21 Ed Falis <falis@adacore.com>
5050 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
5052 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
5054 * einfo.ads: Update comments.
5056 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
5058 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
5059 where the controlling formal is of private class-wide type whose
5060 completion is a synchronized type can be converted into direct calls.
5062 2009-06-21 Vincent Celier <celier@adacore.com>
5064 * gnatcmd.adb (Check_Files): When all sources of the project are to be
5065 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
5066 of sources using -files=, so that the distinction can be made by the
5067 tool of a call with no source (to display the usage) from a call with
5068 a project file that contains no source.
5070 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
5072 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
5073 case of VM convention arrays.
5075 2009-06-20 Robert Dewar <dewar@adacore.com>
5077 * a-nudira.adb: Minor reformatting
5079 2009-06-20 Ed Schonberg <schonberg@adacore.com>
5081 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
5082 expressions (possibly from a parent type) indicate that the scope of
5083 the new itypes is the initialization procedure being built.
5085 2009-06-20 Robert Dewar <dewar@adacore.com>
5087 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
5088 Needs_64, and now computed without anomolies for some dynamic types.
5090 2009-06-20 Thomas Quinot <quinot@adacore.com>
5092 * sem_prag.adb: Minor reformatting
5094 * exp_disp.ads: Minor reformatting
5096 2009-06-20 Ed Schonberg <schonberg@adacore.com>
5098 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
5099 function call is a legal expression to initialize a limited object.
5101 * exp_ch3.adb: Rename various freeze operations that perform expansion
5102 actions, to prevent confusion with subprograms in the freeze package.
5104 2009-06-20 Ed Schonberg <schonberg@adacore.com>
5106 * sem.adb (Walk_Library_Units): Check instantiations first.
5108 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
5109 private primitive if it is a function with a controlling result that is
5110 a type extension with progenitors.
5112 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
5113 a primitive operation of a synchronized tagged type that has a
5116 2009-06-20 Thomas Quinot <quinot@adacore.com>
5118 * einfo.ads: Fix typo.
5120 2009-06-20 Ed Falis <falis@adacore.com>
5122 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
5124 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
5126 * gcc-interface/trans.c (emit_check): Do not wrap up the result
5128 (protect_multiple_eval): Always protect complex expressions.
5130 2009-06-19 Emmanuel Briot <briot@adacore.com>
5132 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
5133 make sure we always return a name ending with a path separator.
5135 2009-06-19 Javier Miranda <miranda@adacore.com>
5137 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
5138 Save and restore the visibility of the parent when installed.
5140 2009-06-19 Jose Ruiz <ruiz@adacore.com>
5142 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
5143 by Common which contains all these fields.
5145 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
5146 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
5147 Remove code duplication in this package by means of calling the
5148 equivalent code in s-taprob.
5150 2009-06-19 Robert Dewar <dewar@adacore.com>
5152 * a-einuoc.ads: Minor reformatting
5154 2009-06-19 Ed Falis <falis@adacore.com>
5156 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
5157 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
5159 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
5161 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
5163 2009-06-19 Robert Dewar <dewar@adacore.com>
5165 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
5168 * checks.adb (Determine_Range): Move the test for generic types later.
5170 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
5172 (Eval_Relational_Op): Fold more cases including string compares
5174 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
5177 2009-06-19 Robert Dewar <dewar@adacore.com>
5179 * sem_type.ads, sem_ch12.adb: Minor reformatting
5181 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
5183 2009-06-19 Ed Schonberg <schonberg@adacore.com>
5185 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
5186 primitive operation of a rivate extension whose controlling argument
5187 is an out parameter.
5189 * sem.adb (Walk_Library_Units): exclude generic package declarations
5192 2009-06-19 Thomas Quinot <quinot@adacore.com>
5194 * i-vxwoio.ads: Add comments
5196 2009-06-19 Thomas Quinot <quinot@adacore.com>
5198 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5199 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5200 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
5201 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
5202 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
5203 Thin_Common.Socket_Ioctl.
5204 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
5205 __gnat_socket_ioctl.
5206 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
5207 argument after the file descriptor and request code.
5209 2009-06-19 Robert Dewar <dewar@adacore.com>
5211 * checks.adb: Minor reformatting
5213 2009-06-19 Jose Ruiz <ruiz@adacore.com>
5215 * env.c (__gnat_environ): RTX does not support this functionality.
5217 2009-06-19 Ed Schonberg <schonberg@adacore.com>
5219 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
5220 traverse, to account for front-end inlining and instantiations in a
5221 spec or in the main unit.
5223 2009-06-19 Robert Dewar <dewar@adacore.com>
5225 * checks.adb (Determine_Range): Do not attempt to get range of generic
5228 2009-06-19 Sergey Rybin <rybin@adacore.com>
5230 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
5231 gnatmetric option for generating the schema file for gnatmetric XML
5232 output. Add corresponding VMS qualifier.
5234 2009-06-19 Robert Dewar <dewar@adacore.com>
5236 * g-cgi.adb: Minor reformatting
5238 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
5240 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
5241 signal code for SIGFPE and raise Program_Error for SIGILL.
5243 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
5245 2009-06-19 Ed Schonberg <schonberg@adacore.com>
5247 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
5248 generic package if there is a visibility candidate that is declared in
5251 2009-06-18 Olivier Hainque <hainque@adacore.com>
5253 * system-aix64.ads: New file.
5254 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
5255 64bit system.ads for ppc64 multilib variants.
5257 2009-06-16 Robert Dewar <dewar@adacore.com>
5258 Olivier Hainque <hainque@adacore.com>
5260 Relax constraints on Machine_Attribute argument types:
5261 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
5263 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
5264 * gcc-interface/decl.c (prepend_attributes): Accept static
5265 expressions of any type as attribute arguments, not only string
5267 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
5268 the relaxation of the restriction on the Info argument type.
5270 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
5272 * gcc-interface/utils.c (record_builtin_type): Pass location
5273 argument to build_decl.
5274 (create_type_stub_decl): Same.
5275 (create_type_decl): Same.
5276 (create_var_decl_1): Same.
5277 (create_field_decl): Same.
5278 (create_param_decl): Same.
5279 (create_label_decl): Same.
5280 (create_subprog_decl): Same.
5281 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
5282 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
5283 argument to create_artificial_label.
5284 (Loop_Statement_to_gnu): Same.
5285 (Subprogram_Body_to_gnu): Same.
5286 (gnat_gimplify_stmt): Same.
5288 2009-06-11 Richard Henderson <rth@redhat.com>
5290 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
5293 2009-06-11 Ed Schonberg <schonberg@adacore.com>
5295 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
5296 accessibiliy check on access_to_subprogram in the context of an
5297 anonymous access that is not an access parameter.
5299 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
5301 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
5303 2009-06-11 Quentin Ochem <ochem@adacore.com>
5305 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
5306 comments for message handled by GPS.
5308 2009-06-11 Matthew Gingell <gingell@adacore.com>
5310 * adaint.c: Use fopen64 instead of fopen on platforms where we know
5313 2009-06-11 Pascal Obry <obry@adacore.com>
5315 * g-cgi.ads: Fix comment typo.
5317 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
5319 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
5321 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
5322 a reference to the original type for the type of the field of the
5324 (maybe_pad_type): Likewise.
5326 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
5327 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
5328 Pass correctly typed arguments to create_field_decl.
5329 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
5330 case of contrained discriminants as well. Use the padded base type
5331 in the other case as well. Rename temporary variable. Tweak test.
5332 Factor common access pattern. Set GNU_SIZE only once.
5334 2009-06-09 Olivier Hainque <hainque@adacore.com>
5336 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
5337 helper for build_call_alloc_dealloc with arguments to be interpreted
5338 identically. Process the case where a GNAT_PROC to call is provided.
5339 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
5340 and return an allocator for DATA_SIZE bytes aimed at containing a
5341 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
5342 DATA_TYPE alignments greater than what the latter offers.
5343 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
5344 release a DATA_TYPE object designated by DATA_PTR using the
5345 __gnat_free entry point.
5346 (build_call_alloc_dealloc): Expect object data type instead of naked
5347 alignment constraint. Use the new helpers.
5348 (build_allocator): Remove special processing for the super-aligned
5349 case, now handled by build_call_alloc_dealloc. Pass data
5350 type instead of the former alignment argument, as expected by the new
5352 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
5354 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
5355 Remove special processing for the super-aligned case, now handled
5356 by build_call_alloc_dealloc. Pass data type instead of the former
5357 alignment argument, as expected by the new interface.
5359 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
5361 * lib-writ.adb (flag_compare_debug): Import.
5362 (Write_ALI): Skip during -fcompare-debug-second.
5364 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5366 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
5367 adjusting the discriminant nodes in an extension, use the full view
5368 of the parent subtype if it is of a private kind.
5370 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5372 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
5373 _Parent field, if any, to the record before adding the other fields.
5374 <E_Record_Subtype>: Put the _Controller field before the other fields
5375 except for the _Tag or _Parent fields.
5376 (components_to_record): Likewise. Retrieve the _Parent field from the
5379 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5381 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
5382 remove unused parameter and simplify.
5383 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
5384 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
5385 as context for all discriminants. Fix formatting nits.
5386 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
5387 before Discriminant_Constraint. Adjust for above renaming. Do not
5388 set GNU_TYPE more than once.
5389 (elaborate_entity): Test Has_Discriminants on the entity and use
5390 Implementation_Base_Type.
5391 (components_to_record): Rename component_list to gnat_component_list.
5392 Retrieve the _Parent field from the list. Fix nits in comments.
5393 Clarify logic in loop. Pass correct arguments to create_field_decl.
5395 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
5397 * gcc-interface/Make-lang.in: Fix formatting.
5399 2009-06-01 Olivier Hainque <hainque@adacore.com>
5400 Eric Botcazou <ebotcazou@adacore.com>
5402 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
5403 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
5404 on the result if at least one of the input fields couldn't be output
5405 as a static constant any more.
5407 2009-06-01 Olivier Hainque <hainque@adacore.com>
5408 Eric Botcazou <ebotcazou@adacore.com>
5410 * gcc-interface/utils2.c (gnat_build_constructor): Factor
5411 out code. Use initializer_constant_valid_for_bitfield_p and
5412 CONSTRUCTOR_BITFIELD_P for bit-fields.
5414 2009-05-26 Ian Lance Taylor <iant@google.com>
5416 * gcc-interface/Makefile.in (COMPILER): Define.
5417 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
5418 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
5419 (seh_init.o, tracebak.o): Likewise.
5420 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
5421 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
5422 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
5423 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
5424 (ada/utils2.o): Likewise.
5426 2009-05-24 Olivier Hainque <hainque@adacore.com>
5428 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
5429 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
5430 Add -auxbase variants to the list of recognized internal switches.
5431 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
5433 * lib.ads: Make comment on internal GCC switches more general.
5434 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
5437 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5439 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
5441 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5443 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
5446 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5448 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
5449 original type because of the alignment when there is an address clause.
5451 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
5453 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
5454 discriminants affect the shape of the subtype, retrieve the GCC type
5455 directly from the original field if the GNAT types for the field and
5456 the original field are the same.
5458 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
5460 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
5462 (TYPE_RM_VALUES): Likewise.
5463 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
5464 (SET_TYPE_RM_SIZE): New macro.
5465 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
5466 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
5467 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
5468 * gcc-interface/gigi.h (create_range_type): Declare.
5469 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
5470 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
5471 <E_Signed_Integer_Subtype>: Build a regular integer type first and
5472 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5473 <E_Floating_Point_Subtype>: Build a regular floating-point type first
5474 and then set the RM bounds.
5475 <E_Array_Type>: Use create_range_type instead of build_range_type.
5476 <E_Array_Subtype>: Build a regular integer type first and then set
5477 the RM bounds for the extra subtype.
5478 <E_String_Literal_Subtype>: Use create_range_type instead of
5480 <all>: Set the RM bounds for enumeration types and the GCC bounds for
5481 floating-point types.
5482 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
5483 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
5484 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5485 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
5486 types and with RM bounds for subtypes.
5487 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
5488 (gnat_print_type) <REAL_TYPE>: New case.
5489 <ENUMERAL_TYPE>: Fall through to above case.
5490 (gnat_get_subrange_bounds): New function.
5491 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
5492 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
5493 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
5494 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
5495 (create_range_type): New function.
5496 (create_param_decl): Build a regular integer type first and then set
5497 the RM bounds for the extra subtype.
5498 (unchecked_convert): Remove kludge for 'Valid.
5499 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
5500 the index to sizetype instead of TYPE_DOMAIN.
5502 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
5504 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
5505 parameter and move check for static expression to...
5506 (elaborate_expression): ...here. Adjust call to above function.
5507 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
5508 in calls to elaborate_expression.
5509 (elaborate_entity): Likewise.
5510 (substitution_list): Likewise.
5511 (maybe_variable): Fix formatting.
5512 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
5514 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
5516 2009-05-07 Arnaud Charlet <charlet@adacore.com>
5518 * gcc-interface/Make-lang.in: Update dependencies.
5520 2009-05-06 Laurent GUERBY <laurent@guerby.net>
5522 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
5523 Define sa_handler_pos.
5524 * s-osinte-linux.ads: Use it.
5525 * s-linux-mipsel.ads: New.
5526 * system-linux-mips64el.ads: New.
5527 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
5530 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5532 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
5533 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
5534 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
5535 (Tagged_Type_Expansion): New flag.
5536 Replace use of VM_Target related to tagged types expansion by
5537 Tagged_Type_Expansion, since tagged type expansion is not necessarily
5538 linked to VM targets.
5540 2009-05-06 Robert Dewar <dewar@adacore.com>
5542 * sem_attr.adb: Add processing for Standard'Compiler_Version
5544 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
5546 (Expr_First_Char): Add ??? comment that paren skipping needs work
5547 (Expr_Last_Char): Add ??? comment that paren skipping needs work
5549 * exp_attr.adb: Add processing for Compiler_Version
5551 * sem_attr.adb: New attribute Compiler_Version
5553 * snames.ads-tmpl: Add entries for Compiler_Version attribute
5555 * gnat_rm.texi: Document Compiler_Version attribute
5557 2009-05-06 Robert Dewar <dewar@adacore.com>
5559 * errout.adb: Minor reformatting
5561 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
5562 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
5563 styleg.adb: Add stylized comments to error messages that are included
5564 in the codefix circuitry of IDE's such as GPS.
5566 2009-05-06 Sergey Rybin <rybin@adacore.com>
5568 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
5569 new form of the rule parameter that allows to specify the suffix for
5570 access-to-access type names.
5572 2009-05-06 Robert Dewar <dewar@adacore.com>
5574 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
5575 out parameter assigned when exception handlers are present.
5577 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
5578 assignments on exit.
5580 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
5581 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
5582 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
5583 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
5584 messages that are included in the codefix circuitry of IDE's such as
5587 * sinput.ads, sinput.adb (Expr_First_Char): New function
5588 (Expr_Last_Char): New function
5590 2009-05-06 Sergey Rybin <rybin@adacore.com>
5592 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
5593 Add formal definition for extra exit point metric
5595 2009-05-06 Pascal Obry <obry@adacore.com>
5597 * adaint.c: Support for setting attributes on unicode filename on
5600 2009-05-06 Robert Dewar <dewar@adacore.com>
5602 * sem_warn.adb: Minor reformatting
5604 2009-05-06 Javier Miranda <miranda@adacore.com>
5606 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
5607 not have discriminants or components with default expressions.
5608 (Analyze_Pragma): For pragma CPP_Class check that imported types
5609 have no discriminants and components have no default expression.
5611 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
5612 class-wide types in the expression of a record component association.
5614 2009-05-06 Sergey Rybin <rybin@adacore.com>
5616 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
5618 * gnat_ugn.texi: Add description for the new extra exit points metric
5619 (gnatmetric section).
5621 2009-05-06 Robert Dewar <dewar@adacore.com>
5623 * s-fileio.adb: Minor comment update
5625 * sem_ch8.adb: Minor reformatting
5627 * exp_ch3.adb: Update comments.
5629 2009-05-06 Tristan Gingold <gingold@adacore.com>
5631 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
5633 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5635 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
5636 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
5638 * gcc-interface/Make-lang.in: Update dependencies
5640 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5642 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
5643 change. The context clause of a generic instance declaration must be
5644 preserved until the end of the compilation, because it may have to be
5645 installed/removed repeatedly.
5646 The latest change to sem.adb ensures that the context of both spec and
5647 body of an instance is traversed before the instance itself, making
5648 this patch redundant.
5650 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5652 * sem_aggr.adb: Fix typo.
5654 2009-05-06 Thomas Quinot <quinot@adacore.com>
5656 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
5657 declaration, do not adjust if the declaration is to be rewritten into
5660 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5662 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
5665 2009-05-06 Bob Duff <duff@adacore.com>
5667 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
5668 otherwise the compiler would be allowed to optimize away the cleanup
5671 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5673 * gnat_ugn.texi: Fix typo.
5675 2009-05-06 Thomas Quinot <quinot@adacore.com>
5677 * g-debuti.adb: Minor reformatting
5679 * exp_attr.adb: Minor reformatting
5681 2009-05-06 Robert Dewar <dewar@adacore.com>
5683 * sem_aggr.adb: Minor reformatting.
5685 * g-socthi-vms.adb: Minor reformatting
5687 2009-05-06 Bob Duff <duff@adacore.com>
5689 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
5690 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
5692 2009-05-06 Bob Duff <duff@adacore.com>
5694 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
5697 2009-05-06 Javier Miranda <miranda@adacore.com>
5699 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
5700 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
5701 extension aggregates.
5702 (Resolve_Record_Aggregate): Add support for C++ constructors in
5703 extension aggregates.
5705 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
5706 constructors in extension aggregates.
5708 2009-05-06 Robert Dewar <dewar@adacore.com>
5710 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
5713 2009-05-06 Thomas Quinot <quinot@adacore.com>
5715 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
5716 packed type, since on OpenVMS, struct msghdr is packed.
5718 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5720 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5721 call returning an unconstrained composite value, create the proper
5722 subtype for it, as is done for object dclarations with unconstrained
5723 nominal subtypes. Perform this transformation regarless of whether
5724 call comes from source.
5726 2009-05-06 Robert Dewar <dewar@adacore.com>
5728 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
5732 Add documentation for pragma Implicit_Packing applied to record
5735 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5737 * sem.adb (Walk_Library_Items): Place all with_clauses of an
5738 instantiation on the spec, because late instance bodies may generate
5739 with_clauses for the instance body but are inserted in the instance
5742 2009-05-06 Emmanuel Briot <briot@adacore.com>
5744 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
5745 support for returning the directory even if it doesn't exist. This is
5746 used for the object directory, since we are always setting it to a
5747 non-null value, and we should set it to an absolute name rather than a
5748 relative name for the sake of external tools that might depend on it.
5749 (Check_Library_Attributes): When Project.Library_Dir is known, check
5750 that the directory exists.
5752 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5754 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
5755 reference is an implicit dereference, do not freeze the designated type
5756 if within a default expression or when preanalyzing a pre/postcondtion.
5758 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5760 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5761 call returning an unconstrained composite value, create the proper
5762 subtype for it, as is done for object dclarations with unconstrained
5765 2009-05-06 Robert Dewar <dewar@adacore.com>
5767 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
5770 * freeze.adb: Minor reformatting
5772 2009-05-06 Thomas Quinot <quinot@adacore.com>
5774 * sem_ch3.adb (Access_Type_Declaration): An access type whose
5775 designated type is a limited view from a limited with clause (flagged
5776 From_With_Type) is not itself such a limited view.
5778 2009-05-06 Emmanuel Briot <briot@adacore.com>
5780 * prj-nmsc.adb: Remove unused variable.
5782 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
5783 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
5784 makeutl.ads, since not all users of prj.ads need this.
5786 2009-05-06 Javier Miranda <miranda@adacore.com>
5788 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
5789 constructor in case of aggregates whose type is a CPP_Class type.
5791 2009-05-06 Robert Dewar <dewar@adacore.com>
5793 * sem_ch13.adb: Minor comment additions
5795 * osint.adb: Minor reformatting
5797 2009-05-06 Pascal Obry <obry@adacore.com>
5799 * initialize.c: On Windows, keep full pathname to expanded command
5802 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5804 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
5805 an aggregate with box default is of a discriminated private type, do
5806 not build a subaggregate for it.
5807 A proper call to the initialization procedure is generated for it.
5809 2009-05-06 Thomas Quinot <quinot@adacore.com>
5811 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
5812 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
5813 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
5814 use standard array code for Standard.String.
5815 (Exp_Dist): Bump PolyORB s-parint API version to 3.
5816 (Rtsfind): New entities TA_Std_String, Unbounded_String.
5818 2009-05-06 Robert Dewar <dewar@adacore.com>
5820 * g-comlin.ads: Minor reformatting
5822 * xoscons.adb: Minor reformatting
5824 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5826 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
5827 Underlying_Type before retrieving the type definition for gathering
5828 components, to account for the case where the type is private.
5830 2009-05-06 Tristan Gingold <gingold@adacore.com>
5832 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
5834 2009-05-06 Thomas Quinot <quinot@adacore.com>
5836 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5837 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
5838 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
5839 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
5840 Windows versions): Fix incorrect base
5841 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
5842 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
5843 System.Address for the To parameter instead of a Sockaddr_In_Access, to
5844 achieve independance from AF_INET family, and also to allow this
5845 parameter to be retrieved from a Msghdr for the Windows case where
5846 these routines are used to implement C_Sendmsg and C_Recvmsg.
5848 2009-05-06 Bob Duff <duff@adacore.com>
5850 * g-expect.adb, g-expect.ads: Minor reformatting
5852 * sdefault.ads: Minor comment fix
5854 * g-expect-vms.adb: Minor reformatting
5856 * table.ads, table.adb (Append_All): New convenience procedure for
5857 appending a whole array.
5859 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
5860 box message. Call Osint.Dump_Source_File_Names to print out the file
5861 list, instead of rummaging around in various data structures.
5863 * debug.adb: New switch -gnatd.n, to print source file names as they
5866 * alloc.ads: Add parameters for Osint.File_Name_Chars.
5868 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
5869 out source file names during a "bug box".
5870 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
5871 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
5872 If it's not part of the runtimes, store it for later printing by
5873 Dump_Source_File_Names.
5875 2009-05-06 Javier Miranda <miranda@adacore.com>
5877 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
5878 documentation and add reference to the GNAT user guide for further
5881 2009-05-06 Javier Miranda <miranda@adacore.com>
5883 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
5884 also wrong examples that use extension aggregates.
5886 2009-05-06 Albert Lee <lee@adacore.com>
5888 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
5889 of Msg_Iovlen_T for VMS.
5891 2009-05-04 Laurent GUERBY <laurent@guerby.net>
5894 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
5896 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5898 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
5899 box-defaulted operator in an instantiation, when the type of the
5900 operands is not directly visible.
5902 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5904 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
5905 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
5906 analysis of the ancestor part. Remove prohibition against limited
5907 interpretations of the ancestor expression in the case of Ada 2005.
5908 Revise error message in overloaded case, adding a message to cover
5911 2009-04-29 Thomas Quinot <quinot@adacore.com>
5913 * xoscons.adb: Minor reformatting
5915 2009-04-29 Bob Duff <duff@adacore.com>
5917 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
5918 attribute_definition_clauses for the following attributes when the
5919 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
5920 Storage_Size, Write. Otherwise, we get spurious errors (for example,
5921 missing Read attribute on remote types).
5923 * gnat_ugn.texi: Document the change, and add a stern warning.
5925 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5927 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
5928 disabled not just for the current scope, but for the innermost dynamic
5931 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5933 * gcc-interface/Make-lang.in: Update dependencies
5935 2009-04-29 Vincent Celier <celier@adacore.com>
5937 * prj-part.adb: Minor comment update
5939 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5941 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
5942 box-initialized records with discriminated subcomponents that are
5943 constrained by discriminants of enclosing components. New subsidiary
5944 procedures Add_Discriminant_Values, Propagate_Discriminants.
5946 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5948 * g-socket.adb: Code clean up.
5950 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5952 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
5953 function entity, to cover the case of a parameterless function call
5954 that has not been resolved.
5956 2009-04-29 Robert Dewar <dewar@adacore.com>
5958 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
5959 reformatting and comment updates.
5961 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5963 * gnat_ugn.texi: Update some documentation about interfacing with C++
5964 Mention -fkeep-inline-functions.
5966 * gnat_ugn.texi: Minor edits
5968 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5970 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
5971 for a defaulted component of an enclosing aggregate, inherit the type
5972 from the component declaration of the enclosing type.
5974 2009-04-29 Albert Lee <lee@adacore.com>
5976 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
5977 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
5978 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
5979 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
5980 Relocate the Msghdr record type from GNAT.Sockets.Thin to
5981 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
5982 type for the Msg_Iovlen field.
5984 2009-04-29 Vincent Celier <celier@adacore.com>
5986 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
5987 Source_File_Index_Table entries for the source, to avoid crash when
5990 * gnatcmd.adb (Test_If_Relative_Path): Use
5991 Makeutl.Test_If_Relative_Path.
5993 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
5994 Including_RTS is True.
5996 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
5997 Including_RTS defaulted to False.
5999 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
6002 2009-04-29 Javier Miranda <miranda@adacore.com>
6004 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
6006 2009-04-29 Javier Miranda <miranda@adacore.com>
6008 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
6009 associated with dyamically tagged expressions if the expression
6010 initializing a tagged type corresponds with a non default CPP
6012 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
6013 of limited type objects.
6015 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
6016 when a CPP constructor is called in an assignment. Disable also the
6017 error message associated with dyamically tagged expressions if the
6018 exporession initializing a tagged type corresponds with a non default
6021 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
6022 non-default C++ constructors.
6024 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
6026 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
6027 non-default constructors.
6028 (Init_Proc): Add support for non-default constructors.
6030 * exp_disp.adb (Set_Default_Constructor): Removed.
6031 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
6032 but extending its functionality to handle non-default constructors.
6034 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
6035 constructors. Minor code cleanup removing unrequired label and goto
6038 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
6040 (Build_Init_Statements): Add support for non-default constructors.
6041 (Expand_N_Object_Declaration): Add support for non-default constructors.
6042 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
6043 to Set_CPP_Constructors.
6045 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
6046 non-default constructors.
6047 Required to handle its use in build-in-place statements.
6049 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
6050 pragma for non-default C++ constructors and the new compiler support
6051 that allows the use of these constructors in record components, limited
6052 aggregates, and extended return statements.
6054 2009-04-29 Vincent Celier <celier@adacore.com>
6056 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
6057 project extending an abstract project.
6059 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
6061 * targparm.ads: Fix oversight.
6063 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6065 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
6066 derivation when necessary, to find the user-subprogram that is actally
6069 2009-04-29 Robert Dewar <dewar@adacore.com>
6071 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
6074 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6076 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
6077 primitive operation, rather than source line of synchronized type, when
6078 building the wrapper for a primitive operation that overrides an
6079 operation inherited from a progenitor, to improve the error message on
6080 duplicate declarations.
6082 * sem_ch3.adb (Process_Full_View): Use new signature of
6085 2009-04-29 Robert Dewar <dewar@adacore.com>
6087 * prj-nmsc.ads: Minor reformatting
6089 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
6091 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
6092 expression on the existing parent If statement.
6094 2009-04-29 Robert Dewar <dewar@adacore.com>
6096 * prj-proc.adb, prj.ads: Minor reformatting
6098 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
6100 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
6101 existing parent If statement on the newly created one.
6103 2009-04-29 Emmanuel Briot <briot@adacore.com>
6105 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
6106 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
6107 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
6108 (Set_In_Configuration, In_Configuration): Removed.
6109 Replaced by an extra parameter Is_Config_File in several parameter to
6110 avoid global variables to store the state of the parser.
6112 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6114 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
6115 with_clauses generated for the same unit through rtsfind, and that
6116 appear in the context of different units.
6118 * rtsfind.adb: New attribute First_Implicit_With, component of the
6119 Unit_Record that stores information about a unit loaded through rtsfind.
6121 2009-04-29 Gary Dismukes <dismukes@adacore.com>
6123 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
6124 (other conditions permitting), so that abstract stream subprograms will
6125 be declared for them.
6127 2009-04-29 Bob Duff <duff@adacore.com>
6129 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
6131 * g-expect.ads: Minor comment fixes.
6133 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6135 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
6136 dispatching operation is a body without previous spec, update the list
6137 of primitive operations to ensure that cross-reference information is
6140 2009-04-29 Albert Lee <lee@adacore.com>
6142 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6143 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
6144 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
6145 (GNAT.Sockets.Thin.C_Readv,
6146 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
6147 (GNAT.Sockets.Thin.C_Recvmsg,
6148 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
6150 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
6151 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
6153 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6155 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
6156 operation is a body without previous spec, update the list of
6157 primitive operations to ensure that cross-reference information is
6160 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
6161 new compilation unit node for the instance declaration, keep the
6162 context items of the original unit on it, so that the context of the
6163 instance body only holds the context inherited from the generic body.
6165 2009-04-29 Bob Duff <duff@adacore.com>
6167 * sem_res.adb: Minor comment fix.
6169 2009-04-29 Thomas Quinot <quinot@adacore.com>
6171 * sem_elim.adb: Minor reformatting
6173 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6175 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
6176 predefined unit, allow arbitrary number of components in static
6177 aggregate, to ensure that the same level of constant folding applies
6178 for Ada 95 and Ada 05 versions of the file.
6180 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6182 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
6183 information: no need for full scope check.
6184 (Eliminate_Error): Do not emit error in a generic context.
6186 2009-04-29 Ed Falis <falis@adacore.com>
6188 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
6189 VxWorks 653 POS does not support rmdir.
6191 2009-04-29 Matteo Bordin <bordin@adacore.com>
6193 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
6194 results are printed.
6196 2009-04-29 Arnaud Charlet <charlet@adacore.com>
6198 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
6201 2009-04-29 Thomas Quinot <quinot@adacore.com>
6203 * make.adb: Minor reformatting.
6204 Minor code reorganization throughout.
6206 2009-04-29 Matteo Bordin <bordin@adacore.com>
6208 * s-stausa.ads: Changed visibility of type Task_Result: moved to
6209 public part to give application visibility over it.
6210 This is for future improvement and to build a public API on top of it.
6211 Changed record components name of type Task_Result to reflect the new
6214 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
6215 reporting Stack usage.
6217 * gnat_ugn.texi: Update doc of stack usage report.
6219 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
6221 * Makefile.rtl: Add new run-time files.
6223 2009-04-29 Pascal Obry <obry@adacore.com>
6225 * initialize.c: Do not expand quoted arguments.
6227 2009-04-29 Emmanuel Briot <briot@adacore.com>
6229 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
6231 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
6232 Prj.Ultimate_Extending_Project_Of
6234 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6236 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
6237 Amendment type, add the with_clause for Finalization.List_Controller
6238 only if the current context is a package body.
6240 2009-04-29 Thomas Quinot <quinot@adacore.com>
6242 * sem_ch12.adb: Minor reformatting
6244 * sem_aggr.adb: Minor reformatting
6246 * sem_ch6.adb, sem_cat.ads: Minor reformatting
6248 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
6250 2009-04-29 Quentin Ochem <ochem@adacore.com>
6252 * prj.ads (Source_Id): Now general pointer type.
6254 2009-04-29 Thomas Quinot <quinot@adacore.com>
6256 * exp_ch7.adb, rtsfind.adb: Minor reformatting
6258 * sem_res.adb: Minor reformatting
6260 2009-04-29 Thomas Quinot <quinot@adacore.com>
6262 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
6263 operands is static only if it is a predefined concatenation operator.
6265 * sem_util.adb: Minor reformatting
6267 * sem_ch12.adb (Save_References): When propagating semantic information
6268 from generic copy back to generic template, for the case of an
6269 identifier that has been rewritten to an explicit dereference whose
6270 prefix is either an object name or a parameterless funcion call
6271 denoting a global object or function, properly capture the denoted
6272 global entity: perform the corresponding rewriting in the template,
6273 and point the rewritten identifier to the correct global entity (not
6274 to the associated identifier in the generic copy).
6276 2009-04-29 Robert Dewar <dewar@adacore.com>
6278 * rtsfind.adb, prj-env.adb: Minor reformatting
6279 Minor code reorganization
6281 2009-04-29 Emmanuel Briot <briot@adacore.com>
6283 * make.adb: Fix comment
6285 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
6286 is given as argument, as might happen in gnatmake.
6288 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6290 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
6291 an abstract operation of a progenitor is not properly overridden by an
6292 operation of a derived synchronized type.
6294 2009-04-29 Robert Dewar <dewar@adacore.com>
6296 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
6297 prj-proc.adb: Minor reformatting
6298 Minor code reorganization
6300 2009-04-29 Bob Duff <duff@adacore.com>
6302 * exp_ch7.adb (Build_Final_List): For an access type that designates a
6303 Taft Amendment type, if the access type needs finalization, make sure
6304 the implicit with clause for List_Controller occurs on the package spec.
6306 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
6307 with's created for the pseudo-children of Text_IO and friends. In
6308 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
6309 Ada.Text_IO.Integer_IO both with-ing each other.
6311 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
6312 oddball cases when pragma Extend_System is used.
6314 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
6315 the case where a package spec instantiates a generic whose body with's
6316 this package, so Walk_Library_Items won't complain about cyclic with's.
6318 2009-04-29 Emmanuel Briot <briot@adacore.com>
6320 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
6321 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
6322 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
6323 (Project_Id): now a real pointer to Project_Data, instead of an index
6324 into the Projects_Table. This simplifies the API significantly, avoiding
6325 extra lookups in this table and the need to pass the Project_Tree_Ref
6326 parameter in several cases
6328 2009-04-29 Nicolas Setton <setton@adacore.com>
6330 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
6333 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
6335 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
6338 2009-04-24 Robert Dewar <dewar@adacore.com>
6340 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
6341 clean.adb: Minor reformatting.
6342 Minor code reorganization and message improvement.
6344 2009-04-24 Emmanuel Briot <briot@adacore.com>
6346 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
6347 (Alternate_Languages): now implemented as a malloc-ed list rather
6348 than through a table.
6350 2009-04-24 Thomas Quinot <quinot@adacore.com>
6352 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
6353 accurately handle cases such as "lit" & "lit" and
6354 "lit" & static_string_constant
6356 2009-04-24 Emmanuel Briot <briot@adacore.com>
6358 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
6359 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
6360 removed. Lists of projects are now implemented via standard malloc
6361 rather than through the table.
6363 2009-04-24 Thomas Quinot <quinot@adacore.com>
6365 * sem_ch12.adb: Minor reformatting
6367 * g-trasym.adb: Minor reformatting
6369 * exp_ch6.adb: Minor reformatting
6371 2009-04-24 Robert Dewar <dewar@adacore.com>
6373 * layout.adb (Layout_Type): For packed array type, copy unset
6374 size/alignment fields from the referenced Packed_Array_Type.
6376 2009-04-24 Bob Duff <duff@adacore.com>
6378 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
6379 longer needed after sem_ch12 changes.
6381 * sem.adb (Walk_Library_Items): Include with's in some debugging
6384 2009-04-24 Emmanuel Briot <briot@adacore.com>
6386 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
6387 only ever using the Project field.
6389 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6391 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
6392 Body_Required on the generated compilation node. The new node is linked
6393 to its body, but both share the same file, so we do not set this flag
6394 on the new unit so as not to create a spurious dependency on a
6395 non-existent body in the ali file for the instance.
6397 2009-04-24 Robert Dewar <dewar@adacore.com>
6399 * make.adb: Minor reformatting
6401 2009-04-24 Emmanuel Briot <briot@adacore.com>
6403 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
6404 Add_Source): merge some code between those. In particular change where
6405 file normalization is done to avoid a few extra calls to
6406 Canonicalize_File_Name. This also removes the need for passing
6407 Current_Dir in a number of subprograms.
6409 2009-04-24 Bob Duff <duff@adacore.com>
6411 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
6412 False, assign the correct unit to the Cunit field of the new table
6413 entry. We want the spec unit, not the body unit.
6415 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
6416 interface for these.
6417 (Maybe_Add_With): Check whether we're trying to a with on the current
6418 unit, and avoid creating such directly self-referential with clauses.
6419 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
6420 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
6421 and matches existing comments in the spec.
6423 * sem.adb (Walk_Library_Items): Add various special cases to make the
6426 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
6427 instead of Parent (N), for uniformity.
6429 2009-04-24 Robert Dewar <dewar@adacore.com>
6431 * errout.ads: Minor reformatting
6433 2009-04-24 Emmanuel Briot <briot@adacore.com>
6435 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
6436 behavior when the project includes sources from multiple languages
6438 2009-04-24 Vincent Celier <celier@adacore.com>
6440 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
6441 is a language other than Ada declared.
6443 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
6444 Imported_First set to True.
6446 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6448 * sem_res.adb: additional optimization to inhibit creation of
6449 redundant transient scopes.
6451 2009-04-24 Bob Duff <duff@adacore.com>
6453 * rtsfind.ads: Minor comment fix
6455 2009-04-24 Emmanuel Briot <briot@adacore.com>
6457 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
6458 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
6459 basically doing the same work (for explicit or implicit sources).
6460 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
6461 role. Rewritten to share some code (testing that all explicit sources
6462 have been found) between ada_only and multi_language modes.
6464 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
6466 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
6467 for CLI imported types.
6468 (Analyze_Pragma): Allow CIL or Java imported functions returning
6469 access-to-subprogram types.
6471 2009-04-24 Emmanuel Briot <briot@adacore.com>
6473 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
6474 (Project_Data.Dir_Path): field removed, since it can be computed
6475 directly from .Directory, and is needed only once when processing the
6476 project is buildgpr.adb or make.adb
6478 2009-04-24 Robert Dewar <dewar@adacore.com>
6480 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
6481 rtsfind.adb: Minor reformatting.
6482 Minor code reorganization
6484 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6486 * mlib-prj.adb: Use friendlier english identifier.
6488 * gnatcmd.adb, make.adb: Use better english identifiers.
6490 2009-04-24 Robert Dewar <dewar@adacore.com>
6492 * clean.adb: Minor reformatting
6494 2009-04-24 Robert Dewar <dewar@adacore.com>
6496 * einfo.adb (OK_To_Rename): New flag
6498 * einfo.ads (OK_To_Rename): New flag
6500 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
6503 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
6505 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
6508 2009-04-24 Emmanuel Briot <briot@adacore.com>
6510 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
6511 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
6512 field removed. This is not a property of the
6513 project, just a boolean used to traverse the project tree, and storing
6514 it in the structure prevents doing multiple traversal in parallel.
6515 (Project_Data.Checked): also removed, since it was playing the same role
6516 as Seen when we had two nested loops, and this is no longer necessary
6517 (For_All_Imported_Projects): removed, since in fact there was already
6518 the equivalent in For_Every_Project_Imported. The latter was rewritten
6519 to use a local hash table instead of Project_Data.Seen
6520 Various loops were rewritten to use For_Every_Project_Imported, thus
6521 removing the need for Project_Data.Seen. This avoids a lot of code
6524 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6526 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
6527 statements, even though the actual of the call is a concatenation,
6528 because the argument is static, and we want to preserve warning
6529 messages about sequences of code statements that are not marked
6532 * sem_warn.adb: remove obsolete comment about warning being obsolete
6534 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
6535 requeued and the delay has expired while within the accept statement
6536 that executes the requeue, do not perform the requeue and indicate that
6537 the timed call has been aborted.
6539 2009-04-24 Emmanuel Briot <briot@adacore.com>
6541 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6542 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
6543 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
6544 since they can be computed from the above.
6546 2009-04-24 Vincent Celier <celier@adacore.com>
6548 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
6550 * prj-env.adb: Move all global variables to the private part of the
6552 Access these new components instead of the global variables no longer
6554 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
6555 components that were previously global variables.
6557 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
6558 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
6561 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
6562 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
6564 * prj.adb (Initialize): Do not call Prj.Env.Initialize
6565 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
6566 components in the private part of the project tree data.
6568 * prj.ads (Private_Project_Tree_Data): new components moved from
6569 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
6570 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
6571 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
6573 2009-04-24 Vincent Celier <celier@adacore.com>
6575 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
6577 * prj-nmsc.adb (Check_Library): No error for imports by shared library
6578 projects, when --unchecked-shared-lib-imports is used.
6580 2009-04-24 Robert Dewar <dewar@adacore.com>
6582 * sem_ch7.adb: Minor reformatting
6584 2009-04-24 Tristan Gingold <gingold@adacore.com>
6586 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
6589 2009-04-24 Emmanuel Briot <briot@adacore.com>
6591 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
6592 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
6593 (For_All_Imported_Projects): new procedure
6594 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
6595 above rather than duplicating code.
6597 2009-04-24 Emmanuel Briot <briot@adacore.com>
6599 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6600 (Source_Id, Source_Data): use a real list to store sources rather than
6601 using an external table to store the elements. This makes code more
6602 efficient and more readable.
6604 2009-04-24 Emmanuel Briot <briot@adacore.com>
6606 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6607 (Source_Iterator): new type.
6608 This removes the need for having the sources on three different
6609 lists at the project tree, project and language level. They are now
6612 2009-04-24 Emmanuel Briot <briot@adacore.com>
6614 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
6616 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6618 * sem_warn.adb: Add comment on obsolete warning
6620 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6622 * s-tassta.adb (Create_Task): Fix violation of locking rule.
6624 2009-04-24 Emmanuel Briot <briot@adacore.com>
6626 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
6627 to Language_Ptr to better reflect its new implementation.
6628 (Project_Data.First_Languages_Processing): renamed to Languages now
6629 that the field with that name is no longer used
6630 (Project_Data.Languages): removed, no longer used, and duplicates
6631 information already available through First_Language_Processing.
6632 (Prj.Language_Index): now an actual pointer, instead of an index into
6633 a table. This makes the list somewhat more obvious, but more importantly
6634 removes the need to pass a pointer to the project_tree_data in a few
6635 places, and makes accessing the attributes of a languages more
6638 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6639 Thomas Quinot <quinot@adacore.com>
6641 * fe.h (Set_Identifier_Casing): Add const to second parameter.
6642 * gcc-interface/misc.c (internal_error_function): Make copy of return
6643 from pp_formatted_text before assigning BUFFER to it.
6644 (gnat_init): Likewise for main_input_filename and gnat_argv.
6645 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
6647 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6649 * ttypes.ads (Target_Double_Float_Alignment): New variable.
6650 (Target_Double_Scalar_Alignment): Likewise.
6651 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
6652 (Get_Double_Float_Alignment): New imported function.
6653 (Get_Double_Scalar_Alignment): Likewise.
6654 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
6655 the alignment of "double" floating-point types and "double" or larger
6656 scalar types, as parameterized by Target_Double_Float_Alignment and
6657 Target_Double_Scalar_Alignment respectively.
6658 * gcc-interface/gigi.h (double_float_alignment): Declare.
6659 (double_scalar_alignment): Likewise.
6660 (is_double_float_or_array): Likewise.
6661 (is_double_scalar_or_array): Likewise.
6662 (get_target_double_float_alignment): Likewise.
6663 (get_target_double_scalar_alignment): Likewise.
6664 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
6665 (get_target_strict_alignment): ...this.
6666 (get_target_double_float_alignment): New function.
6667 (get_target_double_scalar_alignment): Likewise.
6668 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6669 Test the presence of an alignment clause for under-aligned integer
6670 types. Take into account specific caps for the alignment of "double"
6671 floating-point types and "double" or larger scalar types, as
6672 parameterized by Target_Double_Float_Alignment and
6673 Target_Double_Scalar_Alignment respectively.
6674 (validate_alignment): Likewise.
6675 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
6676 (gigi): Initialize double_float_alignment and double_scalar_alignment.
6677 * gcc-interface/utils.c (double_float_alignment): New global variable.
6678 (double_scalar_alignment): Likewise.
6679 (is_double_float_or_array): New predicate.
6680 (is_double_scalar_or_array): Likewise.
6682 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6684 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
6685 the conditional expression only if it is common to both arms.
6687 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6689 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
6690 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
6691 arguments to build_allocator.
6692 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
6693 Remove code handling special allocator and assert its uselessness.
6695 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6697 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
6698 alignment is specified, do not promote that of the component type
6700 <E_Array_Subtype>: Likewise.
6702 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6704 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
6705 * sinfo.ads (Object Declaration): Likewise.
6706 (Assignment Statement): Likewise.
6707 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
6708 Do not force Is_True_Constant to false on the temporary.
6709 (Freeze_Entity): Do not force Is_True_Constant to false on names on
6710 the RHS of object declarations.
6711 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
6712 New case. Return 1 if the object is atomic.
6713 <N_Assignment_Statement>: Likewise.
6715 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6717 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
6718 For packed array types, make the original array type a parallel type
6719 for the modular type and its JM wrapper if the type is bit-packed.
6720 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
6721 record type for packed array types. Remove kludge.
6723 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6725 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
6726 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6727 Use front-end predicates to compute signedness and precision.
6728 <E_String_Literal_Subtype>: Fold range type.
6729 Make sure to set longest_float_type_node to a scalar type.
6730 (elaborate_entity): Use consistent Constraint_Error spelling.
6731 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
6732 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
6733 output for the modulus, if any.
6734 <ENUMERAL_TYPE>: Likewise for the RM size.
6735 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
6737 * gcc-interface/utils.c (finish_record_type): Really test the alignment
6738 of BLKmode bit-fields to compute their addressability.
6739 (create_index_type): Adjust comments.
6740 (create_param_decl): Create the biased subtype manually.
6741 * gcc-interface/utils2.c (build_component_ref): Use consistent
6742 Constraint_Error spelling.
6744 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6746 * gcc-interface/cuintp.c: Clean up include directives.
6747 * gcc-interface/targtyps.c: Likewise.
6748 * gcc-interface/decl.c: Likewise.
6749 * gcc-interface/misc.c: Likewise.
6750 * gcc-interface/trans.c: Likewise.
6751 * gcc-interface/utils.c: Likewise.
6752 * gcc-interface/utils2.c: Likewise.
6753 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
6755 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6757 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
6758 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
6759 (SET_DECL_LANG_SPECIFIC): Likewise.
6761 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6762 Update comment about use of build_range_type.
6763 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
6764 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
6765 check for other cases of overloading.
6766 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
6767 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
6768 Use size_int in lieu of build_int_cst.
6769 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
6772 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6774 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
6775 type is an enumeral or a boolean type, change it to an integer type
6776 with the same mode and signedness.
6778 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6780 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
6781 for an external constant whose initializer is not absolute.
6783 2009-04-22 Taras Glek <tglek@mozilla.com>
6785 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
6786 * gcc-interface/trans.c: Likewise.
6787 * gcc-interface/utils.c: Likewise.
6789 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6791 * sem_res.adb: Create block around procedure call when actual is a
6794 2009-04-22 Thomas Quinot <quinot@adacore.com>
6796 * s-soflin.ads: Fix typos
6798 2009-04-22 Vincent Celier <celier@adacore.com>
6800 * prj-env.adb: Minor comment change
6802 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
6803 Get_Name_String with No_File.
6805 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
6806 cannot be created even when not in verbose mode.
6808 2009-04-22 Emmanuel Briot <briot@adacore.com>
6810 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
6811 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
6812 Multi_Language modes, to avoid code duplication.
6813 (Project_Data.Include_Language): Removed.
6815 2009-04-22 Vincent Celier <celier@adacore.com>
6817 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
6818 the temporary file cannot be created, indicating the directory when the
6819 creation was attempted.
6821 2009-04-22 Emmanuel Briot <briot@adacore.com>
6823 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
6824 the language names, not their indices.
6826 2009-04-22 Emmanuel Briot <briot@adacore.com>
6828 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
6829 (Source_Data.Language_Name): Field removed.
6831 2009-04-22 Emmanuel Briot <briot@adacore.com>
6833 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
6836 2009-04-22 Emmanuel Briot <briot@adacore.com>
6838 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
6839 separate_suffix to the same value as the body_suffix.
6841 2009-04-22 Robert Dewar <dewar@adacore.com>
6843 * prj.adb: Minor code reorganization
6846 * prj-proc.adb: Minor code reorganization, clean up.
6848 * prj-nmsc.adb: Minor reformatting
6849 Minor code reorganization
6851 * gnat_ugn.texi: Add to doc on strict aliasing
6853 2009-04-22 Pascal Obry <obry@adacore.com>
6855 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
6858 * s-tasini.adb: Minor reformatting.
6860 * s-tassta.adb: Minor reformatting.
6862 2009-04-22 Emmanuel Briot <briot@adacore.com>
6864 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
6865 smaller subprograms.
6866 Renamed to Check_File_Naming_Schemes to avoid confusion with the
6867 other Check_Naming_Schemes functions that plays a totally different
6869 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
6870 extracted from the above. These were partially rewritten to avoid
6871 unnecessary code and temporary variables.
6872 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
6873 and Get_Unit (which for now still exist since they contain mode-specific
6876 2009-04-22 Emmanuel Briot <briot@adacore.com>
6878 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
6879 Remove duplicated code.
6880 (Canonical_Case_File_Name): new subprogram
6881 (Check_And_Normalize_Unit_Names): new subprogram
6882 (Write_Attr): new subprogram
6883 Better sharing of code
6884 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
6885 split Check_Naming and help find duplicated code
6886 (Check_Common): new subprogram, sharing code between ada_only and
6887 multi_language mode.
6888 (Naming_Data.Dot_Repl_Loc): field removed
6890 2009-04-22 Emmanuel Briot <briot@adacore.com>
6892 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
6893 Minor refactoring to reduce the size of
6894 Process_Sources_In_Multi_Language_Mode.
6895 Avoid extra copied of Source_Data, which we found in the past could be
6897 (Mark_Excluded_Sources): new subprogram.
6898 (Remove_Locally_Removed_Files_From_Units): merged into the above
6899 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
6900 and allow better sharing of code between multi_lang and ada_only modes
6901 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
6903 2009-04-22 Emmanuel Briot <briot@adacore.com>
6905 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
6906 Removed, since unused.
6908 2009-04-22 Vincent Celier <celier@adacore.com>
6910 * prj-attr.adb: New single project level attribute
6911 Separate_Run_Path_Options.
6913 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6914 attribute Seperate_Run_Path_Options.
6916 * prj.ads: (Project_Configuration): New Boolean component
6917 Separate_Run_Path_Options, defaulted to False.
6919 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
6921 2009-04-22 Robert Dewar <dewar@adacore.com>
6923 * sem_type.adb: Minor reformatting
6925 * mlib.adb: Minor reformatting
6927 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
6930 2009-04-22 Nicolas Setton <setton@adacore.com>
6932 * link.c: Add flag __gnat_separate_run_path_options.
6934 * mlib.adb (Separate_Run_Path_Options): New subprogram.
6936 * mlib.ads (Separate_Run_Path_Options): Declare.
6938 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
6939 switch per directory, rather than one "rpath" switch listing all
6942 * gnatlink.adb (Process_Binder_File): Likewise.
6944 * make.adb (Gnatmake): Likewise.
6946 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
6948 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
6949 Add a call to Move_Final_List when the target of the assignment is a
6950 return object that needs finalization and the expression is a
6951 controlled build-in-place function.
6953 2009-04-22 Vincent Celier <celier@adacore.com>
6955 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
6956 Including_Libraries set to True.
6958 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6960 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
6961 create a unit table entry for the subprogram declaration created for a
6962 child suprogram body that has no separate specification.
6964 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
6965 subprogram body, call Make_Child_Decl_Unit.
6967 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
6968 table can only be the created specification of a child subprogram body
6969 that is the main unit, which has not been entered in the table yet.
6971 * errout.adb (Output_Messages): Ignore created specification of a
6972 child subprogram body to prevent repeated listing of error messages.
6974 * gnat1drv.adb (gnat1drv): The generated specification for a child
6975 subprogram body does not generate code.
6977 2009-04-22 Arnaud Charlet <charlet@adacore.com>
6979 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
6980 since this unit is now part of bootstrap units, so must use Ada 95
6983 2009-04-22 Thomas Quinot <quinot@adacore.com>
6985 * a-tasatt.adb: Minor reformatting
6987 2009-04-22 Bob Duff <duff@adacore.com>
6989 * s-stalib.ads: Remove "with System;" since we're inside System, so
6992 2009-04-22 Vincent Celier <celier@adacore.com>
6994 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
6995 the source record, as there may be a dependency file even if no object
6998 2009-04-22 Robert Dewar <dewar@adacore.com>
7000 * lib-load.adb: Minor reformatting
7002 * lib-load.ads: Minor reformatting
7004 * sinfo.ads: Minor reformatting
7006 2009-04-22 Bob Duff <duff@adacore.com>
7008 * exp_pakd.adb: Minor comment fixes.
7010 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
7011 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
7012 include units containing instantiations, as well as units that are
7013 generic instantiations.
7015 * sem.adb: Include dependents and corresponding specs/bodies in the
7018 * gcc-interface/Make-lang.in:
7019 sem now depends on s-bitops, because of the packed array of Booleans.
7021 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
7023 * gcc-interface/ada-tree.def: Fix formatting nits.
7024 (REGION_STMT): Delete.
7025 (HANDLER_STMT): Likewise.
7026 * gcc-interface/ada-tree.h: Fix formatting nits.
7028 (REGION_STMT_BODY): Likewise.
7029 (REGION_STMT_HANDLE): Likewise.
7030 (REGION_STMT_BLOCK): Likewise.
7031 (HANDLER_STMT_ARG): Likewise.
7032 (HANDLER_STMT_LIST): Likewise.
7033 (HANDLER_STMT_BLOCK): Likewise.
7034 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
7035 (fp_size_to_prec): Likewise.
7036 (largest_move_alignment): Delete.
7037 (gnat_compute_largest_alignment): Likewise.
7039 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
7040 Remove redundant code.
7041 <E_Array_Type>: Remove redundant assert.
7042 <E_Array_Subtype>: Exit early from index computation in pathological
7044 Rewrite conditional assignment.
7045 (make_type_from_size): Likewise.
7046 * gcc-interface/misc.c (largest_move_alignment): Delete.
7047 (gnat_finish_incomplete_decl): Likewise.
7048 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
7049 (asm_out_file): Likewise
7050 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
7051 (gnat_dwarf_name): Move around.
7052 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
7053 (gigi): Remove call to gnat_compute_largest_alignment.
7054 * utils.c (create_field_decl): Rewrite conditional assignment.
7057 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
7059 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
7060 on entry. Defer common processing for types. Reorder and clean up.
7061 Compute the equivalent GNAT node and the default size for types only.
7062 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
7063 <E_Access_Type>: For an unconstrained designated type, do not pretend
7064 that a dummy type is always made.
7065 <all> Fix nits in comments.
7066 (validate_size): Fix formatting nits and comments.
7067 (set_rm_size): Likewise.
7068 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
7069 passed to TARGET_PROMOTE_PROTOTYPES hook.
7071 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
7073 * fe.h (Get_External_Name): Declare.
7074 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
7075 (concat_name): ...this.
7076 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
7077 gnu_entity_name and adjust for above renaming.
7078 <E_Access_Type>: Use create_concat_name to get the name of the various
7079 types associated with unconstrained array types.
7080 (make_aligning_type): Adjust for above renaming.
7081 (maybe_pad_type): Likewise.
7082 (components_to_record): Likewise. Use get_identifier_with_length for
7083 the encoding of the variant.
7084 (get_entity_name): Use get_identifier_with_length.
7085 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
7086 Do not fiddle with Name_Buffer.
7087 (concat_id_with_name): Rename to...
7088 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
7090 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
7093 2009-04-21 Joseph Myers <joseph@codesourcery.com>
7095 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
7098 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7100 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
7102 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7104 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
7105 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
7106 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
7107 Remove useless support code for packed array types and assert its
7109 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
7110 adjust for TYPE_RM_SIZE change.
7111 <all> Fix nits in comments. Use Original_Array_Type accessor instead
7112 of Associated_Node_For_Itype accessor for packed array types.
7113 (make_packable_type): Likewise.
7114 (maybe_pad_type): Likewise.
7115 (set_rm_size): Likewise. Rework conditional statement. Adjust for
7116 TYPE_RM_SIZE change.
7117 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
7118 (rm_size): Fix nits in comments. Rework conditional statements.
7119 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
7121 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
7122 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
7123 appropriate function to initialize the size_type_node. Adjust for
7124 TYPE_RM_SIZE change.
7126 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7128 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
7129 for imported subprograms.
7131 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7133 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
7134 constant objects covered by 13.3(19) volatile.
7136 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7138 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
7139 of dummy fat pointer types to the debug back-end.
7141 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7143 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
7144 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
7145 before wrapping it up in the record type. Do not overwrite the
7146 Ada size of the record type with the Esize.
7148 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7150 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
7151 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
7152 if the conversion is on the LHS of an assignment and a no-op.
7153 <all> Do not convert the result to the result type if the Parent
7154 node is such a conversion.
7156 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7158 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
7159 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
7160 of types with unknown discriminants.
7161 (substitute_in_type): Rewrite and restrict to formal substitutions.
7162 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
7163 (update_pointer_to): Update comment.
7165 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7167 * sem_ch8.adb (Use_One_Package): In an instance, if two
7168 potentially_use_visible and non-overloadable homonyms are available
7169 from the actuals of distinct formal packages, retain the current one,
7170 which was visible in the generic, to prevent spurious visibility
7172 (End_Use_Package): Restore use_visibility when needed.
7174 2009-04-20 Sergey Rybin <rybin@adacore.com>
7176 * gnat_ugn.texi, vms_data.ads: Update doc.
7178 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7180 * gcc-interface/Make-lang.in: Update dependencies
7182 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
7185 2009-04-20 Robert Dewar <dewar@adacore.com>
7187 * checks.ads: Fix documentation of range check handling
7189 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7191 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
7192 a redundant use_type clause.
7194 2009-04-20 Robert Dewar <dewar@adacore.com>
7196 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
7197 this attribute can be evaluated at compile time.
7198 (Eval_Attribute, case Range_Length): Same improvement
7200 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
7202 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7204 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
7205 for better handling of null procedures.
7206 (Check_Overriding_Indicator): Do not emit a warning on a missing
7207 overriding indicator on an operator when the type of which the operator
7208 is a primitive is private.
7210 2009-04-20 Bob Duff <duff@adacore.com>
7212 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
7215 2009-04-20 Robert Dewar <dewar@adacore.com>
7217 * sem_attr.adb: Minor reformatting
7219 * gnatcmd.adb: Minor reformatting
7221 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7223 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
7224 overloaded and one interpretation matches the context, label the
7225 operand with the type of first formal.
7227 2009-04-20 Bob Duff <duff@adacore.com>
7229 * debug.ads: Minor comment fix.
7231 * debug.adb: Minor comment fixes.
7233 2009-04-20 Javier Miranda <miranda@adacore.com>
7235 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
7237 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
7239 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
7240 is expanded into a call to Raise_Exception, avoid passing the
7241 exception-name'identity in runtimes in which this argument
7244 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
7246 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
7247 generated bindings for cil.
7249 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7251 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
7252 discriminants, collect components from the Underlying_Record_View,
7253 which will be used in the expansion of the aggregate into assignments.
7255 * sem_ch3.adb: Do not label derived type with unknown discriminants as
7256 having a private declaration.
7258 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7260 * exp_util.adb (Expand_Subtype_From_Expr): use the
7261 underlying_record_view when available, to create the proper constrained
7262 subtype for an object of a derived type with unknown discriminants.
7264 2009-04-20 Javier Miranda <miranda@adacore.com>
7266 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
7267 formals that have pragma unreferenced.
7269 2009-04-20 Pascal Obry <obry@adacore.com>
7271 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
7272 Remove all calls to To_Lower_If_Case_Insensitive to preserve
7273 the pathname original casing.
7275 2009-04-20 Robert Dewar <dewar@adacore.com>
7277 * g-trasym.adb: Minor reformatting
7279 * s-os_lib.adb: Minor reformatting
7281 * sem.adb: Minor reformatting
7282 Minor code reorganization
7284 * sem_ch3.adb: Minor reformatting
7286 * sem_ch4.adb: Minor reformatting
7288 * sem_ch8.adb: Minor reformatting
7290 * sem_type.adb: Minor reformatting
7292 2009-04-20 Javier Miranda <miranda@adacore.com>
7294 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
7295 generated by derivations of tagged types use the aliased subprogram a
7296 reference to locate their controlling type.
7298 2009-04-20 Tristan Gingold <gingold@adacore.com>
7300 * g-trasym.adb: Set size of result buffer before calling
7303 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7305 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
7306 to a function returning an array can be interpreted as a call with
7307 defaulted parameters whose result is indexed, take into account the
7308 types of all the indices of the array result type.
7310 2009-04-20 Pascal Obry <obry@adacore.com>
7312 * a-direct.adb, s-os_lib.adb: Minor reformatting.
7314 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7316 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
7317 null exclusion qualifiers for object renaming declarations.
7319 2009-04-20 Nicolas Roche <roche@adacore.com>
7321 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
7322 unsigned long long. So compare local_time and utc_time before computing
7325 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7327 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7328 of the Underlying_Record_View before that of the derived type.
7330 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
7331 with unknown discriminants with regard to the parent subtype.
7333 2009-04-20 Bob Duff <duff@adacore.com>
7335 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
7336 that are not included. This is necessary if the main unit is a generic
7339 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
7340 because it doesn't work if -gnatn is used.
7342 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7344 * rtsfind.adb (RTE, RTE_Record_Component): In
7345 Configurable_Run_Time_Mode, do not enable front-end inlining.
7347 2009-04-20 Thomas Quinot <quinot@adacore.com>
7349 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
7350 System.Address_To_Access_Conversions.
7352 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7354 * sem.adb: Guard against ill-formed subunits.
7356 2009-04-20 Bob Duff <duff@adacore.com>
7358 * output.adb (Flush_Buffer): Do not indent blank lines.
7359 (Ignore_Output): New procedure for output suppression.
7361 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7363 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
7364 when it is positive. This avoids a potential constraint error raised
7365 by the conversion to Natural.
7367 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7369 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
7370 involves a target that has a specified address, don't set Forward_OK
7371 and Backward_OK to False if the rhs is an aggregate, since overlap
7374 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7376 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
7377 in an object renaming declaration when the expected type is an
7378 anonymous access type.
7380 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
7381 ambiguity when one interpretation is an anonymous access type and the
7382 other is a named access type, and the context itself is anonymous
7384 2009-04-20 Thomas Quinot <quinot@adacore.com>
7386 * einfo.ads: Minor comment rewording
7388 * sem_aggr.adb: Minor comment rewording
7390 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
7392 2009-04-20 Pascal Obry <obry@adacore.com>
7394 * adaint.c (__gnat_is_readable_file): Check for file existence
7395 when not using ACL (always the case on remote drives).
7397 2009-04-20 Robert Dewar <dewar@adacore.com>
7399 * sinfo.ads: Minor comment fixes
7401 * exp_disp.adb: Minor reformatting
7403 * gnat1drv.adb: Minor reformatting
7405 * output.adb: Minor reformatting
7407 * s-vxwext-kernel.ads: Minor reformatting
7409 * sem.ads: Minor reformatting
7411 * sem.adb: Minor reformatting
7413 * sem_elim.adb: Minor reformatting
7415 * uname.ads: Minor reformatting
7417 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7419 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
7420 a small dope of 4 words to the adjustment to the stack pointer.
7422 2009-04-20 Thomas Quinot <quinot@adacore.com>
7424 * xoscons.adb: generate C header s-oscons.h in
7425 addition to s-oscons.ads.
7427 * socket.c: On VMS, use s-oscons.h.
7429 * sem_ch3.adb: Minor reformatting
7431 * exp_ch9.adb: Minor reformatting
7433 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7435 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
7436 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
7437 (call_to_gnu): Likewise.
7439 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7441 * gcc-interface/trans.c (gigi): Declare the name of the compilation
7442 unit as the first global name at the very beginning.
7444 2009-04-20 Thomas Quinot <quinot@adacore.com>
7446 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7447 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
7448 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
7449 since HP-UX supports neither inet_aton nor inet_pton (altough the
7450 latter is part of the Single UNIX Specification!).
7451 So reorganize code, and share C implementation based on inet_addr(3)
7452 with VMS (instead of having a VMS specific Ada implementation in
7455 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7457 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
7458 to return the object file name saved by Set_Object_Output_File_Name.
7460 2009-04-20 Emmanuel Briot <briot@adacore.com>
7462 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
7463 for the standard command line, when argc has been modified since the
7464 start of the application.
7466 2009-04-20 Thomas Quinot <quinot@adacore.com>
7468 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
7469 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
7471 2009-04-20 Bob Duff <duff@adacore.com>
7473 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
7476 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7478 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
7479 subprogram as Eliminated when source operation is.
7480 (Expand_N_Protected_Type_Declaration): Generate protected and
7481 unprotected specs for the internal operations, even if the source
7482 operation is eliminated.
7484 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7486 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
7487 Predefined_Primitive_Bodies): Do not create the declarations and bodies
7488 of the primitive subprograms associated with dispatching select
7489 statements when the runtime is in configurable mode.
7491 2009-04-20 Ed Falis <falis@adacore.com>
7493 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
7495 2009-04-20 Thomas Quinot <quinot@adacore.com>
7497 * s-oscons-tmplt.c: Add support for generating a dummy version of
7498 s-oscons.ads providing all possible constants.
7500 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
7502 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
7503 ANSI version (not the UNICODE version) of WSAStringToAddress.
7505 2009-04-20 Pascal Obry <obry@adacore.com>
7507 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
7508 allocated for the security descriptor and make sure all
7509 handles are closed before leaving this procedure.
7511 2009-04-20 Javier Miranda <miranda@adacore.com>
7513 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
7514 (Set_Is_Underlying_Record_View): New subprogram
7516 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
7517 private types with unknown discriminants use the underlying record view
7520 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
7521 underlying record view in the full view of private types whose parent
7522 has unknown discriminants.
7523 (Build_Derived_Record_Type): Avoid generating the class-wide entity
7524 associated with an underlying record view.
7525 (Derived_Type_Declaration): Avoid deriving parent primitives in
7526 underlying record views.
7528 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
7529 records with unknown discriminants.
7531 * sem_type.adb (Covers): Handle underlying record views.
7532 (Is_Ancestor): Add support for underlying record views.
7534 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
7535 dispatching call if the type of the target object is tagged and has
7536 unknown discriminants.
7538 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
7539 unknown discriminants.
7541 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
7542 tables for internally built underlying record views.
7544 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
7545 empty list of component associations.
7547 2009-04-20 Thomas Quinot <quinot@adacore.com>
7549 * sem_ch10.adb: Minor reformatting
7551 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7552 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
7553 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
7554 standard inet_pton API (and emulate it on platforms that do not
7556 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
7557 DECC$INET_ADDR, imported in Ada.
7558 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
7559 implementation provided by GNAT runtime.
7560 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
7563 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7565 * gnat_ugn.texi: Add documentation for -fno-ivopts.
7567 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7569 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
7570 with_clause if it is the main unit.
7572 2009-04-20 Thomas Quinot <quinot@adacore.com>
7574 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
7575 (no behaviour change): Use Append instead of Increment_Last followed
7578 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7580 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
7581 declarations of all primitives associated with dispatching asynchronous,
7582 conditional and timed selects when dispaching calls are forbidden and
7583 select statements are not allowed (such as in Ravenscar).
7584 (Predefined_Primitive_Bodies): Ditto for bodies.
7586 * exp_disp.ad (Make_DT): Do not create and populate the
7587 Select_Specific_Data of the dispatch table when dispatching calls are
7588 forbidden and select statements are not allowed (such as in Ravenscar).
7590 2009-04-20 Robert Dewar <dewar@adacore.com>
7592 * a-tifiio.adb: Minor reformatting
7594 2009-04-20 Thomas Quinot <quinot@adacore.com>
7596 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
7597 other C library functions, report *failure* with a zero status, and
7598 success with a non-zero status.
7600 2009-04-20 Bob Duff <duff@adacore.com>
7602 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
7603 (Semantics): After analyzing each unit, Append it to the
7604 Comp_Unit_List, if appropriate.
7606 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
7608 (Gnat1drv): Correct comment regarding Back_End_Mode.
7610 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7612 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
7614 2009-04-20 Thomas Quinot <quinot@adacore.com>
7616 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7617 output.adb, output.ads, s-taprop-hpux-dce.adb,
7618 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
7621 2009-04-20 Thomas Quinot <quinot@adacore.com>
7623 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
7624 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
7625 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
7626 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
7627 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
7628 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
7630 * debug.adb: Fix typo
7632 * gnat_rm.texi: Minor doc fix.
7634 * sem_ch7.adb, freeze.adb: Minor reformatting
7636 2009-04-20 Thomas Quinot <quinot@adacore.com>
7638 * g-socket.ads: Add new constants:
7640 Unspecified_Group_Inet_Addr
7641 All_Hosts_Group_Inet_Addr
7642 All_Routers_Group_Inet_Addr
7644 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
7645 ERANGE (Result too large).
7646 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
7647 propagation of errno to caller.
7649 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7651 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
7652 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
7655 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7657 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
7658 checking for references to eliminated subprograms that should be
7660 (Eliminate_Error_Message): Update comment to say "references" rather
7661 than "calls" (since attribute cases are handled here as well).
7663 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
7664 checking for references to eliminated subprograms that should be
7665 flagged. Add with and use of Sem and Sem_Util.
7667 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
7668 Add with and use of Sem_Elim.
7670 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
7671 applied to eliminated subprograms.
7672 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
7673 eliminated subprograms.
7674 Add with and use of Sem_Elim.
7676 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
7677 to eliminated subprograms, now handled during Resolve_Call.
7678 Remove with and use of Sem_Elim.
7680 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
7681 testing Is_Eliminated, for proper handling of primitive derived from
7682 eliminated subprograms.
7684 2009-04-20 Vincent Celier <celier@adacore.com>
7686 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
7687 has been declared (Library_GCC or Linker'Driver), for the driver name.
7689 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
7690 Linker'Driver is, use Linker'Driver as the shared library linker.
7691 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
7692 Library_GCC is declared.
7693 (Check_Library_Attributes): Set up the shared linker driver: either
7694 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
7697 2009-04-20 Thomas Quinot <quinot@adacore.com>
7699 * g-socket.ads (Send_Socket): Fix misleading comment.
7701 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7703 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
7706 2009-04-20 Geert Bosch <bosch@adacore.com>
7708 * a-tifiio.adb (Put): Avoid generating too many digits for certain
7709 fixed types with smalls that are neither integer or the reciprocal
7712 2009-04-20 Bob Duff <duff@adacore.com>
7714 * uname.ads: Minor comment fix.
7716 * types.ads: Minor comment fix.
7718 2009-04-20 Pascal Obry <obry@adacore.com>
7720 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
7721 avoid warning. At the same time fix a memory leak.
7723 * osint.adb (Get_Libraries_From_Registry): Properly free memory
7724 returned by the above routine.
7726 2009-04-20 Robert Dewar <dewar@adacore.com>
7728 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
7729 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
7730 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
7731 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
7733 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
7735 2009-04-20 Pascal Obry <obry@adacore.com>
7737 * initialize.c (__gnat_initialize): Add braces to kill warning.
7739 * adaint.c: Minor reformatting, remove trailing spaces.
7741 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7743 * gcc-interface/Make-lang.in: Update dependencies.
7745 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7747 * adaint.h (__gnat_lwp_self): Declare on Linux.
7749 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
7751 2009-04-20 Robert Dewar <dewar@adacore.com>
7753 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
7754 front-end part of -fpreserve-control-flow switch.
7756 2009-04-20 Bob Duff <duff@adacore.com>
7758 * rtsfind.adb: Minor comment fix
7760 2009-04-20 Robert Dewar <dewar@adacore.com>
7762 * exp_aggr.adb: Minor reformatting
7763 Minor code reorganization (use Nkind_In)
7765 * g-socket.adb: Minor reformatting
7767 * g-socket.ads: Minor comment fix
7769 * s-auxdec.ads: Minor comment and organization update.
7771 * s-auxdec-vms_64.ads: Minor comment and organization update.
7773 * sem_ch10.adb: Minor addition of ??? comment
7775 * sem_disp.adb: Minor reformatting
7777 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7779 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
7780 list a caller of an inlined subprogram, if the caller itself is not
7783 2009-04-20 Pascal Obry <obry@adacore.com>
7785 * adaint.c: Disable use of ACL on network drives.
7787 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7789 * gnat_ugn.texi: Add examples.
7791 2009-04-20 Thomas Quinot <quinot@adacore.com>
7793 * g-socket.ads (Abort_Selector): Clarify documentation.
7795 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7797 * opt.ads (Inspector_Mode): Update documentation of this flag.
7799 2009-04-20 Thomas Quinot <quinot@adacore.com>
7801 * g-socket.ads: Minor reformatting
7803 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
7804 consider S_resolvLib error codes since we only use the hostLib wrappers.
7806 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7808 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7809 of the Underlying_Record_View after that of the derived type.
7811 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7813 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
7816 2009-04-20 Javier Miranda <miranda@adacore.com>
7818 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
7820 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
7823 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
7826 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
7827 in internally built overriding subprograms.
7829 2009-04-20 Doug Rupp <rupp@adacore.com>
7831 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
7833 * s-auxdec.ads: Likewise
7835 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7837 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
7838 type by an interface.
7840 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
7841 minimze difference in expanded tree when compiled as spec of the main
7842 unit, or as a spec in the context of another unit.
7844 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7846 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
7847 (localtime_tzoff): This routine no longer accepts an actual of type
7849 (UTC_Time_Offset): Remove local variable Secs_TM.
7851 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
7852 actual of type struct tm*. Add local variable of type struct tm for all
7853 targets that provide localtime_r and need to invoke it.
7855 2009-04-20 Thomas Quinot <quinot@adacore.com>
7857 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
7858 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
7859 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
7861 2009-04-20 Robert Dewar <dewar@adacore.com>
7863 * sem_ch3.adb: Minor reformatting
7865 * lib-load.adb: Minor reformatting
7867 * sem_ch4.adb: Minor reformatting
7869 2009-04-20 Robert Dewar <dewar@adacore.com>
7871 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
7872 (equal values => False).
7874 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7876 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
7877 to null procedures can be inlined unconditionally.
7879 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7881 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
7882 non-addressable parameter passed by reference, do not convert the
7883 actual if its type is already the nominal type, unless it is of
7884 self-referential size.
7886 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7888 * gnat_ugn.texi: Fix typos.
7890 2009-04-20 Robert Dewar <dewar@adacore.com>
7892 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
7893 Validate_Unchecked_Warnings to suppress warnings about size or
7894 alignment or extra bits if either type involved has pragma Warnings
7895 (Off) set for the type entity.
7897 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
7899 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
7900 a builtin type and give it a name.
7902 2009-04-17 Diego Novillo <dnovillo@google.com>
7904 * gcc-interface/misc.c (gnat_expand_expr): Remove.
7905 (LANG_HOOKS_EXPAND_EXPR): Remove.
7907 2009-04-17 Robert Dewar <dewar@adacore.com>
7909 * sem_ch3.adb: Minor reformatting
7911 2009-04-17 Pascal Obry <obry@adacore.com>
7913 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
7915 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7917 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
7918 illegal constraints on type derived from formal discrete types.
7920 2009-04-17 Thomas Quinot <quinot@adacore.com>
7924 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7925 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7926 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
7927 g-socket.ads (GNAT.Sockets.Thin.C_Send,
7928 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
7929 Replace calls to send(2) with equivalent sendto(2) calls.
7930 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
7931 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
7932 report an error in that case. Factor code common to the two versions
7933 (datagram and stream) in common routine Stream_Write.
7935 2009-04-17 Robert Dewar <dewar@adacore.com>
7937 * exp_disp.adb: Minor reformatting
7938 Minor code reorganization (use Nkind_In)
7940 * prepcomp.adb: Minor reformatting
7942 * sem_ch3.adb: Minor reformatting
7944 * sem_res.adb: Minor comment addition
7946 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
7949 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
7950 setting Is_Referenced
7952 * types.ads: Minor reformatting
7954 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7956 * gnat_ugn.texi: Initial documentation on binding generator.
7958 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7960 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
7961 type extensions whose parent is a type with unknown discriminants.
7963 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
7964 aggregate has unknown discriminants, use the Underlying_Record_View to
7965 obtain the discriminants of the ancestor part.
7967 * exp_disp.adb (Build_Dispatch_Tables): Types that are
7968 Underlying_Record_Views share the dispatching information of the
7969 original record extension.
7971 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
7972 discriminants, propagate dispach table information to the
7973 Underlying_Record_View.
7975 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
7976 discriminants and declaration is not a completion, generate
7977 Underlying_Record_View to provide proper discriminant information to
7978 the front-end and to gigi.
7980 2009-04-17 Robert Dewar <dewar@adacore.com>
7982 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
7983 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
7984 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
7985 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
7986 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
7987 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
7988 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
7989 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
7990 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
7991 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
7992 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
7993 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
7994 s-conca3.ads: Remove unneeded pragma Warnings
7996 2009-04-17 Robert Dewar <dewar@adacore.com>
7998 * g-moreex.adb: Add comments.
8000 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
8002 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
8005 * prepcomp.adb: Add ??? comment
8007 * a-tasatt.adb: Minor reformatting
8009 * g-trasym-vms-alpha.adb: Add ??? comment
8011 * g-trasym-vms-ia64.adb: Add ??? comment
8013 * xoscons.adb: Minor reformatting
8015 * s-tassta.adb: Minor reformatting
8017 * s-scaval.adb: Add ??? comment
8019 * stand.ads: Minor code clean up (remove junk with of Namet)
8021 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
8022 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
8023 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
8024 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
8025 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
8026 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
8027 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
8028 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
8029 Warnings off pragmas.
8031 2009-04-17 Pascal Obry <obry@adacore.com>
8033 * initialize.c: Fix test for reallocating the arguments array.
8035 2009-04-17 Geert Bosch <bosch@adacore.com>
8037 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
8038 conversion truncate only for decimal fixed point types.
8040 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
8042 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
8045 2009-04-17 Robert Dewar <dewar@adacore.com>
8047 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
8048 Backwards_OK if either operand has an address clause.
8050 2009-04-17 Pascal Obry <obry@adacore.com>
8052 * initialize.c: Code clean up, use realloc.
8054 2009-04-17 Pascal Obry <obry@adacore.com>
8056 * initialize.c: Do not get Unicode command line if Unicode support not
8058 Add support for wildcard expansion for Unicode parameters on Win32.
8060 * mingw32.h: Add missing macros when Unicode support not activated.
8062 2009-04-17 Javier Miranda <miranda@adacore.com>
8064 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
8065 avoid generating code that references the Current_Master
8066 when compiling without tasks.
8068 2009-04-17 Vincent Celier <celier@adacore.com>
8070 * prj-attr.adb: New project level attribute Target
8072 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
8075 * prj.ads (Project_Configuration): New component Target
8077 2009-04-17 Thomas Quinot <quinot@adacore.com>
8079 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
8080 case for the case of an aggregate component, the attach call for the
8081 result is actually needed.
8083 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
8084 an array aggregate must be disabled if the component type requires
8087 * exp_ch3.adb: Minor reformatting
8089 2009-04-17 Bob Duff <duff@adacore.com>
8091 * output.ads (Indent,Outdent): New procedures for indenting the output.
8092 (Write_Char): Correct comment -- LF _is_ allowed.
8094 * output.adb (Indent,Outdent): New procedures for indenting the output.
8095 Keep track of the indentation level, and make sure it doesn't get too
8097 (Flush_Buffer): Insert spaces at the beginning of each line, if
8098 indentation level is nonzero.
8099 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
8101 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
8102 "Next_Col := 1;". Flush_Buffer does that.
8104 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
8105 controlled by the -gnatdc switch. It now occurs on entry/exit to the
8106 relevant analysis routines, and calls Indent/Outdent to make the
8107 indentation reflect the nesting level. Add "helper" routines, since
8108 otherwise lots of "return;" statements would skip the debugging output.
8110 2009-04-17 Arnaud Charlet <charlet@adacore.com>
8112 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
8113 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
8114 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
8116 2009-04-17 Thomas Quinot <quinot@adacore.com>
8118 * exp_aggr.adb: Minor code reorganization, no behaviour change.
8120 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8122 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
8123 clause in a unit that is a package body or a subunit, when the previous
8124 clause appears in a spec or a parent.
8126 2009-04-17 Thomas Quinot <quinot@adacore.com>
8128 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
8130 * exp_ch7.adb: Minor reformatting
8132 2009-04-17 Bob Duff <duff@adacore.com>
8134 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
8135 allocator, check that the expression of the qualified expression obeys
8136 the constraints of the subtype of the qualified expression.
8138 2009-04-17 Thomas Quinot <quinot@adacore.com>
8140 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
8142 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8144 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
8145 aggregate, using context imposed by subtype mark in allocator.
8147 2009-04-17 Pascal Obry <obry@adacore.com>
8149 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
8151 2009-04-17 Nicolas Roche <roche@adacore.com>
8153 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
8156 2009-04-17 Gary Dismukes <dismukes@adacore.com>
8158 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
8159 cover both calls and attribute references ("call" => "reference").
8161 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8163 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
8164 type for which Storage_Size is set to 0 is legal in a pure unit.
8166 2009-04-17 Thomas Quinot <quinot@adacore.com>
8168 * exp_ch7.adb: Minor reformatting
8170 2009-04-17 Robert Dewar <dewar@adacore.com>
8172 * restrict.adb (Check_Restriction_No_Dependence): Don't check
8173 restriction if outside main extended source unit.
8175 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
8176 for parents of child units as well as the child unit itself.
8178 2009-04-17 Bob Duff <duff@adacore.com>
8180 * checks.ads: Minor comment fix
8182 * exp_aggr.ads: Minor comment fix
8184 2009-04-17 Nicolas Roche <roche@adacore.com>
8186 * adaint.c: Improve cross compiler detection and handling.
8188 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
8190 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
8192 2009-04-17 Pascal Obry <obry@adacore.com>
8194 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
8197 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
8198 value when no encoding form paramter is set on Text_IO services.
8200 * adaint.c: CurrentCodePage new variable on Windows.
8201 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
8204 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
8207 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
8208 environment variable value. Default is UTF-8.
8210 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
8211 fopen and freopen encoding parameter is now set to Unspecified.
8212 The default value is in this case UTF-8 (as it was before) but
8213 use the new macros that convert to/from the code page set
8214 at runtime (CurrentCodePage).
8216 * s-fileio.adb: When no encoding specified use Unspecified value.
8218 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8220 * atree.adb, atree.ads: Remove dead code.
8222 2009-04-17 Arnaud Charlet <charlet@adacore.com>
8224 * gcc-interface/Make-lang.in: Update dependencies.
8226 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8228 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
8229 illegal uses of incomplete types in formal parts and return types.
8231 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
8232 access to subprograms.
8234 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
8235 Taft-amendment types as the return type of an access_to_function type.
8237 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
8238 type for access_to_subprograms. The check is performed on package exit.
8240 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8242 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
8244 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
8246 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
8248 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
8249 semantic units, because the handling of itypes in the copied tree
8250 requires semantic information that does not belong in atree.
8252 2009-04-17 Robert Dewar <dewar@adacore.com>
8254 * par-ch6.adb: Minor reformatting
8256 * prj.adb: Minor reformatting
8258 2009-04-17 Gary Dismukes <dismukes@adacore.com>
8260 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
8261 on protected subprogram bodies, so exclude the case where Pf_Flags is
8262 Pf_Decl_Pbod from the error check.
8264 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
8265 indicators on subprograms in protected bodies, and proceed with parsing
8268 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
8269 subprograms from the check for primitiveness on subprograms with
8270 overriding indicators.
8271 (Check_Overriding_Indicator): Include protected subprograms in the
8272 style check for missing overriding indicators.
8274 2009-04-17 Tristan Gingold <gingold@adacore.com>
8276 * init.c: Fix stack checking for x86 Darwin.
8278 2009-04-17 Vincent Celier <celier@adacore.com>
8280 * prj-attr.adb: New project level attribute Object_File_Suffix
8283 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
8285 (Process_Compiler): Process attribute Object_File_Suffix
8287 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
8288 platform suffix, when specified.
8290 * prj.ads (Language_Config): New component Object_File_Suffix,
8291 defaulted to No_Name.
8292 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
8294 * snames.ads-tmpl: New standard name Object_File_Suffix
8296 2009-04-17 Robert Dewar <dewar@adacore.com>
8298 * gnat_rm.texi: Add documentation about No_Streams restriction
8300 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
8301 attributes when checking No_Streams restriction.
8303 2009-04-17 Thomas Quinot <quinot@adacore.com>
8305 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
8307 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
8308 missing calls to RE_Request_Destroy to deallocate request objects after
8311 2009-04-17 Nicolas Setton <setton@adacore.com>
8313 * link.c: Fix support for passing a response file under Darwin.
8315 2009-04-17 Emmanuel Briot <briot@adacore.com>
8317 * prj.adb (Free): new subprogram.
8319 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8321 * sem_ch3.adb: additional initialization on incomplete subtypes.
8323 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
8324 part and one of the formals is an incomplete tagged type, attach to
8325 list of private dependends of the type for later validation.
8327 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
8328 primitive operations of a Taft-amendmment type.
8330 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
8331 type. The check is performed on package exit, possibly after the
8332 subprogram is frozen.
8334 2009-04-17 Vincent Celier <celier@adacore.com>
8336 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
8337 before looking for source directories, but make sure that there are nil
8338 if they are not explicitely declared and there is explicitely no
8339 sources in the project.
8341 2009-04-17 Pascal Obry <obry@adacore.com>
8343 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
8345 * init.c: Fix minor typo and style fix.
8347 2009-04-17 Robert Dewar <dewar@adacore.com>
8349 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
8351 * sem_attr.adb (Analyze_Attribute, case Address): Use
8352 PE_Address_Of_Intrinsic.
8354 * types.ads: Add PE_Address_Of_Intrinsic
8356 * types.h: Add PE_Address_Of_Intrinsic
8358 2009-04-17 Nicolas Setton <setton@adacore.com>
8360 * gcc-interface/Makefile.in: Under darwin, build shared libraries
8361 with install_name starting with "@rpath/".
8363 2009-04-17 Nicolas Setton <setton@adacore.com>
8365 * link.c: Add darwin section
8367 2009-04-16 Robert Dewar <dewar@adacore.com>
8369 * g-pehage.adb: Minor reformatting
8371 * sem_ch12.adb: Minor reformatting
8373 * exp_dist.adb: Minor reformatting
8375 * bindgen.adb: Minor style fixes.
8377 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8379 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
8380 indexed components to the case where the prefix is a static string
8383 2009-04-16 Javier Miranda <miranda@adacore.com>
8385 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
8386 objects avoid any further expansion of the expression initializing the
8389 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8391 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
8392 that hides an outer homograph, make that homograph invisible when
8393 analyzing the actuals, to to prevent illegal direct visibility on it.
8395 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8397 * g-pehage.adb (Initialize): Fix off-by-one error.
8399 2009-04-16 Tristan Gingold <gingold@adacore.com>
8401 * init.c: Detect real stack overflow on Darwin.
8403 * system-darwin-x86.ads: Use stack probing on darwin x86.
8405 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8407 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
8408 take the address of an intrinsic subprogram.
8410 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8412 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
8413 for the targets where GNAT.Traceback.Symbolic is not supported.
8415 2009-04-16 Vincent Celier <celier@adacore.com>
8417 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
8419 * g-trasym.ads: Update comments.
8421 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8423 * tracebak.c (STOP_FRAME): Verify validity of the current address
8424 before dereferencing.
8426 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8428 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
8429 the original location of the index expressions and the index subtypes,
8430 to prevent spurious out-of-scope references in gigi.
8432 2009-04-16 Tristan Gingold <gingold@adacore.com>
8434 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
8435 Add support for stack checking on darwin.
8437 2009-04-16 Vincent Celier <celier@adacore.com>
8439 * prj-attr.adb: New attribute Runtime_Source_Dir
8441 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
8442 attribute Runtime_Source_Dir.
8443 (Check_Naming_Schemes): Give default values to out parameters to avoid
8446 * prj.ads (Language_Config): New component Runtime_Source_Dir
8448 * snames.ads-tmpl: New standard name Runtime_Source_Dir
8450 2009-04-16 Pascal Obry <obry@adacore.com>
8452 * adaint.h, adaint.c (__gnat_rmdir): New routine.
8453 Simple wrapper routines used to convert to proper encoding on
8456 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
8458 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
8461 2009-04-16 Pascal Obry <obry@adacore.com>
8463 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
8465 2009-04-16 Thomas Quinot <quinot@adacore.com>
8467 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
8468 integrated preprocessor.
8470 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
8471 (Initialize): Split into two subprograms, Initialize (to be called
8472 prior to compiler command line processing) and Setup_Hooks (to be called
8473 later on when the first source file is loaded).
8475 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
8476 Add call to Prep.Initialize.
8478 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
8479 to Prep.Setup_Hooks.
8481 2009-04-16 Pascal Obry <obry@adacore.com>
8483 * adaint.h, adaint.c (__gnat_chdir): New routine.
8484 Simple wrapper routines used to convert to proper encoding on
8487 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
8489 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
8491 2009-04-16 Quentin Ochem <ochem@adacore.com>
8493 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
8496 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8498 * a-convec.ads (Is_Empty): Mark inline.
8500 2009-04-16 Nicolas Roche <roche@adacore.com>
8502 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
8504 2009-04-16 Thomas Quinot <quinot@adacore.com>
8506 * prepcomp.adb: Minor reformatting
8508 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8510 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
8511 Access_Subprogram types can also be imported.
8512 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
8515 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8517 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8518 preserve homonym chain when the declaration is rewritten into a
8519 renaming declaration, in order to preserve visibility structure.
8521 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8523 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
8524 taken into account for VM targets.
8526 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8528 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
8530 (Year_Week_In_Year): New routine which contains the original code from
8531 Week_In_Year. Add the missing special case for January 1st falling on
8534 2009-04-16 Thomas Quinot <quinot@adacore.com>
8536 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
8537 actual type, use the base type to build the To_Any function.
8538 (Build_From_Any_Function): Remove junk, useless subtype conversion.
8540 2009-04-16 Thomas Quinot <quinot@adacore.com>
8542 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
8543 restrict.adb: Minor code reorganization (use
8544 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
8546 2009-04-16 Bob Duff <duff@adacore.com>
8548 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
8551 2009-04-16 Thomas Quinot <quinot@adacore.com>
8553 * sem_ch4.adb: Minor reformatting
8555 * adaint.c: Remove junk duplicated code.
8557 * sem_ch3.adb: Minor reformatting
8559 * exp_dist.adb: Minor comment rewording
8561 2009-04-16 Robert Dewar <dewar@adacore.com>
8563 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
8566 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8568 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
8569 usable before calling Add_One_Interp, to resolve spurious ambiguities.
8571 2009-04-16 Robert Dewar <dewar@adacore.com>
8573 * Make-lang.in: Add entries for s-conca?.o
8575 * Makefile.rtl: Add entries for s-conca?
8577 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
8578 of concatenation expansion
8580 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
8581 string cases instead of expanding assignments inline.
8583 * opt.ads (Optimize_Size): New flag
8585 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
8586 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
8587 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
8588 s-conca9.adb, s-conca9.ads: New file.
8590 2009-04-16 Robert Dewar <dewar@adacore.com>
8592 * exp_ch6.adb: Add comments
8594 * rtsfind.ads: Add entries for s-conca? routines
8596 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8598 * gcc-interface/Make-lang.in: Update dependencies.
8600 * gcc-interface/Makefile.in: Update translation for vms.
8602 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8604 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
8605 and made global, to be used when installing parents of a child
8606 instance, to provide mappings for entities declared in formal packages
8607 of ancestor units. Now called from Install_Formal_Packages.
8609 2009-04-16 Doug Rupp <rupp@adacore.com>
8611 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
8612 notation for clarity.
8614 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8615 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
8616 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
8617 (Initialize): Initialize Known_Tasks with Environment task.
8619 * s-taskin.ads (Task_States): Move new states to end for the sake of
8622 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
8624 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8626 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
8627 operation has an inline pragma, propagate the flag to the internal
8628 unprotected subprogram.
8630 2009-04-16 Doug Rupp <rupp@adacore.com>
8632 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
8633 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
8634 s-taprop-hpux-dce.adb, s-taprop-posix.adb
8635 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
8637 * s-taprop-vms.adb (Enter_Task): Likewise.
8638 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
8640 * s-tassta.adb (Activate_Tasks): After task creation set state to
8641 Activating, vice Runnable. Initialize Known_Tasks, moved here from
8642 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
8643 Set state to Runnable after above.
8644 (Task_Wrapper): Set Debug_Event_Run. In exception block set
8645 Debug_Event_Terminated.
8647 * s-taskin.ads (Task_States): Add new states Activiting and
8648 Activator_Delay_Sleep.
8649 (Bit_Array, Debug_Event_Array): New types.
8650 (Global_Task_Debug_Event_Set: New flag.
8651 (Common_ATCB): New field Debug_Events.
8653 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
8655 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
8658 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
8659 Activating and when Acceptor_Delay_Sleep.
8661 * s-tasdeb.ads: Add constants for Debug_Events.
8662 (Debug_Event_Kind_Type): New subtype.
8663 (Signal_Debug_Event): New subprogram.
8665 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
8667 2009-04-16 Thomas Quinot <quinot@adacore.com>
8669 * sem_elim.adb: Minor reformatting
8671 * freeze.adb: Minor reformatting
8673 * exp_ch4.adb: Minor reformatting
8675 2009-04-16 Emmanuel Briot <briot@adacore.com>
8677 * prj-nmsc.adb (Path_Name_Of): fix memory leak
8679 2009-04-16 Robert Dewar <dewar@adacore.com>
8681 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
8683 2009-04-16 Vincent Celier <celier@adacore.com>
8685 * fmap.adb (Initialize): Show the current line when the mapping file
8686 is detected as "incorrectly formatted".
8688 2009-04-16 Robert Dewar <dewar@adacore.com>
8690 * sem_ch12.adb: Minor reformatting
8692 * sem_ch5.adb: Minor comment addition
8694 * sem_util.adb: Minor reformatting
8696 * sinput-p.adb: Minor reformatting
8697 Add missing pragma Warnings (On)
8699 2009-04-16 Ed Falis <falis@adacore.com>
8701 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
8703 2009-04-16 Vincent Celier <celier@adacore.com>
8705 * ali-util.adb: Minor comment spelling error fix
8707 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8709 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
8710 generate an assignment loop in case of overlap.
8712 2009-04-16 Olivier Hainque <hainque@adacore.com>
8714 * gnat_ugn.texi (gnatmem description): Make it explicit that
8715 gnatmem is designed to work in association with static runtime
8718 2009-04-16 Thomas Quinot <quinot@adacore.com>
8720 * sem_type.adb: Minor reformatting
8722 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8724 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
8725 concerning return codes of gettimeofday and return value check.
8727 2009-04-16 Ed Falis <falis@adacore.com>
8729 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
8730 body can be renaming of imported routines.
8732 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8734 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
8737 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8739 * exp_ch9.adb: Comment improvements.
8740 (Build_Entry_Family_Name): Add parentheses around the index of a entry
8743 2009-04-15 Bob Duff <duff@adacore.com>
8745 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
8746 "while X /= null loop" where X is unchanged inside the loop. We were
8747 not warning in this case, because of the pointers -- we feared that the
8748 loop variable could be updated via a pointer, if there are any pointers
8749 around the place. But that is impossible in this case.
8751 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
8752 the case of dereferences. In X.all, X cannot be an l-value. We now
8753 catch that case (and implicit dereferences, too).
8755 2009-04-15 Vincent Celier <celier@adacore.com>
8757 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
8759 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8761 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
8763 (Analyze_Package_Instantiation): If generic unit in child instance is
8764 the same as generic unit in parent instance, look for an outer homonym
8765 to locate the desired generic.
8767 2009-04-15 Bob Duff <duff@adacore.com>
8769 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
8770 warnings unless the loop comes from source, because checking generated
8771 loops is a waste of time, and makes it harder to debug
8772 Check_Infinite_Loop_Warning.
8774 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
8775 tested in the while loop is a renaming, do not warn. Otherwise, we get
8776 false alarms, because it's usually renaming something that we can't
8777 deal with (an indexed component, a global variable, ...).
8779 * gnat_rm.texi: Fix typo
8781 2009-04-15 Thomas Quinot <quinot@adacore.com>
8783 * sem_ch6.adb: Minor reformatting
8785 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8787 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
8788 immediate parent of the controlled function call is a component
8791 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8793 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
8794 corresponding class-wide type is also in use.
8796 2009-04-15 Thomas Quinot <quinot@adacore.com>
8798 * frontend.adb: Minor comment fix
8800 2009-04-15 Robert Dewar <dewar@adacore.com>
8802 * gnatchop.adb (BOM_Length): New global variable
8803 (Write_Unit): Add new parameter Write_BOM
8804 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
8807 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
8809 2009-04-15 Geert Bosch <bosch@adacore.com>
8811 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
8812 (Backend_Overflow_Checks): Set to True.
8814 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8816 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
8817 keyword is given in a record extension.
8819 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8821 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
8822 of a controlled function call in the context of a record aggregate.
8823 This does not apply to array aggregates since the call will be expanded
8826 2009-04-15 Ed Falis <falis@adacore.com>
8828 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
8829 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
8830 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
8831 s-osinte-vxworks* and s-vxwext*.
8833 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8835 * gcc-interface/Make-lang.in: Update dependencies.
8837 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
8840 2009-04-15 Robert Dewar <dewar@adacore.com>
8842 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
8843 of node for location for warning messages.
8845 * gnatchop.adb: Minor reformatting
8847 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8849 * exp_ch6.adb: additional guard for renaming declarations for in
8850 parameters of an array type.
8852 2009-04-15 Robert Dewar <dewar@adacore.com>
8854 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
8855 in case they were rewritten by expander (Force_Evaluation).
8857 * targparm.adb (Get_Target_Parameters): Correct check for
8858 Suppress_Exception_Locations.
8860 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8862 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
8863 inlined is of an array type that is not bit-packed, use a renaming
8864 declaration to capture its value, rather than a constant declaration.
8866 2009-04-15 Robert Dewar <dewar@adacore.com>
8868 * rtsfind.adb: Minor reformatting.
8870 2009-04-15 Emmanuel Briot <briot@adacore.com>
8872 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
8873 Restore, and free the saved context.
8875 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8877 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
8878 for illegal private extension from a synchronized interface parent in
8879 front of check for illegal limited extension so that limited extension
8880 from a synchronized interface will be rejected.
8881 (Check_Ifaces): Check that a private extension that has a synchronized
8882 interface as a progenitor must be explicitly declared synchronized.
8883 Also check that a record extension cannot derive from a synchronized
8886 2009-04-15 Pascal Obry <obry@adacore.com>
8888 * adaint.h (__gnat_unlink): Add spec.
8889 (__gnat_rename): Likewise.
8891 2009-04-15 Vincent Celier <celier@adacore.com>
8893 * prj-nmsc.adb: Minor spelling error corrections in error messages
8895 2009-04-15 Robert Dewar <dewar@adacore.com>
8897 * sinfo.ads: Minor comment update
8899 * opt.ads: Minor comment updates
8901 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
8904 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8906 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
8907 that generates the code needed to update a dispatch table when a
8908 primitive operation is declared with a subprogram body without previous
8909 spec. Insertion of the generated code is responsibility of the caller.
8910 (Make_DT): When building static tables, append the code created by
8911 Register_Primitive to update a secondary table after it has been
8914 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
8916 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
8917 on an overriding operation that implements an interface operation only
8918 if not building static dispatch tables.
8920 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8922 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
8923 does not cause overflow when converted to Duration. Use the safe value
8924 as the maximum allowable time delay..
8926 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
8928 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
8929 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
8930 translated to "-j 2".
8932 2009-04-15 Bob Duff <duff@adacore.com>
8934 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
8935 with_clauses, to avoid code duplication. Change this processing so we
8936 always add a with_clause on the main unit if needed.
8938 2009-04-15 Pascal Obry <obry@adacore.com>
8940 Add support for Win32 native encoding for delete/rename routines.
8942 * adaint.c (__gnat_unlink): New routine.
8943 (__gnat_rename): New routine.
8944 Simple wrapper routines used to convert to proper encoding on
8947 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
8948 call to the C library.
8950 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
8952 2009-04-15 Robert Dewar <dewar@adacore.com>
8954 * s-tassta.adb: Minor reformatting
8956 2009-04-15 Robert Dewar <dewar@adacore.com>
8958 * frontend.adb (Frontend): Set proper default for
8959 Warn_On_Non_Local_Exception.
8961 * opt.ads (Exception_Handler_Encountered): New flag
8962 (No_Warn_On_Non_Local_Exception): New flag
8964 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
8966 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8967 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8969 2009-04-15 Cyrille Comar <comar@adacore.com>
8971 * s-tassta.adb, a-exextr.adb, a-elchha.adb
8972 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
8973 message when exception traces are active since it would generate
8974 redundant information.
8975 (Exception_Traces.Notify_Exception): put message output by a critical
8976 section to avoid unsynchronized output.
8977 (Trace_Unhandled_Exception_In_Task): put message output by a critical
8978 section to avoid unsynchronized output.
8980 2009-04-15 Emmanuel Briot <briot@adacore.com>
8982 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
8983 (Free): New subprogram.
8985 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8987 * a-calend.adb: Add new constant Nanos_In_Four_Years.
8988 (Formatting_Operations.Time_Of): Change the way four year chunks of
8989 nanoseconds are added to the intermediate result.
8991 2009-04-15 Nicolas Setton <setton@adacore.com>
8993 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
8994 does not need to wait for a carriage return.
8996 2009-04-15 Tristan Gingold <gingold@adacore.com>
8998 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
9001 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9003 * freeze.adb (Freeze_Entity): improve error message for improper use of
9005 Diagnose additional illegal uses of incomplete types in formal parts.
9006 appearing in formal parts.
9008 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
9010 2009-04-15 Robert Dewar <dewar@adacore.com>
9012 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
9014 2009-04-15 Nicolas Roche <roche@adacore.com>
9016 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
9019 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
9021 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
9023 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9025 * sem_ch4.adb: improve error message on exponentiation.
9027 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
9029 * a-calend.adb: Move constant Epoch_Offset from package
9030 Conversion_Operations to top level.
9031 (Delay_Operations.To_Duration): Define a constant which represents
9032 "end of time" and use it as a guard against very distant delay dates.
9033 Protect the code against overflow when performing the origin shift to
9036 2009-04-15 Robert Dewar <dewar@adacore.com>
9038 * sem_prag.adb: Minor reformatting.
9040 * sem_type.adb: Minor reformatting
9042 2009-04-15 Javier Miranda <miranda@adacore.com>
9044 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
9045 support to check eliminated subprograms.
9047 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
9049 * sem_elim.adb (Set_Eliminated): Add support for elimination of
9050 dispatching subprograms.
9052 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
9053 operations. Initialize with "null" the slots of eliminated dispaching
9055 (Write_DT): Add output for eliminated primitives.
9057 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
9059 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9061 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
9062 the second is redundant, regardless of scopes.
9064 2009-04-15 Vincent Celier <celier@adacore.com>
9066 * prj-nmsc.adb (Get_Directories): Check for sources before checking
9067 the object directory as when there are no sources, they may not be any
9070 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
9071 directory, when there are no exec directory.
9073 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9075 * sem_type.adb (Remove_Conversions): In order to resolve spurious
9076 ambiguities, refine removal of universal interpretations from complex
9077 expressions with literal arguments, when some numeric operators have
9078 been declared abstract.
9080 2009-04-15 Ed Falis <falis@adacore.com>
9082 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
9083 and backward compatibility for targets using probing for stack overflow
9085 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9087 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
9088 after any declaration, including renaming declarations.
9090 2009-04-15 Arnaud Charlet <charlet@adacore.com>
9092 * gcc-interface/Make-lang.in: Update dependencies.
9094 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
9095 Update xenomai target pairs.
9097 2009-04-15 Javier Miranda <miranda@adacore.com>
9099 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9101 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
9102 functions returning anonymous access to class-wide limited types. Mark
9103 also the containing scope as a task master.
9105 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
9106 limited-withed packages. Required to restore their visibility after
9107 processing packages associated with implicit with-clauses.
9109 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
9110 associated with return statements because this work is now done by
9111 Check_Anonymous_Return.
9112 (Build_Master): Code cleanup.
9114 2009-04-15 Thomas Quinot <quinot@adacore.com>
9116 * sem_warn.ads: Minor reformatting
9118 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9120 * sem_ch3.adb: better error message for illegal interfaces
9122 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
9123 formal is an incomplete type from a limited_with clause.
9125 2009-04-15 Vincent Celier <celier@adacore.com>
9127 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
9128 Externally_Built indicating if the project is externally built. If it
9129 is, and --subdirs is specified, but the subdir does not exist, look
9130 for the specified directory, without the subdir.
9132 2009-04-15 Gary Dismukes <dismukes@adacore.com>
9134 * a-tasatt.adb: Fix typo, plus minor reformatting
9136 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
9138 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
9140 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9142 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
9143 private extension whose parent is a synchronized interface carries an
9144 explicit synchronized keyword.
9146 2009-04-15 Thomas Quinot <quinot@adacore.com>
9148 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
9149 instantiate generic shared object package with the corresponding
9152 2009-04-15 Arnaud Charlet <charlet@adacore.com>
9154 * system-linux-sparc.ads: Remove obsolete entries.
9156 2009-04-15 Thomas Quinot <quinot@adacore.com>
9158 * s-tasuti.ads: Add ??? comment
9160 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9162 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
9163 type even if the designated type comes from a limited_with clause, to
9164 ensure that the symbol for the finalization list of the access type is
9167 2009-04-10 Robert Dewar <dewar@adacore.com>
9169 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
9170 for warning suppression.
9172 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9174 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
9175 identical, there is no redudancy to check.
9177 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9179 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
9180 calls initializing SS_Allocator (which is initialized in following
9182 (Expand_Simple_Function_Return): Add comment about False value for
9183 Comes_From_Source on secondary-stack allocator.
9185 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
9186 (Build_Entry_Name): Add comment.
9188 2009-04-10 Robert Dewar <dewar@adacore.com>
9190 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
9192 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
9193 bound tested, since this is now done more generally in Sem_Res.
9195 * sem_res.adb (Resolve_Comparison_Op): Add call to
9196 Check_Lower_Bound_Tested.
9197 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
9199 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
9200 (Low_Bound_Tested): New name for Low_Bound_Known flag
9202 * exp_ch5.adb: Minor reformatting
9205 Add comments on copying the Comes_From_Source flag for allocators
9208 Add comments on copying the Comes_From_Source flag for allocators
9210 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
9211 Comes_From_Source flag from old allocator to new one.
9213 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9215 * sem_ch6.ads: Address missing documentation query
9217 2009-04-10 Vincent Celier <celier@adacore.com>
9220 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
9221 and Response_File_Switches.
9223 * prj-nmsc.adb (Process_Linker): Process new attributes
9224 Max_Command_Line_Length, Response_File_Format and
9225 Response_File_Switches.
9227 * prj.ads (Response_File_Format): New enumeration type
9228 (Project_Configuration): New componants Max_Command_Line_Length,
9229 Resp_File_Format and Resp_File_Options.
9231 * snames.ads-tmpl: Add new standard names for linking response files
9232 for gprbuild: GNU, None, Object_List, Option_List,
9233 Max_Command_Line_Length, Response_File_Format and
9234 Response_File_Switches.
9236 2009-04-10 Geert Bosch <bosch@adacore.com>
9238 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
9239 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
9240 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
9241 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
9242 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
9243 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
9244 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
9245 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
9246 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
9247 system-vxworks-arm.ads, system-vxworks-m68k.ads,
9248 system-vxworks-mips.ads, system-vxworks-ppc.ads,
9249 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
9250 (Backend_Overflow_Checks): Set to True.
9252 2009-04-10 Thomas Quinot <quinot@adacore.com>
9254 * exp_attr.adb: Minor reformatting
9256 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9258 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
9259 analyze the expression for a postcondition, even if the compiler mode
9262 2009-04-10 Robert Dewar <dewar@adacore.com>
9264 * sem_aux.adb: Minor reformatting
9266 2009-04-10 Ed Falis <falis@adacore.com>
9268 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
9270 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
9272 2009-04-10 Thomas Quinot <quinot@adacore.com>
9274 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
9275 undocumented formal.
9278 * a-direio.ads: Fix typo in comment
9280 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
9281 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
9282 Use uniform phrasing for comment at start of subprogram body.
9284 * xsnamest.adb: Add note to explain why we use specific names for the
9285 newly generated files instead of generating snames.{ads,adb,h} directly
9287 2009-04-10 Sergey Rybin <rybin@adacore.com>
9290 Add qualifier for new gnatstub option '--no-exception'
9293 Add the description of the new gnatstub option '--no-exception'
9295 2009-04-10 Robert Dewar <dewar@adacore.com>
9297 * rtsfind.adb: Minor reformatting
9299 2009-04-10 Thomas Quinot <quinot@adacore.com>
9301 * sem_disp.adb: Minor reformatting.
9302 Add comment pointing to RM clause for the case of warning against a
9303 (failed) attempt at declaring a primitive operation elsewhere than in a
9306 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9308 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
9309 an actual for a previous formal package of the current instance.
9311 2009-04-10 Bob Duff <duff@adacore.com>
9313 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
9314 them first, rather than on the extended main unit.
9316 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9318 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
9319 specification of full view carries a null exclusion indicator, create
9320 an itype for it, to check for conformance with partial view.
9322 2009-04-10 Bob Duff <duff@adacore.com>
9324 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
9326 * rtsfind.adb: Minor comment changes, and remove useless code.
9328 * sinfo.ads: Add ??? comment.
9330 2009-04-10 Vincent Celier <celier@adacore.com>
9332 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
9334 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9336 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
9337 type is a synchronized type, retrieve tag information from the
9338 corresponding record, which has the dispatch table link.
9340 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
9342 * g-comlin.adb (Group_Analysis): Take care of switches that might be
9343 decomposed afterwards, but are present as-is in the command line
9344 configuration, and thus should be kept as-is.
9346 2009-04-10 Robert Dewar <dewar@adacore.com>
9348 * gnat_rm.texi: Document that postconditions are tested on implicit
9351 * sem_aux.adb: Minor reformatting
9353 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9355 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
9358 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
9359 Null_Exclusion_In_Return_Present when an access-to-function type has a
9360 result type with an explicit not null.
9362 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
9363 given on the result type, then create a null-excluding itype for the
9366 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
9367 the case where a null exclusion is imposed on a named access type.
9368 (Analyze_Subprogram_Specification): Push and pop the scope of the
9369 function around the call to Analyze_Return_Type in the case of no
9370 formals, for consistency with handling when formals are present
9371 (Process_Formals does this). Ensures that any itype created for the
9372 return type will be associated with the proper scope.
9374 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
9375 exclusion is given on a generic function's result type, then create a
9376 null-excluding itype for the generic function.
9377 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
9378 for an actual for a formal in object according to the setting on the
9379 formal. Ensures null exclusion checks are done when the association is
9382 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
9383 N_Access_Function_Definition.
9385 * sinfo.adb: Add Get_ and Set_ operations for
9386 Null_Exclusion_In_Return_Present.
9388 2009-04-10 Bob Duff <duff@adacore.com>
9390 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
9391 call to the _Postconditions procedure in the case of implicit returns
9392 from analysis to expansion. This eliminates some duplicated code. Use
9393 the Postcondition_Proc to find the identity of this procedure during
9396 2009-04-10 Robert Dewar <dewar@adacore.com>
9398 * sem_ch6.adb: Minor code clean up.
9400 * einfo.ads, sem_attr.adb: Minor comment fixes.
9402 2009-04-10 Robert Dewar <dewar@adacore.com>
9404 * sem_ch8.adb: Minor reformatting
9406 2009-04-10 Robert Dewar <dewar@adacore.com>
9408 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
9411 * sem_ch6.adb: Minor code clean up.
9413 2009-04-10 Robert Dewar <dewar@adacore.com>
9415 * mlib-tgt-specific-xi.adb: Minor reformatting
9417 2009-04-10 Bob Duff <duff@adacore.com>
9419 * einfo.ads: Minor comment fixes
9421 2009-04-10 Vincent Celier <celier@adacore.com>
9423 * snames.ads-tmpl: Remove names that are no longer used in the
9425 Mark specifically those that are used only in gprbuild
9427 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
9429 * init.c: Adjust EH support code on Alpha/Tru64.
9431 2009-04-10 Bob Duff <duff@adacore.com>
9433 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
9434 procedure on every path that could return implicitly (not via a return
9435 statement) from a procedure.
9437 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9439 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
9440 valid scope for a task declarations and therefore for a master id.
9442 2009-04-10 Robert Dewar <dewar@adacore.com>
9444 * sem_aux.adb: Minor reformatting
9446 2009-04-10 Vincent Celier <celier@adacore.com>
9448 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
9450 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
9451 (Set_Obsolescent_Check): New procedure to change the value of
9452 Obsolescent_Check_Flag.
9454 * scn.ads (Set_Obsolescent_Check): New procedure to control
9457 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
9458 obsolescent features while preprocessing.
9460 2009-04-10 Thomas Quinot <quinot@adacore.com>
9462 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
9463 generated files on all platforms.
9465 2009-04-10 Robert Dewar <dewar@adacore.com>
9467 * sem_aux.adb: Minor reformatting
9469 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9471 * sem_ch3.adb (Access_Definition): Handle properly the case of a
9472 protected function with formals that returns an anonymous access type.
9474 2009-04-10 Thomas Quinot <quinot@adacore.com>
9476 * sem_disp.adb: Minor reformatting
9478 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
9480 * seh_init.c: Do not use the 32-bit specific implementation of
9481 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
9484 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9486 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
9487 a '/' at the end so we better use the complete target name to determine
9488 whether it is a PowerPC 55xx target.
9490 2009-04-10 Thomas Quinot <quinot@adacore.com>
9492 * sem_eval.adb: Minor reformatting
9494 2009-04-10 Thomas Quinot <quinot@adacore.com>
9496 * snames.h, snames.ads, snames.adb: Remove files, now generated from
9499 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
9502 * xsnamest.adb: New file.
9504 * gcc-interface/Make-lang.in: New target for automated generation of
9505 snames.ads, snames.adb and snames.h
9507 2009-04-10 Tristan Gingold <gingold@adacore.com>
9509 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
9510 avoid compile time warnings.
9511 Do not add gcc/config in include search list while compiling the RTS.
9512 Pragma Thread_Local_Storage is available on any target.
9514 2009-04-10 Bob Duff <duff@adacore.com>
9516 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
9518 2009-04-10 Tristan Gingold <gingold@adacore.com>
9520 * init.c: Install signal handler on Darwin.
9522 2009-04-10 Robert Dewar <dewar@adacore.com>
9524 * sem_prag.adb: Minor reformatting
9526 * exp_util.adb (Make_Non_Empty_Check): New function
9527 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
9528 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
9530 2009-04-10 Arnaud Charlet <charlet@adacore.com>
9532 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
9534 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9536 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
9537 tool prefix for AVR and PowerPC 55xx targets.
9539 2009-04-10 Robert Dewar <dewar@adacore.com>
9541 * sem_warn.adb (Within_Postcondition): New function
9542 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
9544 2009-04-10 Robert Dewar <dewar@adacore.com>
9546 * sem_warn.adb: Minor reformatting
9548 * make.adb: Minor reformatting.
9550 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9552 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
9553 entity and the scope is a subprogram, retrieve the Sloc of the
9554 subprogram's body rather than using the sloc of the spec, for better
9555 line-stepping behavior in gdb.
9556 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
9557 controller, use the Sloc of the first declaration of the containing list
9558 rather than that of the node that triggered creation of the list
9561 2009-04-10 Vincent Celier <celier@adacore.com>
9563 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
9564 to avoid gcc warning.
9566 2009-04-10 Robert Dewar <dewar@adacore.com>
9568 * g-comlin.adb: Add ??? comment
9570 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9572 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
9573 unreferenced entities for a package with no visible declarations.
9575 2009-04-10 Robert Dewar <dewar@adacore.com>
9577 * exp_ch9.adb: Minor reformatting
9579 2009-04-10 Thomas Quinot <quinot@adacore.com>
9581 * sem_prag.adb: Minor reformatting
9583 2009-04-10 Vincent Celier <celier@adacore.com>
9586 (Check_Library_Attributes): For a project qualified as a library project
9587 that is not a library project, indicate in the error message which
9588 attributes are missing (Library_Dir and/or Library_Name).
9590 2009-04-10 Bob Duff <duff@adacore.com>
9592 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
9593 generated nodes, because it might confuse various circuits in the FE.
9595 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9597 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
9598 of pragma. It will be recopied and analyzed when used in call to
9601 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
9602 initialization operations and recognize use of it in procedure calls
9605 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
9606 argument, because it may have side-effects.
9608 * exp_ch2.adb: Remove obsolete comments on default functions
9610 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9612 * adaint.c (RTX section): Do for RTX the same thing as we do for
9613 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
9615 2009-04-10 Robert Dewar <dewar@adacore.com>
9617 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
9619 * sem_res.adb (Resolve_Call): Fix test for
9620 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
9621 a non-dynamic scope).
9623 2009-04-10 Robert Dewar <dewar@adacore.com>
9625 * make.adb: Add comment.
9628 2009-04-10 Nicolas Setton <setton@adacore.com>
9630 * s-osprim-darwin.adb: New file.
9632 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
9634 2009-04-10 Thomas Quinot <quinot@adacore.com>
9636 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
9638 2009-04-09 Nick Clifton <nickc@redhat.com>
9640 * adadecode.h: Change copyright header to refer to version
9641 3 of the GNU General Public License with version 3.1 of the
9642 GCC Runtime Library Exception and to point readers at the
9643 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
9645 * 9drpc.adb: Likewise.
9646 * a-assert.adb: Likewise.
9647 * a-astaco.adb: Likewise.
9648 * a-calari.adb: Likewise.
9649 * a-calcon.adb: Likewise.
9650 * a-calcon.ads: Likewise.
9651 * a-caldel.ads: Likewise.
9652 * a-calend-vms.adb: Likewise.
9653 * a-calend-vms.ads: Likewise.
9654 * a-calend.adb: Likewise.
9655 * a-calend.ads: Likewise.
9656 * a-calfor.adb: Likewise.
9657 * a-catizo.adb: Likewise.
9658 * a-cdlili.adb: Likewise.
9659 * a-cdlili.ads: Likewise.
9660 * a-cgaaso.adb: Likewise.
9661 * a-cgaaso.ads: Likewise.
9662 * a-cgarso.adb: Likewise.
9663 * a-cgcaso.adb: Likewise.
9664 * a-chacon.adb: Likewise.
9665 * a-chacon.ads: Likewise.
9666 * a-chahan.adb: Likewise.
9667 * a-chahan.ads: Likewise.
9668 * a-chlat9.ads: Likewise.
9669 * a-chtgke.adb: Likewise.
9670 * a-chtgke.ads: Likewise.
9671 * a-chtgop.adb: Likewise.
9672 * a-chtgop.ads: Likewise.
9673 * a-chzla1.ads: Likewise.
9674 * a-chzla9.ads: Likewise.
9675 * a-cidlli.adb: Likewise.
9676 * a-cidlli.ads: Likewise.
9677 * a-cihama.adb: Likewise.
9678 * a-cihama.ads: Likewise.
9679 * a-cihase.adb: Likewise.
9680 * a-cihase.ads: Likewise.
9681 * a-ciorma.adb: Likewise.
9682 * a-ciorma.ads: Likewise.
9683 * a-ciormu.adb: Likewise.
9684 * a-ciormu.ads: Likewise.
9685 * a-ciorse.adb: Likewise.
9686 * a-ciorse.ads: Likewise.
9687 * a-clrefi.adb: Likewise.
9688 * a-clrefi.ads: Likewise.
9689 * a-cohama.adb: Likewise.
9690 * a-cohama.ads: Likewise.
9691 * a-cohase.adb: Likewise.
9692 * a-cohase.ads: Likewise.
9693 * a-cohata.ads: Likewise.
9694 * a-coinve.adb: Likewise.
9695 * a-coinve.ads: Likewise.
9696 * a-colien.adb: Likewise.
9697 * a-colien.ads: Likewise.
9698 * a-colire.adb: Likewise.
9699 * a-colire.ads: Likewise.
9700 * a-comlin.adb: Likewise.
9701 * a-comlin.ads: Likewise.
9702 * a-convec.adb: Likewise.
9703 * a-convec.ads: Likewise.
9704 * a-coorma.adb: Likewise.
9705 * a-coorma.ads: Likewise.
9706 * a-coormu.adb: Likewise.
9707 * a-coormu.ads: Likewise.
9708 * a-coorse.adb: Likewise.
9709 * a-coorse.ads: Likewise.
9710 * a-coprnu.adb: Likewise.
9711 * a-coprnu.ads: Likewise.
9712 * a-crbltr.ads: Likewise.
9713 * a-crbtgk.adb: Likewise.
9714 * a-crbtgk.ads: Likewise.
9715 * a-crbtgo.adb: Likewise.
9716 * a-crbtgo.ads: Likewise.
9717 * a-crdlli.adb: Likewise.
9718 * a-crdlli.ads: Likewise.
9719 * a-cwila1.ads: Likewise.
9720 * a-cwila9.ads: Likewise.
9721 * a-decima.adb: Likewise.
9722 * a-decima.ads: Likewise.
9723 * a-diocst.adb: Likewise.
9724 * a-diocst.ads: Likewise.
9725 * a-direct.adb: Likewise.
9726 * a-direct.ads: Likewise.
9727 * a-direio.adb: Likewise.
9728 * a-direio.ads: Likewise.
9729 * a-dirval-mingw.adb: Likewise.
9730 * a-dirval-vms.adb: Likewise.
9731 * a-dirval.adb: Likewise.
9732 * a-dirval.ads: Likewise.
9733 * a-dynpri.adb: Likewise.
9734 * a-einuoc.adb: Likewise.
9735 * a-einuoc.ads: Likewise.
9736 * a-elchha.adb: Likewise.
9737 * a-elchha.ads: Likewise.
9738 * a-envvar.adb: Likewise.
9739 * a-excach.adb: Likewise.
9740 * a-except-2005.adb: Likewise.
9741 * a-except-2005.ads: Likewise.
9742 * a-except.adb: Likewise.
9743 * a-except.ads: Likewise.
9744 * a-excpol-abort.adb: Likewise.
9745 * a-excpol.adb: Likewise.
9746 * a-exctra.adb: Likewise.
9747 * a-exctra.ads: Likewise.
9748 * a-exetim-mingw.adb: Likewise.
9749 * a-exetim-mingw.ads: Likewise.
9750 * a-exexda.adb: Likewise.
9751 * a-exexpr-gcc.adb: Likewise.
9752 * a-exexpr.adb: Likewise.
9753 * a-exextr.adb: Likewise.
9754 * a-exstat.adb: Likewise.
9755 * a-filico.adb: Likewise.
9756 * a-filico.ads: Likewise.
9757 * a-finali.adb: Likewise.
9758 * a-finali.ads: Likewise.
9759 * a-interr.ads: Likewise.
9760 * a-intnam-aix.ads: Likewise.
9761 * a-intnam-darwin.ads: Likewise.
9762 * a-intnam-dummy.ads: Likewise.
9763 * a-intnam-freebsd.ads: Likewise.
9764 * a-intnam-hpux.ads: Likewise.
9765 * a-intnam-irix.ads: Likewise.
9766 * a-intnam-linux.ads: Likewise.
9767 * a-intnam-lynxos.ads: Likewise.
9768 * a-intnam-mingw.ads: Likewise.
9769 * a-intnam-rtems.ads: Likewise.
9770 * a-intnam-solaris.ads: Likewise.
9771 * a-intnam-tru64.ads: Likewise.
9772 * a-intnam-vms.ads: Likewise.
9773 * a-intnam-vxworks.ads: Likewise.
9774 * a-intsig.adb: Likewise.
9775 * a-intsig.ads: Likewise.
9776 * a-ngcefu.adb: Likewise.
9777 * a-ngcoar.adb: Likewise.
9778 * a-ngcoty.adb: Likewise.
9779 * a-ngcoty.ads: Likewise.
9780 * a-ngelfu.adb: Likewise.
9781 * a-ngrear.adb: Likewise.
9782 * a-ngrear.ads: Likewise.
9783 * a-nudira.adb: Likewise.
9784 * a-nudira.ads: Likewise.
9785 * a-nuflra.adb: Likewise.
9786 * a-nuflra.ads: Likewise.
9787 * a-numaux-darwin.adb: Likewise.
9788 * a-numaux-darwin.ads: Likewise.
9789 * a-numaux-libc-x86.ads: Likewise.
9790 * a-numaux-vxworks.ads: Likewise.
9791 * a-numaux-x86.adb: Likewise.
9792 * a-numaux-x86.ads: Likewise.
9793 * a-numaux.ads: Likewise.
9794 * a-rbtgso.adb: Likewise.
9795 * a-rbtgso.ads: Likewise.
9796 * a-reatim.ads: Likewise.
9797 * a-retide.adb: Likewise.
9798 * a-retide.ads: Likewise.
9799 * a-rttiev.adb: Likewise.
9800 * a-rttiev.ads: Likewise.
9801 * a-secain.adb: Likewise.
9802 * a-secain.ads: Likewise.
9803 * a-sequio.adb: Likewise.
9804 * a-sequio.ads: Likewise.
9805 * a-shcain.adb: Likewise.
9806 * a-shcain.ads: Likewise.
9807 * a-siocst.adb: Likewise.
9808 * a-siocst.ads: Likewise.
9809 * a-slcain.adb: Likewise.
9810 * a-slcain.ads: Likewise.
9811 * a-ssicst.adb: Likewise.
9812 * a-ssicst.ads: Likewise.
9813 * a-stboha.adb: Likewise.
9814 * a-stmaco.ads: Likewise.
9815 * a-storio.adb: Likewise.
9816 * a-strbou.adb: Likewise.
9817 * a-strbou.ads: Likewise.
9818 * a-stream.ads: Likewise.
9819 * a-strfix.adb: Likewise.
9820 * a-strhas.adb: Likewise.
9821 * a-strmap.adb: Likewise.
9822 * a-strmap.ads: Likewise.
9823 * a-strsea.adb: Likewise.
9824 * a-strsea.ads: Likewise.
9825 * a-strsup.adb: Likewise.
9826 * a-strsup.ads: Likewise.
9827 * a-strunb.adb: Likewise.
9828 * a-strunb.ads: Likewise.
9829 * a-ststio.adb: Likewise.
9830 * a-ststio.ads: Likewise.
9831 * a-stunau.adb: Likewise.
9832 * a-stunau.ads: Likewise.
9833 * a-stunha.adb: Likewise.
9834 * a-stwibo.adb: Likewise.
9835 * a-stwibo.ads: Likewise.
9836 * a-stwifi.adb: Likewise.
9837 * a-stwiha.adb: Likewise.
9838 * a-stwima.adb: Likewise.
9839 * a-stwima.ads: Likewise.
9840 * a-stwise.adb: Likewise.
9841 * a-stwise.ads: Likewise.
9842 * a-stwisu.adb: Likewise.
9843 * a-stwisu.ads: Likewise.
9844 * a-stwiun.adb: Likewise.
9845 * a-stwiun.ads: Likewise.
9846 * a-stzbou.adb: Likewise.
9847 * a-stzbou.ads: Likewise.
9848 * a-stzfix.adb: Likewise.
9849 * a-stzhas.adb: Likewise.
9850 * a-stzmap.adb: Likewise.
9851 * a-stzmap.ads: Likewise.
9852 * a-stzsea.adb: Likewise.
9853 * a-stzsea.ads: Likewise.
9854 * a-stzsup.adb: Likewise.
9855 * a-stzsup.ads: Likewise.
9856 * a-stzunb.adb: Likewise.
9857 * a-stzunb.ads: Likewise.
9858 * a-suteio.adb: Likewise.
9859 * a-suteio.ads: Likewise.
9860 * a-swbwha.adb: Likewise.
9861 * a-swmwco.ads: Likewise.
9862 * a-swunau.adb: Likewise.
9863 * a-swunau.ads: Likewise.
9864 * a-swuwha.adb: Likewise.
9865 * a-swuwti.adb: Likewise.
9866 * a-swuwti.ads: Likewise.
9867 * a-sytaco.adb: Likewise.
9868 * a-sytaco.ads: Likewise.
9869 * a-szbzha.adb: Likewise.
9870 * a-szmzco.ads: Likewise.
9871 * a-szunau.adb: Likewise.
9872 * a-szunau.ads: Likewise.
9873 * a-szuzha.adb: Likewise.
9874 * a-szuzti.adb: Likewise.
9875 * a-szuzti.ads: Likewise.
9876 * a-tags.adb: Likewise.
9877 * a-tags.ads: Likewise.
9878 * a-tasatt.ads: Likewise.
9879 * a-taside.adb: Likewise.
9880 * a-taside.ads: Likewise.
9881 * a-taster.adb: Likewise.
9882 * a-teioed.adb: Likewise.
9883 * a-teioed.ads: Likewise.
9884 * a-textio.adb: Likewise.
9885 * a-textio.ads: Likewise.
9886 * a-tiboio.adb: Likewise.
9887 * a-ticoau.adb: Likewise.
9888 * a-ticoau.ads: Likewise.
9889 * a-ticoio.adb: Likewise.
9890 * a-ticoio.ads: Likewise.
9891 * a-tideau.adb: Likewise.
9892 * a-tideau.ads: Likewise.
9893 * a-tideio.adb: Likewise.
9894 * a-tideio.ads: Likewise.
9895 * a-tienau.adb: Likewise.
9896 * a-tienau.ads: Likewise.
9897 * a-tienio.adb: Likewise.
9898 * a-tienio.ads: Likewise.
9899 * a-tifiio.adb: Likewise.
9900 * a-tifiio.ads: Likewise.
9901 * a-tiflau.adb: Likewise.
9902 * a-tiflau.ads: Likewise.
9903 * a-tiflio.adb: Likewise.
9904 * a-tiflio.ads: Likewise.
9905 * a-tigeau.adb: Likewise.
9906 * a-tigeau.ads: Likewise.
9907 * a-tiinau.adb: Likewise.
9908 * a-tiinau.ads: Likewise.
9909 * a-tiinio.adb: Likewise.
9910 * a-tiinio.ads: Likewise.
9911 * a-timoau.adb: Likewise.
9912 * a-timoau.ads: Likewise.
9913 * a-timoio.adb: Likewise.
9914 * a-timoio.ads: Likewise.
9915 * a-tiocst.adb: Likewise.
9916 * a-tiocst.ads: Likewise.
9917 * a-titest.adb: Likewise.
9918 * a-wichun.adb: Likewise.
9919 * a-wichun.ads: Likewise.
9920 * a-witeio.adb: Likewise.
9921 * a-witeio.ads: Likewise.
9922 * a-wtcoau.adb: Likewise.
9923 * a-wtcoau.ads: Likewise.
9924 * a-wtcoio.adb: Likewise.
9925 * a-wtcstr.adb: Likewise.
9926 * a-wtcstr.ads: Likewise.
9927 * a-wtdeau.adb: Likewise.
9928 * a-wtdeau.ads: Likewise.
9929 * a-wtdeio.adb: Likewise.
9930 * a-wtdeio.ads: Likewise.
9931 * a-wtedit.adb: Likewise.
9932 * a-wtedit.ads: Likewise.
9933 * a-wtenau.adb: Likewise.
9934 * a-wtenau.ads: Likewise.
9935 * a-wtenio.adb: Likewise.
9936 * a-wtenio.ads: Likewise.
9937 * a-wtfiio.adb: Likewise.
9938 * a-wtfiio.ads: Likewise.
9939 * a-wtflau.adb: Likewise.
9940 * a-wtflau.ads: Likewise.
9941 * a-wtflio.adb: Likewise.
9942 * a-wtflio.ads: Likewise.
9943 * a-wtgeau.adb: Likewise.
9944 * a-wtgeau.ads: Likewise.
9945 * a-wtinau.adb: Likewise.
9946 * a-wtinau.ads: Likewise.
9947 * a-wtinio.adb: Likewise.
9948 * a-wtmoau.adb: Likewise.
9949 * a-wtmoau.ads: Likewise.
9950 * a-wtmoio.adb: Likewise.
9951 * a-wtmoio.ads: Likewise.
9952 * a-wttest.adb: Likewise.
9953 * a-wwboio.adb: Likewise.
9954 * a-zchuni.adb: Likewise.
9955 * a-zchuni.ads: Likewise.
9956 * a-ztcoau.adb: Likewise.
9957 * a-ztcoau.ads: Likewise.
9958 * a-ztcoio.adb: Likewise.
9959 * a-ztcstr.adb: Likewise.
9960 * a-ztcstr.ads: Likewise.
9961 * a-ztdeau.adb: Likewise.
9962 * a-ztdeau.ads: Likewise.
9963 * a-ztdeio.adb: Likewise.
9964 * a-ztdeio.ads: Likewise.
9965 * a-ztedit.adb: Likewise.
9966 * a-ztedit.ads: Likewise.
9967 * a-ztenau.adb: Likewise.
9968 * a-ztenau.ads: Likewise.
9969 * a-ztenio.adb: Likewise.
9970 * a-ztenio.ads: Likewise.
9971 * a-ztexio.adb: Likewise.
9972 * a-ztexio.ads: Likewise.
9973 * a-ztfiio.adb: Likewise.
9974 * a-ztfiio.ads: Likewise.
9975 * a-ztflau.adb: Likewise.
9976 * a-ztflau.ads: Likewise.
9977 * a-ztflio.adb: Likewise.
9978 * a-ztflio.ads: Likewise.
9979 * a-ztgeau.adb: Likewise.
9980 * a-ztgeau.ads: Likewise.
9981 * a-ztinau.adb: Likewise.
9982 * a-ztinau.ads: Likewise.
9983 * a-ztinio.adb: Likewise.
9984 * a-ztmoau.adb: Likewise.
9985 * a-ztmoau.ads: Likewise.
9986 * a-ztmoio.adb: Likewise.
9987 * a-ztmoio.ads: Likewise.
9988 * a-zttest.adb: Likewise.
9989 * a-zzboio.adb: Likewise.
9990 * adadecode.c: Likewise.
9991 * adaint.c: Likewise.
9992 * adaint.h: Likewise.
9993 * alloc.ads: Likewise.
9995 * arit64.c: Likewise.
9996 * atree.adb: Likewise.
9997 * atree.ads: Likewise.
9998 * aux-io.c: Likewise.
10000 * casing.adb: Likewise.
10001 * casing.ads: Likewise.
10003 * csets.adb: Likewise.
10004 * csets.ads: Likewise.
10005 * cstreams.c: Likewise.
10006 * ctrl_c.c: Likewise.
10007 * debug.adb: Likewise.
10008 * debug.ads: Likewise.
10009 * dec.ads: Likewise.
10010 * einfo.adb: Likewise.
10011 * einfo.ads: Likewise.
10012 * elists.adb: Likewise.
10013 * elists.ads: Likewise.
10016 * errno.c: Likewise.
10017 * exit.c: Likewise.
10019 * final.c: Likewise.
10020 * fname.adb: Likewise.
10021 * fname.ads: Likewise.
10022 * g-allein.ads: Likewise.
10023 * g-alleve.adb: Likewise.
10024 * g-alleve.ads: Likewise.
10025 * g-altcon.adb: Likewise.
10026 * g-altcon.ads: Likewise.
10027 * g-altive.ads: Likewise.
10028 * g-alveop.adb: Likewise.
10029 * g-alveop.ads: Likewise.
10030 * g-alvety.ads: Likewise.
10031 * g-alvevi.ads: Likewise.
10032 * g-arrspl.adb: Likewise.
10033 * g-arrspl.ads: Likewise.
10034 * g-calend.ads: Likewise.
10035 * g-comlin.adb: Likewise.
10036 * g-debpoo.adb: Likewise.
10037 * g-debpoo.ads: Likewise.
10038 * g-eacodu-vms.adb: Likewise.
10039 * g-eacodu.adb: Likewise.
10040 * g-excact.adb: Likewise.
10041 * g-excact.ads: Likewise.
10042 * g-locfil.adb: Likewise.
10043 * g-os_lib.ads: Likewise.
10044 * g-rannum.adb: Likewise.
10045 * g-rannum.ads: Likewise.
10046 * g-regist.adb: Likewise.
10047 * g-regist.ads: Likewise.
10048 * g-signal.adb: Likewise.
10049 * g-signal.ads: Likewise.
10050 * g-soccon.ads: Likewise.
10051 * g-string.adb: Likewise.
10052 * g-string.ads: Likewise.
10053 * g-strspl.ads: Likewise.
10054 * g-timsta.adb: Likewise.
10055 * g-timsta.ads: Likewise.
10056 * g-trasym-vms-alpha.adb: Likewise.
10057 * g-trasym-vms-ia64.adb: Likewise.
10058 * g-utf_32.adb: Likewise.
10059 * g-utf_32.ads: Likewise.
10060 * g-wistsp.ads: Likewise.
10061 * g-zstspl.ads: Likewise.
10062 * gmem.c: Likewise.
10063 * gnatvsn.adb: Likewise.
10064 * gnatvsn.ads: Likewise.
10065 * gsocket.h: Likewise.
10066 * hostparm.ads: Likewise.
10067 * i-c.adb: Likewise.
10068 * i-cexten.ads: Likewise.
10069 * i-cobol.adb: Likewise.
10070 * i-cobol.ads: Likewise.
10071 * i-cpoint.adb: Likewise.
10072 * i-cpoint.ads: Likewise.
10073 * i-cpp.adb: Likewise.
10074 * i-cpp.ads: Likewise.
10075 * i-cstrea-vms.adb: Likewise.
10076 * i-cstrea.adb: Likewise.
10077 * i-cstrea.ads: Likewise.
10078 * i-cstrin.adb: Likewise.
10079 * i-cstrin.ads: Likewise.
10080 * i-forbla-darwin.adb: Likewise.
10081 * i-forbla-unimplemented.ads: Likewise.
10082 * i-forbla.adb: Likewise.
10083 * i-forbla.ads: Likewise.
10084 * i-forlap.ads: Likewise.
10085 * i-fortra.adb: Likewise.
10086 * i-pacdec.adb: Likewise.
10087 * i-pacdec.ads: Likewise.
10088 * i-vxwoio.adb: Likewise.
10089 * i-vxwoio.ads: Likewise.
10090 * indepsw-aix.adb: Likewise.
10091 * indepsw-gnu.adb: Likewise.
10092 * indepsw-mingw.adb: Likewise.
10093 * indepsw.adb: Likewise.
10094 * indepsw.ads: Likewise.
10095 * init.c: Likewise.
10096 * initialize.c: Likewise.
10097 * interfac.ads: Likewise.
10098 * krunch.adb: Likewise.
10099 * krunch.ads: Likewise.
10100 * lib-list.adb: Likewise.
10101 * lib-sort.adb: Likewise.
10102 * lib.adb: Likewise.
10103 * lib.ads: Likewise.
10104 * link.c: Likewise.
10105 * math_lib.adb: Likewise.
10106 * memtrack.adb: Likewise.
10107 * mingw32.h: Likewise.
10108 * mkdir.c: Likewise.
10109 * namet-sp.adb: Likewise.
10110 * namet-sp.ads: Likewise.
10111 * namet.adb: Likewise.
10112 * namet.ads: Likewise.
10113 * nlists.adb: Likewise.
10114 * nlists.ads: Likewise.
10115 * opt.adb: Likewise.
10116 * opt.ads: Likewise.
10117 * output.adb: Likewise.
10118 * output.ads: Likewise.
10119 * raise-gcc.c: Likewise.
10120 * raise.c: Likewise.
10121 * raise.h: Likewise.
10122 * repinfo.adb: Likewise.
10123 * repinfo.ads: Likewise.
10124 * repinfo.h: Likewise.
10125 * rident.ads: Likewise.
10126 * s-addima.adb: Likewise.
10127 * s-addima.ads: Likewise.
10128 * s-addope.adb: Likewise.
10129 * s-addope.ads: Likewise.
10130 * s-arit64.adb: Likewise.
10131 * s-arit64.ads: Likewise.
10132 * s-assert.adb: Likewise.
10133 * s-assert.ads: Likewise.
10134 * s-asthan-vms-alpha.adb: Likewise.
10135 * s-asthan.adb: Likewise.
10136 * s-asthan.ads: Likewise.
10137 * s-atacco.adb: Likewise.
10138 * s-atacco.ads: Likewise.
10139 * s-auxdec-empty.adb: Likewise.
10140 * s-auxdec-empty.ads: Likewise.
10141 * s-auxdec-vms_64.ads: Likewise.
10142 * s-auxdec.adb: Likewise.
10143 * s-auxdec.ads: Likewise.
10144 * s-bitops.adb: Likewise.
10145 * s-bitops.ads: Likewise.
10146 * s-boarop.ads: Likewise.
10147 * s-carsi8.adb: Likewise.
10148 * s-carsi8.ads: Likewise.
10149 * s-carun8.adb: Likewise.
10150 * s-carun8.ads: Likewise.
10151 * s-casi16.adb: Likewise.
10152 * s-casi16.ads: Likewise.
10153 * s-casi32.adb: Likewise.
10154 * s-casi32.ads: Likewise.
10155 * s-casi64.adb: Likewise.
10156 * s-casi64.ads: Likewise.
10157 * s-casuti.ads: Likewise.
10158 * s-caun16.adb: Likewise.
10159 * s-caun16.ads: Likewise.
10160 * s-caun32.adb: Likewise.
10161 * s-caun32.ads: Likewise.
10162 * s-caun64.adb: Likewise.
10163 * s-caun64.ads: Likewise.
10164 * s-chepoo.ads: Likewise.
10165 * s-crc32.adb: Likewise.
10166 * s-crc32.ads: Likewise.
10167 * s-crtl.ads: Likewise.
10168 * s-direio.adb: Likewise.
10169 * s-direio.ads: Likewise.
10170 * s-dsaser.ads: Likewise.
10171 * s-except.adb: Likewise.
10172 * s-except.ads: Likewise.
10173 * s-exctab.adb: Likewise.
10174 * s-exctab.ads: Likewise.
10175 * s-exnint.adb: Likewise.
10176 * s-exnint.ads: Likewise.
10177 * s-exnllf.adb: Likewise.
10178 * s-exnllf.ads: Likewise.
10179 * s-exnlli.adb: Likewise.
10180 * s-exnlli.ads: Likewise.
10181 * s-expint.adb: Likewise.
10182 * s-expint.ads: Likewise.
10183 * s-explli.adb: Likewise.
10184 * s-explli.ads: Likewise.
10185 * s-expllu.adb: Likewise.
10186 * s-expllu.ads: Likewise.
10187 * s-expmod.adb: Likewise.
10188 * s-expmod.ads: Likewise.
10189 * s-expuns.adb: Likewise.
10190 * s-expuns.ads: Likewise.
10191 * s-fatflt.ads: Likewise.
10192 * s-fatgen.adb: Likewise.
10193 * s-fatgen.ads: Likewise.
10194 * s-fatlfl.ads: Likewise.
10195 * s-fatllf.ads: Likewise.
10196 * s-fatsfl.ads: Likewise.
10197 * s-ficobl.ads: Likewise.
10198 * s-fileio.adb: Likewise.
10199 * s-fileio.ads: Likewise.
10200 * s-filofl.ads: Likewise.
10201 * s-finimp.adb: Likewise.
10202 * s-finimp.ads: Likewise.
10203 * s-finroo.adb: Likewise.
10204 * s-finroo.ads: Likewise.
10205 * s-fishfl.ads: Likewise.
10206 * s-fore.adb: Likewise.
10207 * s-fore.ads: Likewise.
10208 * s-fvadfl.ads: Likewise.
10209 * s-fvaffl.ads: Likewise.
10210 * s-fvagfl.ads: Likewise.
10211 * s-gearop.adb: Likewise.
10212 * s-gearop.ads: Likewise.
10213 * s-gecobl.adb: Likewise.
10214 * s-gecobl.ads: Likewise.
10215 * s-gecola.adb: Likewise.
10216 * s-gecola.ads: Likewise.
10217 * s-gerebl.adb: Likewise.
10218 * s-gerebl.ads: Likewise.
10219 * s-gerela.adb: Likewise.
10220 * s-gerela.ads: Likewise.
10221 * s-geveop.adb: Likewise.
10222 * s-geveop.ads: Likewise.
10223 * s-gloloc.adb: Likewise.
10224 * s-gloloc.ads: Likewise.
10225 * s-hibaen.ads: Likewise.
10226 * s-imenne.adb: Likewise.
10227 * s-imenne.ads: Likewise.
10228 * s-imgbiu.adb: Likewise.
10229 * s-imgbiu.ads: Likewise.
10230 * s-imgboo.adb: Likewise.
10231 * s-imgboo.ads: Likewise.
10232 * s-imgcha.adb: Likewise.
10233 * s-imgcha.ads: Likewise.
10234 * s-imgdec.adb: Likewise.
10235 * s-imgdec.ads: Likewise.
10236 * s-imgenu.adb: Likewise.
10237 * s-imgenu.ads: Likewise.
10238 * s-imgint.adb: Likewise.
10239 * s-imgint.ads: Likewise.
10240 * s-imgllb.adb: Likewise.
10241 * s-imgllb.ads: Likewise.
10242 * s-imglld.adb: Likewise.
10243 * s-imglld.ads: Likewise.
10244 * s-imglli.adb: Likewise.
10245 * s-imglli.ads: Likewise.
10246 * s-imgllu.adb: Likewise.
10247 * s-imgllu.ads: Likewise.
10248 * s-imgllw.adb: Likewise.
10249 * s-imgllw.ads: Likewise.
10250 * s-imgrea.adb: Likewise.
10251 * s-imgrea.ads: Likewise.
10252 * s-imguns.adb: Likewise.
10253 * s-imguns.ads: Likewise.
10254 * s-imgwch.adb: Likewise.
10255 * s-imgwch.ads: Likewise.
10256 * s-imgwiu.adb: Likewise.
10257 * s-imgwiu.ads: Likewise.
10258 * s-inmaop-dummy.adb: Likewise.
10259 * s-inmaop-vms.adb: Likewise.
10260 * s-inmaop.ads: Likewise.
10261 * s-interr-hwint.adb: Likewise.
10262 * s-interr-sigaction.adb: Likewise.
10263 * s-interr-vms.adb: Likewise.
10264 * s-interr.adb: Likewise.
10265 * s-interr.ads: Likewise.
10266 * s-intman-dummy.adb: Likewise.
10267 * s-intman-mingw.adb: Likewise.
10268 * s-intman-posix.adb: Likewise.
10269 * s-intman-solaris.adb: Likewise.
10270 * s-intman-vms.adb: Likewise.
10271 * s-intman-vms.ads: Likewise.
10272 * s-intman-vxworks.adb: Likewise.
10273 * s-intman-vxworks.ads: Likewise.
10274 * s-intman.ads: Likewise.
10275 * s-io.adb: Likewise.
10276 * s-io.ads: Likewise.
10277 * s-linux-alpha.ads: Likewise.
10278 * s-linux-hppa.ads: Likewise.
10279 * s-linux.ads: Likewise.
10280 * s-maccod.ads: Likewise.
10281 * s-mantis.adb: Likewise.
10282 * s-mantis.ads: Likewise.
10283 * s-mastop-irix.adb: Likewise.
10284 * s-mastop.adb: Likewise.
10285 * s-mastop.ads: Likewise.
10286 * s-memcop.ads: Likewise.
10287 * s-memory-mingw.adb: Likewise.
10288 * s-memory.adb: Likewise.
10289 * s-memory.ads: Likewise.
10290 * s-os_lib.ads: Likewise.
10291 * s-oscons-tmplt.c: Likewise.
10292 * s-osinte-aix.adb: Likewise.
10293 * s-osinte-darwin.adb: Likewise.
10294 * s-osinte-freebsd.adb: Likewise.
10295 * s-osinte-irix.adb: Likewise.
10296 * s-osinte-lynxos-3.adb: Likewise.
10297 * s-osinte-rtems.ads: Likewise.
10298 * s-osinte-tru64.adb: Likewise.
10299 * s-osinte-vxworks-kernel.adb: Likewise.
10300 * s-osinte-vxworks.adb: Likewise.
10301 * s-osprim-mingw.adb: Likewise.
10302 * s-osprim-posix.adb: Likewise.
10303 * s-osprim-solaris.adb: Likewise.
10304 * s-osprim-unix.adb: Likewise.
10305 * s-osprim-vms.adb: Likewise.
10306 * s-osprim-vms.ads: Likewise.
10307 * s-osprim-vxworks.adb: Likewise.
10308 * s-osprim.ads: Likewise.
10309 * s-pack03.adb: Likewise.
10310 * s-pack03.ads: Likewise.
10311 * s-pack05.adb: Likewise.
10312 * s-pack05.ads: Likewise.
10313 * s-pack06.adb: Likewise.
10314 * s-pack06.ads: Likewise.
10315 * s-pack07.adb: Likewise.
10316 * s-pack07.ads: Likewise.
10317 * s-pack09.adb: Likewise.
10318 * s-pack09.ads: Likewise.
10319 * s-pack10.adb: Likewise.
10320 * s-pack10.ads: Likewise.
10321 * s-pack11.adb: Likewise.
10322 * s-pack11.ads: Likewise.
10323 * s-pack12.adb: Likewise.
10324 * s-pack12.ads: Likewise.
10325 * s-pack13.adb: Likewise.
10326 * s-pack13.ads: Likewise.
10327 * s-pack14.adb: Likewise.
10328 * s-pack14.ads: Likewise.
10329 * s-pack15.adb: Likewise.
10330 * s-pack15.ads: Likewise.
10331 * s-pack17.adb: Likewise.
10332 * s-pack17.ads: Likewise.
10333 * s-pack18.adb: Likewise.
10334 * s-pack18.ads: Likewise.
10335 * s-pack19.adb: Likewise.
10336 * s-pack19.ads: Likewise.
10337 * s-pack20.adb: Likewise.
10338 * s-pack20.ads: Likewise.
10339 * s-pack21.adb: Likewise.
10340 * s-pack21.ads: Likewise.
10341 * s-pack22.adb: Likewise.
10342 * s-pack22.ads: Likewise.
10343 * s-pack23.adb: Likewise.
10344 * s-pack23.ads: Likewise.
10345 * s-pack24.adb: Likewise.
10346 * s-pack24.ads: Likewise.
10347 * s-pack25.adb: Likewise.
10348 * s-pack25.ads: Likewise.
10349 * s-pack26.adb: Likewise.
10350 * s-pack26.ads: Likewise.
10351 * s-pack27.adb: Likewise.
10352 * s-pack27.ads: Likewise.
10353 * s-pack28.adb: Likewise.
10354 * s-pack28.ads: Likewise.
10355 * s-pack29.adb: Likewise.
10356 * s-pack29.ads: Likewise.
10357 * s-pack30.adb: Likewise.
10358 * s-pack30.ads: Likewise.
10359 * s-pack31.adb: Likewise.
10360 * s-pack31.ads: Likewise.
10361 * s-pack33.adb: Likewise.
10362 * s-pack33.ads: Likewise.
10363 * s-pack34.adb: Likewise.
10364 * s-pack34.ads: Likewise.
10365 * s-pack35.adb: Likewise.
10366 * s-pack35.ads: Likewise.
10367 * s-pack36.adb: Likewise.
10368 * s-pack36.ads: Likewise.
10369 * s-pack37.adb: Likewise.
10370 * s-pack37.ads: Likewise.
10371 * s-pack38.adb: Likewise.
10372 * s-pack38.ads: Likewise.
10373 * s-pack39.adb: Likewise.
10374 * s-pack39.ads: Likewise.
10375 * s-pack40.adb: Likewise.
10376 * s-pack40.ads: Likewise.
10377 * s-pack41.adb: Likewise.
10378 * s-pack41.ads: Likewise.
10379 * s-pack42.adb: Likewise.
10380 * s-pack42.ads: Likewise.
10381 * s-pack43.adb: Likewise.
10382 * s-pack43.ads: Likewise.
10383 * s-pack44.adb: Likewise.
10384 * s-pack44.ads: Likewise.
10385 * s-pack45.adb: Likewise.
10386 * s-pack45.ads: Likewise.
10387 * s-pack46.adb: Likewise.
10388 * s-pack46.ads: Likewise.
10389 * s-pack47.adb: Likewise.
10390 * s-pack47.ads: Likewise.
10391 * s-pack48.adb: Likewise.
10392 * s-pack48.ads: Likewise.
10393 * s-pack49.adb: Likewise.
10394 * s-pack49.ads: Likewise.
10395 * s-pack50.adb: Likewise.
10396 * s-pack50.ads: Likewise.
10397 * s-pack51.adb: Likewise.
10398 * s-pack51.ads: Likewise.
10399 * s-pack52.adb: Likewise.
10400 * s-pack52.ads: Likewise.
10401 * s-pack53.adb: Likewise.
10402 * s-pack53.ads: Likewise.
10403 * s-pack54.adb: Likewise.
10404 * s-pack54.ads: Likewise.
10405 * s-pack55.adb: Likewise.
10406 * s-pack55.ads: Likewise.
10407 * s-pack56.adb: Likewise.
10408 * s-pack56.ads: Likewise.
10409 * s-pack57.adb: Likewise.
10410 * s-pack57.ads: Likewise.
10411 * s-pack58.adb: Likewise.
10412 * s-pack58.ads: Likewise.
10413 * s-pack59.adb: Likewise.
10414 * s-pack59.ads: Likewise.
10415 * s-pack60.adb: Likewise.
10416 * s-pack60.ads: Likewise.
10417 * s-pack61.adb: Likewise.
10418 * s-pack61.ads: Likewise.
10419 * s-pack62.adb: Likewise.
10420 * s-pack62.ads: Likewise.
10421 * s-pack63.adb: Likewise.
10422 * s-pack63.ads: Likewise.
10423 * s-parame-ae653.ads: Likewise.
10424 * s-parame-hpux.ads: Likewise.
10425 * s-parame-rtems.adb: Likewise.
10426 * s-parame-vms-alpha.ads: Likewise.
10427 * s-parame-vms-ia64.ads: Likewise.
10428 * s-parame-vms-restrict.ads: Likewise.
10429 * s-parame-vxworks.adb: Likewise.
10430 * s-parame-vxworks.ads: Likewise.
10431 * s-parame.adb: Likewise.
10432 * s-parame.ads: Likewise.
10433 * s-parint.adb: Likewise.
10434 * s-parint.ads: Likewise.
10435 * s-pooglo.adb: Likewise.
10436 * s-pooglo.ads: Likewise.
10437 * s-pooloc.adb: Likewise.
10438 * s-pooloc.ads: Likewise.
10439 * s-poosiz.adb: Likewise.
10440 * s-poosiz.ads: Likewise.
10441 * s-powtab.ads: Likewise.
10442 * s-proinf-irix-athread.adb: Likewise.
10443 * s-proinf-irix-athread.ads: Likewise.
10444 * s-proinf.adb: Likewise.
10445 * s-proinf.ads: Likewise.
10446 * s-purexc.ads: Likewise.
10447 * s-rannum.adb: Likewise.
10448 * s-rannum.ads: Likewise.
10449 * s-restri.adb: Likewise.
10450 * s-restri.ads: Likewise.
10451 * s-rident.ads: Likewise.
10452 * s-rpc.adb: Likewise.
10453 * s-rpc.ads: Likewise.
10454 * s-scaval.adb: Likewise.
10455 * s-scaval.ads: Likewise.
10456 * s-secsta.adb: Likewise.
10457 * s-secsta.ads: Likewise.
10458 * s-sequio.adb: Likewise.
10459 * s-sequio.ads: Likewise.
10460 * s-shasto.adb: Likewise.
10461 * s-shasto.ads: Likewise.
10462 * s-soflin.adb: Likewise.
10463 * s-soflin.ads: Likewise.
10464 * s-solita.adb: Likewise.
10465 * s-solita.ads: Likewise.
10466 * s-sopco3.adb: Likewise.
10467 * s-sopco3.ads: Likewise.
10468 * s-sopco4.adb: Likewise.
10469 * s-sopco4.ads: Likewise.
10470 * s-sopco5.adb: Likewise.
10471 * s-sopco5.ads: Likewise.
10472 * s-stache.adb: Likewise.
10473 * s-stache.ads: Likewise.
10474 * s-stalib.adb: Likewise.
10475 * s-stalib.ads: Likewise.
10476 * s-stausa.adb: Likewise.
10477 * s-stausa.ads: Likewise.
10478 * s-stchop-limit.ads: Likewise.
10479 * s-stchop-rtems.adb: Likewise.
10480 * s-stchop-vxworks.adb: Likewise.
10481 * s-stchop.adb: Likewise.
10482 * s-stchop.ads: Likewise.
10483 * s-stoele.adb: Likewise.
10484 * s-stoele.ads: Likewise.
10485 * s-stopoo.adb: Likewise.
10486 * s-stopoo.ads: Likewise.
10487 * s-stratt.adb: Likewise.
10488 * s-stratt.ads: Likewise.
10489 * s-strcom.adb: Likewise.
10490 * s-strcom.ads: Likewise.
10491 * s-string.adb: Likewise.
10492 * s-string.ads: Likewise.
10493 * s-strops.adb: Likewise.
10494 * s-strops.ads: Likewise.
10495 * s-strxdr.adb: Likewise.
10496 * s-ststop.adb: Likewise.
10497 * s-ststop.ads: Likewise.
10498 * s-taasde.adb: Likewise.
10499 * s-taasde.ads: Likewise.
10500 * s-tadeca.adb: Likewise.
10501 * s-tadeca.ads: Likewise.
10502 * s-tadert.adb: Likewise.
10503 * s-tadert.ads: Likewise.
10504 * s-taenca.adb: Likewise.
10505 * s-taenca.ads: Likewise.
10506 * s-taprob.ads: Likewise.
10507 * s-taprop-dummy.adb: Likewise.
10508 * s-taprop-hpux-dce.adb: Likewise.
10509 * s-taprop-irix.adb: Likewise.
10510 * s-taprop-linux.adb: Likewise.
10511 * s-taprop-lynxos.adb: Likewise.
10512 * s-taprop-mingw.adb: Likewise.
10513 * s-taprop-posix.adb: Likewise.
10514 * s-taprop-solaris.adb: Likewise.
10515 * s-taprop-tru64.adb: Likewise.
10516 * s-taprop-vms.adb: Likewise.
10517 * s-taprop-vxworks.adb: Likewise.
10518 * s-taprop.ads: Likewise.
10519 * s-tarest.adb: Likewise.
10520 * s-tarest.ads: Likewise.
10521 * s-tasdeb.adb: Likewise.
10522 * s-tasdeb.ads: Likewise.
10523 * s-tasinf-irix.ads: Likewise.
10524 * s-tasinf-linux.adb: Likewise.
10525 * s-tasinf-linux.ads: Likewise.
10526 * s-tasinf-mingw.adb: Likewise.
10527 * s-tasinf-mingw.ads: Likewise.
10528 * s-tasinf-solaris.adb: Likewise.
10529 * s-tasinf-solaris.ads: Likewise.
10530 * s-tasinf-tru64.ads: Likewise.
10531 * s-tasinf.adb: Likewise.
10532 * s-tasinf.ads: Likewise.
10533 * s-tasini.adb: Likewise.
10534 * s-tasini.ads: Likewise.
10535 * s-taskin.adb: Likewise.
10536 * s-taskin.ads: Likewise.
10537 * s-taspri-dummy.ads: Likewise.
10538 * s-taspri-hpux-dce.ads: Likewise.
10539 * s-taspri-mingw.ads: Likewise.
10540 * s-taspri-solaris.ads: Likewise.
10541 * s-taspri-tru64.ads: Likewise.
10542 * s-taspri-vms.ads: Likewise.
10543 * s-taspri-vxworks.ads: Likewise.
10544 * s-tasque.adb: Likewise.
10545 * s-tasque.ads: Likewise.
10546 * s-tasren.adb: Likewise.
10547 * s-tasren.ads: Likewise.
10548 * s-tasres.ads: Likewise.
10549 * s-tassta.adb: Likewise.
10550 * s-tassta.ads: Likewise.
10551 * s-tasuti.adb: Likewise.
10552 * s-tasuti.ads: Likewise.
10553 * s-tfsetr-default.adb: Likewise.
10554 * s-tfsetr-vxworks.adb: Likewise.
10555 * s-tpinop.adb: Likewise.
10556 * s-tpinop.ads: Likewise.
10557 * s-tpoben.adb: Likewise.
10558 * s-tpoben.ads: Likewise.
10559 * s-tpobop.adb: Likewise.
10560 * s-tpobop.ads: Likewise.
10561 * s-tpopde-vms.adb: Likewise.
10562 * s-tpopde-vms.ads: Likewise.
10563 * s-tpopsp-lynxos.adb: Likewise.
10564 * s-tpopsp-posix-foreign.adb: Likewise.
10565 * s-tpopsp-posix.adb: Likewise.
10566 * s-tpopsp-solaris.adb: Likewise.
10567 * s-tpopsp-vxworks.adb: Likewise.
10568 * s-tporft.adb: Likewise.
10569 * s-tposen.adb: Likewise.
10570 * s-tposen.ads: Likewise.
10571 * s-traceb.adb: Likewise.
10572 * s-traceb.ads: Likewise.
10573 * s-traces-default.adb: Likewise.
10574 * s-traces.adb: Likewise.
10575 * s-traces.ads: Likewise.
10576 * s-traent-vms.adb: Likewise.
10577 * s-traent-vms.ads: Likewise.
10578 * s-traent.adb: Likewise.
10579 * s-traent.ads: Likewise.
10580 * s-trafor-default.adb: Likewise.
10581 * s-trafor-default.ads: Likewise.
10582 * s-tratas-default.adb: Likewise.
10583 * s-tratas.adb: Likewise.
10584 * s-tratas.ads: Likewise.
10585 * s-unstyp.ads: Likewise.
10586 * s-utf_32.adb: Likewise.
10587 * s-utf_32.ads: Likewise.
10588 * s-vaflop-vms-alpha.adb: Likewise.
10589 * s-vaflop.adb: Likewise.
10590 * s-vaflop.ads: Likewise.
10591 * s-valboo.adb: Likewise.
10592 * s-valboo.ads: Likewise.
10593 * s-valcha.adb: Likewise.
10594 * s-valcha.ads: Likewise.
10595 * s-valdec.adb: Likewise.
10596 * s-valdec.ads: Likewise.
10597 * s-valenu.adb: Likewise.
10598 * s-valenu.ads: Likewise.
10599 * s-valint.adb: Likewise.
10600 * s-valint.ads: Likewise.
10601 * s-vallld.adb: Likewise.
10602 * s-vallld.ads: Likewise.
10603 * s-vallli.adb: Likewise.
10604 * s-vallli.ads: Likewise.
10605 * s-valllu.adb: Likewise.
10606 * s-valllu.ads: Likewise.
10607 * s-valrea.adb: Likewise.
10608 * s-valrea.ads: Likewise.
10609 * s-valuns.adb: Likewise.
10610 * s-valuns.ads: Likewise.
10611 * s-valuti.adb: Likewise.
10612 * s-valuti.ads: Likewise.
10613 * s-valwch.adb: Likewise.
10614 * s-valwch.ads: Likewise.
10615 * s-veboop.adb: Likewise.
10616 * s-veboop.ads: Likewise.
10617 * s-vector.ads: Likewise.
10618 * s-vercon.adb: Likewise.
10619 * s-vercon.ads: Likewise.
10620 * s-vmexta.adb: Likewise.
10621 * s-vmexta.ads: Likewise.
10622 * s-vxwext-kernel.ads: Likewise.
10623 * s-vxwext-rtp.adb: Likewise.
10624 * s-vxwext-rtp.ads: Likewise.
10625 * s-vxwext.ads: Likewise.
10626 * s-vxwork-arm.ads: Likewise.
10627 * s-vxwork-m68k.ads: Likewise.
10628 * s-vxwork-mips.ads: Likewise.
10629 * s-vxwork-ppc.ads: Likewise.
10630 * s-vxwork-sparcv9.ads: Likewise.
10631 * s-vxwork-x86.ads: Likewise.
10632 * s-wchcnv.adb: Likewise.
10633 * s-wchcnv.ads: Likewise.
10634 * s-wchcon.adb: Likewise.
10635 * s-wchcon.ads: Likewise.
10636 * s-wchjis.adb: Likewise.
10637 * s-wchjis.ads: Likewise.
10638 * s-wchstw.adb: Likewise.
10639 * s-wchstw.ads: Likewise.
10640 * s-wchwts.adb: Likewise.
10641 * s-wchwts.ads: Likewise.
10642 * s-widboo.adb: Likewise.
10643 * s-widboo.ads: Likewise.
10644 * s-widcha.adb: Likewise.
10645 * s-widcha.ads: Likewise.
10646 * s-widenu.adb: Likewise.
10647 * s-widenu.ads: Likewise.
10648 * s-widlli.adb: Likewise.
10649 * s-widlli.ads: Likewise.
10650 * s-widllu.adb: Likewise.
10651 * s-widllu.ads: Likewise.
10652 * s-widwch.adb: Likewise.
10653 * s-widwch.ads: Likewise.
10654 * s-win32.ads: Likewise.
10655 * s-winext.ads: Likewise.
10656 * s-wwdcha.adb: Likewise.
10657 * s-wwdcha.ads: Likewise.
10658 * s-wwdenu.adb: Likewise.
10659 * s-wwdenu.ads: Likewise.
10660 * s-wwdwch.adb: Likewise.
10661 * s-wwdwch.ads: Likewise.
10662 * scans.adb: Likewise.
10663 * scans.ads: Likewise.
10664 * seh_init.c: Likewise.
10665 * sfn_scan.adb: Likewise.
10666 * sinfo.adb: Likewise.
10667 * sinfo.ads: Likewise.
10668 * sinput.adb: Likewise.
10669 * sinput.ads: Likewise.
10670 * snames.adb: Likewise.
10671 * snames.ads: Likewise.
10672 * socket.c: Likewise.
10673 * stand.adb: Likewise.
10674 * stand.ads: Likewise.
10675 * stringt.adb: Likewise.
10676 * stringt.ads: Likewise.
10677 * sysdep.c: Likewise.
10678 * system-aix.ads: Likewise.
10679 * system-darwin-ppc.ads: Likewise.
10680 * system-darwin-x86.ads: Likewise.
10681 * system-darwin-x86_64.ads: Likewise.
10682 * system-freebsd-x86.ads: Likewise.
10683 * system-hpux-ia64.ads: Likewise.
10684 * system-hpux.ads: Likewise.
10685 * system-irix-n32.ads: Likewise.
10686 * system-irix-n64.ads: Likewise.
10687 * system-irix-o32.ads: Likewise.
10688 * system-linux-alpha.ads: Likewise.
10689 * system-linux-hppa.ads: Likewise.
10690 * system-linux-ia64.ads: Likewise.
10691 * system-linux-mips.ads: Likewise.
10692 * system-linux-mipsel.ads: Likewise.
10693 * system-linux-ppc.ads: Likewise.
10694 * system-linux-ppc64.ads: Likewise.
10695 * system-linux-s390.ads: Likewise.
10696 * system-linux-s390x.ads: Likewise.
10697 * system-linux-sh4.ads: Likewise.
10698 * system-linux-sparc.ads: Likewise.
10699 * system-linux-sparcv9.ads: Likewise.
10700 * system-linux-x86.ads: Likewise.
10701 * system-linux-x86_64.ads: Likewise.
10702 * system-lynxos-ppc.ads: Likewise.
10703 * system-lynxos-x86.ads: Likewise.
10704 * system-mingw-x86_64.ads: Likewise.
10705 * system-mingw.ads: Likewise.
10706 * system-rtems.ads: Likewise.
10707 * system-solaris-sparc.ads: Likewise.
10708 * system-solaris-sparcv9.ads: Likewise.
10709 * system-solaris-x86.ads: Likewise.
10710 * system-solaris-x86_64.ads: Likewise.
10711 * system-tru64.ads: Likewise.
10712 * system-vms-ia64.ads: Likewise.
10713 * system-vms-zcx.ads: Likewise.
10714 * system-vms.ads: Likewise.
10715 * system-vms_64.ads: Likewise.
10716 * system-vxworks-arm.ads: Likewise.
10717 * system-vxworks-m68k.ads: Likewise.
10718 * system-vxworks-mips.ads: Likewise.
10719 * system-vxworks-ppc.ads: Likewise.
10720 * system-vxworks-sparcv9.ads: Likewise.
10721 * system-vxworks-x86.ads: Likewise.
10722 * system.ads: Likewise.
10723 * table.adb: Likewise.
10724 * table.ads: Likewise.
10725 * targext.c: Likewise.
10726 * targparm.ads: Likewise.
10727 * tree_in.adb: Likewise.
10728 * tree_in.ads: Likewise.
10729 * tree_io.adb: Likewise.
10730 * tree_io.ads: Likewise.
10731 * types.adb: Likewise.
10732 * types.ads: Likewise.
10733 * uintp.adb: Likewise.
10734 * uintp.ads: Likewise.
10735 * uname.adb: Likewise.
10736 * uname.ads: Likewise.
10737 * urealp.adb: Likewise.
10738 * urealp.ads: Likewise.
10739 * vx_stack_info.c: Likewise.
10740 * widechar.adb: Likewise.
10741 * widechar.ads: Likewise.
10742 * exp_attr.adb: Change copyright header to refer to version
10743 3 of the GNU General Public License and to point readers at the
10744 COPYING3 file and the FSF's license web page.
10745 * sem.adb: Likewise.
10746 * sem_attr.ads: Likewise.
10747 * freeze.adb: Likewise.
10748 * freeze.ads: Likewise.
10749 * errout.ads: Likewise.
10750 * erroutc.adb: Likewise.
10751 * exp_ch11.ads: Likewise.
10753 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10755 * config-lang.in: Change copyright header to refer to version
10756 3 of the GNU General Public License and to point readers at the
10757 COPYING3 file and the FSF's license web page.
10758 * gcc-interface/trans.c: Likewise.
10759 * gnathtml.pl: Likewise.
10760 * gcc-interface/ada.h: Likewise. Remove runtime exception.
10761 * gcc-interface/gigi.h: Likewise.
10762 * gcc-interface/misc.c: Likewise.
10763 * gcc-interface/targtyps.c: Likewise.
10765 2009-04-09 Nicolas Setton <setton@adacore.com>
10767 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
10769 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
10772 2009-04-09 Bob Duff <duff@adacore.com>
10774 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
10775 internally-generated nodes related to select statements to avoid
10776 confusing the debugger.
10778 2009-04-09 Pascal Obry <obry@adacore.com>
10780 * make.adb: Ensure that all linker arguments are duplicated.
10782 2009-04-09 Robert Dewar <dewar@adacore.com>
10784 * sem_ch5.adb: Minor reformatting
10786 2009-04-09 Vincent Celier <celier@adacore.com>
10789 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
10790 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
10791 New qualifier /LXDEBUG=nnn for -gnatDnnn
10795 Update documentation for VMS qualifiers equivalent to -gnatGnn and
10798 2009-04-09 Nicolas Setton <setton@adacore.com>
10800 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
10801 to match layout of siginfo_t in sys/signal.h.
10803 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
10805 2009-04-09 Thomas Quinot <quinot@adacore.com>
10807 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
10809 2009-04-09 Nicolas Setton <setton@adacore.com>
10811 * s-oscons-tmplt.c: Allow long lines in the generated spec.
10812 Add generation of Darwin-specific constants needed when binding to the
10815 2009-04-09 Robert Dewar <dewar@adacore.com>
10818 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
10819 when no invalid values exist, Avoid duplicate read of atomic variable.
10821 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
10822 (Standard_Unsigned): Set Is_Known_Valid
10824 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
10825 subtype declaration if no constraint.
10826 (Set_Modular_Size): Set Is_Known_Valid if appropriate
10827 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
10829 2009-04-09 Robert Dewar <dewar@adacore.com>
10831 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
10832 switch.ads: for numeric switches, an optional equal sign is always
10835 2009-04-09 Vincent Celier <celier@adacore.com>
10837 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
10838 the case of file names is not significant.
10840 2009-04-09 Vincent Celier <celier@adacore.com>
10842 * errout.adb: Remove dependency on package Style
10844 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
10847 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
10850 * errutil.adb, par.adb: Import Stylesw
10852 2009-04-09 Arnaud Charlet <charlet@adacore.com>
10854 * opt.ads: Fix typos.
10856 2009-04-09 Robert Dewar <dewar@adacore.com>
10858 * einfo.adb: Minor reformatting
10860 2009-04-09 Robert Dewar <dewar@adacore.com>
10862 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
10865 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
10867 2009-04-09 Robert Dewar <dewar@adacore.com>
10869 * g-comver.adb: Minor reformatting.
10871 2009-04-09 Thomas Quinot <quinot@adacore.com>
10873 * lib-load.ads (Load_Unit): Update documentation.
10875 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10877 * lib-load.adb (Load_Unit): When loading the parent of a child unit
10878 named in a with_clause, retain the with_clause to preserve a
10879 limited_with indication.
10881 2009-04-09 Robert Dewar <dewar@adacore.com>
10883 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
10884 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
10885 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
10886 possible to replace an OR of two separate tests.
10888 2009-04-09 Robert Dewar <dewar@adacore.com>
10890 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
10893 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
10894 warning status as well.
10896 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
10898 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
10901 * bindusg.adb, usage.adb: Update line for -gnatm switch
10903 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
10904 -mnn binder switch.
10906 2009-04-09 Robert Dewar <dewar@adacore.com>
10908 * sem_ch10.adb: Minor reformatting.
10910 2009-04-09 Bob Duff <duff@adacore.com>
10912 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
10913 Set Sloc of generated nodes for calls to Undefer_Aborts and
10914 Save_Occurrence to No_Location, so the debugger ignores them and
10915 therefore does not jump back and forth when single stepping.
10917 2009-04-09 Robert Dewar <dewar@adacore.com>
10919 * switch-b.adb: Minor reformatting.
10921 2009-04-09 Robert Dewar <dewar@adacore.com>
10923 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
10924 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
10925 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
10926 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
10927 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
10928 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
10929 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
10930 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
10931 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
10932 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
10933 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
10935 2009-04-09 Robert Dewar <dewar@adacore.com>
10937 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
10939 * atree.h: Add Elist26
10941 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
10944 2009-04-09 Javier Miranda <miranda@adacore.com>
10946 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
10947 retrieve from the Dispatch_Table_Wrappers list the external name.
10948 Addition of documentation.
10949 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
10950 used to export secondary dispatch tables (in the previous version of
10951 the frontend only primary dispatch tables were exported). Addition of
10953 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
10954 dispatch table of a given tagged type.
10955 (Make_Tags): Modified to import secondary dispatch tables.
10957 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
10958 (Constant_Redeclaration): Code cleanup.
10960 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
10961 Dispatch_Table_Wrappers. Update documentation.
10963 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
10964 Renamed to Dispatch_Table_Wrappers.
10966 * sem_util.adb (Collect_Interface_Components): Improve handling of
10969 * atree.ads (Elist26, Set_Elist26): New subprograms
10971 * atree.adb (Elist26, Set_Elist26): New subprograms
10973 2009-04-09 Javier Miranda <miranda@adacore.com>
10975 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
10976 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
10979 2009-04-09 Robert Dewar <dewar@adacore.com>
10981 * s-direio.adb: Minor reformatting
10983 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
10985 2009-04-09 Robert Dewar <dewar@adacore.com>
10987 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
10989 2009-04-09 Pascal Obry <obry@adacore.com>
10991 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
10992 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
10993 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
10994 a-filico.ads: Add some missing overriding keywords.
10996 2009-04-09 Pascal Obry <obry@adacore.com>
10998 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
10999 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
11000 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
11003 2009-04-09 Ed Schonberg <schonberg@adacore.com>
11005 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
11006 missing overriding indicator if the new declaration is not seen as
11009 2009-04-09 Thomas Quinot <quinot@adacore.com>
11011 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
11012 overflows in computation of bounds.
11014 2009-04-09 Pascal Obry <obry@adacore.com>
11016 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
11019 2009-04-09 Robert Dewar <dewar@adacore.com>
11021 * sem_attr.adb (Check_Stream_Attribute): Check violation of
11022 restriction No_Streams
11024 * gnat_rm.texi: Clarify No_Streams restriction
11026 * g-socket.adb: Minor reformatting.
11028 2009-04-09 Thomas Quinot <quinot@adacore.com>
11030 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
11032 2009-04-09 Geert Bosch <bosch@adacore.com>
11034 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
11035 (Set_Result): Likewise.
11036 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
11037 conversion, as required by RM 4.6(31).
11039 2009-04-08 Robert Dewar <dewar@adacore.com>
11041 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
11044 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
11047 2009-04-08 Robert Dewar <dewar@adacore.com>
11049 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
11050 No_Local_Allocators restriction preventing local instantiation.
11052 2009-04-08 Thomas Quinot <quinot@adacore.com>
11054 * sem_eval.adb: Minor comment fix
11056 2009-04-08 Thomas Quinot <quinot@adacore.com>
11058 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
11059 New limited controlled type used to automate the initialization and
11060 finalization of the sockets implementation.
11061 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
11063 2009-04-08 Vincent Celier <celier@adacore.com>
11065 * prj-attr.adb: New read-only project-level attribute Project_Dir
11067 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
11068 read-only attribute of the same name.
11069 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
11070 (Recursive_Process): Ditto
11072 * snames.adb: Add new standard name Project_Dir
11074 * snames.ads: Add new standard name Project_Dir
11076 2009-04-08 Thomas Quinot <quinot@adacore.com>
11078 * checks.adb: Minor reformatting
11080 2009-04-08 Vincent Celier <celier@adacore.com>
11082 * vms_data.ads: Add documentation for new style keyword
11083 OVERRIDING_INDICATORS
11085 2009-04-08 Robert Dewar <dewar@adacore.com>
11087 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
11088 spec is in the current unit.
11090 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11092 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
11093 presence of entity.
11095 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
11097 2009-04-08 Vincent Celier <celier@adacore.com>
11099 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
11101 2009-04-08 Thomas Quinot <quinot@adacore.com>
11103 * checks.ads: Minor reformatting
11105 2009-04-08 Robert Dewar <dewar@adacore.com>
11107 * gnat_rm.texi: Update documentation of pragma Obsolescent
11109 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
11110 be omitted, and allow Entity parameter to be omitted.
11112 2009-04-08 Thomas Quinot <quinot@adacore.com>
11114 * exp_util.adb: Minor comment fix
11116 2009-04-08 Robert Dewar <dewar@adacore.com>
11118 * g-socket.ads: Fix bad syntax in pragma Obsolescent
11120 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
11121 argument with no identifier following one that has an identifier. Was
11122 missed in some cases.
11124 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
11126 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
11128 * snames.adb: Add Name_Policy
11130 * snames.ads: Add Name_Policy
11132 2009-04-08 Robert Dewar <dewar@adacore.com>
11134 * gnat_rm.texi: Minor reformatting
11136 * par-ch2.adb: Minor reformatting
11138 2009-04-08 Robert Dewar <dewar@adacore.com>
11140 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
11142 2009-04-08 Robert Dewar <dewar@adacore.com>
11144 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
11145 properly in the presence of Remote_Types or Remote_Call_Interface.
11147 * sem_util.adb: Add comment.
11149 2009-04-08 Robert Dewar <dewar@adacore.com>
11151 * ug_words: Add /ASSUME_VALID for -gnatB
11153 * vms_data.ads: Add /ASSUME_VALID for -gnatB
11155 * sem_cat.adb: Add clarifying commment
11157 * a-direio.ads (Bytes): Make sure value is non-zero
11159 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11161 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
11162 that does not come from source, check for a rewritten function call in
11163 prefixed notation before other forms of rewriting.
11165 2009-04-08 Robert Dewar <dewar@adacore.com>
11167 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
11168 these are now obsolescent units used only for bootrapping with an
11171 2009-04-08 Robert Dewar <dewar@adacore.com>
11173 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
11175 * sem_ch3.adb: Minor comment updates
11177 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11179 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
11180 that come from source.
11182 2009-04-08 Tristan Gingold <gingold@adacore.com>
11184 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
11185 * gcc-interface/decl.c (prepend_attributes): New case
11186 Pragma_Thread_Local_Storage.
11187 * gcc-interface/utils.c (process_attributes): New case
11188 ATTR_THREAD_LOCAL_STORAGE.
11190 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11192 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
11193 by the back-end if it contains a call to a subprogram without a
11194 previous spec that is declared in the same unit.
11196 * errout.ads: Update comments on uses of dirs
11198 2009-04-08 Robert Dewar <dewar@adacore.com>
11200 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
11202 2009-04-08 Tristan Gingold <gingold@adacore.com>
11204 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
11206 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
11208 2009-04-08 Vincent Celier <celier@adacore.com>
11211 (Add_Source): Add the mapping of the unit name to source file name in
11212 the Unit_Sources_HT hash table, if the unit name is not null.
11214 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
11216 * prj.ads (Unit_Sources_Htable): New hash table instantiation
11217 (Project_Tree_Data): New component Unit_Sources_HT
11219 2009-04-08 Thomas Quinot <quinot@adacore.com>
11221 * sem_ch8.adb: Minor reformatting.
11222 Minor code reorganization.
11224 2009-04-08 Robert Dewar <dewar@adacore.com>
11226 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
11227 snames.ads, freeze.adb, par-prag.adb: Add implementation of
11228 pragma Thread_Local_Storage, setting new flag
11229 Has_Pragma_Thread_Local_Storage in corresponding entities.
11231 2009-04-08 Emmanuel Briot <briot@adacore.com>
11233 * prj.ads: Update comment on switches file
11235 * prj-nmsc.adb: Code clean up. Use renaming clauses.
11237 2009-04-08 Robert Dewar <dewar@adacore.com>
11239 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
11241 2009-04-08 Thomas Quinot <quinot@adacore.com>
11243 * ali-util.adb: Minor comment fix
11245 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11247 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
11248 appears in a context clause, and the enclosing package is mentioned in
11249 a limited_with_clause.
11250 (Use_One_Type): Reject clause if type is still incomplete.
11252 2009-04-08 Emmanuel Briot <briot@adacore.com>
11254 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
11255 avoid copies of Source_Data variables when possible, since these
11256 involve calls to memcpy() which are done too many times.
11258 2009-04-08 Robert Dewar <dewar@adacore.com>
11260 * exp_ch4.adb (Expand_Concatenate): Clean up code
11262 2009-04-07 Thomas Quinot <quinot@adacore.com>
11264 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
11265 type for the case of concatenating a constrained array indexed by an
11268 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11270 * sem_ch6.adb (Check_Conformance): when checking conformance of an
11271 operation that overrides an abstract operation inherited from an
11272 interface, return False if only one of the controlling formals is an
11275 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11277 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
11278 mandated by AI05-105.
11280 2009-04-07 Vincent Celier <celier@adacore.com>
11282 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
11284 2009-04-07 Thomas Quinot <quinot@adacore.com>
11286 * usage.adb: Minor fix in usage message.
11288 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
11289 match declaration; the correct subtype is Node_Id, not Entity_Id,
11290 because the expected node kind is an identifier, not a defining
11293 * switch-c.adb: Minor reformatting.
11295 * uintp.adb: Minor reformatting.
11297 2009-04-07 Robert Dewar <dewar@adacore.com>
11299 * exp_ch13.adb: Minor reformatting
11301 2009-04-07 Robert Dewar <dewar@adacore.com>
11303 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
11304 against missing parent.
11306 2009-04-07 Thomas Quinot <quinot@adacore.com>
11308 * xoscons.adb: Minor reformatting
11310 2009-04-07 Robert Dewar <dewar@adacore.com>
11312 * rtsfind.ads: Remove obsolete string concatenation entries
11314 2009-04-07 Robert Dewar <dewar@adacore.com>
11316 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
11318 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11320 * sem_ch10.adb (Check_Body_Required): Handle properly imported
11323 2009-04-07 Gary Dismukes <dismukes@adacore.com>
11325 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
11326 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
11327 is of a scalar or string type then suppress the setting of the
11328 expression to Empty.
11330 * freeze.adb (Warn_Overlay): Also emit the warnings about default
11331 initialization for the cases of scalar and string objects when
11332 Init_Or_Norm_Scalars is True.
11334 2009-04-07 Bob Duff <duff@adacore.com>
11336 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
11338 2009-04-07 Bob Duff <duff@adacore.com>
11340 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
11341 Form parameter of Text_Translation=No allows binary mode for Text_IO
11344 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
11346 2009-04-07 Javier Miranda <miranda@adacore.com>
11348 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
11349 processing the bounds for bit packed arrays or VM target machines.
11351 2009-04-07 Thomas Quinot <quinot@adacore.com>
11353 * g-sothco.ads (Int_Access): Remove extraneous access type (use
11354 anonymous access instead).
11355 (Get_Socket_From_Set): Fix incorrectly reverted formals
11356 Last and Socket to match the underlying C routine.
11358 * g-socket.adb, g-socket.ads
11359 (Get): Use named parameter associations instead of positional ones in
11360 call go Get_Socket_From_Set, since this routine has two formals of the
11362 (Image): New procedure.
11364 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11365 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
11366 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
11367 for type of Arg formal.
11369 * sem_warn.adb: Minor reformatting
11371 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11373 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
11374 over record components.
11376 2009-04-07 Nicolas Roche <roche@adacore.com>
11379 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
11380 has disappeared between VxWorks 6.4 and VxWorks 6.5
11381 In RTP mode use time.h instead of times.h
11383 2009-04-07 Robert Dewar <dewar@adacore.com>
11385 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
11387 2009-04-07 Kevin Pouget <pouget@adacore.com>
11389 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
11390 expanded code for constrained types.
11392 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11394 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
11395 AI05-105: in an object renaming declaration, anonymousness is a name
11398 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
11400 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11402 * g-comlin.adb (Expansion): Fix old regression: also return directory
11403 names when matching.
11405 2009-04-07 Robert Dewar <dewar@adacore.com>
11408 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
11409 (Expand_Concatenate): New name for Expand_Concatenate_String which has
11410 been rewritten to handle all types.
11411 (Expand_Concatenate_Other): Remove
11413 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11415 * lib-xref.adb (Generate_Reference): A default subprogram in an
11416 instance appears within the tree for the instance, but generates an
11417 implicit reference in the ALI.
11419 2009-04-07 Javier Miranda <miranda@adacore.com>
11421 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
11422 derived type that has discriminants, propagate the list of interfaces
11423 to the corresponding new base type. In addition, propagate also
11424 attribute Limited_Present (found working in this patch).
11426 2009-04-07 Robert Dewar <dewar@adacore.com>
11428 * exp_ch4.adb: Rewrite concatenation expansion.
11430 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11432 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
11433 relevant to packages.
11435 2009-04-07 Robert Dewar <dewar@adacore.com>
11437 * sem_attr.adb: Minor reformatting
11439 * sem_ch6.adb: Minor reformatting
11441 2009-04-07 Tristan Gingold <gingold@adacore.com>
11443 * socket.c: Add more protections against S_resolvLib_ macros.
11445 2009-04-07 Thomas Quinot <quinot@adacore.com>
11447 * sem_attr.adb: Minor reformatting
11449 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11451 * sem_ch6.adb (New_Overloaded_Entity): New predicate
11452 Is_Overriding_Alias to handle properly types that inherit two homonym
11453 operations that have distinct dispatch table entries.
11455 2009-04-07 Emmanuel Briot <briot@adacore.com>
11457 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
11458 looking for the end of a parenthesis group
11460 2009-04-07 Tristan Gingold <gingold@adacore.com>
11462 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
11464 * socket.c Don't use resolvLib_ macros if not defined.
11466 2009-04-07 Robert Dewar <dewar@adacore.com>
11468 * g-socket.adb: Minor reformatting.
11470 * g-socthi-mingw.adb: Minor reformatting
11472 * g-sothco.ads: Minor reformatting
11475 (Expand_Concatenate_String): Complete rewrite to generate efficient code
11476 inline instead of relying on external library routines.
11478 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
11479 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
11482 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11485 (Eval_Attribute): for attributes of array objects that are not strings,
11486 attributes are not static if nominal subtype of object is unconstrained.
11488 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11490 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
11491 operations for a type T in an instance do not override each other,
11492 when T is derived from a formal private type, the corresponding
11493 operations inherited by a type derived from T outside
11494 of the instance do not override each other either.
11496 2009-04-07 Robert Dewar <dewar@adacore.com>
11498 (Osint.Fail): Change calling sequence to have one string arg
11499 (Make.Make_Failed): Same change
11500 All callers are adjusted to use concatenation
11502 2009-04-07 Robert Dewar <dewar@adacore.com>
11504 * exp_ch4.adb: Fix documentation typo
11506 2009-04-07 Robert Dewar <dewar@adacore.com>
11508 * tbuild.ads: Minor reformatting
11510 2009-04-07 Javier Miranda <miranda@adacore.com>
11512 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
11513 when compiling under ZFP runtime.
11515 2009-04-07 Robert Dewar <dewar@adacore.com>
11517 * g-comlin.adb: Minor reformatting
11519 2009-04-07 Thomas Quinot <quinot@adacore.com>
11521 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11522 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
11523 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
11524 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
11526 2009-04-07 Robert Dewar <dewar@adacore.com>
11528 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
11530 * opt.ads (Sprint_Line_Limit): New parameter
11532 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
11534 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
11536 * usage.adb: Output information for -gnatGnn -gnatDnn
11538 2009-04-07 Robert Dewar <dewar@adacore.com>
11540 * make.adb: Minor reformatting
11542 2009-04-07 Robert Dewar <dewar@adacore.com>
11544 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
11546 2009-04-07 Robert Dewar <dewar@adacore.com>
11548 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
11550 2009-04-07 Robert Dewar <dewar@adacore.com>
11553 Remove Assume_Valid parameter from In_Subrange_Of calls
11556 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11557 (Is_In_Range): Remove incorrect use of Assume_Valid
11558 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
11561 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11562 (Is_In_Range): Documentation cleanup
11563 (Is_Out_Of_Range): Documentation cleanup
11566 Add documentation for Assume_No_Invalid_Values pragma
11568 * sem_ch12.adb: Minor reformatting
11570 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
11572 * sem_prag.adb: Improve error message.
11574 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
11575 LF/CR no longer recognized as line terminator
11577 * switch.ads: Minor documentation improvement
11579 * vms_data.ads: Minor reformatting
11581 2009-04-07 Robert Dewar <dewar@adacore.com>
11583 * checks.adb (Determine_Range): Add Assume_Valid parameter
11585 * checks.ads (Determine_Range): Add Assume_Valid parameter
11587 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
11588 Is_Null_Loop to suppress warnings in a loop body.
11591 (Rewrite_Comparison): Major rewrite to accomodate invalid values
11594 (Expand_N_Loop_Statement): Delete loop known not to execute
11597 (Assume_No_Invalid_Values): Now set to False, and as documented, this
11598 fully enables the proper handling of invalid values.
11601 New calling sequence for Is_In_Range
11604 (Analyze_Iteration_Scheme): Accomodate possible invalid values
11605 in determining if a loop range is null.
11608 (Is_In_Range): Add Assume_Valid parameter
11609 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11610 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
11611 also to do more accurate and complete range analysis, catching more
11615 (Is_In_Range): Add Assume_Valid parameter
11616 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11619 New calling sequence for Is_In_Range
11622 (Suppress_Loop_Warnings): New flag
11625 (Is_Null_Loop): Update documentation
11626 (Suppress_Loop_Warnings): New flag
11628 * gnat_ugn.texi: Document -gnatB switch
11630 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11632 * gnatvsn.ads: Bump version number.
11634 2009-04-07 Thomas Quinot <quinot@adacore.com>
11636 * exp_ch3.adb: Minor rewording (comments)
11638 2009-04-07 Robert Dewar <dewar@adacore.com>
11640 * exp_disp.adb: Minor reformatting
11642 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11644 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
11646 * gcc-interface/trans.c (lvalue_required_p): Likewise.
11648 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11650 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
11651 Do not convert the result. Remove obsolete comment.
11653 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11655 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
11657 (Subprogram_Body_to_gnu): Fix pasto.
11659 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11661 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
11662 (void_type_decl_node): Remove.
11663 (init_gigi_decls): Likewise.
11664 (gnat_install_builtins): Declare.
11665 (record_builtin_type): Likewise.
11666 (create_type_stub_decl): Likewise.
11667 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
11668 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
11670 <E_Array_Subtype>: Use the index types, not only their name, in the
11671 record giving the names of the bounds, if any.
11672 For a packed array type, make it artificial only if the base type
11673 was artificial as well. Remove redundant statement.
11674 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
11676 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
11677 (rest_of_type_decl_compilation_no_defer): Likewise.
11678 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
11679 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
11680 and use create_type_stub_decl to build it.
11681 (gnat_pushdecl): Rewrite condition.
11682 (gnat_install_builtins): Remove bogus declaration.
11683 (record_builtin_type): New function.
11684 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
11686 (create_type_stub_decl): New function.
11687 (create_type_decl): Assert that the type is not dummy. If the type
11688 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
11689 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
11690 (build_vms_descriptor): Likewise.
11691 (init_gigi_decls): Delete and move bulk of code to...
11692 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
11693 (emit_range_check): Add gnat_node parameter.
11694 (emit_index_check): Likewise.
11695 (emit_check): Likewise.
11696 (build_unary_op_trapv): Likewise.
11697 (build_binary_op_trapv): Likewise.
11698 (convert_with_check): Likewise.
11699 (Attribute_to_gnu): Adjust calls for above changes.
11700 (call_to_gnu): Likewise.
11701 (gnat_to_gnu): Likewise.
11702 (assoc_to_constructor): Likewise.
11703 (pos_to_constructor): Likewise.
11704 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
11705 (process_type): Do not create TYPE_DECL for dummy types.
11707 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11709 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
11710 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
11711 * gcc-interface/utils.c: Fix comments.
11713 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11715 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
11717 (gnat_to_gnu_type): Move around.
11718 (get_unpadded_type): Likewise.
11719 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
11722 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11724 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
11725 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
11726 (call_to_gnu): Invoke it instead of manually checking.
11728 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
11730 * gcc-interface/utils.c (finish_record_type): Force structural equality
11731 checks if the record type is discriminated.
11733 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
11735 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
11736 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
11737 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
11738 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
11739 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
11740 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
11741 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
11743 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
11745 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
11746 of TREE_CONSTANT_OVERFLOW.
11748 2009-03-30 Joseph Myers <joseph@codesourcery.com>
11750 PR rtl-optimization/323
11751 * gcc-interface/misc.c (gnat_post_options): Set
11752 flag_excess_precision_cmdline. Give an error for
11753 -fexcess-precision=standard for processors where the option is
11756 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11759 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
11762 2009-03-11 Olivier Hainque <hainque@adacore.com>
11764 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
11765 checks processing, remove unintended TREE_TYPE walk on index type.
11767 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
11770 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
11771 call make_packable_type on fat pointer types.
11772 <E_Array_Subtype>: Likewise.
11773 <E_Record_Subtype>: Call make_packable_type on all record types
11774 except for fat pointer types.
11775 (make_packable_type): Likewise.
11776 (gnat_to_gnu_field): Likewise.
11778 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
11780 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
11781 EH_MECHANISM change made on 2007-12-06.
11783 2009-02-26 Andreas Schwab <schwab@suse.de>
11786 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
11787 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
11788 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
11790 (target_cpu_default): Substitute.
11792 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11795 * a-teioed.adb (Expand): Fix Result overflow.
11797 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11799 * gcc-interface/Makefile.in: Fix multilib handling for
11802 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11804 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
11806 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
11808 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
11810 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
11812 * gcc-interface/deftarg.c: Remove.
11814 2009-02-10 Olivier Hainque <hainque@adacore.com>
11815 Eric Botcazou <ebotcazou@adacore.com>
11817 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
11818 (copy_alias_set): Rename into...
11819 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
11820 underlying array of unconstrained arrays for the new type as well.
11821 If the old and new alias sets don't conflict, make one a subset of
11822 the other as per the OP parameter.
11823 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
11824 <E_Record_Type>: Do not copy the alias set for derived types.
11825 For all types, make the alias set of derived types a superset of
11826 that of their parent type.
11827 (make_aligning_type): Adjust calls to copy_alias_set.
11828 (make_packable_type): Likewise.
11829 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
11830 Check for alias set conflict instead of strict equality to issue the
11833 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
11835 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11836 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
11837 (copy_alias_set): Assert that arrays have the same aliasing settings.
11838 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
11840 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
11842 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11843 Set TYPE_NONALIASED_COMPONENT on the array type.
11845 2009-01-31 Laurent GUERBY <laurent@guerby.net>
11847 * gcc-interface/Makefile.in: Fix mipsel linux handling.
11849 2009-01-16 Jakub Jelinek <jakub@redhat.com>
11851 * gcc-interface/Makefile.in: Fix multilib handling for
11854 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
11856 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
11857 only useless conversions around renamed objects.
11859 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
11861 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
11862 the _Tag field before any discriminants in the field list.
11863 (components_to_record): Remove obsolete comment.
11867 Copyright (C) 2009 Free Software Foundation, Inc.
11869 Copying and distribution of this file, with or without modification,
11870 are permitted in any medium without royalty provided the copyright
11871 notice and this notice are preserved.