1 2009-11-30 Thomas Quinot <quinot@adacore.com>
3 * put_scos.adb (Put_SCOs): Do not generate a SCO unit header for a unit
5 * scos.ads: Minor reformatting
7 2009-11-30 Ed Schonberg <schonberg@adacore.com>
9 * sem_prag.adb: Second unanalyzed parameter of Annotate is optional.
11 2009-11-30 Eric Botcazou <ebotcazou@adacore.com>
13 * init.c (__gnat_adjust_context_for_raise, Linux version): Add guard
14 for null PC saved in the context.
16 2009-11-30 Hristian Kirtchev <kirtchev@adacore.com>
18 * a-calend.adb (Day_Of_Week): Rewritten. The routine determines the
19 number of days from the Ada Epoch to the input date while ensuring that
20 both dates are in the same time zone.
22 2009-11-30 Emmanuel Briot <briot@adacore.com>
24 * clean.adb ("-eL"): Also set Follow_Links_For_Dirs, to match what is
25 done in other project-aware tools like gnatmake and gprbuild.
27 2009-11-30 Jerome Lambourg <lambourg@adacore.com>
29 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Take care of CIL
31 * exp_ch7.adb (Needs_Finalization): Do not finalize CIL valuetypes.
32 * sem_util.adb (Is_Value_Type): Protect against invalid calls to Chars
33 (Is_Delegate): New method used for CIL.
34 * sem_util.ads (Is_Delegate): New method for CIL handling.
35 (Is_Value_Type): Improve documentation.
37 2009-11-30 Ed Schonberg <schonberg@adacore.com>
39 * errout.adb (Unwind_Internal_Type): Improve error reporting if the
40 type is an anonymous access to subprogram that is the type of a formal
43 2009-11-30 Vincent Celier <celier@adacore.com>
45 * prj-nmsc.adb (Check_Interfaces): In a Stand-Alone Library project, if
46 attribute Interfaces is not declared, then Library_Interface should
47 define the interfaces.
49 2009-11-30 Ed Schonberg <schonberg@adacore.com>
51 * sem_prag.adb: New semantics for Annotate.
53 2009-11-30 Tristan Gingold <gingold@adacore.com>
55 * gcc-interface/Makefile.in: Do not link with -static-libgcc on Darwin.
57 2009-11-30 Emmanuel Briot <briot@adacore.com>
59 * gnat_ugn.texi: Extend doc for -eL
61 2009-11-30 Vincent Celier <celier@adacore.com>
63 * osint.adb (Executable_Name (File_Name_Type)): Put the Name in the
64 Name_Buffer before testing for a dot in the Name.
66 2009-11-30 Vincent Celier <celier@adacore.com>
68 * prj-part.adb (Project_Path_Name_Of): Resolve links for final result
69 if -eL has been specified.
71 2009-11-30 Vincent Celier <celier@adacore.com>
73 * osint.adb (Executable_Name): Test the name instead of the name buffer
74 to check if there is a dot in the given name.
76 2009-11-30 Sergey Rybin <rybin@adacore.com>
78 * gnat_ugn.texi: Update gnatcheck doc.
80 2009-11-30 Robert Dewar <dewar@adacore.com>
82 * sem_ch3.adb, sem_disp.adb, usage.adb: Minor reformatting
84 2009-11-30 Vasiliy Fofanov <fofanov@adacore.com>
86 * gnat_ugn.texi: Minor editing.
88 2009-11-30 Emmanuel Briot <briot@adacore.com>
90 * prj-nmsc.adb (Search_Directories): when -eL was not specified, assume
91 that no directory matches the naming scheme for sources.
93 2009-11-30 Emmanuel Briot <briot@adacore.com>
95 * prj.adb, prj.ads, prj-nmsc.adb (Has_Multi_Unit_Sources): New field in
98 2009-11-30 Vincent Celier <celier@adacore.com>
100 * osint.adb (Executable_Name): Correctly decide if the executable
101 suffix should be added when Only_If_No_Suffix is True.
103 2009-11-30 Robert Dewar <dewar@adacore.com>
105 * frontend.adb, gnatlink.adb, prj-conf.adb, prj-tree.adb,
106 prj-tree.ads: Minor reformatting
108 2009-11-30 Vincent Celier <celier@adacore.com>
110 * gnatlink.adb (Process_Args): Call Executable_Name on argument of -o
111 with Only_If_No_Suffix set to True.
112 * osint.adb (Executable_Name): Do not add executable suffix if there is
113 already a suffix and Only_If_No_Suffix is True.
114 * osint.ads (Executable_Name): New Boolean parameter Only_If_No_Suffix,
117 2009-11-30 Javier Miranda <miranda@adacore.com>
119 * exp_atag.adb (Build_TSD): Change argument name because the actual is
120 now the address of a tag (instead of the tag). Update implementation
122 (Build_CW_Membership): New implementation. Converted into a procedure
123 because it has an additional out mode parameter. Its implementation has
124 been rewritten to improve the generated code but also to facilitate
125 referencing the relocated object node in the caller.
126 * exp_atag.ads (Build_CW_Membership): Update profile and documentation.
127 * sinfo.ads (N_SCIL_Membership_Test) New_Node.
128 (SCIL_Tag_Value): New field of N_SCIL_Membership_Test nodes.
129 (Is_Syntactic_Field): Add entry of new node.
130 (SCIL_Tag_Value/Set_SCIL_Tag_Value): New subprograms.
131 * sinfo.adb (SCIL_Related_Node, SCIL_Entity): Update assertions to
132 handle N_SCIL_Membership_Test nodes.
133 (SCIL_Tag_Value/Set_SCIL_Tag_Value): New subprograms.
134 * sem.adb (Analyze): Add null management for new node.
135 * sem_scil.adb (Find_SCIL_Node): Add null management for new node.
136 (Check_SCIL_Node): Add checks of N_SCIL_Membership_Test nodes.
137 * exp_ch4.adb (Tagged_Membership): Change profile from function to
138 procedure. Add generation of SCIL node associated with class-wide
140 (Expand_N_In): Complete decoration of SCIL nodes.
141 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Tune call to
142 Build_CW_Membership because its profile has been changed.
143 * exp_util.adb (Insert_Actions): Add null management for new node.
144 * sprint.adb (Sprint_Node_Actual): Handle new node.
145 * gcc-interface/trans.c Add no processing for N_SCIL_Membership_Test
147 * gcc-interface/Make-lang.in: Update dependencies.
149 2009-11-30 Ed Schonberg <schonberg@adacore.com>
151 * opt.ads: New flags Init_Or_Norm_Scalars_Config,
152 Initialize_Scalars_Config, to capture the presence of the corresponding
153 pragmas in a configuration file.
154 * opt.adb (Register_, Save_, Set_, Restore_Opt_Configuration_Switches):
155 handle new flags so that they are restored for each compilation unit.
156 * frontend.adb: At the end of compilation, scan the context of the main
157 unit to recover occurrences of pragma Initialize_Scalars, to annotate
158 the ALI file accordingly.
160 2009-11-30 Vincent Celier <celier@adacore.com>
162 * prj-tree.ads: Minor comment updates
163 * prj-tree.adb: Minor reformatting
165 2009-11-30 Ed Schonberg <schonberg@adacore.com>
167 * sem_ch3.adb (Derive_Subprogram): Indicate that an inherited
168 predefined control operation is hidden if the parent type is not
170 * sem_ch6.adb (Check_Overriding_Indicator): Do not report error if
171 overridden operation is not visible, as may be the case with predefined
173 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on
174 non-overriding control operation when type is not visibly controlled,
175 if the subprogram has an explicit overriding indicator.
176 * sem_util.ads, sem_util.adb (Is_Visibly_Controlled): Moved here from
179 2009-11-30 Emmanuel Briot <briot@adacore.com>
181 * prj-tree.adb (Create_Attribute): Fix handling of VMS and Windows
182 * prj-attr.ads: Minor comment updates
184 2009-11-30 Robert Dewar <dewar@adacore.com>
186 * gnat_rm.texi: Document pragma Short_Circuit
188 2009-11-30 Emmanuel Briot <briot@adacore.com>
190 * prj-conf.adb, prj-tree.adb, prj-tree.ads (Create_Attribute): Now set
191 the index either on the attribute or on its value, depending on the
192 kind of the attribute. Done to match recent changes in Prj.PP that were
193 not synchronized with this function.
195 2009-11-30 Arnaud Charlet <charlet@adacore.com>
197 * gcc-interface/Make-lang.in: Fix typo.
200 2009-11-30 Robert Dewar <dewar@adacore.com>
202 * gnat_rm.texi: Add documentation for attribute Result.
204 2009-11-30 Arnaud Charlet <charlet@adacore.com>
206 * s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
207 s-osinte-tru64.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads
208 (Get_Page_Size): Update comment since Get_Page_Size is now required.
210 2009-11-30 Jerome Lambourg <lambourg@adacore.com>
212 * freeze.adb: Disable Warning on VM targets concerning C Imports, not
215 2009-11-30 Bob Duff <duff@adacore.com>
217 * sprint.adb (Source_Dump): Minor comment fix.
218 (Write_Itype): When writing a string literal subtype, use Expr_Value
219 instead of Intval to get the low bound.
221 2009-11-30 Vincent Celier <celier@adacore.com>
223 * gnatlink.adb (Process_Args): Do not call Executable_Name on arguments
226 2009-11-30 Robert Dewar <dewar@adacore.com>
228 * exp_ch4.adb (Expand_N_Op_And): Implement pragma Short_Circuit_And_Or
229 (Expand_N_Op_Or): Implement pragma Short_Circuit_And_Or
230 * opt.ads (Short_Circuit_And_Or): New flag
231 * par-prag.adb: Add dummy entry for pragma Short_Circuit_And_Or
232 * sem_prag.adb: Implement pragma Short_Circuit_And_Or
233 * snames.ads-tmpl: Add entries for pragma Short_Circuit_And_Or
235 2009-11-30 Arnaud Charlet <charlet@adacore.com>
237 * s-taprop-posix.adb: Fix casing.
238 * s-osinte-tru64.adb: Complete previous check-in.
240 2009-11-30 Robert Dewar <dewar@adacore.com>
242 * gnat_rm.texi: Document pragma Compiler_Unit
243 * s-bitops.adb, s-restri.adb, g-htable.adb, s-restri.ads,
244 a-comlin.ads, a-strhas.ads, s-strhas.adb, s-parame.adb,
245 s-parame.ads, a-clrefi.adb, a-clrefi.ads, a-ioexce.ads: Supply missing
246 Compiler_Unit pragmas.
247 * freeze.adb (Freeze_Entity): Improve message for 8-bit boolean passed
250 2009-11-30 Robert Dewar <dewar@adacore.com>
252 * makeutl.adb, makeutl.ads, prj-proc.adb, prj.adb, prj.ads: Minor
255 2009-11-30 Thomas Quinot <quinot@adacore.com>
257 * osint.adb: Minor reformatting
259 2009-11-30 Vincent Celier <celier@adacore.com>
261 * makeutl.ads, makeutl.adb (Base_Name_Index_For): New function to get
262 the base name of a main without the extension, with an eventual source
264 (Mains.Get_Index): New procedure to set the source index of a main
265 (Mains.Get_Index): New function to get the source index of a main
266 * prj-attr.adb: New attributes Config_Body_File_Name_Index,
267 Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
269 * prj-nmsc.adb (Process_Compiler): Takle into account new attributes
270 Config_Body_File_Name_Index, Config_Spec_File_Name_Index,
271 Multi_Unit_Object_Separator and Multi_Unit_Switches.
272 Allow only one character for Multi_Unit_Object_Separator.
273 * prj-proc.adb (Process_Declarative_Items): Take into account the
274 source indexes in indexes of associative array attribute declarations.
275 * prj.adb (Object_Name): New function to get the object file name for
276 units in multi-unit sources.
277 * prj.ads (Language_Config): New components Multi_Unit_Switches,
278 Multi_Unit_Object_Separator Config_Body_Index and Config_Spec_Index.
279 (Object_Name): New function to get the object file name for units in
281 * snames.ads-tmpl: New standard names Config_Body_File_Name_Index,
282 Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
285 2009-11-30 Arnaud Charlet <charlet@adacore.com>
287 * s-tassta.adb: Update comment.
289 2009-11-30 Robert Dewar <dewar@adacore.com>
291 * a-ngelfu.adb: Minor code reorganization.
293 2009-11-30 Robert Dewar <dewar@adacore.com>
295 * osint.ads, prj.adb, prj.ads: Minor reformatting
296 * s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
297 s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
298 s-strxdr.adb, s-taprop-irix.adb, s-osinte-hpux-dce.adb,
299 s-osinte-tru64.adb, s-taenca.adb, s-taprop-hpux-dce.adb, s-stausa.adb,
300 s-taprop-posix.adb: Minor code reorganization (use conditional
303 2009-11-30 Bob Duff <duff@adacore.com>
305 * g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change.
307 2009-11-30 Bob Duff <duff@adacore.com>
309 * socket.c: Add more accessor functions for struct servent (need
310 setters as well as getters).
311 * g-sothco.ads (Servent): Declare interfaces to C setter functions for
313 * g-sttsne-locking.adb (Copy_Service_Entry): Use setter functions for
316 2009-11-30 Robert Dewar <dewar@adacore.com>
318 * s-stchop-vxworks.adb: Add comment.
320 2009-11-30 Emmanuel Briot <briot@adacore.com>
322 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Now acts
323 on the whole tree, to better share code with gprbuild.
324 (Length): New subprogram, to share code in gprbuild.
325 (Project_Data): Remove fields that are only needed when compiling a
326 project in gprbuild (where we use local variables instead)
327 * osint.adb, osint.ads: Added minor comment on memory management
329 2009-11-30 Sergey Rybin <rybin@adacore.com>
331 * gnat_ugn.texi: Update gnatcheck doc.
333 2009-11-30 Robert Dewar <dewar@adacore.com>
335 make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting
336 * s-taprop-dummy.adb: Minor code reorganization (raise with msgs start
338 * i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb,
339 g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb,
340 s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb,
341 g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb,
342 g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code
343 reorganization (use conditional expressions).
345 2009-11-30 Vincent Celier <celier@adacore.com>
347 * prj-makr.adb (Source_Files): New hash table to keep track of source
349 (Finalize): Avoid putting several times the same source file name
350 in the source list file.
351 * prj-pp.adb (Print): Fix a bug in the placement of "at nn" for
352 associative array indexes.
354 2009-11-30 Robert Dewar <dewar@adacore.com>
356 * g-dyntab.ads: Add missing pragma Compiler_Unit
358 2009-11-30 Thomas Quinot <quinot@adacore.com>
360 * s-crtrun.ads, s-crtl.ads, g-stseme.adb, Makefile.rtl, s-fileio.adb
361 (System.CRTL.Runtime): New unit, to contain parts of s-crtl that are
362 used in the Ada runtime but can't be used in the compiler because of
364 * socket.c, s-oscons-tmplt.c, g-sothco.ads
365 (System.OS_Constants.SIZEOF_struct_servent): New constant.
366 Use s-oscons constant instead of external variable to get size of
369 2009-11-30 Thomas Quinot <quinot@adacore.com>
371 * s-crtl.ads, g-stseme.adb, s-fileio.adb (System.CRTL.strerror): Change
372 return type to Interfaces.C.Strings.chars_ptr to eliminate need for
373 dubious unchecked conversion at call sites.
374 * s-errrep.adb, s-errrep.ads, Makefile.rtl (System.Error_Reporting):
375 Remove obsolete, unused runtime unit.
376 * gcc-interface/Make-lang.in: Update dependencies.
377 * gcc-interface/Makefile.in: Remove VMS specialization of s-crtl, not
380 2009-11-30 Vincent Celier <celier@adacore.com>
382 * gnatlink.adb: Delete an eventual existing executable file, in case it
383 is a symbolic link, to avoid modifying the target of the symbolic link.
385 2009-11-30 Bob Duff <duff@adacore.com>
387 * socket.c: Add accessor functions for struct servent.
388 * g-sothco.ads (Servent): Declare interfaces to C accessor functions
390 * g-socket.adb (To_Service_Entry): Use accessor functions for struct
393 2009-11-30 Robert Dewar <dewar@adacore.com>
395 * g-arrspl.adb: Minor reformatting
396 * g-dyntab.adb: Add missing pragma Compiler_Unit
398 2009-11-30 Thomas Quinot <quinot@adacore.com>
400 * s-crtl.ads, s-oscons-tmplt.c: Fix support for VMS
401 * make.adb, g-comlin.ads, exp_ch6.adb: Minor reformatting
403 2009-11-30 Robert Dewar <dewar@adacore.com>
405 * bcheck.adb, gnatlink.adb, make.adb, makeutl.adb, osint.adb,
406 osint.ads, prj-ext.adb, sem_case.adb: Minor reformatting
407 * g-alleve.adb: Minor code reorganization (use conditional expressions)
409 2009-11-30 Matthew Heaney <heaney@adacore.com>
411 * a-crbtgo.adb (Delete_Fixup): Changed always-true predicates to
414 2009-11-30 Thomas Quinot <quinot@adacore.com>
416 * a-tasatt.adb, s-crtl.ads, s-taprop-dummy.adb (System.CRTL.malloc32,
417 System.CRTL.realloc32): Remove VMS-specific routines.
418 (Ada.Task_Attributes.Reference): Remove unreachable code.
419 (System.Task_Primitives.Operations.Initialize, dummy version):
420 Use plain Program_Error rather than call to
421 System.Error_Reporting.Shutdown.
423 2009-11-30 Thomas Quinot <quinot@adacore.com>
425 * s-oscons-tmplt.c, xoscons.adb: Add new constants in preparation for
426 sharing s-crtl across all platforms.
428 2009-11-30 Thomas Quinot <quinot@adacore.com>
430 * s-commun.adb, s-commun.ads: New internal support unit,
431 allowing code sharing between GNAT.Sockets and
432 GNAT.Serial_Communication.
433 * g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb,
434 g-socket.adb (GNAT.Sockets.Last_Index): Move to System.Communication.
435 (GNAT.Serial_Communication.Read): Handle correctly the case where no
436 data was read, and Buffer'First = Stream_Element_Offset'First.
437 * Makefile.rtl: Add entry for s-commun
438 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
439 g-socthi-vxworks.ads, g-stseme.adb, g-socthi-mingw.ads,
440 g-socthi.adb, g-socthi.ads (GNAT.Sockets.Thin.Socket_Error_Message):
441 Reimplement in terms of System.CRTL.strerror.
443 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
445 * gcc-interface/utils.c (copy_type): Unshare the language-specific data
446 and the contents of the language-specific slot if needed.
448 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
450 * gcc-interface/trans.c (gnat_to_gnu) <N_In>: Set the source location
451 of the operator on both branches of the test in the generic case.
453 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
455 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): Rename into...
456 (unchecked_conversion_nop): ...this. Handle actual parameters.
457 (gnat_to_gnu): Adjust for above renaming.
459 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
461 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
462 Translate regular boolean types into BOOLEAN_TYPEs.
464 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
466 * sem_util.adb (Set_Debug_Info_Needed): For an E_Class_Wide_Subtype,
467 also set the flag on the Equivalent_Type.
468 * gcc-interface/utils.c (finish_record_type): Replace DO_NOT_FINALIZE
469 parameter with DEBUG_INFO_P. Rename FIELDLIST into FIELD_LIST.
470 (rest_of_record_type_compilation): Rename FIELDLIST into FIELD_LIST.
471 (build_vms_descriptor32): Adjust call to finish_record_type.
472 (build_vms_descriptor): Likewise.
473 (build_unc_object_type): Likewise.
474 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust calls to
475 finish_record_type and components_to_record.
476 (make_packable_type): Adjust call to finish_record_type.
477 (maybe_pad_type): Likewise. Tweak condition.
478 (components_to_record): Likewise. Replace DO_NOT_FINALIZE parameter
479 with MAYBE_UNUSED. Adjust recursive call.
480 (create_variant_part_from): Adjust call to finish_record_type. Do not
481 call rest_of_record_type_compilation on the new record types.
482 * gcc-interface/trans.c (gigi): Adjust call to finish_record_type.
483 * gcc-interface/gigi.h (finish_record_type): Adjust prototype and
485 (rest_of_record_type_compilation): Adjust comment.
487 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
489 * exp_util.adb (Make_CW_Equivalent_Type): Do not mark the type as
490 frozen for targets that do not require front-end layout.
491 (New_Class_Wide_Subtype): Always reset the freezing status to False.
492 * exp_ch8.adb: Do not 'with' Targparm.
493 (Expand_N_Object_Renaming_Declaration): Always freeze a class-wide
494 subtype that has been built from the expression.
495 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
496 class wide, freeze the implicit type that has been built from the
497 expression at the dereference point.
498 * freeze.adb (Freeze_Entity): Adjust comment.
499 * gcc-interface/decl.c (Gigi_Equivalent_Type) <E_Class_Wide_Type>:
501 * gcc-interface/trans.c (process_freeze_entity): Do not special-case
504 * s-osinte-aix.adb (clock_gettime): Fix comment.
505 * s-osinte-darwin.adb (clock_gettime): Likewise.
507 2009-11-23 Eric Botcazou <ebotcazou@adacore.com>
509 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Pass the list
510 of attributes when building the corresponding variable of a constant.
511 * gcc-interface/utils.c (create_var_decl_1): Do not process attributes
514 2009-11-23 Laurent GUERBY <laurent@guerby.net>
515 Eric Botcazou <ebotcazou@adacore.com>
518 * s-osinte-linux.ads (struct_timeval): Delete.
519 * s-osinte-hpux.ads (struct_timeval, To_Duration, To_Timeval): Delete.
520 * s-osinte-kfreebsd-gnu.ads: Likewise.
521 * s-osinte-rtems.ads: Likewise.
522 * s-osinte-aix.ads: Likewise.
523 * s-osinte-hpux-dce.ads: Likewise.
524 * s-osinte-darwin.ads: Likewise.
525 * s-osinte-solaris-posix.ads: Likewise.
526 * s-osinte-irix.ads: Likewise.
527 * s-osinte-solaris.ads: Likewise.
528 * s-osinte-hpux-dce.adb (To_Duration, To_Timeval): Delete.
529 * s-osinte-irix.adb: Likewise.
530 * s-osinte-solaris.adb: Likewise.
531 * s-osinte-rtems.adb: Likewise. Minor reformatting.
532 * s-osinte-aix.adb (To_Duration, To_Timeval): Delete.
533 (clock_gettime): Use cal.c's timeval_to_duration.
534 * s-osinte-darwin.adb: Likewise.
536 2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
538 * adaint.h: Assume large file support on IRIX only if _LFAPI.
540 2009-11-21 Laurent GUERBY <laurent@guerby.net>
541 Eric Botcazou <ebotcazou@adacore.com>
543 * s-osinte-linux.ads (struct_timeval, To_Duration, To_Timeval,
544 gettimeofday): Delete.
545 * s-osinte-posix.adb (To_Duration, To_Timeval): Delete.
546 * s-osprim-posix.adb (struct_timezone, struct_timeval, gettimeofday):
548 (Clock): Use cal.c's timeval_to_duration.
549 * s-taprop-linux.adb (Monotonic_Clock): Likewise.
551 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
552 Laurent GUERBY <laurent@guerby.net>
554 * init.c (GNU/Linux Section): Enable for all architectures.
556 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
559 * system-linux-alpha.ads (Stack_Check_Probes): Set to true.
560 * system-linux-hppa.ads (Stack_Check_Probes): Likewise.
561 * system-linux-sparc.ads (Stack_Check_Probes): Likewise.
562 * system-linux-sparcv9.ads (Stack_Check_Probes): Likewise.
564 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
566 * system-linux-alpha.ads (AAMP, Compiler_System_Version, OpenVMS,
567 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
569 (Stack_Check_Limits, Always_Compatible_Rep): New.
570 * system-linux-mips.ads (AAMP, Compiler_System_Version, OpenVMS,
571 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
573 (Stack_Check_Limits, Always_Compatible_Rep): New.
574 * system-linux-mips64el.ads (AAMP, Compiler_System_Version, OpenVMS,
575 Functions_Return_By_DSP, Front_End_ZCX_Support, High_Integrity_Mode,
576 Long_Shifts_Inlined): Delete.
577 (Stack_Check_Limits, Always_Compatible_Rep): New.
578 * system-linux-mipsel.ads (AAMP, Compiler_System_Version, OpenVMS,
579 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
581 (Stack_Check_Limits, Always_Compatible_Rep): New.
582 * system-linux-s390.ads (AAMP, Compiler_System_Version, OpenVMS,
583 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
585 (Stack_Check_Limits, Always_Compatible_Rep): New.
586 * system-linux-s390x.ads (AAMP, Compiler_System_Version, OpenVMS,
587 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
589 (Stack_Check_Limits, Always_Compatible_Rep): New.
590 * system-linux-sh4.ads (Stack_Check_Limits, Always_Compatible_Rep):
592 * system-linux-sparc.ads (AAMP, Compiler_System_Version, OpenVMS,
593 Front_End_ZCX_Support): Delete.
594 (Stack_Check_Limits, Always_Compatible_Rep): New.
595 * system-linux-sparcv9.ads (AAMP, Compiler_System_Version, OpenVMS,
596 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
598 (Stack_Check_Limits, Always_Compatible_Rep): New.
599 * system-rtems.ads (OpenVMS): Delete.
600 (Stack_Check_Limits, Always_Compatible_Rep): New.
602 2009-11-08 Eric Botcazou <ebotcazou@adacore.com>
604 * gcc-interface/decl.c (make_packable_type): Fix oversight.
605 (gnat_to_gnu_field): Do not attempt to change the form of the type
606 if the field requires strict alignment. Always change the form of
607 the type if the specified size is smaller than its size.
609 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
611 * gcc-interface/utils.c (gnat_type_for_mode): Handle vector modes.
613 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
615 * gcc-interface/trans.c (lvalue_required_p) <N_Unchecked_Conversion>:
618 2009-10-30 Eric Botcazou <ebotcazou@adacore.com>
620 * gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete.
621 (create_field_decl): Update description. In a packed record, round
622 the size up to a byte boundary only if the field's type has BLKmode.
623 * gcc-interface/gigi.h (create_field_decl): Update description.
625 2009-10-30 Emmanuel Briot <briot@adacore.com>
627 * make.adb (Start_Compile_If_Possible): Compute location of resulting
628 ALI file in this procedure instead of after the compilation itself,
629 since the current directory might have changed in between when using
632 * osint.ads: Addded missing alignment clause.
634 * adaint.c, adaint.h, osint.adb (__gnat_reset_attributes,
635 __gnat_size_of_file_attributes): Rename reset_attributes and
636 size_of_file_attributes.
638 2009-10-30 Javier Miranda <miranda@adacore.com>
640 * sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences
641 of statements when searching for SCIL nodes.
643 2009-10-30 Tristan Gingold <gingold@adacore.com>
645 * gnatlink.adb, link.c: By default use shared libgcc on darwin.
647 2009-10-30 Emmanuel Briot <briot@adacore.com>
649 * make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is
651 This saves system calls when looking for ALI files
652 (Scan_Make_Args): The parameter to gnatmake's -D is now converted to an
653 absolute PATH (so that the above improvement properly occurs if both
654 -D<dir> and -aO<dir> are specified).
656 2009-10-30 Thomas Quinot <quinot@adacore.com>
658 * a-direct.adb: Minor reformatting
660 2009-10-30 Emmanuel Briot <briot@adacore.com>
662 * make.adb, adaint.c, adaint.h, osint.adb, osint.ads, bcheck.adb
663 (*_attr): new subprograms.
664 (File_Length, File_Time_Stamp, Is_Writable_File): new subprograms
665 (Read_Library_Info_From_Full, Full_Library_Info_Name,
666 Full_Source_Name): Now benefit from a previous cache of the file
667 attributes, to further save on system calls.
668 (Smart_Find_File): now also cache the file attributes. This makes the
669 package File_Stamp_Hash_Table useless, and it was removed.
670 (Compile_Sources): create subprograms for the various steps of the main
671 loop, for readibility and to avoid sharing variables between the
674 2009-10-30 Emmanuel Briot <briot@adacore.com>
676 * make.adb, osint.adb, osint.ads (Library_File_Stamp): Removed, since
678 (Read_Library_Info_From_Full): New subprogram.
680 2009-10-30 Robert Dewar <dewar@adacore.com>
682 * a-tideio.adb: Minor reformatting
683 * a-wtdeio.adb, a-ztdeio.adb: Update comments, code clean up.
685 * a-reatim.adb, a-tideau.adb, a-ngelfu.adb, a-ztdeau.adb, a-ngrear.adb,
686 a-wtedit.adb, a-ststio.adb, a-ztedit.adb: Minor code reorganization
687 (use conditional expressions).
689 2009-10-30 Ed Schonberg <schonberg@adacore.com>
691 * gnat_ugn.texi: Additional info on gnatw.i and gnatw.I
693 * sem_case.adb: Improved error message.
695 2009-10-30 Emmanuel Briot <briot@adacore.com>
697 * a-direct.adb, gnatcmd.adb, gnatname.adb, makeutl.adb, opt.ads,
698 osint.adb, prj-ext.adb, switch-m.adb (Follow_Links_For_Dirs): Now
699 defaults to False, and controlled by -eL.
700 * a-direct.adb: Add comments.
701 * osint.adb (File_Stamp): Avoid unneeded duplicate system call
703 2009-10-30 Robert Dewar <dewar@adacore.com>
705 * sem_res.adb (Resolve_Type_Conversion): Avoid false positive when
706 converting non-static subtype to "identical" static subtype.
708 2009-10-30 Ed Schonberg <schonberg@adacore.com>
710 * usage.adb: Add -gnatw.i switch.
712 2009-10-30 Vincent Celier <celier@adacore.com>
714 * xsnamest.adb: Update comments with regards to the template files
717 2009-10-30 Bob Duff <duff@adacore.com>
719 * s-fileio.adb (Errno_Message): Suppress VMS-specific warning.
721 2009-10-30 Ed Schonberg <schonberg@adacore.com>
723 * sem_case.adb (Check_Choices): Add explanatory message when there are
724 missing alternatives when the required range of alternatives is given
725 by the base type of the case expression or discriminant in a variant
728 * opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially
729 dangerous overlap between actuals in a call, activated by -gnatw.i
730 * sem_warn.adb (Set_Dot_Warning_Switch): set flag.
731 (Warn_On_Overlapping_Actuals): use new flag.
733 * gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals
735 2009-10-30 Robert Dewar <dewar@adacore.com>
737 * exp_aggr.adb, exp_ch9.adb: Minor reformatting
739 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
741 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
742 create integer types with precision 0.
744 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
747 * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
748 parameters and rewrite comments. For a derived type, return the
749 setting of its parent type.
750 (gnat_to_gnu_entity): Do an alias set copy for derived types if they
751 are composite. Adjust calls to above function.
753 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
755 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not
756 return the RM size for padded types.
758 2009-10-28 Robert Dewar <dewar@adacore.com>
760 * sem_type.adb: Minor reformatting
762 2009-10-28 Arnaud Charlet <charlet@adacore.com>
764 * exp_ch9.adb (Build_Task_Proc_Specification): Generate a different
765 suffix for task type bodies.
767 2009-10-28 Ed Schonberg <schonberg@adacore.com>
769 * exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a
770 finalization list if the designated type requires no control actions,
771 to prevent a useless semantic dependence on ada.tags.
773 2009-10-28 Bob Duff <duff@adacore.com>
775 * s-fileio.adb: Give more information in exception messages.
777 2009-10-28 Robert Dewar <dewar@adacore.com>
779 * gnat_ugn.texi: Document new -gnatyt requirement for space after right
780 paren if next token starts with digit or letter.
781 * styleg.adb (Check_Right_Paren): New rule for space after if next
782 character is a letter or digit.
784 2009-10-28 Thomas Quinot <quinot@adacore.com>
786 * s-crtl.ads (System.CRTL.strerror): New function.
788 2009-10-28 Ed Schonberg <schonberg@adacore.com>
790 * sem_type.adb: Add guard to recover some type errors.
792 2009-10-28 Vincent Celier <celier@adacore.com>
794 * prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
795 Add_If_Not_In_List to account to the fact that a directory may be
796 removed from the list. Only remove directory if Removed is True.
798 2009-10-28 Gary Dismukes <dismukes@adacore.com>
800 * a-textio.ads, a-textio.ads: Put back function EOF_Char in private
801 part. Put back body of function EOF_Char.
802 * a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
805 2009-10-28 Emmanuel Briot <briot@adacore.com>
807 * prj-tree.adb (Free): Fix memory leak.
809 2009-10-28 Thomas Quinot <quinot@adacore.com>
811 * s-fileio.adb: Minor reformatting
813 2009-10-28 Arnaud Charlet <charlet@adacore.com>
815 * gcc-interface/Make-lang.in: Update dependencies.
817 2009-10-28 Robert Dewar <dewar@adacore.com>
819 * exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
820 types.ads: Minor reformatting
822 2009-10-28 Tristan Gingold <gingold@adacore.com>
824 * init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
826 2009-10-28 Thomas Quinot <quinot@adacore.com>
828 * exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
829 the operand of the unary minus and ABS operators.
831 * sem_type.adb (Covers): A concurrent type and its corresponding record
833 * exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
834 attribute reference for the current instance of a protected type while
835 analyzing an access discriminant constraint in a component definition.
836 Such a reference is handled in the corresponding record's init proc,
837 while initializing the constrained component.
838 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
839 corresponding record type, propagate components'
840 Has_Per_Object_Constraint flag.
841 * exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
842 For a concurrent type, set up concurrent aspects before initializing
843 components with a per object constrain, because they may be controlled,
844 and their initialization may call entries or protected subprograms of
845 the enclosing concurrent object.
847 2009-10-28 Emmanuel Briot <briot@adacore.com>
849 * prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
851 (Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
852 processing the directories specified explicitly in the project file.
854 2009-10-28 Robert Dewar <dewar@adacore.com>
856 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
857 a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
859 (Initialize_Standard_Files): New procedure.
860 * a-tienau.adb: Minor change to make EOF directly visible
861 * a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
862 a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
863 * gnat_rm.texi: Add documentation for
864 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
865 * Makefile.rtl: Add entries for
866 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
868 2009-10-28 Thomas Quinot <quinot@adacore.com>
870 * exp_ch9.ads: Minor reformatting
871 * sem_ch3.adb: Minor reformatting
872 * sem_aggr.adb: Minor reformatting.
873 * sem_attr.adb: Minor reformatting
874 * tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
876 Minor code reorganization/factoring.
878 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
880 * gcc-interface/decl.c (purpose_member_field): New static function.
881 (annotate_rep): Use it instead of purpose_member.
883 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
885 * raise-gcc (db_region_for): Use _Unwind_GetIPInfo instead of
886 _Unwind_GetIP if HAVE_GETIPINFO is defined.
887 (db_action_for): Likewise.
889 2009-10-27 Robert Dewar <dewar@adacore.com>
891 * s-fileio.adb, s-fileio.ads, sem_util.adb, sem_warn.adb,
892 sem_warn.ads: Minor reformatting
894 2009-10-27 Robert Dewar <dewar@adacore.com>
896 * sem_warn.adb, sem_util.adb, sem_util.ads: Minor reformatting. Add
899 2009-10-27 Robert Dewar <dewar@adacore.com>
901 * s-os_lib.ads, s-os_lib.adb, prj-err.adb, makeutl.adb: Minor
904 2009-10-27 Ed Schonberg <schonberg@adacore.com>
906 * sem.util.ads, sem_util.adb (Denotes_Same_Object,
907 Denotes_Same_Prefix): New functions to detect overlap between actuals
908 that are not by-copy in a call, when one of them is in-out.
909 * sem_warn.ads, sem_warn.adb (Warn_On_Overlapping_Actuals): New
910 procedure, called on a subprogram call to warn when an in-out actual
911 that is not by-copy overlaps with another actual, thus leadind to
912 potentially dangerous aliasing in the body of the called subprogram.
913 Currently the warning is under control of the -gnatX switch.
914 * sem_res.adb (resolve_call): call Warn_On_Overlapping_Actuals.
916 2009-10-27 Thomas Quinot <quinot@adacore.com>
918 * sem_ch12.adb (Install_Formal_Packages): Do not omit installation of
919 visible entities when the formal package doesn't have a box.
921 * checks.adb: Minor reformatting.
923 2009-10-27 Vincent Celier <celier@adacore.com>
925 * prj-part.adb (Parse): Catch exception Types.Unrecoverable_Error and
926 set Project to Empty_Node.
928 2009-10-27 Robert Dewar <dewar@adacore.com>
930 * gnatbind.adb: Minor reformatting
932 2009-10-27 Arnaud Charlet <charlet@adacore.com>
934 * exp_aggr.adb: Fix comment.
936 2009-10-27 Emmanuel Briot <briot@adacore.com>
938 * prj-err.adb (Error_Msg): take into account continuation lines when
939 computing whether we have a warning.
941 2009-10-27 Vasiliy Fofanov <fofanov@adacore.com>
943 * make.adb, s-os_lib.adb, s-os_lib.ads (Create_Temp_Output_File): New
944 routine that is designed to create temp file descriptor specifically
945 for redirecting an output stream.
947 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
949 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
950 processing the parent type, build the COMPONENT_REF for a discriminant
951 with the proper type.
953 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
955 * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo.
956 * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO.
957 Pass GNATLIBCFLAGS_FOR_C to recursive invocations.
959 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
961 * gcc-interfaces/decl.c (build_subst_list): Convert the expression of
962 the constraint to the type of the discriminant.
964 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
966 * gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
967 TYPE_DECL when a type is padded if there is already one and reset
968 TYPE_STUB_DECL in this case.
970 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
972 * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
973 main_identifier_node.
975 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
977 * gcc-interface/utils.c (convert): When converting to a padded type
978 with an inner type of self-referential size, pad the expression before
979 doing the unchecked conversion.
981 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
983 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
984 sure the element type is consistent.
986 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
988 * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
990 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
992 * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
993 (TYPE_IS_FAT_POINTER_P): ...this.
994 (TYPE_THIN_POINTER_P): Rename into...
995 (TYPE_IS_THIN_POINTER_P): ...this.
996 (TYPE_FAT_OR_THIN_POINTER_P): Rename into...
997 (TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
998 (TYPE_IS_PADDING_P): Change definition, move old one to...
999 (TYPE_PADDING_P): ...this.
1000 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
1001 (get_unpadded_type): Likewise.
1002 (gnat_to_gnu_component_type): Likewise.
1003 (gnat_to_gnu_param): Likewise.
1004 (relate_alias_sets): Likewise.
1005 (make_packable_type): Likewise.
1006 (maybe_pad_type): Likewise.
1007 (gnat_to_gnu_field): Likewise.
1008 (is_variable_size): Likewise.
1009 (annotate_object): Likewise.
1010 (validate_size): Likewise.
1011 (set_rm_size): Likewise.
1012 (make_type_from_size): Likewise.
1013 (rm_size): Likewise.
1014 * gcc-interface/misc.c (gnat_print_type): Likewise.
1015 (gnat_get_alias_set): Likewise.
1016 * gcc-interface/trans.c (Identifier_to_gnu): Likewise.
1017 (Attribute_to_gnu): Likewise.
1018 (call_to_gnu): Likewise.
1019 (gnat_to_gnu): Likewise.
1020 (add_decl_expr): Likewise.
1021 (convert_with_check): Likewise.
1022 (addressable_p): Likewise.
1023 (maybe_implicit_deref): Likewise.
1024 (protect_multiple_eval): Likewise.
1025 (gnat_stabilize_reference_1): Likewise.
1026 * gcc-interface/utils.c (gnat_pushdecl): Likewise.
1027 (finish_record_type): Likewise.
1028 (rest_of_record_type_compilation): Likewise.
1029 (create_type_decl): Likewise.
1030 (gnat_types_compatible_p): Likewise.
1031 (build_template): Likewise.
1032 (convert_vms_descriptor64): Likewise.
1033 (convert_vms_descriptor32): Likewise.
1034 (build_unc_object_type_from_ptr): Likewise.
1035 (update_pointer_to): Likewise.
1036 (convert_to_fat_pointer): Likewise.
1037 (convert_to_fat_pointer): Likewise.
1038 (convert): Likewise.
1039 (remove_conversions): Likewise.
1040 (maybe_unconstrained_array): Likewise.
1041 (unchecked_convert): Likewise.
1042 (handle_vector_type_attribute): Likewise.
1043 * gcc-interface/utils2.c (build_binary_op): Likewise.
1044 (build_unary_op): Likewise.
1045 (build_allocator): Likewise.
1047 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
1049 * exp_dbug.ads: Adjust type names in comments.
1050 * gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
1051 add new IS_COMPONENT_TYPE parameter. Adjust. Remove dead code.
1052 (gnat_to_gnu_entity): Adjust for above change.
1053 (gnat_to_gnu_component_type): Likewise.
1054 (gnat_to_gnu_field): Likewise.
1055 * gcc-interface/trans.c (call_to_gnu): Likewise. Do not unnecessarily
1057 * gcc-interface/utils.c (finish_record_type): Remove obsolete code.
1058 * gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.
1060 2009-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
1062 * s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
1063 * s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.
1065 2009-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1067 * env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
1069 2009-10-10 Samuel Tardieu <sam@rfc1149.net>
1071 * sem_eval.adb: Give a more precise error message.
1073 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
1076 * a-rttiev.adb (Time_Of_Event): Return Time_First for unset event.
1078 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
1081 * sem_prag.adb (Process_Import_Or_Interface): Forbid an abstract
1082 subprogram to be completed with a "pragma Import".
1084 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1086 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>:
1087 Generate an XVZ variable alongside the XVS type if the size is
1089 (maybe_pad_type): Minor tweak.
1091 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1093 * gcc-interface/decl.c (check_ok_for_atomic): Do nothing if the type
1094 doesn't come from source.
1096 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1098 * gcc-interface/decl.c (gnat_to_gnu_component_type): Force at least
1099 unit size for the component size of an array with aliased components.
1100 (maybe_pad_type): Do not warn for MAX_EXPR.
1102 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
1104 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
1105 common code processing the component type into...
1106 <E_Array_Subtype>: Likewise.
1107 (gnat_to_gnu_component_type): ...this new static function.
1108 (maybe_pad_type): Minor cleanup.
1110 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
1112 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
1113 the handling of constrained discriminated record subtypes.
1114 (components_to_record): Declare the type of the variants and of the
1116 (build_subst_list): Move around.
1117 (compute_field_positions): Rename into...
1118 (build_position_list): ...this. Return a TREE_VEC.
1119 (annotate_rep): Adjust for above renaming.
1120 (build_variant_list): New static function.
1121 (create_field_decl_from): Likewise.
1122 (get_rep_part): Likewise.
1123 (get_variant_part): Likewise.
1124 (create_variant_part_from): Likewise.
1125 (copy_and_substitute_in_size): Likewise.
1127 2009-09-28 Olivier Hainque <hainque@adacore.com>
1130 * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
1131 Account for observable alignments out of default allocators.
1133 2009-09-28 Richard Henderson <rth@redhat.com>
1135 * gcc-interface/utils.c (gnat_install_builtins): Update call to
1136 build_common_builtin_nodes.
1138 2009-09-26 Eric Botcazou <ebotcazou@adacore.com>
1140 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
1141 negative size for the array dimensions like in the constrained case.
1142 <E_Array_Subtype>: Do not create an artificially non-constant high
1143 bound if the low bound is non-constant. Minor tweaks.
1145 * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
1146 and turn ALIASED into a boolean parameter. Adjust calls to self.
1147 <N_Attribute_Reference>: Return 1 for more attributes.
1148 <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
1149 <N_Assignment_Statement>: Return 1 for the LHS.
1150 (Identifier_to_gnu): Adjust calls to lvalue_required_p.
1151 (call_to_gnu): Be prepared for wrapped boolean rvalues.
1153 2009-09-25 Olivier Hainquqe <hainque@adacore.com>
1154 Eric Botcazou <ebotcazou@adacore.com>
1156 * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
1157 specific node. Representative array type for VECTOR_TYPE entities.
1158 * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
1159 Turn an ARRAY_TYPE entity into a VECTOR_TYPE.
1160 (gnat_types_compatible_p): Handle VECTOR_TYPEs.
1161 (convert): Likewise. Arrange to produce VECTOR_CST out of constant
1162 array aggregates for VECTOR_TYPE entities.
1163 (unchecked_convert): Likewise.
1164 (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
1165 converted to the associated TYPE_REPRESENTATIVE_ARRAY.
1166 (handle_pure_attribute, handle_sentinel_attribute,
1167 handle_noreturn_attribute, handle_malloc_attribute,
1168 handle_vector_size_attribute): Replace uses of qE format by qs.
1169 Remove GCC_DIAG_STYLE definition.
1170 * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
1171 vector input to representative array type on entry.
1172 <N_Op_Eq, etc>: Likewise.
1173 * gcc-interface/gigi.h (maybe_vector_array): Declare.
1174 (VECTOR_TYPE_P): New predicate.
1175 * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
1177 2009-09-24 Eric Botcazou <ebotcazou@adacore.com>
1179 * gcc-interface/ada.h: Fix outdated comment.
1180 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
1181 lieu of mark_visited.
1182 * gcc-interface/gigi.h (mark_visited): Change type of parameter.
1183 (MARK_VISITED): New macro.
1184 (gnat_truthvalue_conversion): Delete.
1185 * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
1187 (annotate_rep): Fix formatting and tidy.
1188 (compute_field_positions): Get rid of useless variable.
1189 * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
1190 node only once. Use IN operator for the Nkind in more cases.
1191 Remove calls to gnat_truthvalue_conversion.
1192 (mark_visited): Change type of parameter and adjust.
1193 (mark_visited_r): Dereference TP only once.
1194 (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
1195 * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
1196 (build_binary_op): Remove calls to gnat_truthvalue_conversion.
1197 (build_unary_op): Likewise.
1199 2009-09-24 Dave Korn <dave.korn.cygwin@gmail.com>
1201 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
1202 a-except% in target pairs list; don't (implicitly) compare whitespace.
1204 2009-09-24 Jakub Jelinek <jakub@redhat.com>
1206 * gcc-interface/utils.c (gnat_pushdecl): Don't set
1207 DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
1210 2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
1212 * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
1213 Bind to getpagesize() in RTEMS 4.10 and newer.
1215 2009-09-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1217 * env.c [__alpha__ && __osf__] (_BSD): Define.
1218 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
1221 2009-09-18 Pascal Obry <obry@adacore.com>
1223 * mingw32.h: Activate Unicode support for x86-64 Windows platform.
1225 2009-09-18 Vadim Godunko <godunko@adacore.com>
1227 * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
1229 2009-09-18 Javier Miranda <miranda@adacore.com>
1231 * exp_aggr.adb (Backend_Processing_Possible): Disable backend
1232 processing for array aggregates in the VM backend if the array has
1235 2009-09-18 Ed Schonberg <schonberg@adacore.com>
1237 * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
1238 the prefix indicates a previous semantic error, and this is the first
1239 error in the program.
1241 2009-09-18 Bob Duff <duff@adacore.com>
1243 * gnat_ugn.texi: Minor editing.
1245 2009-09-18 Vincent Celier <celier@adacore.com>
1247 * prj.ads, prj.adb (Project_Data): New component
1248 Imported_Directories_Switches.
1250 2009-09-18 Pascal Obry <obry@adacore.com>
1252 * mingw32.h: Include standard _mingw.h file.
1253 Define _WIN32_WINNT only if not already defined.
1255 2009-09-18 Thomas Quinot <quinot@adacore.com>
1257 * g-socket.adb (Is_Open): New function indicating whether a
1258 Selector_Type object is open.
1260 2009-09-18 Vincent Celier <celier@adacore.com>
1262 * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
1263 is deleted before creating it.
1265 2009-09-18 Robert Dewar <dewar@adacore.com>
1267 * bindgen.adb: Minor reformatting
1269 2009-09-18 Arnaud Charlet <charlet@adacore.com>
1271 * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
1272 s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
1273 signal handler is installed.
1274 * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
1275 tasks if Abort_Task_Interrupt cannot be used.
1277 2009-09-18 Vincent Celier <celier@adacore.com>
1279 * prj-tree.ads: Minor comment update
1281 2009-09-17 Bob Duff <duff@adacore.com>
1283 * g-socket.ads: Document the fact that Close_Selector has no effect on
1285 * g-socket.adb: Raise an exception when a Selector that should be open
1287 (Check_Selector): Declare RSig as a constant rather than a renames,
1290 2009-09-17 Robert Dewar <dewar@adacore.com>
1292 * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
1293 prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
1294 prj-tree.ads: Minor reformatting
1296 2009-09-17 Emmanuel Briot <briot@adacore.com>
1298 * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
1300 (Do_Autoconf): If the object directory does not exists, create auto.cgpr
1301 in a temporary directory instead
1303 2009-09-17 Bob Duff <duff@adacore.com>
1305 * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
1307 (Get_Priority): Correct message for "terminated" case -- it said "null".
1309 2009-09-17 Robert Dewar <dewar@adacore.com>
1311 * exp_ch6.adb: Minor reformatting
1313 2009-09-17 Emmanuel Briot <briot@adacore.com>
1315 * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
1316 switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
1317 (Project_Node_Tree_Data.Project_Path): New field.
1319 * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
1321 2009-09-17 Emmanuel Briot <briot@adacore.com>
1323 * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
1324 Remove duplicate code.
1325 (Prj.Ext): Fix memory leak
1326 (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
1327 variable. This was previously allowed in the code in
1328 Is_External_Assignment, and some tests rely on it
1330 2009-09-17 Bob Duff <duff@adacore.com>
1332 * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
1334 2009-09-17 Emmanuel Briot <briot@adacore.com>
1336 * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
1337 makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
1338 prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
1339 prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
1340 Scenario variables are now specific to each project tree loaded in
1344 2009-09-17 Javier Miranda <miranda@adacore.com>
1346 * exp_disp.adb (Make_DT): Remove wrong line of code that was
1347 undocumented and probably added by mistake.
1349 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1351 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
1352 conversions between original and packable version of types from
1355 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1357 * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
1358 If a padding type was made for the field, declare it.
1359 (components_to_record): Add DEBUG_INFO_P parameter. Adjust call
1360 to gnat_to_gnu_field and call to self.
1361 (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
1362 <E_Array_Subtype>: Likewise.
1363 Adjust calls to gnat_to_gnu_field and components_to_record.
1365 2009-09-16 Robert Dewar <dewar@adacore.com>
1367 * prj-nmsc.adb: Minor reformatting
1369 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1371 * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
1372 expression is a by-reference type (tagged or inherently limited)
1373 introduce an access type to capture references to the values of each
1374 branch of the conditional.
1376 2009-09-16 Emmanuel Briot <briot@adacore.com>
1378 * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
1379 (Project_Name_And_Node.Display_Name): new field
1380 The display name of a project (as written in the .gpr file) is now
1381 computed when the project file itself is parsed, not when it is
1384 2009-09-16 Thomas Quinot <quinot@adacore.com>
1386 * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
1387 intrinsics untouched (to be expanded later on by gigi) if an external
1388 name has been specified.
1389 (Freeze_Entity): Do not generate a default external name for
1390 imported subprograms with convention Intrinsic (so that the above code
1391 can identify the case where an external name has been explicitly
1394 * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
1395 replaced by something else due to an existing #define clause.
1397 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1399 * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
1400 Parameter_Association node, created for the extra actual generated for
1401 an access parameter of a function that dispatches on result, to prevent
1402 double generation of such actuals when the call is rewritten is a
1404 * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
1405 * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
1406 that carry this flag when rewriting the original call as a dispatching
1407 call, after propagating the controlling tag.
1409 2009-09-16 Vincent Celier <celier@adacore.com>
1411 * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
1413 (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
1415 (Find_Source_Dirs): New parameter Rank to be recorded with the source
1417 (Search_Directories): Call Check_File with the rank of the directory
1418 * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
1419 (Free): Free also Number_Lists
1420 (Reset): Init also Number_Lists
1421 * prj.ads (Number_List_Table): New dynamic table for lists of numbers
1422 (Source_Data): New component Source_Dir_Rank. Remove component
1423 Known_Order_Of_Source_Dirs, no longer needed.
1424 (Project_Data): New component Source_Dir_Ranks
1425 (Project_Tree_Data): New components Number_Lists
1427 2009-09-16 Vincent Celier <celier@adacore.com>
1429 * gprep.adb (Yes_No): New global constant
1430 Unix_Line_Terminators: New global Boolean variable
1431 (Process_One_File): Create the out file with a "Text_Translation=" form
1432 that depends on the use of option -T.
1433 (Scan_Command_Line): Add option -T
1434 (Usage): Add line for option -T
1436 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1438 * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
1439 predicate that describes a proper subset of
1440 Is_Predefined_Dispatching_Operation and excludes stream operations,
1441 which can be overridden by the user.
1442 * sem_ch6.adb (Create_Extra_Formals): use
1443 Is_Predefined_Internal_Operation, so that stream operations get extra
1445 * exp_ch6.adb (Prevent double generation of extra actuals in calls to
1446 'Input, which may be expanded twice, first as a function call and then
1447 as a dispatching call.
1449 2009-09-16 Thomas Quinot <quinot@adacore.com>
1451 * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
1452 * g-expect.adb (Set_Up_Child_Communications): Use
1453 System.OS_Constants.Target_OS to determine whether running on Windows.
1455 2009-09-14 Richard Henderson <rth@redhat.com>
1457 * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
1459 2009-09-14 Eric Botcazou <ebotcazou@adacore.com>
1461 * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
1462 the unconstrained case.
1463 * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
1464 the encoding. Do not give a name to the pointer type to the XUT type.
1465 * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
1466 for fat pointer types, if any. Make sure DECL_ARTIFICIAL is cleared
1467 on nodes with DECL_ORIGINAL_TYPE set.
1468 (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
1469 for fat pointer types. Make sure DECL_ARTIFICIAL is cleared.
1471 2009-09-14 Richard Henderson <rth@redhat.com>
1473 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
1474 default_init_unwind_resume_libfunc.
1475 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
1476 __builtin_eh_pointer.
1477 * gcc-interface/utils.c (gnat_install_builtins): Update call
1478 to build_common_builtin_nodes.
1480 2009-09-13 Richard Guenther <rguenther@suse.de>
1481 Rafael Avila de Espindola <espindola@google.com>
1483 * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
1484 eh_personality_libfunc and lang_eh_runtime_type.
1485 (LANG_HOOKS_EH_PERSONALITY): Define.
1486 (gnat_eh_personality_decl): New static variable.
1487 (gnat_eh_personality): New static function.
1488 Include gt-ada-misc.h.
1489 * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
1490 * gcc-interface/config-lang.in (gtfiles): Add misc.c.
1492 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1495 * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
1497 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1499 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
1501 Avoid useless work when processing the Treat_As_Volatile flag.
1503 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1505 * gcc-interface/targtyps.c: Reorder include directives.
1507 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1509 * gcc-interface/targtyps.c: Add missing include for tm_p.h.
1510 * gcc-interface/Make-lang.in: Update dependencies.
1512 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1514 * make.adb: Add missing documentation for multilib handling.
1516 2009-09-03 Diego Novillo <dnovillo@google.com>
1518 * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
1520 2009-09-02 Richard Henderson <rth@redhat.com>
1522 * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
1524 2009-09-02 Olivier Hainque <hainque@adacore.com>
1526 * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
1529 2009-09-02 Olivier Hainque <hainque@adacore.com>
1531 * gcc-interface/decl.c (cannot_be_superflat_p): Handle
1532 Signed_Integer_Type_Definition Scalar_Ranges.
1534 2009-09-02 Eric Botcazou <ebotcazou@adacore.com>
1536 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
1537 SAVE_EXPR built for misaligned arguments. Remove redundant stuff.
1538 (addressable_p): Return true for more rvalues.
1540 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1542 * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
1543 POINTER_SIZE to HOST_WIDE_INT.
1545 2009-09-01 Richard Guenther <rguenther@suse.de>
1547 * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1549 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
1551 * gcc-interface/trans.c (call_to_gnu): Tidy.
1552 (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
1553 non-constant size but the array itself has constant size.
1554 * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
1556 (convert_vms_descriptor32): Likewise.
1558 2009-08-22 Aurelien Jarno <aurelien@aurel32.net>
1560 * gcc-interface/Makefile.in: Add Ada support for
1561 GNU/kFreeBSD x86_64.
1562 * system-freebsd-x86_64.ads: New file based on
1563 system-freebsd-x86.ads.
1565 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1567 * gcc-interface/utils.c (convert): In the padded case, do the final
1568 conversion as an unchecked conversion if the underlying types are
1569 array types with variable size.
1571 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1573 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
1575 * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
1577 * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
1579 (gnat_gimplify_expr) <DECL_EXPR>: New case.
1581 2009-08-17 Aurelien Jarno <aurelien@aurel32.net>
1583 * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
1584 (stack_t): New record type.
1585 (sigaltstack): New imported function.
1586 (Alternate_Stack): New imported variable.
1587 (Alternate_Stack_Size): New constant.
1589 2009-08-17 Vasiliy Fofanov <fofanov@adacore.com>
1591 * a-calend-vms.adb: Fix typo.
1593 2009-08-17 Tristan Gingold <gingold@adacore.com>
1595 * s-taprop-posix.adb: Round up the stack size to avoid failure on
1598 2009-08-17 Gary Dismukes <dismukes@adacore.com>
1600 * sem_cat.adb (Validate_Static_Object_Name): Update comment.
1602 2009-08-17 Vincent Celier <celier@adacore.com>
1604 * make.adb (Arguments_Collected): Unneeded, removed
1605 (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
1606 ensure caller does not pass in No_Project.
1607 (Compile): Add new parameter Project. Let procedure
1608 Collect_Arguments_And_Compile provide the proper value.
1610 * switch-c.adb: Add documentation for -gnatea and -gnatez
1612 2009-08-17 Ben Brosgol <brosgol@adacore.com>
1614 * gnat_ugn.texi: Changed name of package in SAL example, to avoid
1615 clash with Ada 2005 reserved word (interface).
1617 2009-08-17 Robert Dewar <dewar@adacore.com>
1619 * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
1620 a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
1621 a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
1622 (use conditional expressions).
1624 2009-08-17 Robert Dewar <dewar@adacore.com>
1626 * make.adb: Add ??? comment
1627 * tbuild.adb: Minor reformatting
1629 2009-08-17 Thomas Quinot <quinot@adacore.com>
1631 * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
1632 Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
1633 Use Tbuild.Make_Temporary to create entity for the temporary.
1635 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1637 * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
1638 and ignore -mieee switch to avoid spawning an extra gcc in this case.
1640 2009-08-17 Thomas Quinot <quinot@adacore.com>
1642 * tbuild.adb: Minor reformatting
1644 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1646 * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
1647 exist, as is the case for synchronized types, use the type of the
1648 discriminal in the parameter specification, to prevent a spurious
1649 subtype mismatch in gigi.
1651 2009-08-17 Robert Dewar <dewar@adacore.com>
1653 * prj-env.adb: Minor reformatting
1654 * make.adb: Minor reformatting
1657 2009-08-17 Javier Miranda <miranda@adacore.com>
1659 * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
1661 2009-08-17 Emmanuel Briot <briot@adacore.com>
1663 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
1664 (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
1665 object directories must be present. In the case of gprclean at least,
1666 these are optional (if they do not exist there is nothing to clean)
1668 2009-08-17 Robert Dewar <dewar@adacore.com>
1670 * prj-env.adb: Minor reformatting
1671 * sem_ch3.adb: Minor reformatting
1673 2009-08-17 Hristian Kirtchev <kirtchev@adacore.com>
1675 * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
1676 the time zone since VxWorks chose positive values to represent west
1677 time zones and negative for east zones.
1679 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1681 * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
1682 an anonymous access type whose designated type is generic.
1684 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1686 * comperr.adb (Compiler_Abort): Do not generate a bug box when in
1687 codepeer mode, friendlier.
1689 2009-08-10 Laurent GUERBY <laurent@guerby.net>
1691 * make.adb: Handle multilib
1693 2009-08-10 Vincent Celier <celier@adacore.com>
1695 * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
1696 the temporary file name in the error message when the temporary file
1699 2009-08-10 Yannick Moy <moy@adacore.com>
1701 * gnat_ugn.texi: Fix typo
1703 2009-08-10 Robert Dewar <dewar@adacore.com>
1705 * exp_ch7.adb: Add ??? comment for last change
1707 2009-08-10 Vincent Celier <celier@adacore.com>
1709 * prj-env.adb (Add_To_Buffer): New procedure
1710 (Create_Config_Pragmas_File): Write to temporary file in one shot
1711 (Create_Mapping_File): Ditto
1712 (Set_Ada_Paths): Ditto
1714 2009-08-10 Vincent Celier <celier@adacore.com>
1717 * xref_lib.adb (Print_Xref): Make sure that there is at least one space
1718 between a declaration name and its type.
1720 2009-08-07 Javier Miranda <miranda@adacore.com>
1722 * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
1725 2009-08-07 Robert Dewar <dewar@adacore.com>
1727 * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
1729 2009-08-07 Vincent Celier <celier@adacore.com>
1731 * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
1732 specified on the command line and there are switches in the Compiler
1733 package of the project file, use these compilation switches to invoke
1736 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1738 * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
1740 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1742 * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
1743 even if not in main unit, to simplify debugging.
1745 2009-08-07 Arnaud Charlet <charlet@adacore.com>
1747 * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
1748 * gcc-interface/Make-lang.in: Update dependencies.
1750 2009-08-07 Robert Dewar <dewar@adacore.com>
1752 * types.ads: Minor reformatting
1753 * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
1754 * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
1755 Output_Non_Modified_In_Out_Warnings.
1756 * sem_ch13.adb: Remove ??? comment.
1758 2009-08-07 Vincent Celier <celier@adacore.com>
1760 * mlib-prj.adb (Build_Library): Include binder generate object file
1761 for SAL when library name is only one character.
1763 2009-08-07 Thomas Quinot <quinot@adacore.com>
1765 * targparm.adb: Minor reformatting
1766 * sem.adb: Minor reformatting
1767 * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
1769 2009-08-07 Emmanuel Briot <briot@adacore.com>
1771 * prj-conf.adb: Remove duplicate directory separator in the output when
1772 an object directory does not exist.
1774 2009-08-07 Robert Dewar <dewar@adacore.com>
1776 * exp_util.adb: Minor reformatting
1778 2009-08-07 Vincent Celier <celier@adacore.com>
1780 * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
1783 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1785 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
1786 detect non-static private components that will violate restriction
1787 No_Implicit_Heap_Allocation.
1789 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1791 * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
1793 2009-08-02 Eric Botcazou <ebotcazou@adacore.com>
1795 * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
1796 * gcc-interface/utils.c (end_subprog_body): Likewise.
1797 * gcc-interface/trans.c (gigi): Likewise.
1798 (gnat_to_gnu): Likewise.
1800 2009-07-30 Ben Brosgol <brosgol@adacore.com>
1802 * gnat_ugn.texi: Correct minor texi glitch.
1804 2009-07-30 Ed Schonberg <schonberg@adacore.com>
1806 * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
1807 expression has an underlying representation that is an unchecked union,
1808 there is no subtype to build.
1810 2009-07-30 Robert Dewar <dewar@adacore.com>
1812 * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
1813 s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
1814 sem_ch7.adb, adaint.c: Minor reformatting
1816 2009-07-29 Javier Miranda <miranda@adacore.com>
1818 * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
1819 moved from the expander to the semantic analyzer to allow the
1820 generation of these internal entities when compiling with no code
1821 generation. Required by ASIS.
1822 * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
1823 * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
1824 * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
1825 (Expand_Freeze_Record_Type): Remove call to
1826 Add_Internal_Interface_Entities because this routine is now called at
1827 early stage --when the freezing node is analyzed.
1829 2009-07-29 Robert Dewar <dewar@adacore.com>
1831 * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
1832 exp_disp.adb, g-socket.adb: Minor reformatting
1834 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1836 * sem_ch7.adb (New_Private_Type): Create class-wide type after other
1837 attributes have been established, so that they are all inherited by the
1839 * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
1840 properly named subtypes of class-wide types.
1842 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1844 * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
1845 indicators on user-defined operators.
1847 2009-07-29 Vadim Godunko <godunko@adacore.com>
1849 * g-socket.adb (Receive_Vector): Add comment.
1851 2009-07-29 Javier Miranda <miranda@adacore.com>
1853 * frontend.adb (Frontend): Code cleanup.
1854 * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
1855 Rewriten as a procedure because it a new out-mode parameters to
1856 keep up-to-date the controlling tag node in the caller.
1857 (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
1858 new out-mode parameter to keep up-to-date the controlling tag node in
1860 * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
1861 exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
1863 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
1864 available in new package Sem_SCIL.
1865 (Next_Non_SCIL_Node): Ditto.
1866 * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
1868 (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
1869 plus complete decoration of SCIL dispatching node.
1870 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1871 * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
1873 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1874 * exp_ch3.adb (Build_Init_Procedure): Fix comment.
1875 * sem_scil.ads, sem_scil.adb: New files.
1876 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
1877 Update dependencies.
1879 2009-07-28 Robert Dewar <dewar@adacore.com>
1881 * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
1882 makeutl.adb: Minor reformatting & code reorganization
1883 * sem_ch3.adb: Minor reformatting.
1884 Fix spelling error (constraint for constrain) in error msg.
1886 2009-07-28 Emmanuel Briot <briot@adacore.com>
1888 * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
1889 global variable that also exists in makeutl.ads, and that some routines
1890 in that package use already.
1891 (Check): Moved part of the code to makeutl.adb for better sharing with
1894 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1896 * gcc-interface/Make-lang.in: Update dependencies.
1898 2009-07-28 Emmanuel Briot <briot@adacore.com>
1900 * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
1901 importing project does not end up in the list, in the case of extending
1903 * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
1904 makeutl.ads, for better sharing with gprbuild.
1906 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1908 * gnat_ugn.texi: Fix typo.
1910 2009-07-28 Ed Schonberg <schonberg@adacore.com>
1912 * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
1913 derivation that renames some discriminants and constrain others.
1914 * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
1915 prefix is a derived untagged type, convert to the root type to conform
1916 to the signature of the protected operations.
1918 2009-07-28 Robert Dewar <dewar@adacore.com>
1920 * sinfo.ads: Update comments.
1921 * exp_attr.adb: Minor reformatting
1923 2009-07-28 Ed Schonberg <schonberg@adacore.com>
1925 * sem_aggr.adb (Get_Value): A named association in a record aggregate
1926 should be treated as a modification of the named component, not as a
1929 2009-07-28 Quentin Ochem <ochem@adacore.com>
1931 * prj-tree.ads, prj-tree.adb (Free): Minor editing.
1932 * prj.ads, prj.adb (Image): Ditto.
1934 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1936 * frontend.adb: Minor reformatting.
1937 (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
1940 2009-07-28 Bob Duff <duff@adacore.com>
1942 * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
1943 'Address to get a pointer to the protected body wrapper.
1945 2009-07-28 Javier Miranda <miranda@adacore.com>
1947 * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
1948 nodes if we are not generating code.
1949 * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
1950 attribute SCIL_Related_Node of SCIL dispatching nodes.
1951 (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
1952 * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1953 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1954 (SCIL_Entity): Update documentation.
1955 (SCIL_Related_Node): Update documentation.
1956 (SCIL_Controlling_Tag): New attribute.
1957 (SCIL_Target_Prim): Update documentation.
1958 (N_Null_Statement): Remove attributes associated with SCIL nodes.
1959 (N_SCIL_Dispatch_Table_Object_Init): New node.
1960 (N_SCIL_Dispatch_Table_Tag_Init): New node.
1961 (N_SCIL_Dispatching_Call): New node.
1962 (N_SCIL_Tag_Init): New node.
1963 * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1964 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1965 (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
1966 (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
1967 (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
1968 (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
1969 N_SCIL_Dispatching_Call nodes.
1970 * sem.adb (Analyze): No need to analyze SCIL nodes.
1971 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
1972 (Next_Non_SCIL_Node): New subprogram
1973 * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
1975 * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
1977 * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
1979 * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
1980 null statement nodes.
1981 (Build_Init_Procedure): Generate new SCIL node.
1982 * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
1984 * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
1985 they are currently implemented as special N_Null_Statement nodes.
1986 * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
1987 procedure call then check if some SCIL node references it and needs
1989 * exp_disp.ads (SCIL_Node_Kind): Removed.
1990 (Adjust_SCIL_Node): New subprogram.
1991 (Find_SCIL_Node): New subprogram.
1992 (Get_SCIL_Node_Kind): Removed.
1993 (New_SCIL_Node): Removed.
1994 * exp_disp.adb (Adjust_SCIL_Node): New subprogram
1995 (Expand_Dispatching_Call): Generate new SCIL dispatching node including
1996 decoration of its new controlling_tag attribute.
1997 (Get_SCIL_Node_Kind): Removed.
1998 (Find_SCIL_Node): New subprogram.
1999 (Make_Secondary_DT): Generate new SCIL nodes.
2000 (Make_Tags): Generate new SCIL nodes.
2001 (New_SCIL_Node): Removed.
2002 * exp_util.adb (Insert_Actions): Handle SCIL nodes.
2003 (Remove_Side_Effects): Check if relocated nodes require readjustment
2004 of some SCIL dispatching node.
2005 * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
2007 2009-07-28 Robert Dewar <dewar@adacore.com>
2009 * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
2011 2009-07-28 Sergey Rybin <rybin@adacore.com>
2013 * gnat_ugn.texi: Add section about gnatcheck rule exemption.
2015 2009-07-28 Vadim Godunko <godunko@adacore.com>
2017 * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
2018 not defined by limits.h.
2020 * g-socket.adb (Receive_Vector): Use minimum length from user's vector
2021 length and maximum supported length of data vector.
2023 2009-07-28 Gary Dismukes <dismukes@adacore.com>
2025 * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
2026 * make.adb: Call Get_Target_Parameters before calling Usage so that
2027 VM_Target and AAMP_On_Target will be set.
2029 2009-07-28 Olivier Hainque <hainque@adacore.com>
2031 * g-ssinty.ads: Remove, pointless and just confusing at this stage.
2032 * gnat_rm.texi: Remove documentation.
2033 * g-sse.ads: Minor reorg along the way.
2034 * gcc-interface/Makefile.in: Remove processing for g-ssinty.
2035 * g-ssvety.ads: Minor comment updates.
2037 2009-07-28 Sergey Rybin <rybin@adacore.com>
2039 * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
2040 for the new format of the report file.
2042 2009-07-28 Sergey Rybin <rybin@adacore.com>
2044 * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
2046 2009-07-28 Pascal Obry <obry@adacore.com>
2048 * g-expect.adb: Record standard handles only on Windows.
2050 2009-07-27 Emmanuel Briot <briot@adacore.com>
2052 * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
2055 2009-07-27 Sergey Rybin <rybin@adacore.com>
2057 * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
2058 rule definition the paragraph that explains that generic functions and
2059 functions from generic packages are not checked.
2061 2009-07-27 Gary Dismukes <dismukes@adacore.com>
2063 * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
2064 procedure when determining whether to set the Overridden_Operation
2065 field of a subprogram overriding an inherited subprogram.
2067 2009-07-27 Robert Dewar <dewar@adacore.com>
2069 * a-except.adb, a-except-2005.ads: Minor reformatting
2071 2009-07-27 Robert Dewar <dewar@adacore.com>
2073 * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
2075 2009-07-27 Javier Miranda <miranda@adacore.com>
2077 * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
2078 add some documentation explaining why the SCIL nodes must be generated
2081 2009-07-27 Olivier Hainque <hainque@adacore.com>
2083 * a-except.adb: Bind to __builtin_longjmp directly.
2084 * a-except-2005.ads: Provide direct binding to __builtin_longjmp
2086 * a-exexpr.adb: Use it.
2087 * a-except-xi.adb: Likewise.
2088 * raise.c (_gnat_builtin_longjmp): Remove and update comments.
2089 * raise.h (_gnat_builtin_longjmp): Remove declaration.
2091 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2093 * sem_eval.adb (Compile_Time_Compare): More precise handling of
2094 Known_Valid flag, to prevent spurious range deductions when scalar
2095 variables may be uninitialized. New predicate Is_Known_Valid_Operand.
2097 2009-07-27 Robert Dewar <dewar@adacore.com>
2099 * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
2102 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2104 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
2105 Ravenscar mode. Error has already been posted on specification.
2107 * sem.adb: Further code clean ups.
2109 2009-07-27 Robert Dewar <dewar@adacore.com>
2111 * g-sse.ads: Minor reformatting
2113 2009-07-27 Arnaud Charlet <charlet@adacore.com>
2115 * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
2116 alternate ali extension.
2117 * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
2118 account Osint.ALI_Suffix.
2119 * osint.ads (ALI_Suffix): Make visible.
2120 * gnatfind.adb (Gnatfind): Add support for --ext= switch.
2121 * gnat_ugn.texi: Document new gnatfind --ext= switch.
2123 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2125 * sem.adb (Walk_Library_Items): If main unit is an instance body, do
2128 2009-07-27 Javier Miranda <miranda@adacore.com>
2130 * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
2131 the dispatching call has is expanded.
2133 2009-07-27 Ed Schonberg <schonberg@adacore.com>
2135 * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
2136 Is_Known_Valid flag on the temporary created for the value whose
2137 validity is being checked.
2139 * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
2140 handle properly main units that are package specifications.
2142 2009-07-27 Geert Bosch <bosch@adacore.com>
2144 * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
2145 * sem_aux.ads: Fix typo in comment
2146 * sem_util.ads (Is_LHS): Adjust comment to match body
2148 2009-07-27 Sergey Rybin <rybin@adacore.com>
2150 * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
2153 2009-07-27 Olivier Hainque <hainque@adacore.com>
2155 * g-sse.ads, g-ssvety.ads: Update comments.
2157 2009-07-27 Sergey Rybin <rybin@adacore.com>
2159 * gnat_ugn.texi: Update gnatcheck doc.
2161 2009-07-27 Arnaud Charlet <charlet@adacore.com>
2163 * lib-xref.ads: Allocate/document 'o' char for use by references to
2164 spark 'own' variables.
2166 2009-07-27 Gary Dismukes <dismukes@adacore.com>
2168 * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
2169 objects, since these are implicitly referenced by the return statement.
2170 * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
2171 Is_Return_Object in this procedure, as return objects will never make
2172 it here since they're now marked as Referenced.
2174 2009-07-27 Robert Dewar <dewar@adacore.com>
2176 * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
2178 2009-07-27 Robert Dewar <dewar@adacore.com>
2180 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
2182 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
2184 2009-07-27 Geert Bosch <bosch@adacore.com>
2186 * checks.adb (Find_Check): Minor streamlining of logic.
2187 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
2188 * debug.adb: Document -gnatdX debug flag
2189 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
2190 list information about reads from scalar entities.
2191 Also slightly simplify condition for Expand_Current_Value.
2192 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
2195 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
2198 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
2199 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
2201 (__gnat_stat): Adjust reference to STAT in prototype.
2202 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
2203 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
2204 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
2205 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
2206 __gnat_is_writable_file, __gnat_is_executable_file,
2207 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
2208 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
2209 __gnat_copy_attribs): Adjust all references to the above.
2210 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
2212 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2214 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
2215 done at the same time, guard against listing a body more than once.
2217 2009-07-23 Robert Dewar <dewar@adacore.com>
2219 * exp_ch6.adb: Minor reformatting
2221 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2223 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
2224 static expression is known valid.
2225 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
2226 operands of a subtype with a single value.
2228 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2230 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
2231 are in the context of the main unit body.
2233 2009-07-23 Sergey Rybin <rybin@adacore.com>
2235 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
2236 misprint in rule description.
2238 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2240 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
2241 test that the object declaration is within an extended return statement
2242 with direct test of whether the declared object associated with the
2243 build-in-place call is a return object, since the enclosing function
2244 might not even be a build-in-place function.
2246 2009-07-23 Robert Dewar <dewar@adacore.com>
2248 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
2249 Minor code reorganization
2251 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2253 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
2254 for static analysis, only packed arrays are causing troubles.
2256 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2258 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
2259 ancestor part is a call to a limited function with an unconstrained
2260 result subtype unless the aggregate has a null extension type.
2261 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
2262 the parent type declaration to avoid blowups on subtype cases.
2264 2009-07-23 Robert Dewar <dewar@adacore.com>
2266 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
2269 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
2271 * s-regexp.adb: Minor reformatting
2272 * scos.ads: Minor reformatting.
2274 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2276 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
2277 other similar messages.
2278 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
2279 messages/implicit packing in CodePeer mode.
2280 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
2281 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
2284 2009-07-23 Pascal Obry <obry@adacore.com>
2286 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
2289 2009-07-23 Robert Dewar <dewar@adacore.com>
2291 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
2294 2009-07-23 Yannick Moy <moy@adacore.com>
2296 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
2298 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
2300 (Raise_Exception): Ditto.
2302 2009-07-23 Olivier Hainque <hainque@adacore.com>
2304 * g-sse.ads: Simplify comment.
2306 2009-07-23 Olivier Hainque <hainque@adacore.com>
2308 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
2309 low level internal type definitions for distinct higher level
2310 binding development activities (user type definitions and
2312 * gnat_rm.texi: Document it.
2313 * g-ssvety.ads: Use it.
2314 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
2315 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
2316 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
2317 for the "may_alias" attribute.
2319 2009-07-23 Thomas Quinot <quinot@adacore.com>
2321 * scos.ads: Minor typo fix
2323 * gcc-interface/decl.c (validate_alignment): For the case of an
2324 implicit array base type, look for alignment clause on first subtype.
2326 2009-07-23 Robert Dewar <dewar@adacore.com>
2328 * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
2329 with tagged parent if tagged parent is fully repped.
2331 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2333 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
2334 in the context depends on the spec of the main unit, by delaying
2335 processing of the main unit body until all other units have been
2338 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2340 * a-convec.adb: Add comments about suspicious/subtle code.
2342 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2344 * einfo.ads: Document use of Alias in private overriding
2346 2009-07-23 Thomas Quinot <quinot@adacore.com>
2348 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
2349 an array type, propagate alignment from first subtype to implicit base
2350 type so that other subtypes (such as the itypes for aggregates of the
2351 type) also receive the expected alignment.
2353 * g-comlin.ads: Minor documentation clarification/rewording.
2354 * scos.ads: Minor comments update.
2355 * lib-writ.ads: Minor reformatting
2357 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2359 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
2360 of a class-wide interface type that is a return object of a
2361 build-in-place function, bypass the interface-related expansions into
2362 renamings with displacement conversions, etc.
2363 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
2364 for the case where a renaming occurs in a build-in-place context, to
2365 assert that the bypassing of the build-in-place treatment only occurs
2366 in the case of a renaming that is an expansion of a return expression
2367 that is itself a build-in-place function call.
2369 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2371 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
2372 valid candidate interpretation in a prefixed view if it is hidden, but
2373 overrides an inherited operation declared in the visible part.
2375 2009-07-23 Robert Dewar <dewar@adacore.com>
2377 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2378 division operands to 64-bit at all in any circumstances.
2380 2009-07-23 Robert Dewar <dewar@adacore.com>
2382 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
2383 checking ranges for mod/rem to see if conditional jump will be
2385 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
2386 generating special -1 test for rem, generate it whenever both
2387 operands can be negative (match circuit in Sem_Res).
2388 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
2389 destroys memory of positive range.
2390 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
2391 checking ranges for mod/rem to see if conditional jump will be generated
2393 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2395 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
2396 scalar components has non-static bounds, the equivalent aggregate
2397 cannot be built, even if the expression is static, because range checks
2400 2009-07-23 Robert Dewar <dewar@adacore.com>
2402 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2403 division operands to 64-bit inside a conversion if 64-bit division not
2406 2009-07-23 Sergey Rybin <rybin@adacore.com>
2408 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
2410 2009-07-23 Javier Miranda <miranda@adacore.com>
2412 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
2413 (Entity/Set_Entity): not available in N_Null_Statement nodes
2414 (Is_Scil_Node): renamed as Is_SCIL_Node
2415 (Scil_Nkind): renamed as SCIL_Nkind
2416 (Scil_Related_Node): renamed as SCIL_Related_Node
2417 (Scil_Target_Prim): renamed as SCIL_Target_Prim
2418 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
2419 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
2420 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
2421 Update documentation
2422 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
2423 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2424 (New_Scil_Node): Renamed as New_SCIL_Node
2425 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
2426 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2427 (New_Scil_Node): Renamed as New_SCIL_Node
2428 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
2430 2009-07-23 Robert Dewar <dewar@adacore.com>
2432 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
2433 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
2434 * einfo.adb: Minor reformatting
2436 2009-07-23 Robert Dewar <dewar@adacore.com>
2438 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
2439 cross-referencing the new related code in
2440 Exp_Ch4.Expand_N_Type_Conversion.
2441 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
2443 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
2446 2009-07-23 Javier Miranda <miranda@adacore.com>
2448 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
2449 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
2450 * exp_disp.ads (Scil_Node_Kind): Ditto.
2451 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
2452 * exp_ch3.adb (Build_Init_Procedure): Ditto.
2454 2009-07-23 Javier Miranda <miranda@adacore.com>
2456 * einfo.adb (Component_Type): Add missing assertion.
2457 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
2458 reading attribute Component_Size.
2459 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
2460 before reading attributes Component_Size and Component_Type.
2461 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
2462 before reading attribute Component_Type.
2464 2009-07-23 Olivier Hainque <hainque@adacore.com>
2466 * gnat_rm.texi: Document the GNAT.SSE units.
2468 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2470 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
2471 not null return if it appears on a subunit.
2473 2009-07-23 Robert Dewar <dewar@adacore.com>
2475 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
2476 check right away so it does not get skipped for early returns, e.g.
2478 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
2479 left-side unless we really know the value is valid.
2481 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
2482 reformatting. Minor code reorganization. Add comments.
2484 2009-07-23 Robert Dewar <dewar@adacore.com>
2486 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
2489 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2491 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
2492 with test of coverage, to allow specific type objects in extended
2493 returns of class-wide functions. Remove now-unnecessary special-case
2494 tests that allowed this in certain cases of expanded extended returns.
2496 2009-07-23 Javier Miranda <miranda@adacore.com>
2498 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
2499 N_Null_Statements (for SCIL nodes).
2500 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
2501 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
2502 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
2504 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
2505 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
2506 associated with dispatching call.
2507 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
2508 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
2509 initialization of dispatch tables and initialization of tags.
2510 (New_Scil_Node): New function that creates a new SCIL node.
2511 (Build_Init_Procedure): Add generation of SCIL node associated with the
2512 initialization of tags done in the IP subprogram.
2514 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2516 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
2517 Warnings_Off, do not emit continuation messages.
2519 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
2522 2009-07-23 Emmanuel Briot <briot@adacore.com>
2524 * ali.adb: Minor comment update
2526 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
2528 * s-win32.ads (HANDLE): Define to be the same size as address type.
2531 2009-07-23 Olivier Hainque <hainque@adacore.com>
2533 * g-sse.ads: New file. Root of the SSE facilities trees, with
2534 general description and common declarations.
2535 * g-ssvety.ads: New file. Expose user level SSE vector types.
2536 * impunit.adb (Non_Imp_File_Names_95): Register new units.
2537 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
2538 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
2540 2009-07-23 Ben Brosgol <brosgol@adacore.com>
2542 * gnat_ugn.texi: Wordsmithing.
2544 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2546 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
2548 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
2550 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
2551 they are already of the base type of the index.
2553 2009-07-22 Brett Porter <porter@adacore.com>
2555 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
2557 2009-07-22 Robert Dewar <dewar@adacore.com>
2559 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
2560 * gnat_ugn.texi: Add documentation for -gnateS switch
2561 * ug_words: Add entry for -gnateS /SCO_OUTPUT
2562 * gcc-interface/Make-lang.in: Update dependencies.
2564 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
2565 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
2566 complete information for SCO input/output.
2568 2009-07-22 Sergey Rybin <rybin@adacore.com>
2570 * gnat_ugn.texi: Update doc for some gnatcheck rules.
2572 2009-07-22 Robert Dewar <dewar@adacore.com>
2574 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
2575 contents of SCO tables.
2576 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
2577 scos.adb, scos.ads: New files.
2578 * gcc-interface/Make-lang.in: Update dependencies.
2580 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
2581 fixes and reformatting.
2583 2009-07-22 Robert Dewar <dewar@adacore.com>
2585 * g-socket.ads: Minor reformatting
2587 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2589 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
2590 include the entity kind for following cases of unreferenced entities:
2591 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
2593 2009-07-22 Ed Falis <falis@adacore.com>
2595 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
2598 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2600 * adadecode.c: Make this file compilable outside of GCC.
2602 2009-07-22 Thomas Quinot <quinot@adacore.com>
2604 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
2605 (partially) default-initialized socket sets are handled properly by
2606 clearing their Set component.
2608 2009-07-22 Bob Duff <duff@adacore.com>
2610 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
2612 2009-07-22 Robert Dewar <dewar@adacore.com>
2614 * gnat_ugn.texi: Minor reformatting
2616 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2618 * errout.adb (Error_Msg): A style message within an instantiation
2619 should not be labelled as an error.
2621 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2623 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
2624 in initialization expression if function does not have convention Ada.
2626 2009-07-22 Sergey Rybin <rybin@adacore.com>
2628 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
2629 '--separate-label' to control label layout.
2631 2009-07-22 Robert Dewar <dewar@adacore.com>
2633 * exp_tss.ads, sem_eval.adb: Minor reformatting
2635 2009-07-22 Bob Duff <duff@adacore.com>
2637 * exp_dist.adb, exp_dist.ads: Update comments.
2639 2009-07-22 Brett Porter <porter@adacore.com>
2641 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
2643 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
2645 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2647 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
2648 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
2650 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
2651 used poor terminology.
2653 2009-07-22 Robert Dewar <dewar@adacore.com>
2655 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
2656 * sem_eval.adb, exp_tss.adb: Minor comment update.
2657 * stylesw.adb: Code clean up.
2659 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2661 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
2662 component size is an exact number of bytes, an array type can have a
2663 size clause that forces packing even though the array type itself is
2666 2009-07-22 Thomas Quinot <quinot@adacore.com>
2668 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
2669 if there is a previous entity with the same name in the scope, ignore
2670 it if it is the renaming declaration for a generic package introduced
2673 2009-07-22 Nicolas Roche <roche@adacore.com>
2675 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
2676 handler on x86_64 windows.
2678 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2680 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
2681 false positives in CodePeer, so ignore this pragma in this mode.
2683 2009-07-22 Thomas Quinot <quinot@adacore.com>
2685 * sem_util.adb, sem_ch10.adb: Minor reformatting
2687 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
2688 special handling for the case of no data received and Item'First =
2689 Stream_Element_Offset'First.
2690 (Last_Index): New subprogram factoring the above special handling
2691 over the various locations where it is required.
2693 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2695 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
2696 checks in CodePeer_Mode.
2697 * gcc-interface/Make-lang.in: Update dependencies.
2699 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2701 * sem_aggr.adb: Improve error message.
2703 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
2704 of an address representation clause.
2705 * freeze.adb (Freeze_Static_Object): An local imported object is legal
2706 if it has an address clause.
2708 2009-07-22 Thomas Quinot <quinot@adacore.com>
2710 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
2711 expression to insert an elab check using a conditional expression, be
2712 sure to carry the original list of interpretations to the new location.
2714 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2716 * gnat1drv.adb: Fix spelling error.
2718 2009-07-22 Javier Miranda <miranda@adacore.com>
2720 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
2721 at the library level and fix a hidden bug in its implementation: its
2722 functionality for renaming objects was broken because
2723 N_Object_Renaming_Declarations nodes are not a subclass of
2724 N_Declaration nodes (as documented in sinfo.ads).
2725 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
2726 check nodes that are actuals of generic instantiations.
2728 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2730 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
2731 context of a compilation unit is being analyzed. Used to detect
2732 circularities created by with_clauses that are not detected by the
2734 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
2735 analyzing the context of the current compilation unit, to detect
2736 possible circularities created by with_clauses.
2738 2009-07-22 Thomas Quinot <quinot@adacore.com>
2740 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
2742 2009-07-22 Robert Dewar <dewar@adacore.com>
2744 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
2745 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
2747 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
2748 * gnat_ugn.texi: Add documentation of -gnatyB
2749 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
2751 2009-07-22 Robert Dewar <dewar@adacore.com>
2753 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
2754 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
2755 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
2756 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
2757 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
2758 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
2759 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
2760 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
2761 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
2762 obey short-circuit style rule.
2764 2009-07-20 Bob Duff <duff@adacore.com>
2766 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
2767 instead of "and", because otherwise Parent_Last_Bit is read
2768 uninitialized in the case where it's not a tagged type, or the tagged
2769 parent does not have a complete rep clause.
2771 2009-07-20 Robert Dewar <dewar@adacore.com>
2773 * stylesw.ads: Minor documentation change.
2775 * types.ads: Minor reformatting
2777 2009-07-20 Javier Miranda <miranda@adacore.com>
2779 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
2780 generating the tag checks associated with dispatching calls.
2781 * exp_disp.adb (Apply_Access_Checks): New subprogram.
2782 (New_Value): This routine was previously local to expand dispatching
2783 calls but it is now used also by Apply_Access_Checks.
2784 (Expand_Dispatching_Calls): Cleanup code because the functionality of
2785 tag checks is now provided by Apply_Access_Checks.
2786 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
2787 case of dispatching calls.
2789 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2791 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
2794 2009-07-20 Gary Dismukes <dismukes@adacore.com>
2796 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
2797 for VMS, only rewrite the first component of the associated exception's
2798 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
2799 and third components that were being replaced with 'M' and 'S'.
2801 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2803 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
2804 Also do not generate error when parsing a spec in CodePeer mode.
2806 2009-07-20 Javier Miranda <miranda@adacore.com>
2808 * checks.adb (Apply_Access_Check): Avoid checks on availability of
2809 runtime function Offset_To_Top_Ptr when compiling with no tagged
2811 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
2812 adding code to the init proc when compiling for VM backends.
2814 2009-07-20 Vincent Celier <celier@adacore.com>
2816 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
2817 account switches -gnatw.?
2819 2009-07-20 Thomas Quinot <quinot@adacore.com>
2821 * sem_dist.adb, exp_dist.adb: Minor reformatting
2823 * Make-generated.in: New file.
2825 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
2827 2009-07-20 Javier Miranda <miranda@adacore.com>
2829 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
2831 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
2832 dynamically tagged expression.
2833 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
2835 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
2836 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2838 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2840 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
2841 CodePeer_Mode is set, to benefit from full front-end expansion
2844 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2846 * sem_res.adb: Add guard.
2848 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
2849 for possible attribute definition of External_Tag, in case clause
2850 appears in the private part of a package.
2852 2009-07-20 Jerome Guitton <guitton@adacore.com>
2854 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
2856 2009-07-20 Vadim Godunko <godunko@adacore.com>
2858 * a-coorma.adb: Minor reformatting.
2860 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2862 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
2863 access return types.
2864 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
2865 provide an itype reference to gigi to force elaboration of the subtype
2866 at the proper point.
2868 2009-07-20 Tristan Gingold <gingold@adacore.com>
2870 * g-expect.adb: Avoid closeing already closed handle.
2872 2009-07-20 Robert Dewar <dewar@adacore.com>
2874 * sprint.adb (Write_Subprogram_Name): New procedure to output
2875 subprogram name with possible preceding $ (replaces
2876 Note_Implicit_Run_Time_Call).
2878 2009-07-20 Robert Dewar <dewar@adacore.com>
2880 * vms_data.ads: Minor reformatting
2882 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
2883 applies to base type.
2884 (Parent_Subtype): Now allowed on record subtype, applies to base type
2885 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
2886 for case of fully repped tagged type.
2887 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
2888 tag save/restore for fully repped tagged type case.
2889 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
2890 * fe.h (Is_Fully_Repped_Tagged_Type): New function
2891 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
2892 overlap of tagged type components with parent type if parent type is
2894 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
2896 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
2898 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
2899 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
2901 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
2902 logical operators (AND/OR/XOR), not comparison operators.
2904 * sprint.ads: Minor reformatting
2906 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2908 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
2909 intrinsics, check that argument is a string literal, rather than
2910 checking for staticness.
2912 2009-07-20 Robert Dewar <dewar@adacore.com>
2914 * sem_ch13.adb: Minor reformatting
2916 * einfo.ads: Minor reformatting
2917 Component_Bit_Offset is no longer considered obsolescent
2919 2009-07-20 Nicolas Roche <roche@adacore.com>
2921 * a-calend.adb: Redefine time_t as signed integer with same size as
2923 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
2925 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
2928 2009-07-20 Javier Miranda <miranda@adacore.com>
2930 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
2931 constructors that have anonymous access type formals.
2933 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
2934 class-wide arguments in case of imported C++ subprograms.
2936 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
2938 2009-07-20 Sergey Rybin <rybin@adacore.com>
2940 * vms_data.ads: Update qualifiers.
2942 2009-07-20 Robert Dewar <dewar@adacore.com>
2944 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
2947 2009-07-17 Richard Guenther <rguenther@suse.de>
2950 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
2951 state. Remove unused parameter.
2952 (gnat_gimplify_function): Do not gimplify here.
2953 Fold into its only caller and remove.
2954 (gnat_builtin_function): Adjust for end_subprog_body signature change.
2955 (gnat_write_global_declarations): Also finalize the CU.
2956 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
2957 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
2958 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
2960 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
2962 2009-07-15 Arnaud Charlet <charlet@adacore.com>
2964 * gcc-interface/Make-lang.in: Update dependencies
2966 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
2968 2009-07-15 Robert Dewar <dewar@adacore.com>
2970 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
2971 N_Label. Remove SCO table entry for entry point (not used).
2973 * par_sco.ads: Remove SCO entry point type (not used)
2975 * switch.adb: Minor code clean up.
2977 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
2979 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
2981 2009-07-15 Thomas Quinot <quinot@adacore.com>
2983 * gnatls.adb: Minor reformatting
2985 * gnatcmd.adb: Minor code reorganization
2987 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2989 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
2990 determine whether a component of a private type has a composite type.
2992 2009-07-15 Robert Dewar <dewar@adacore.com>
2994 * sem_ch10.adb: Minor reformatting throughout
2995 Minor code reorganization (put nested subprograms in alpha order)
2997 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2999 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
3000 when compiling a call to a protected function that returns a controlled
3003 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
3005 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
3006 one. Add task locking and unlocking around the critical region which
3007 mentions localtime_r and global variable timezone for various targets.
3008 Comment reformatting.
3010 2009-07-15 Robert Dewar <dewar@adacore.com>
3012 * gnat_rm.texi: Document s-ststop.ads
3014 * impunit.ad: (Map_Array): New table of alternative names
3015 (Get_Kind_Of_Unit): Return possible suggested alternative name
3017 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
3020 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
3021 alternative unit if an implementation unit is with'ed.
3023 2009-07-15 Robert Dewar <dewar@adacore.com>
3025 * gnat_ugn.texi: Minor updates.
3027 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
3029 2009-07-15 Ed Schonberg <schonberg@adacore.com>
3031 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
3032 conditions of a derived boolean type.
3035 2009-07-15 Robert Dewar <dewar@adacore.com>
3037 * gnat1drv.adb: Initialize SCO tables
3039 * par-load.adb: Call SCO_Record for main unit spec
3041 * par.adb: Make call to SCO_Record for main unit
3043 * par_sco.adb (Unit_Table): Change format to facilitate sort
3044 (Process_Decisions): New procedure with list argument
3045 (Traverse_Generic_Package_Declaration): New procedure
3046 (Initialize): New procedure, replaces Init
3047 (SCO_Output): Sort unit table before output
3048 (SCO_Record): Avoid duplications
3049 (SCO_Record): Handle remaining cases of units
3050 (Traverse_Declarations_Or_Statements): Handle generics
3052 * par_sco.ads (Initialize): New peocedure (replaces Init)
3054 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
3057 2009-07-15 Arnaud Charlet <charlet@adacore.com>
3059 * debug.adb: Add -gnatd.J switch for now to support scil generation in
3060 parallel. Add missing doc for -gnatd.I and -gnatd.O
3062 2009-07-15 Robert Dewar <dewar@adacore.com>
3064 * lib-load.adb: Minor reformatting
3066 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
3068 2009-07-15 Robert Dewar <dewar@adacore.com>
3070 * par.adb: Minor reformatting
3071 Add ??? comment for possible bad comment
3073 * par-ch10.adb: Minor reformatting
3075 2009-07-15 Ed Schonberg <schonberg@adacore.com>
3077 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
3078 is a literal of a derived boolean type, it appears as an unchecked
3079 conversion. Retrieve actual value from expression of conversion.
3081 2009-07-15 Robert Dewar <dewar@adacore.com>
3083 * sem_ch3.adb: Minor reformatting
3085 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
3086 lib-writ.ads, lib-writ.adb: Minor reformatting.
3087 Fix problem with SCO format in ALI files
3089 2009-07-15 Robert Dewar <dewar@adacore.com>
3091 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
3092 exp_aggr.adb: Minor code reorganization (better calling sequence for
3095 2009-07-15 Thomas Quinot <quinot@adacore.com>
3097 * opt.ads: Minor comment edits
3099 2009-07-15 Tristan Gingold <gingold@adacore.com>
3101 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
3104 2009-07-15 Robert Dewar <dewar@adacore.com>
3106 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
3109 * lib-writ.ads: Document addition of SCO lines to ALI file
3111 * par_sco.ads, par_sco.adb: New files.
3113 * opt.ads (Generate_SCO): New switch
3115 * par.adb (Par): Call SCO_Record to record SCO information
3117 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
3119 * switch-c.adb: Recognize -gnateS to generate SCO information
3121 * usage.adb: Add line for -gnateS
3123 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
3125 2009-07-15 Robert Dewar <dewar@adacore.com>
3127 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
3130 2009-07-15 Thomas Quinot <quinot@adacore.com>
3132 * g-socthi-mingw.adb: Minor comment addition
3134 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
3136 2009-07-15 Robert Dewar <dewar@adacore.com>
3138 * g-htable.ads, s-htable.ads: Minor reformatting
3140 2009-07-15 Robert Dewar <dewar@adacore.com>
3142 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
3143 new switch -gnatw.g.
3144 (Set_GNAT_Mode_Warnings): New procedure.
3146 * lib-xref.adb: Minor reformatting
3148 2009-07-15 Robert Dewar <dewar@adacore.com>
3150 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
3151 Minor code reorganization
3153 2009-07-14 Taras Glek <tglek@mozilla.com>
3154 Rafael Espindola <espindola@google.com>
3156 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
3157 installing plugin headers.
3159 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3161 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
3162 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
3163 and link it to the expression whose value it captures.
3165 2009-07-13 Robert Dewar <dewar@adacore.com>
3167 * output.adb: Minor comment addition for last change
3169 * sinfo.ads: Minor reformatting
3171 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
3173 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
3174 spawn failed like on all other targets.
3176 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3178 * exp_ch7.adb: Indicate origin of temporary for transient expression.
3180 2009-07-13 Thomas Quinot <quinot@adacore.com>
3182 * s-oscons-tmplt.c: Add comment.
3184 2009-07-13 Robert Dewar <dewar@adacore.com>
3186 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
3187 reformatting. Minor code reorganization (add 9 argument version of
3190 * impunit.adb: Remove s-os_lib from list of system extensions.
3192 * sem_util.ads: Minor reformatting
3194 * output.adb: Add warnings off/on around System.OS_Lib.
3196 2009-07-13 Bob Duff <duff@adacore.com>
3198 * exp_dist.adb: Minor comment updates.
3200 2009-07-13 Gary Dismukes <dismukes@adacore.com>
3202 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
3203 several references to CodePeer.
3205 2009-07-13 Bob Duff <duff@adacore.com>
3207 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
3208 Build_TypeCode_Function_All): Do not recurse if the type is the base
3211 2009-07-13 Robert Dewar <dewar@adacore.com>
3213 * exp_ch4.adb: Minor comment change
3215 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3217 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
3218 type of iteration, to prevent spurious warnings.
3220 2009-07-13 Nicolas Roche <roche@adacore.com>
3222 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
3225 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3227 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
3228 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
3230 (CodePeer_Mode): New -gnatC switch.
3231 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
3234 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
3236 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
3237 integer bound forces the check if it is compared to its subtype range.
3239 2009-07-13 Robert Dewar <dewar@adacore.com>
3241 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
3242 prj-strt.ads: Minor reformatting
3244 2009-07-13 Thomas Quinot <quinot@adacore.com>
3246 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
3247 set the type of the From_Any call to the base type.
3249 2009-07-13 Doug Rupp <rupp@adacore.com>
3251 * symbols-processing-vms-ia64.adb (Process): Add variables and
3252 constants to retrieve and check for symbol visibility.
3254 2009-07-13 Javier Miranda <miranda@adacore.com>
3256 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
3257 the identical type we remove the conversion completely because
3260 2009-07-13 Emmanuel Briot <briot@adacore.com>
3262 * prj-err.adb (Error_Msg): One more case where a message should be
3263 considered as a warning.
3265 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
3267 2009-07-13 Thomas Quinot <quinot@adacore.com>
3269 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
3270 calling stubs in the (library level) scope of the RCI locator, where it
3271 is attached, not in the caller's scope.
3273 2009-07-13 Javier Miranda <miranda@adacore.com>
3275 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
3276 interface object declarations we delay the generation of the equivalent
3277 record type declarations until its expansion because there are cases in
3278 which they are not required.
3280 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
3282 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
3283 addition of assertion.
3285 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
3286 interface types require no equivalent constrained type declarations
3287 because the expanded code only references the tag component associated
3289 (Find_Interface_Tag): Improve management of interfaces that are
3290 ancestors of tagged types.
3292 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
3293 class-wide object declarations to add missing support to statically
3294 displace the pointer to the object to reference the tag component
3295 associated with the interface.
3297 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
3298 auxiliary types associated with user-defined dispatching calls if the
3299 type has no user-defined primitives.
3301 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
3303 * mingw32.h: Make it explicit that we need XP or later.
3305 * initialize.c: Remove useless extern symbol declaration.
3307 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
3308 code reuse in expect.c.
3310 * adaint.c: Changes throughout the Windows section to redesign storage
3311 of the child process list and the process identification.
3313 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
3314 for interfacing, fix errors.
3315 (__gnat_expect_portable_execvp): use function in adaint.c
3317 2009-07-13 Emmanuel Briot <briot@adacore.com>
3319 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
3320 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
3321 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
3322 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
3323 (Prj.Nmsc.Report_Error): Removed, no longer needed.
3324 Always use Prj.Err.Report_Message.
3326 2009-07-13 Robert Dewar <dewar@adacore.com>
3328 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
3331 2009-07-13 Robert Dewar <dewar@adacore.com>
3333 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3334 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
3336 2009-07-13 Emmanuel Briot <briot@adacore.com>
3338 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
3339 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
3340 Ada_Prj_Include_File_Set): Removed, since not needed
3343 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3345 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
3346 Analyze_Membership_Op.
3348 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
3349 Resolve_Membership_Op.
3351 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
3354 2009-07-13 Robert Dewar <dewar@adacore.com>
3356 * clean.adb: Minor reformattting
3358 2009-07-13 Emmanuel Briot <briot@adacore.com>
3360 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
3361 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
3362 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
3363 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
3364 and attributes in a project tree.
3365 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
3366 Remove last remaining mode-specific code (ada_only or
3367 multi_language). This was duplicating code
3368 (Get_Mode, Set_Mode): removed, no longer used.
3369 (Initialize_Project_Path): all tools will now take into account both
3370 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
3371 Remove some global variables and subprograms no longer used
3372 Make temporary files tree-specific, to avoid interferences between
3373 trees loaded in memory at the same time.
3374 (Prj.Delete_Temporary_File): new subprogram
3375 (Object_Paths, Source_Paths): fields no longer stored in the project
3376 tree, since they are only needed locally in Set_Ada_Paths.
3377 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
3379 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
3380 by local variables in the appropriate subprograms
3381 (Has_Foreign_Sources): removed.
3383 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
3385 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3387 * gnat1drv.adb (Adjust_Global_Switches): No longer set
3388 Back_Annotate_Rep_Info in inspector mode.
3389 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
3391 * opt.ads: Update comment.
3393 2009-07-13 Robert Dewar <dewar@adacore.com>
3395 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
3396 prj.ads: Minor reformatting and code reorganization.
3398 * par-ch3.adb (Check_Restricted_Expression): New procedure
3400 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3402 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
3403 attribute into a call of the corresponding suprogram, create extra
3404 formals for the subprogram, because it may be a renaming whose
3405 analysis does not create extra formals.
3407 2009-07-13 Emmanuel Briot <briot@adacore.com>
3409 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3410 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3411 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
3412 prj-tree.ads: Minor reformatting.
3413 (Processing_Flags): new record to encapsulate the set of common
3414 parameters to several subprograms in the project manager.
3415 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
3416 Remove the need for the Current_Dir parameter in subprograms.
3417 (Look_For_Sources): minor refactoring, now that we no longer need to
3418 share subprograms between the two Ada_Only and Multi_Language modes
3419 (Processing_Flags): New field Error_On_Unknown_Language.
3420 Merge tests for library project between gnatmake and gprbuild.
3422 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3424 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
3427 2009-07-13 Emmanuel Briot <briot@adacore.com>
3429 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
3432 2009-07-13 Thomas Quinot <quinot@adacore.com>
3434 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
3435 Write,Input,Output} from private view to full view.
3437 * sem_type.adb, sem_type.ads: Minor reformatting
3439 2009-07-13 Nicolas Setton <setton@adacore.com>
3441 * exp_dbug.ads: Add documentation note on the utility of
3442 DW_AT_GNAT_encoding for IDEs.
3444 2009-07-13 Robert Dewar <dewar@adacore.com>
3446 * g-socthi-vxworks.adb: Minor reformatting
3448 * gnatcmd.adb: Minor reformatting
3450 2009-07-13 Thomas Quinot <quinot@adacore.com>
3452 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
3453 removed, not used anymore.
3454 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
3455 New subprogram, implements copy of an Any value into a limited object.
3456 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
3457 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
3458 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
3459 of parameters of a limited type, use the above new subprogram.
3461 2009-07-13 Emmanuel Briot <briot@adacore.com>
3463 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
3465 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
3467 (Error_Report): Remove global variable, replaced by parameters.
3469 2009-07-13 Thomas Quinot <quinot@adacore.com>
3471 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
3472 standard sendto(2) interface for connected sockets (passing a null
3473 destination address). Use send(2) instead for that case.
3475 2009-07-13 Pascal Obry <obry@adacore.com>
3477 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
3479 2009-07-13 Emmanuel Briot <briot@adacore.com>
3481 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3482 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
3483 variables and tables in prj-nmsc.adb.
3484 (Tree_Processing_Data): Renames Processing_Data, some new fields added
3485 (Project_Processing_Data): New record
3486 Simplify/unify check for missing sources.
3488 2009-07-13 Emmanuel Briot <briot@adacore.com>
3490 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
3491 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3492 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
3493 prj-tree.ads (Immediate_Directory_Of): Removed.
3494 (Prj.Pars): Now parse the project simulating a default config file.
3495 (Add_Default_GNAT_Naming_Scheme): New subprogram
3496 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
3497 Remove gnatmake-specific parsing of source files.
3498 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
3499 the error itself to provide more precise diagnostics.
3500 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
3501 a unit belongs to several projects.
3502 (Copy_Interface_Sources): Search the full path of files to copy in the
3503 list of sources of the application rather than in the list of units.
3504 (Parse_Project_And_Apply_Config): Do not reset the name of the main
3506 (Check_File): Use htables to find out whether a source is duplicated.
3507 (Add_Source): check whether the source or unit were already seen earlier
3509 * gcc-interface/Makefile.in: Update gnatmake dependencies.
3511 2009-07-13 Robert Dewar <dewar@adacore.com>
3513 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
3514 expression if extensions permitted.
3516 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
3518 (P_Relation): Use P_Membership_Test
3520 * par.adb (P_Membership_Test): New procedure (implement membership set
3523 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
3525 * sprint.adb (Sprint_Node): Handle set form for membership tests.
3527 2009-07-13 Thomas Quinot <quinot@adacore.com>
3529 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
3530 Do not attempt to generate stubs for predefined primitives of
3531 synchronized interfaces.
3532 (Add_Stub_Type): Factor some code from the PCS-specific variants of
3535 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3537 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
3538 Controlling_Result flag from the operation they override.
3540 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3542 * gcc-interface/Make-lang.in: Update dependencies
3544 2009-07-13 Robert Dewar <dewar@adacore.com>
3546 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
3547 details on unsupported constructs.
3549 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
3552 * s-trafor-default.adb: Correct some warnings
3554 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
3555 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
3558 * par-ch4.adb (Conditional_Expression): Capture proper location for
3559 conditional expression, should point to IF.
3561 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
3562 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
3563 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
3564 reorganization (use conditional expressions).
3566 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3568 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
3569 build-in-place function that returns an inherently limited type (not
3570 just a task type) create proper object declaration so that extra
3571 build-in-place actuals are properly added to the call.
3573 2009-07-13 Robert Dewar <dewar@adacore.com>
3575 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
3577 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
3579 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
3581 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
3582 Warn_On_Suspicious_Modulus_Value.
3584 * ug_words: Add entries for -gnatw.m/-gnatw.M.
3586 * usage.adb: Add lines for -gnatw.m/.M switches.
3588 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
3590 2009-07-13 Javier Miranda <miranda@adacore.com>
3592 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
3593 reading the Is_Interface attribute of the dispatching type.
3595 2009-07-13 Robert Dewar <dewar@adacore.com>
3597 * a-convec.adb: Minor code reorganization (use conditional expressions)
3599 2009-07-13 Robert Dewar <dewar@adacore.com>
3601 * freeze.adb (Check_Suspicious_Modulus): New procedure.
3603 2009-07-13 Robert Dewar <dewar@adacore.com>
3605 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
3608 * par-ch4.adb: Minor reformatting
3610 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3612 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
3613 => Is_Atomic_Aggregate
3615 2009-07-13 Emmanuel Briot <briot@adacore.com>
3617 * prj-nmsc.adb: Avoid traversing the list of source files if
3618 we have already processed all locally removed files.
3620 2009-07-13 Jose Ruiz <ruiz@adacore.com>
3622 * gnat_ugn.texi: Fix typo.
3624 2009-07-13 Robert Dewar <dewar@adacore.com>
3626 * freeze.adb: Minor reformatting
3627 Minor code reorganization (use Nkind_In)
3629 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
3631 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3633 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
3634 local variable and do not test it in Compile_Time_Bad_Alignment.
3635 Do not issue size or alignment warnings for the X'Address form.
3636 * sem_util.ads (Find_Overlaid_Object): Delete.
3637 (Find_Overlaid_Entity): New procedure.
3638 * sem_util.adb (Find_Overlaid_Object): Rename to...
3639 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
3640 whether the address is offseted within the overlaid entity.
3641 (Has_Compatible_Alignment): Track the offset globally instead of
3642 passing it to Check_Offset. For an indexed component, compute the
3643 full offset when possible. If the resulting offset is zero, only
3645 (Check_Offset): Delete.
3646 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
3647 (Address_Aliased_Entity): Delete.
3648 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
3649 Find_Overlaid_Entity to find the overlaid entity and the offset.
3650 Adjust throughout for above change.
3651 (Validate_Address_Clauses): Always use attributes of entities, not of
3652 their type. Tweak message for warning. Call Has_Compatible_Alignment
3653 if the address is offseted to warn about incompatible alignments.
3654 * gcc-interface/gigi.h (annotate_object): Declare.
3655 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
3656 entity. Call annotate_object instead of annotating manually objects.
3657 (annotate_object): New function.
3658 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
3661 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3663 * gcc-interface/ada-tree.h: Minor reorganization.
3664 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
3665 (gnat_print_type): Likewise.
3667 2009-07-11 Thomas Quinot <quinot@adacore.com>
3669 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
3672 * exp_ch6.adb: Minor reformatting
3674 2009-07-11 Ed Schonberg <schonberg@adacore.com>
3676 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
3677 account possible type qualification to determine whether aggregate
3678 needs a target temporary to respect atomic type or object.
3680 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
3681 Expand_Atomic_Aggregate.
3683 2009-07-11 Emmanuel Briot <briot@adacore.com>
3685 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
3687 (Excluded_Sources_Htable): No longer a global table.
3688 Change error message to indicate which files are illegal in the list
3689 of excluded files, as opposed to only the location in the project
3691 (Find_Source): New subprogram.
3693 2009-07-10 Thomas Quinot <quinot@adacore.com>
3695 * exp_ch7.adb: Update comments.
3697 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3699 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
3700 clause if -gnatI is set instead of crashing.
3702 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3704 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
3705 Additional work to remove redundant successive raise statements, in
3706 this case access checks.
3708 2009-07-10 Vincent Celier <celier@adacore.com>
3710 * make.adb (Compile): Always create a deep copy of the mapping file
3711 argument (-gnatem=...) as it may be deallocate/reallocate by
3712 Normalize_Arguments.
3714 2009-07-10 Javier Miranda <miranda@adacore.com>
3716 * einfo.adb (Directly_Designated_Type): Add assertion.
3718 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
3719 access types before using attribute Directly_Designated_Type.
3721 2009-07-10 Emmanuel Briot <briot@adacore.com>
3723 * prj.ads: Minor typo fix
3725 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3727 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
3730 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
3731 subprogram is a function call, resolve properly, to ensure that extra
3732 actuals are added as needed.
3734 2009-07-10 Thomas Quinot <quinot@adacore.com>
3736 * sem_aggr.adb: Minor comments editing
3738 * exp_tss.adb, exp_ch3.adb: Minor reformatting
3740 2009-07-10 Robert Dewar <dewar@adacore.com>
3742 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
3744 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
3747 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
3748 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
3749 case of conditional expressions that may not be elaborated.
3751 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
3752 conditional expression where we may not execute then then or else
3755 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3757 * i-cexten.ads (bool): New type.
3759 2009-07-10 Robert Dewar <dewar@adacore.com>
3761 * sinfo.ads (N_Short_Circuit): New definition
3763 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
3764 treepr.adb: Minor code reorganization (use N_Short_Circuit)
3766 2009-07-10 Javier Miranda <miranda@adacore.com>
3768 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
3769 non-tagged record types.
3772 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
3773 with non-tagged types. Required to import C++ classes that have no
3775 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
3776 returning non-tagged types. For backward compatibility, if the
3777 constructor returns a class wide type we internally change the
3778 returned type to the corresponding non class-wide type.
3781 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
3782 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
3783 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
3784 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
3787 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
3789 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
3791 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
3793 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
3795 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
3798 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
3801 (pragma CPP_Class): Document that it can be used now with non-tagged
3803 (pragma CPP_Constructor): Document that it can be used now with
3804 functions returning specific types. For backward compatibility
3805 we also support functions returning class-wide types.
3808 (Interfacing with C++ constructors): Update the examples to incorporate
3809 the new syntax in which the functions used to import C++ constructors
3810 return specific types.
3811 (Interfacing with C++ at the Class Level): Update the examples to
3812 incorporate the new syntax in which the functions used to import
3813 C++ constructors return specific types.
3815 2009-07-10 Thomas Quinot <quinot@adacore.com>
3817 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
3818 Make_Disp_Conditional_Select_Body,
3819 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
3820 interface nor a concurrent type, the primitive body is empty. Generate
3821 a null statement so that it remains well formed.
3823 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3825 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
3826 replace references to them in defaulted component expressions with
3827 references to the values of the discriminants of the target object.
3829 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3831 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
3832 pragma, to capture global references if the context is generic.
3834 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
3835 appears within the initialization procedure for the corresponding
3836 record, replace it with the proper discriminal.
3838 2009-07-10 Vincent Celier <celier@adacore.com>
3840 * make.adb: Do not include object directories or library ALI
3841 directories of library projects in the object path.
3843 2009-07-10 Javier Miranda <miranda@adacore.com>
3845 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
3846 Typ argument to ensure proper management of access types.
3848 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3850 * exp_ch7.adb (Build_Final_List): If the list is being built for a
3851 Taft-Amendment type, place the finalization list in the package body,
3852 to ensure that the tree for the spec is identical whenever it is
3855 2009-07-10 Javier Miranda <miranda@adacore.com>
3857 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
3858 inheriting attributes from a private Parent_Base.
3860 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3862 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
3863 statements with the same condition.
3865 2009-07-10 Robert Dewar <dewar@adacore.com>
3867 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
3869 2009-07-09 Tom Tromey <tromey@redhat.com>
3871 * raise-gcc.c: Include dwarf2h (unconditionally).
3873 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3875 * sem_ch10.adb (Install_Context): If the unit is a package body,
3876 install the private with_clauses of the corresponding package
3879 2009-07-09 Robert Dewar <dewar@adacore.com>
3881 * checks.adb: Minor reformatting
3883 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3885 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3888 2009-07-09 Thomas Quinot <quinot@adacore.com>
3890 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3891 Do not warn for a constant overlaying any constant object
3893 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3895 * sem_ch10.adb (Install_Context): If the unit is a package body,
3896 install the private with_clauses of the corresponding package
3899 2009-07-09 Robert Dewar <dewar@adacore.com>
3901 * checks.adb: Minor reformatting
3903 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3905 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3908 2009-07-09 Thomas Quinot <quinot@adacore.com>
3910 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3911 Do not warn for a constant overlaying any constant object
3913 2009-07-09 Arnaud Charlet <charlet@adacore.com>
3915 * gcc-interface/Make-lang.in: Update dependencies
3917 2009-07-09 Thomas Quinot <quinot@adacore.com>
3919 * g-socket.adb (Check_Selector): Do not create local copies of the
3920 socket sets on the stack.
3922 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3924 * gnat_ugn.texi: Add missing VMS translations.
3926 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3928 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
3929 condition, to prevent generation of visible code during expansion,
3930 when Check is not enabled.
3932 2009-07-09 Gary Dismukes <dismukes@adacore.com>
3934 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
3935 the check gets registered for any available local handler
3938 * sem_util.adb: Add with and use of Exp_Ch11.
3939 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
3940 that the check gets registered for any available local handler.
3942 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
3945 2009-07-09 Steve Baird <baird@adacore.com>
3947 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
3949 (Expand_N_Exception_Declaration): Fix handling of exceptions
3950 declared in a subprogram.
3952 2009-07-09 Emmanuel Briot <briot@adacore.com>
3954 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
3957 2009-07-09 Thomas Quinot <quinot@adacore.com>
3959 * freeze.adb: Minor reformatting
3961 * exp_ch3.adb: Minor comment fix.
3963 * sinfo.ads: Minor comment fix
3965 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3967 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
3969 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3971 * freeze.adb (Freeze_Expression): If the expression is the name of a
3972 function in a call, and the function has not been frozen yet, create
3973 extra formals for it to ensure that the proper actuals are created
3974 when expanding the call.
3976 2009-07-09 Emmanuel Briot <briot@adacore.com>
3978 * prj-pp.adb (Print): Fix handling of source index when set on a
3981 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3983 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
3984 a temporary to the source expression whose value it captures.
3986 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
3988 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3990 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
3993 2009-07-07 Gary Dismukes <dismukes@adacore.com>
3995 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
3996 parameters when the subtype of the actual is not known to be a subrange
3997 of the formal's subtype.
3998 (Expand_Call): Generate a range check only in the E_In_parameter case
3999 (in out parameter range checks are now handled in Expand_Actuals).
4001 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
4004 2009-07-07 Robert Dewar <dewar@adacore.com>
4006 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
4008 2009-07-07 Javier Miranda <miranda@adacore.com>
4010 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
4011 designated type comes from a limited views.
4013 2009-07-07 Emmanuel Briot <briot@adacore.com>
4015 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
4016 locally removed files that are later made visible again in an importing
4019 2009-07-07 Robert Dewar <dewar@adacore.com>
4021 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
4023 2009-07-07 Sergey Rybin <rybin@adacore.com>
4025 * gnat_ugn.texi: Add an example to the description of gnatcheck
4026 'Style_Checks' rule option.
4028 2009-07-07 Tristan Gingold <gingold@adacore.com>
4030 * seh_init.c: Fix inline assembly statement in seh_init.c
4032 2009-07-07 Ed Schonberg <schonberg@adacore.com>
4034 * sem_warn.adb (Check_References): Do not emit warnings on formals of
4035 an entry body. Only the formals of the entry declaration are traced.
4037 2009-07-07 Robert Dewar <dewar@adacore.com>
4039 * s-osprim-mingw.adb: Minor code reorganization
4041 2009-07-07 Robert Dewar <dewar@adacore.com>
4043 * prj-nmsc.adb: Minor reformatting
4045 2009-07-07 Pascal Obry <obry@adacore.com>
4047 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
4048 cases where Pattern is longer than Source.
4050 2009-07-07 Pascal Obry <obry@adacore.com>
4052 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
4054 2009-07-07 Emmanuel Briot <briot@adacore.com>
4056 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
4059 2009-07-07 Ed Schonberg <schonberg@adacore.com>
4061 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
4062 primitive operations, in case one of them is called in the
4063 initialization procedure for the type.
4065 2009-07-07 Robert Dewar <dewar@adacore.com>
4067 * a-calend.adb: Minor code reorganization (use conditional expressions)
4069 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
4070 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
4071 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
4072 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
4073 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
4074 g-comlin.adb, exp_ch11.adb: Minor reformatting.
4076 2009-07-07 Gary Dismukes <dismukes@adacore.com>
4078 * checks.adb (Generate_Range_Check): Replace type conversions with
4079 unchecked conversions to support the case of performing range checks
4080 on Enum'Val (permits integer values to be converted to enumeration).
4082 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
4083 Attribute_Succ): Set Do_Range_Check to False before calling
4084 Expand_Pred_Succ, to prevent gigi from generating any range checks.
4085 (Expand_N_Attribute_Reference, case Attribute_Val):
4086 Generate a range check when needed (and set Do_Range_Check to False).
4088 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
4089 scalar object initialization if needed.
4091 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
4092 when needed on scalar allocators.
4093 (Expand_N_Qualified_Expression): Generate range check when needed.
4094 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
4095 Checks on slice ranges handled in Resolve_Slice.
4097 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
4098 when needed, for all scalar assignments, not just discrete.
4099 (Expand_Simple_Function_Return): Resolve the conversion created for a
4100 scalar function return so that the conversion will get expanded to
4101 generate a possible constraint check.
4103 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
4104 in out scalar actuals when subtypes don't match, to ensure generation
4105 of return checks (and set Do_Range_Check to False).
4106 (Expand_Call): Uncomment code to perform range checks, but make it apply
4107 only to in and in out parameters (checks on parameter returns are
4108 handled in Expand_Actuals). If a scalar actual for a call to a derived
4109 subprogram is marked as needing a range check, peform it here (and set
4110 Do_Range_Check to False).
4112 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
4113 range check on scalar component associations when needed.
4115 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
4116 infinities but the second type does not, as these aren't compatible
4117 floating-point types.
4119 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
4120 slice is itself a slice, pick up the Etype of the prefix. This handles
4121 the case where the prefix was an Image attribute expanded to a slice,
4122 and ensures that we get the subtype with the slice constraint rather
4123 than the unconstrained subbtype of the 'Image.
4125 2009-07-07 Ed Schonberg <schonberg@adacore.com>
4127 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
4128 overloaded expressions in a conditional expressions.
4130 * sem_res.adb (Resolve): Handle properly overloaded conditional
4133 2009-07-07 Robert Dewar <dewar@adacore.com>
4135 * scng.adb: Minor reformattting
4137 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
4138 association allows conditional expression without parens.
4140 * par-ch4.adb (P_Name): Attribute arguments can be conditional
4141 expressions without enclosing parentheses, and also as parameters,
4142 indexing expressions etc.
4143 (P_Conditional_Expression): New procedure
4144 (P_Expression_If_OK): New procedure
4146 * par.adb (P_Conditional_Expression): New procedure
4147 (P_Expression_If_OK): New procedure
4149 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
4150 form of conditional expression.
4152 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
4153 missing True argument if ELSE argument missing.
4155 * sinfo.adb (Is_Elsif): New flag
4157 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
4158 part of the language, and the documentation is modified accordingly.
4159 (Is_Elsif): New flag
4161 2009-07-06 Olivier Hainque <hainque@adacore.com>
4163 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
4164 setjmp_longjmp): Attach the exception propagation reraise fallback
4165 to the sequence end label location when we have it.
4167 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4170 * init.c (APPLE): Include <mach/mach_init.h>.
4171 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
4173 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
4175 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
4176 (SET_DECL_LANG_SPECIFIC): Likewise.
4177 (TYPE_RM_VALUE): New macro.
4178 (SET_TYPE_RM_VALUE): Likewise.
4179 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
4180 (TYPE_RM_MIN_VALUE): Likewise.
4181 (TYPE_RM_MAX_VALUE): Likewise.
4182 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
4183 (SET_TYPE_RM_MIN_VALUE): Likewise.
4184 (SET_TYPE_RM_MAX_VALUE): Likewise.
4185 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
4187 2009-07-04 Laurent GUERBY <laurent@guerby.net>
4190 * tracebak.c (__gnat_backtrace): Fix old-style definition.
4192 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4194 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
4196 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4199 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
4202 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
4204 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
4206 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4208 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
4209 the type of the left operand if it pads a self-referential type when
4210 the right operand is a constructor.
4212 * gcc-interface/lang-specs.h: Fix copyright date.
4214 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4216 * gcc-interface/decl.c: Include tree-inline.h.
4217 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
4218 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
4219 * gcc-interface/utils2.c: Include tree-inline.
4220 (known_alignment) <CALL_EXPR>: Likewise.
4222 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4224 * raise-gcc.c: Include dwarf2.h conditionally.
4226 2009-06-29 Tom Tromey <tromey@redhat.com>
4228 * raise-gcc.c: Include elf/dwarf2.h.
4230 2009-06-27 Laurent GUERBY <laurent@guerby.net>
4232 * tb-gcc.c (trace_callback): Add casts to silence warning.
4234 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
4236 * tb-gcc.c: Fix copyright notice.
4238 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
4240 * init.c (__gnat_set_globals): Add prototype.
4241 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
4242 (__gnat_sals_init_using_constructors): Likewise.
4243 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
4244 (get_block_jmpbuf_decl): Likewise.
4245 (gnat_poplevel): Likewise.
4246 (merge_sizes): Rename local variable.
4247 (copy_type): Likewise.
4248 (build_vms_descriptor32): Likewise.
4249 (build_vms_descriptor): Likewise.
4250 (convert_vms_descriptor64): Likewise.
4251 (convert_vms_descriptor32): Likewise.
4252 (convert_to_fat_pointer): Likewise.
4253 (maybe_unconstrained_array): Likewise.
4254 (def_fn_type): Use promoted type with va_arg.
4255 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
4256 (substitute_in_type): Rename local variable.
4257 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
4259 2009-06-26 Laurent GUERBY <laurent@guerby.net>
4261 * tb-gcc.c (trace_callback): Use char* instead of void*.
4262 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
4263 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
4264 (Attribute_to_gnu): Adjust for above change.
4265 (Subprogram_Body_to_gnu): Likewise.
4266 * gcc-interface/utils.c (merge_sizes): Rename local variable.
4267 (copy_type): Likewise.
4268 (build_vms_descriptor32): Likewise.
4269 (build_vms_descriptor): Likewise.
4270 (convert_vms_descriptor64): Likewise.
4271 (convert_vms_descriptor32): Likewise.
4272 (convert_to_fat_pointer): Likewise.
4273 (maybe_unconstrained_array): Likewise.
4274 * gcc-interface/decl.c (substitute_in_type): Likewise.
4276 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4278 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
4279 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
4280 of the upper bound of the index types.
4282 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4284 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
4285 out common predicate. Use the maximum to compute the upper bound of
4286 the index type only when it is not wider than sizetype. Perform the
4287 comparison in the index type for the generic expression. Use real
4288 precision to decide whether to generate special types for debugging
4291 2009-06-26 Matthew Gingell <gingell@adacore.com>
4293 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
4295 2009-06-26 Vincent Celier <celier@adacore.com>
4297 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
4300 2009-06-26 Robert Dewar <dewar@adacore.com>
4302 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
4304 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4306 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
4307 correct arguments to create_field_decl. Remove redundant iteration.
4308 Rewrite computation of the maximum size.
4309 <E_Array_Subtype>: Reorder and simplify handling of special cases.
4310 Rewrite computation of the maximum size. Use consistent naming.
4311 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
4312 comparison order for consistency. Use generic integer node to
4313 build the operator and fold the result.
4315 2009-06-25 Vincent Celier <celier@adacore.com>
4317 * vms_data.ads: Minor comment change
4319 2009-06-25 Gary Dismukes <dismukes@adacore.com>
4321 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
4322 assignment statement to targeting a caller-provided object when the
4323 result type is an interface type.
4325 * exp_ch6.adb (Expand_Call): Remove redundant test of
4326 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
4327 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
4329 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
4330 to OK_For_Limited_Init.
4332 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
4333 condition so that True is returned for all limited interfaces, not
4334 just synchronized ones. Ignore components of an interface type when
4335 checking for limited components (such a component can be a parent
4338 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
4339 (OK_For_Limited_Init): Add type parameter.
4341 * sem_ch3.adb (Check_Initialization): Add type in call to
4342 OK_For_Limited_Init.
4343 (OK_For_Limited_Init): Add new type param in call to
4344 OK_For_Limited_Init_In_05.
4345 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
4346 nonlimited type when the context type is a limited interface. Add type
4349 * sem_ch4.adb (Analyze_Allocator): Add type in call to
4350 OK_For_Limited_Init.
4352 * sem_ch6.adb (Check_Limited_Return): Add type in call to
4353 OK_For_Limited_Init.
4355 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
4356 OK_For_Limited_Init.
4357 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
4359 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
4360 class-wide interface, get the base type before applying Etype, in order
4361 to account for class-wide subtypes.
4363 2009-06-25 Emmanuel Briot <briot@adacore.com>
4365 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
4366 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
4367 between gnatmake and gprbuild.
4368 (Naming_Data): Removed, no longer used
4369 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
4370 needed locally in one subprogram, no need to store forever in the
4372 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
4374 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
4375 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
4376 Spec_Suffix_Id_Of): removed, no longer used.
4378 2009-06-25 Javier Miranda <miranda@adacore.com>
4380 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
4381 types on qualified expression in calls to imported C++ constructors.
4383 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
4384 imported C++ constructors.
4386 2009-06-25 Sergey Rybin <rybin@adacore.com>
4388 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
4390 2009-06-25 Vincent Celier <celier@adacore.com>
4392 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
4393 provided, on Windows change all '/' to '\'.
4395 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
4396 used. Minor comment changes
4398 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
4399 Remove_Forbidden_File_Name.
4401 2009-06-25 Quentin Ochem <ochem@adacore.com>
4403 * prj.ads (Unit_Index): Now general access type.
4405 2009-06-25 Pascal Obry <obry@adacore.com>
4407 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
4409 2009-06-25 Emmanuel Briot <briot@adacore.com>
4411 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
4412 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
4413 computed efficiently from the other fields.
4414 (Object_To_Global_Archive): New subprogram
4415 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
4416 (Override_Kind): Fix handling of separates in Ada.
4417 (Create_Mapping_File): Remove duplicate code
4418 (Naming_Data.Implementation_Exception, Specification_Exception):
4419 field removed, since never used.
4420 (Naming_Data.Specs, .Bodies): field removed, since this is only
4421 used while processing the project and is not needed once the tree
4422 is in memory. This brings Naming_Data and Lang_Naming_Data
4423 closer (same content now, but different use still).
4425 2009-06-25 Pascal Obry <obry@adacore.com>
4427 * sem_ch4.adb: Minor reformatting.
4429 * a-strsea.adb: Fix confusion between 'Length and 'Last.
4431 2009-06-25 Ed Schonberg <schonberg@adacore.com>
4433 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
4434 Unchecked_Access): If the context is an interface type, and the prefix
4435 is of the corresponding class-wide type, do not insert a conversion
4436 because the pointer displacement has already taken place, and we must
4437 retain the class-wide type in a dispatching context.
4439 2009-06-25 Emmanuel Briot <briot@adacore.com>
4441 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
4442 the previous source file.
4443 (Create_Mapping): Iterate on sources rather than on units.
4445 2009-06-25 Emmanuel Briot <briot@adacore.com>
4447 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
4448 prj-env.adb, prj-env.ads (Slash): removed, no longer used
4449 (Source_Data): no longer use Path.Name to point to a locally removed
4450 file. Instead we use the field Locally_Removed which is clearer
4452 2009-06-25 Arnaud Charlet <charlet@adacore.com>
4454 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
4456 * sem_maps.adb, sem_maps.ads: Removed, not used.
4458 2009-06-25 Ed Falis <falis@adacore.com>
4460 * s-vxwext-rtp.ads: Add missing declaration
4462 2009-06-25 Matthew Gingell <gingell@adacore.com>
4464 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
4465 speed up unmapped case.
4467 2009-06-25 Vincent Celier <celier@adacore.com>
4469 * prj-nmsc.adb (Check): Change error message for illegal abstract
4472 2009-06-25 Robert Dewar <dewar@adacore.com>
4474 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
4476 2009-06-25 Emmanuel Briot <briot@adacore.com>
4478 * fmap.ads: Add documentation on mapping files
4480 2009-06-25 Robert Dewar <dewar@adacore.com>
4482 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
4485 2009-06-24 Robert Dewar <dewar@adacore.com>
4487 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
4489 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
4493 2009-06-24 Ed Schonberg <schonberg@adacore.com>
4495 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
4496 present when checking whether a call may be interpreted as an indexing
4497 of the result of a call.
4499 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
4500 body for a null procedure on the freeze actions for the procedure, so
4501 that it will be analyzed at the proper place without premature freezing
4504 * sem_ch3.adb (Check_Completion): Code cleanup.
4505 Do not diagnose a null procedure without a body, if previous errors
4506 have disabled expansion.
4508 2009-06-24 Doug Rupp <rupp@adacore.com>
4510 * init.c [VMS] Resignal C$_SIGKILL
4512 2009-06-24 Ed Falis <falis@adacore.com>
4514 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
4515 Define ERROR in body for VxWorks 6 kernel
4517 2009-06-24 Pascal Obry <obry@adacore.com>
4519 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
4520 in [Send/Receive]_Socket.
4522 2009-06-24 Emmanuel Briot <briot@adacore.com>
4524 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
4525 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
4526 to several subprograms.
4527 (Source_Data.Other_Part): Removed, since can be computed from the
4529 (Other_Part): New subprogram.
4531 2009-06-24 Emmanuel Briot <briot@adacore.com>
4533 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
4534 the full base name of the file when the suffix doesn't start with a '.'.
4536 2009-06-24 Vincent Celier <celier@adacore.com>
4538 * prj-nmsc.adb (Check): A project declared abstract is legal if no
4539 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
4542 2009-06-24 Robert Dewar <dewar@adacore.com>
4544 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
4545 prj-env.adb: Minor reformatting
4547 2009-06-24 Ed Falis <falis@adacore.com>
4549 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
4550 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
4551 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
4552 support for VxWorks SMP.
4554 * gcc-interface/Make-lang.in: Update dependencies
4556 2009-06-24 Emmanuel Briot <briot@adacore.com>
4558 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4559 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
4561 (Source_Data.Lang_Kind): Removed, since it duplicates information
4562 already available through Language.Config.
4563 (Source_Data.Compile): Removed, since information is already available
4564 through the language.
4565 (Is_Compilable): New subprogram.
4566 (Source_Data.Dependency): Removed, since already available through
4568 (Source_Data.Object_Exist, Object_Linked): Removed since available
4569 through the language already.
4570 (Unit_Data.File_Names): Is now also set in multi_language mode, to
4571 bring the two modes closer in the resulting data structures.
4572 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
4573 just the name that would point into a hash table.
4574 (Get_Language_From_Name): New subprogram.
4576 2009-06-24 Javier Miranda <miranda@adacore.com>
4578 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
4579 visible through limited-with context clauses. In addition, avoid an
4580 extra tag check that is not required when the class-wide
4581 designated types of the operand and target types are
4583 (Tagged_Membership): Handle entities from the limited view.
4585 2009-06-24 Emmanuel Briot <briot@adacore.com>
4587 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
4588 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
4589 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
4590 different vocabularies for similar concepts (Impl/Body_Part and
4591 Spec/Specification).
4592 (Unit_Data): now points directly to a Source_Id, rather than duplicating
4593 some of the information in File_Name_Data. This also saves a bit of
4594 memory. However, since we are now using a pointer we need to test
4595 for null explicitly in several places of the code
4597 2009-06-24 Javier Miranda <miranda@adacore.com>
4599 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
4600 from processing the type conversion when the node is
4601 replaced by an N_Raise_Program_Error node.
4603 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
4605 * sem_ch6.adb (Designates_From_With_Type): New routine.
4606 (Process_Formals): Since anonymous access types are no longer flagged
4607 as from with types, traverse the designated type to determine whether
4608 it is coming from a limited view.
4610 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
4611 (Full_Designated_Type): Use Available_View to extract the non-limited /
4612 full view of a type.
4614 2009-06-24 Robert Dewar <dewar@adacore.com>
4616 * exp_ch6.adb: Minor reformatting
4618 * layout.adb: Minor reformatting
4620 * make.adb: Minor reformatting
4622 2009-06-24 Thomas Quinot <quinot@adacore.com>
4624 * sem_ch10.adb: Minor code reorganization.
4626 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
4628 * ttypes.ads: Minor editing.
4630 2009-06-24 Robert Dewar <dewar@adacore.com>
4632 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
4633 in deciding to do call-by-copy code.
4635 2009-06-24 Vincent Celier <celier@adacore.com>
4637 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
4638 check if an externally built library file is more current than the
4641 2009-06-23 Olivier Hainque <hainque@adacore.com>
4643 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
4644 c-common.c and populate in gnat_internal_attribute_table.
4646 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4648 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
4649 Available_View only when designated type of an anonymous access type
4652 2009-06-23 Robert Dewar <dewar@adacore.com>
4654 * sem_ch10.adb: Minor reformatting
4656 * ali.ads: Mino reformatting.
4658 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
4659 turning off inlining if ASIS mode active).
4661 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
4662 This belongs in gnat1drv.adb after switches are scanned.
4664 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
4666 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
4667 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
4668 when dealing with class-wide types. Detect a legal shadow entity and
4669 retrieve its non-limited view.
4671 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
4672 subprogram to top package level from Intall_Limited_Withed_Unit.
4673 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
4674 Add check which prevents the installation of a limited view if the
4675 non-limited view is already visible through a with clause.
4676 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
4677 legal shadow entity which may occur in subprogram formals of anonymous
4680 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
4682 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
4683 From_With_Type from the designated type to the generated anonymous
4684 access type. Remove associated comment.
4686 * sem_res.adb Add with and use clauses for Sem_Ch10.
4687 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
4688 non-limited view. Since the shadow entity may replace a regular
4689 incomplete type, return the available full view.
4691 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4693 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
4694 incomplete type declarations. Previous code was potentially quadratic
4695 in the number of visible declarations in any package appearing in a
4696 limited_with_clause.
4698 2009-06-23 Robert Dewar <dewar@adacore.com>
4700 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
4701 xref_lib.adb: Minor reformatting
4703 2009-06-23 Robert Dewar <dewar@adacore.com>
4705 * a-stzhas.adb: Provide dummy body to avoid build problems with old
4706 versions which did have a body for this unit.
4708 2009-06-23 Vincent Celier <celier@adacore.com>
4710 * prj-attr.adb: Attribute names Initial_Required_Switches and
4711 Final_Required_Switches changed to Leading_Required_Switches and
4712 Trailing_Required_Switches.
4714 * prj-nmsc.adb (Process_Compiler): Attribute names
4715 Initial_Required_Switches and Final_Required_Switches changed to
4716 Leading_Required_Switches and Trailing_Required_Switches.
4718 * prj.ads (Language_Config): Component Initial_Required_Switches and
4719 Final_Required_Switches changed to Leading_Required_Switches and
4720 Trailing_Required_Switches.
4722 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
4723 Final_Required_Switches; add standard names Leading_Required_Switches
4724 and Trailing_Required_Switches.
4726 2009-06-23 Thomas Quinot <quinot@adacore.com>
4728 * prj-conf.adb: Minor reformatting
4730 * xref_lib.adb: Minor cleanup
4732 2009-06-23 Emmanuel Briot <briot@adacore.com>
4734 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
4735 prj-conf.ads (Check_Configuration): New parameter
4736 Compiler_Driver_Mandatory.
4738 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4740 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
4741 context of the current unit has an inline pragma, the instance is not
4742 rewritten as the declaration of the package wrapper. Handle both
4743 possibilities when retrieving the visible subprogram that renames the
4744 instantiation itself.
4746 2009-06-23 Javier Miranda <miranda@adacore.com>
4748 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
4749 designated types referencing entities from the limited view.
4751 2009-06-23 Robert Dewar <dewar@adacore.com>
4753 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
4755 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
4758 * prj-conf.ads: Minor reformatting
4760 * prj-conf.adb: Minor reformatting
4762 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
4764 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
4765 to correspond to the log format that gnatmem now expects.
4767 2009-06-23 Vincent Celier <celier@adacore.com>
4769 * prj-attr.adb: New attributes Initial_Required_Switches,
4770 Final_Required_Switches and Object_File_Switches
4772 * prj-nmsc.adb (Process_Compiler): Process new attributes
4773 Name_Final_Required_Switches, Name_Initial_Required_Switches and
4774 Name_Object_File_Switches.
4776 * prj.ads (Language_Config): New component
4777 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
4778 Compiler_Final_Required_Switches and Object_File_Switches.
4780 * snames.ads-tmpl: New standard names Initial_Required_Switches,
4781 Final_Required_Switches and Object_File_Switches
4783 2009-06-23 Pascal Obry <obry@adacore.com>
4785 * s-strhas.adb, s-strhas.ads: Minor reformatting.
4787 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4789 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
4790 not indicate that the enclosing unit needs a body.
4792 2009-06-23 Emmanuel Briot <briot@adacore.com>
4794 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
4796 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4798 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
4799 primitive equality include it with its source name even if the
4800 operation is currently invisible, to make sure that the corresponding
4801 slot in the dispatch table is reserved for the internal equality
4802 subsequently generated during expansion.
4804 2009-06-23 Matthew Gingell <gingell@adacore.com>
4806 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
4808 2009-06-22 Jose Ruiz <ruiz@adacore.com>
4810 * sysdep.c (__gnat_localtime_tzoff for RTX):
4811 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
4812 GetTimeZoneInformation instead.
4814 2009-06-22 Robert Dewar <dewar@adacore.com>
4816 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
4818 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4820 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
4821 instantiations declared in a previous generic package body.
4823 2009-06-22 Robert Dewar <dewar@adacore.com>
4825 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
4826 restriction No_Direct_Boolean_Operators.
4828 2009-06-22 Thomas Quinot <quinot@adacore.com>
4830 * bindusg.adb: Minor fixes to gnatbind usage message
4832 * sem_eval.adb: Minor reformatting
4834 2009-06-22 Javier Miranda <miranda@adacore.com>
4836 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
4837 freezing point the check on the use of abstract types in object
4838 declarations. Done to allow the declaration of C++ imported variables
4839 or constants whose type corresponds with an imported C++ classes for
4840 which the constructor is not imported.
4842 2009-06-22 Thomas Quinot <quinot@adacore.com>
4844 * sem_ch6.adb: Minor reformatting
4846 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4848 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
4849 component is constrained with an expression rather than with a
4850 discriminant of the enclosing type, use that expression when building
4851 the call to default-initialize the component, when the call is part of
4852 an aggregate with box initialization.
4854 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4856 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
4857 unconditional rather than a style check, because a formal name out of
4858 order is suspicious.
4860 2009-06-22 Vincent Celier <celier@adacore.com>
4862 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
4863 creating a directory automatically.
4865 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
4867 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
4868 untagged derived type, add a hidden component for every constrained
4869 discriminant of the parent type to keep record layout consistent.
4871 2009-06-22 Thomas Quinot <quinot@adacore.com>
4873 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
4876 2009-06-22 Matthew Gingell <gingell@adacore.com>
4878 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
4879 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
4880 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
4881 a-swuwha.adb: New unit System.String_Hash.
4882 Refactor redundant cut and pasted hash functions with instances of a
4883 new generic hash function.
4884 Implement a new string hashing algorithm which appears in testing to
4885 be move effective than to previous approach.
4887 2009-06-22 Ed Falis <falis@adacore.com>
4889 * sysdep.c: remove include for nfsLib.h and an NFS specific error
4890 message for VxWorks 653 vThreads: not supported by the OS.
4892 * gsocket.h: disable sockets for VxWorks 653 vThreads.
4894 2009-06-22 Robert Dewar <dewar@adacore.com>
4896 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
4898 2009-06-22 Robert Dewar <dewar@adacore.com>
4900 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
4903 * freeze.adb: Minor comment updates
4905 * s-valrea.adb (Bad_Based_Value): New procedure
4906 (Scan_Real): Raise exceptions with messages
4908 2009-06-22 Matthew Gingell <gingell@adacore.com>
4910 * adaint.h: Complete previous change.
4912 2009-06-22 Thomas Quinot <quinot@adacore.com>
4914 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
4916 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4918 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
4919 enabled, emit warning when a non-controlling argument of the overriding
4920 operation appears out of place vis-a-vis of the formal of the
4921 overridden operation.
4923 2009-06-22 Vincent Celier <celier@adacore.com>
4925 * gnatcmd.adb (Check_Files): Close temporary files after all file names
4926 have been written into it.
4928 2009-06-22 Matthew Gingell <gingell@adacore.com>
4930 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
4933 2009-06-22 Thomas Quinot <quinot@adacore.com>
4935 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
4936 view of the root type is visible at the point of the call.
4938 2009-06-22 Pat Rogers <rogers@adacore.com>
4940 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
4942 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
4944 * freeze.adb: Add comments.
4946 2009-06-21 Thomas Quinot <quinot@adacore.com>
4948 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
4949 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
4950 Factor out code to new subprogram...
4951 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
4952 for a default initialized variable.
4953 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
4954 entity that has an associated freeze node.
4955 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
4956 If there is an init call for the object, defer it to the object freeze
4958 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
4959 name clash with new subprogram introduced in Exp_Util.
4961 2009-06-21 Robert Dewar <dewar@adacore.com>
4963 * einfo.ads: Minor reformatting
4965 2009-06-21 Ed Falis <falis@adacore.com>
4967 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
4969 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
4971 * einfo.ads: Update comments.
4973 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
4975 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
4976 where the controlling formal is of private class-wide type whose
4977 completion is a synchronized type can be converted into direct calls.
4979 2009-06-21 Vincent Celier <celier@adacore.com>
4981 * gnatcmd.adb (Check_Files): When all sources of the project are to be
4982 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
4983 of sources using -files=, so that the distinction can be made by the
4984 tool of a call with no source (to display the usage) from a call with
4985 a project file that contains no source.
4987 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
4989 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
4990 case of VM convention arrays.
4992 2009-06-20 Robert Dewar <dewar@adacore.com>
4994 * a-nudira.adb: Minor reformatting
4996 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4998 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
4999 expressions (possibly from a parent type) indicate that the scope of
5000 the new itypes is the initialization procedure being built.
5002 2009-06-20 Robert Dewar <dewar@adacore.com>
5004 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
5005 Needs_64, and now computed without anomolies for some dynamic types.
5007 2009-06-20 Thomas Quinot <quinot@adacore.com>
5009 * sem_prag.adb: Minor reformatting
5011 * exp_disp.ads: Minor reformatting
5013 2009-06-20 Ed Schonberg <schonberg@adacore.com>
5015 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
5016 function call is a legal expression to initialize a limited object.
5018 * exp_ch3.adb: Rename various freeze operations that perform expansion
5019 actions, to prevent confusion with subprograms in the freeze package.
5021 2009-06-20 Ed Schonberg <schonberg@adacore.com>
5023 * sem.adb (Walk_Library_Units): Check instantiations first.
5025 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
5026 private primitive if it is a function with a controlling result that is
5027 a type extension with progenitors.
5029 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
5030 a primitive operation of a synchronized tagged type that has a
5033 2009-06-20 Thomas Quinot <quinot@adacore.com>
5035 * einfo.ads: Fix typo.
5037 2009-06-20 Ed Falis <falis@adacore.com>
5039 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
5041 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
5043 * gcc-interface/trans.c (emit_check): Do not wrap up the result
5045 (protect_multiple_eval): Always protect complex expressions.
5047 2009-06-19 Emmanuel Briot <briot@adacore.com>
5049 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
5050 make sure we always return a name ending with a path separator.
5052 2009-06-19 Javier Miranda <miranda@adacore.com>
5054 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
5055 Save and restore the visibility of the parent when installed.
5057 2009-06-19 Jose Ruiz <ruiz@adacore.com>
5059 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
5060 by Common which contains all these fields.
5062 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
5063 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
5064 Remove code duplication in this package by means of calling the
5065 equivalent code in s-taprob.
5067 2009-06-19 Robert Dewar <dewar@adacore.com>
5069 * a-einuoc.ads: Minor reformatting
5071 2009-06-19 Ed Falis <falis@adacore.com>
5073 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
5074 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
5076 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
5078 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
5080 2009-06-19 Robert Dewar <dewar@adacore.com>
5082 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
5085 * checks.adb (Determine_Range): Move the test for generic types later.
5087 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
5089 (Eval_Relational_Op): Fold more cases including string compares
5091 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
5094 2009-06-19 Robert Dewar <dewar@adacore.com>
5096 * sem_type.ads, sem_ch12.adb: Minor reformatting
5098 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
5100 2009-06-19 Ed Schonberg <schonberg@adacore.com>
5102 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
5103 primitive operation of a rivate extension whose controlling argument
5104 is an out parameter.
5106 * sem.adb (Walk_Library_Units): exclude generic package declarations
5109 2009-06-19 Thomas Quinot <quinot@adacore.com>
5111 * i-vxwoio.ads: Add comments
5113 2009-06-19 Thomas Quinot <quinot@adacore.com>
5115 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5116 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5117 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
5118 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
5119 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
5120 Thin_Common.Socket_Ioctl.
5121 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
5122 __gnat_socket_ioctl.
5123 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
5124 argument after the file descriptor and request code.
5126 2009-06-19 Robert Dewar <dewar@adacore.com>
5128 * checks.adb: Minor reformatting
5130 2009-06-19 Jose Ruiz <ruiz@adacore.com>
5132 * env.c (__gnat_environ): RTX does not support this functionality.
5134 2009-06-19 Ed Schonberg <schonberg@adacore.com>
5136 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
5137 traverse, to account for front-end inlining and instantiations in a
5138 spec or in the main unit.
5140 2009-06-19 Robert Dewar <dewar@adacore.com>
5142 * checks.adb (Determine_Range): Do not attempt to get range of generic
5145 2009-06-19 Sergey Rybin <rybin@adacore.com>
5147 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
5148 gnatmetric option for generating the schema file for gnatmetric XML
5149 output. Add corresponding VMS qualifier.
5151 2009-06-19 Robert Dewar <dewar@adacore.com>
5153 * g-cgi.adb: Minor reformatting
5155 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
5157 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
5158 signal code for SIGFPE and raise Program_Error for SIGILL.
5160 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
5162 2009-06-19 Ed Schonberg <schonberg@adacore.com>
5164 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
5165 generic package if there is a visibility candidate that is declared in
5168 2009-06-18 Olivier Hainque <hainque@adacore.com>
5170 * system-aix64.ads: New file.
5171 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
5172 64bit system.ads for ppc64 multilib variants.
5174 2009-06-16 Robert Dewar <dewar@adacore.com>
5175 Olivier Hainque <hainque@adacore.com>
5177 Relax constraints on Machine_Attribute argument types:
5178 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
5180 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
5181 * gcc-interface/decl.c (prepend_attributes): Accept static
5182 expressions of any type as attribute arguments, not only string
5184 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
5185 the relaxation of the restriction on the Info argument type.
5187 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
5189 * gcc-interface/utils.c (record_builtin_type): Pass location
5190 argument to build_decl.
5191 (create_type_stub_decl): Same.
5192 (create_type_decl): Same.
5193 (create_var_decl_1): Same.
5194 (create_field_decl): Same.
5195 (create_param_decl): Same.
5196 (create_label_decl): Same.
5197 (create_subprog_decl): Same.
5198 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
5199 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
5200 argument to create_artificial_label.
5201 (Loop_Statement_to_gnu): Same.
5202 (Subprogram_Body_to_gnu): Same.
5203 (gnat_gimplify_stmt): Same.
5205 2009-06-11 Richard Henderson <rth@redhat.com>
5207 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
5210 2009-06-11 Ed Schonberg <schonberg@adacore.com>
5212 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
5213 accessibiliy check on access_to_subprogram in the context of an
5214 anonymous access that is not an access parameter.
5216 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
5218 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
5220 2009-06-11 Quentin Ochem <ochem@adacore.com>
5222 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
5223 comments for message handled by GPS.
5225 2009-06-11 Matthew Gingell <gingell@adacore.com>
5227 * adaint.c: Use fopen64 instead of fopen on platforms where we know
5230 2009-06-11 Pascal Obry <obry@adacore.com>
5232 * g-cgi.ads: Fix comment typo.
5234 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
5236 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
5238 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
5239 a reference to the original type for the type of the field of the
5241 (maybe_pad_type): Likewise.
5243 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
5244 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
5245 Pass correctly typed arguments to create_field_decl.
5246 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
5247 case of contrained discriminants as well. Use the padded base type
5248 in the other case as well. Rename temporary variable. Tweak test.
5249 Factor common access pattern. Set GNU_SIZE only once.
5251 2009-06-09 Olivier Hainque <hainque@adacore.com>
5253 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
5254 helper for build_call_alloc_dealloc with arguments to be interpreted
5255 identically. Process the case where a GNAT_PROC to call is provided.
5256 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
5257 and return an allocator for DATA_SIZE bytes aimed at containing a
5258 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
5259 DATA_TYPE alignments greater than what the latter offers.
5260 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
5261 release a DATA_TYPE object designated by DATA_PTR using the
5262 __gnat_free entry point.
5263 (build_call_alloc_dealloc): Expect object data type instead of naked
5264 alignment constraint. Use the new helpers.
5265 (build_allocator): Remove special processing for the super-aligned
5266 case, now handled by build_call_alloc_dealloc. Pass data
5267 type instead of the former alignment argument, as expected by the new
5269 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
5271 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
5272 Remove special processing for the super-aligned case, now handled
5273 by build_call_alloc_dealloc. Pass data type instead of the former
5274 alignment argument, as expected by the new interface.
5276 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
5278 * lib-writ.adb (flag_compare_debug): Import.
5279 (Write_ALI): Skip during -fcompare-debug-second.
5281 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5283 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
5284 adjusting the discriminant nodes in an extension, use the full view
5285 of the parent subtype if it is of a private kind.
5287 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5289 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
5290 _Parent field, if any, to the record before adding the other fields.
5291 <E_Record_Subtype>: Put the _Controller field before the other fields
5292 except for the _Tag or _Parent fields.
5293 (components_to_record): Likewise. Retrieve the _Parent field from the
5296 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5298 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
5299 remove unused parameter and simplify.
5300 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
5301 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
5302 as context for all discriminants. Fix formatting nits.
5303 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
5304 before Discriminant_Constraint. Adjust for above renaming. Do not
5305 set GNU_TYPE more than once.
5306 (elaborate_entity): Test Has_Discriminants on the entity and use
5307 Implementation_Base_Type.
5308 (components_to_record): Rename component_list to gnat_component_list.
5309 Retrieve the _Parent field from the list. Fix nits in comments.
5310 Clarify logic in loop. Pass correct arguments to create_field_decl.
5312 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
5314 * gcc-interface/Make-lang.in: Fix formatting.
5316 2009-06-01 Olivier Hainque <hainque@adacore.com>
5317 Eric Botcazou <ebotcazou@adacore.com>
5319 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
5320 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
5321 on the result if at least one of the input fields couldn't be output
5322 as a static constant any more.
5324 2009-06-01 Olivier Hainque <hainque@adacore.com>
5325 Eric Botcazou <ebotcazou@adacore.com>
5327 * gcc-interface/utils2.c (gnat_build_constructor): Factor
5328 out code. Use initializer_constant_valid_for_bitfield_p and
5329 CONSTRUCTOR_BITFIELD_P for bit-fields.
5331 2009-05-26 Ian Lance Taylor <iant@google.com>
5333 * gcc-interface/Makefile.in (COMPILER): Define.
5334 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
5335 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
5336 (seh_init.o, tracebak.o): Likewise.
5337 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
5338 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
5339 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
5340 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
5341 (ada/utils2.o): Likewise.
5343 2009-05-24 Olivier Hainque <hainque@adacore.com>
5345 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
5346 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
5347 Add -auxbase variants to the list of recognized internal switches.
5348 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
5350 * lib.ads: Make comment on internal GCC switches more general.
5351 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
5354 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5356 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
5358 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5360 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
5363 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5365 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
5366 original type because of the alignment when there is an address clause.
5368 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
5370 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
5371 discriminants affect the shape of the subtype, retrieve the GCC type
5372 directly from the original field if the GNAT types for the field and
5373 the original field are the same.
5375 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
5377 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
5379 (TYPE_RM_VALUES): Likewise.
5380 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
5381 (SET_TYPE_RM_SIZE): New macro.
5382 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
5383 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
5384 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
5385 * gcc-interface/gigi.h (create_range_type): Declare.
5386 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
5387 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
5388 <E_Signed_Integer_Subtype>: Build a regular integer type first and
5389 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5390 <E_Floating_Point_Subtype>: Build a regular floating-point type first
5391 and then set the RM bounds.
5392 <E_Array_Type>: Use create_range_type instead of build_range_type.
5393 <E_Array_Subtype>: Build a regular integer type first and then set
5394 the RM bounds for the extra subtype.
5395 <E_String_Literal_Subtype>: Use create_range_type instead of
5397 <all>: Set the RM bounds for enumeration types and the GCC bounds for
5398 floating-point types.
5399 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
5400 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
5401 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5402 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
5403 types and with RM bounds for subtypes.
5404 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
5405 (gnat_print_type) <REAL_TYPE>: New case.
5406 <ENUMERAL_TYPE>: Fall through to above case.
5407 (gnat_get_subrange_bounds): New function.
5408 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
5409 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
5410 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
5411 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
5412 (create_range_type): New function.
5413 (create_param_decl): Build a regular integer type first and then set
5414 the RM bounds for the extra subtype.
5415 (unchecked_convert): Remove kludge for 'Valid.
5416 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
5417 the index to sizetype instead of TYPE_DOMAIN.
5419 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
5421 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
5422 parameter and move check for static expression to...
5423 (elaborate_expression): ...here. Adjust call to above function.
5424 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
5425 in calls to elaborate_expression.
5426 (elaborate_entity): Likewise.
5427 (substitution_list): Likewise.
5428 (maybe_variable): Fix formatting.
5429 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
5431 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
5433 2009-05-07 Arnaud Charlet <charlet@adacore.com>
5435 * gcc-interface/Make-lang.in: Update dependencies.
5437 2009-05-06 Laurent GUERBY <laurent@guerby.net>
5439 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
5440 Define sa_handler_pos.
5441 * s-osinte-linux.ads: Use it.
5442 * s-linux-mipsel.ads: New.
5443 * system-linux-mips64el.ads: New.
5444 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
5447 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5449 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
5450 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
5451 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
5452 (Tagged_Type_Expansion): New flag.
5453 Replace use of VM_Target related to tagged types expansion by
5454 Tagged_Type_Expansion, since tagged type expansion is not necessarily
5455 linked to VM targets.
5457 2009-05-06 Robert Dewar <dewar@adacore.com>
5459 * sem_attr.adb: Add processing for Standard'Compiler_Version
5461 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
5463 (Expr_First_Char): Add ??? comment that paren skipping needs work
5464 (Expr_Last_Char): Add ??? comment that paren skipping needs work
5466 * exp_attr.adb: Add processing for Compiler_Version
5468 * sem_attr.adb: New attribute Compiler_Version
5470 * snames.ads-tmpl: Add entries for Compiler_Version attribute
5472 * gnat_rm.texi: Document Compiler_Version attribute
5474 2009-05-06 Robert Dewar <dewar@adacore.com>
5476 * errout.adb: Minor reformatting
5478 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
5479 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
5480 styleg.adb: Add stylized comments to error messages that are included
5481 in the codefix circuitry of IDE's such as GPS.
5483 2009-05-06 Sergey Rybin <rybin@adacore.com>
5485 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
5486 new form of the rule parameter that allows to specify the suffix for
5487 access-to-access type names.
5489 2009-05-06 Robert Dewar <dewar@adacore.com>
5491 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
5492 out parameter assigned when exception handlers are present.
5494 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
5495 assignments on exit.
5497 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
5498 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
5499 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
5500 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
5501 messages that are included in the codefix circuitry of IDE's such as
5504 * sinput.ads, sinput.adb (Expr_First_Char): New function
5505 (Expr_Last_Char): New function
5507 2009-05-06 Sergey Rybin <rybin@adacore.com>
5509 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
5510 Add formal definition for extra exit point metric
5512 2009-05-06 Pascal Obry <obry@adacore.com>
5514 * adaint.c: Support for setting attributes on unicode filename on
5517 2009-05-06 Robert Dewar <dewar@adacore.com>
5519 * sem_warn.adb: Minor reformatting
5521 2009-05-06 Javier Miranda <miranda@adacore.com>
5523 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
5524 not have discriminants or components with default expressions.
5525 (Analyze_Pragma): For pragma CPP_Class check that imported types
5526 have no discriminants and components have no default expression.
5528 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
5529 class-wide types in the expression of a record component association.
5531 2009-05-06 Sergey Rybin <rybin@adacore.com>
5533 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
5535 * gnat_ugn.texi: Add description for the new extra exit points metric
5536 (gnatmetric section).
5538 2009-05-06 Robert Dewar <dewar@adacore.com>
5540 * s-fileio.adb: Minor comment update
5542 * sem_ch8.adb: Minor reformatting
5544 * exp_ch3.adb: Update comments.
5546 2009-05-06 Tristan Gingold <gingold@adacore.com>
5548 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
5550 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5552 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
5553 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
5555 * gcc-interface/Make-lang.in: Update dependencies
5557 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5559 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
5560 change. The context clause of a generic instance declaration must be
5561 preserved until the end of the compilation, because it may have to be
5562 installed/removed repeatedly.
5563 The latest change to sem.adb ensures that the context of both spec and
5564 body of an instance is traversed before the instance itself, making
5565 this patch redundant.
5567 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5569 * sem_aggr.adb: Fix typo.
5571 2009-05-06 Thomas Quinot <quinot@adacore.com>
5573 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
5574 declaration, do not adjust if the declaration is to be rewritten into
5577 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5579 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
5582 2009-05-06 Bob Duff <duff@adacore.com>
5584 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
5585 otherwise the compiler would be allowed to optimize away the cleanup
5588 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5590 * gnat_ugn.texi: Fix typo.
5592 2009-05-06 Thomas Quinot <quinot@adacore.com>
5594 * g-debuti.adb: Minor reformatting
5596 * exp_attr.adb: Minor reformatting
5598 2009-05-06 Robert Dewar <dewar@adacore.com>
5600 * sem_aggr.adb: Minor reformatting.
5602 * g-socthi-vms.adb: Minor reformatting
5604 2009-05-06 Bob Duff <duff@adacore.com>
5606 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
5607 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
5609 2009-05-06 Bob Duff <duff@adacore.com>
5611 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
5614 2009-05-06 Javier Miranda <miranda@adacore.com>
5616 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
5617 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
5618 extension aggregates.
5619 (Resolve_Record_Aggregate): Add support for C++ constructors in
5620 extension aggregates.
5622 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
5623 constructors in extension aggregates.
5625 2009-05-06 Robert Dewar <dewar@adacore.com>
5627 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
5630 2009-05-06 Thomas Quinot <quinot@adacore.com>
5632 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
5633 packed type, since on OpenVMS, struct msghdr is packed.
5635 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5637 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5638 call returning an unconstrained composite value, create the proper
5639 subtype for it, as is done for object dclarations with unconstrained
5640 nominal subtypes. Perform this transformation regarless of whether
5641 call comes from source.
5643 2009-05-06 Robert Dewar <dewar@adacore.com>
5645 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
5649 Add documentation for pragma Implicit_Packing applied to record
5652 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5654 * sem.adb (Walk_Library_Items): Place all with_clauses of an
5655 instantiation on the spec, because late instance bodies may generate
5656 with_clauses for the instance body but are inserted in the instance
5659 2009-05-06 Emmanuel Briot <briot@adacore.com>
5661 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
5662 support for returning the directory even if it doesn't exist. This is
5663 used for the object directory, since we are always setting it to a
5664 non-null value, and we should set it to an absolute name rather than a
5665 relative name for the sake of external tools that might depend on it.
5666 (Check_Library_Attributes): When Project.Library_Dir is known, check
5667 that the directory exists.
5669 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5671 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
5672 reference is an implicit dereference, do not freeze the designated type
5673 if within a default expression or when preanalyzing a pre/postcondtion.
5675 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5677 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5678 call returning an unconstrained composite value, create the proper
5679 subtype for it, as is done for object dclarations with unconstrained
5682 2009-05-06 Robert Dewar <dewar@adacore.com>
5684 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
5687 * freeze.adb: Minor reformatting
5689 2009-05-06 Thomas Quinot <quinot@adacore.com>
5691 * sem_ch3.adb (Access_Type_Declaration): An access type whose
5692 designated type is a limited view from a limited with clause (flagged
5693 From_With_Type) is not itself such a limited view.
5695 2009-05-06 Emmanuel Briot <briot@adacore.com>
5697 * prj-nmsc.adb: Remove unused variable.
5699 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
5700 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
5701 makeutl.ads, since not all users of prj.ads need this.
5703 2009-05-06 Javier Miranda <miranda@adacore.com>
5705 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
5706 constructor in case of aggregates whose type is a CPP_Class type.
5708 2009-05-06 Robert Dewar <dewar@adacore.com>
5710 * sem_ch13.adb: Minor comment additions
5712 * osint.adb: Minor reformatting
5714 2009-05-06 Pascal Obry <obry@adacore.com>
5716 * initialize.c: On Windows, keep full pathname to expanded command
5719 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5721 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
5722 an aggregate with box default is of a discriminated private type, do
5723 not build a subaggregate for it.
5724 A proper call to the initialization procedure is generated for it.
5726 2009-05-06 Thomas Quinot <quinot@adacore.com>
5728 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
5729 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
5730 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
5731 use standard array code for Standard.String.
5732 (Exp_Dist): Bump PolyORB s-parint API version to 3.
5733 (Rtsfind): New entities TA_Std_String, Unbounded_String.
5735 2009-05-06 Robert Dewar <dewar@adacore.com>
5737 * g-comlin.ads: Minor reformatting
5739 * xoscons.adb: Minor reformatting
5741 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5743 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
5744 Underlying_Type before retrieving the type definition for gathering
5745 components, to account for the case where the type is private.
5747 2009-05-06 Tristan Gingold <gingold@adacore.com>
5749 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
5751 2009-05-06 Thomas Quinot <quinot@adacore.com>
5753 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5754 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
5755 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
5756 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
5757 Windows versions): Fix incorrect base
5758 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
5759 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
5760 System.Address for the To parameter instead of a Sockaddr_In_Access, to
5761 achieve independance from AF_INET family, and also to allow this
5762 parameter to be retrieved from a Msghdr for the Windows case where
5763 these routines are used to implement C_Sendmsg and C_Recvmsg.
5765 2009-05-06 Bob Duff <duff@adacore.com>
5767 * g-expect.adb, g-expect.ads: Minor reformatting
5769 * sdefault.ads: Minor comment fix
5771 * g-expect-vms.adb: Minor reformatting
5773 * table.ads, table.adb (Append_All): New convenience procedure for
5774 appending a whole array.
5776 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
5777 box message. Call Osint.Dump_Source_File_Names to print out the file
5778 list, instead of rummaging around in various data structures.
5780 * debug.adb: New switch -gnatd.n, to print source file names as they
5783 * alloc.ads: Add parameters for Osint.File_Name_Chars.
5785 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
5786 out source file names during a "bug box".
5787 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
5788 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
5789 If it's not part of the runtimes, store it for later printing by
5790 Dump_Source_File_Names.
5792 2009-05-06 Javier Miranda <miranda@adacore.com>
5794 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
5795 documentation and add reference to the GNAT user guide for further
5798 2009-05-06 Javier Miranda <miranda@adacore.com>
5800 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
5801 also wrong examples that use extension aggregates.
5803 2009-05-06 Albert Lee <lee@adacore.com>
5805 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
5806 of Msg_Iovlen_T for VMS.
5808 2009-05-04 Laurent GUERBY <laurent@guerby.net>
5811 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
5813 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5815 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
5816 box-defaulted operator in an instantiation, when the type of the
5817 operands is not directly visible.
5819 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5821 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
5822 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
5823 analysis of the ancestor part. Remove prohibition against limited
5824 interpretations of the ancestor expression in the case of Ada 2005.
5825 Revise error message in overloaded case, adding a message to cover
5828 2009-04-29 Thomas Quinot <quinot@adacore.com>
5830 * xoscons.adb: Minor reformatting
5832 2009-04-29 Bob Duff <duff@adacore.com>
5834 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
5835 attribute_definition_clauses for the following attributes when the
5836 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
5837 Storage_Size, Write. Otherwise, we get spurious errors (for example,
5838 missing Read attribute on remote types).
5840 * gnat_ugn.texi: Document the change, and add a stern warning.
5842 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5844 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
5845 disabled not just for the current scope, but for the innermost dynamic
5848 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5850 * gcc-interface/Make-lang.in: Update dependencies
5852 2009-04-29 Vincent Celier <celier@adacore.com>
5854 * prj-part.adb: Minor comment update
5856 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5858 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
5859 box-initialized records with discriminated subcomponents that are
5860 constrained by discriminants of enclosing components. New subsidiary
5861 procedures Add_Discriminant_Values, Propagate_Discriminants.
5863 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5865 * g-socket.adb: Code clean up.
5867 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5869 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
5870 function entity, to cover the case of a parameterless function call
5871 that has not been resolved.
5873 2009-04-29 Robert Dewar <dewar@adacore.com>
5875 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
5876 reformatting and comment updates.
5878 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5880 * gnat_ugn.texi: Update some documentation about interfacing with C++
5881 Mention -fkeep-inline-functions.
5883 * gnat_ugn.texi: Minor edits
5885 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5887 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
5888 for a defaulted component of an enclosing aggregate, inherit the type
5889 from the component declaration of the enclosing type.
5891 2009-04-29 Albert Lee <lee@adacore.com>
5893 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
5894 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
5895 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
5896 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
5897 Relocate the Msghdr record type from GNAT.Sockets.Thin to
5898 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
5899 type for the Msg_Iovlen field.
5901 2009-04-29 Vincent Celier <celier@adacore.com>
5903 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
5904 Source_File_Index_Table entries for the source, to avoid crash when
5907 * gnatcmd.adb (Test_If_Relative_Path): Use
5908 Makeutl.Test_If_Relative_Path.
5910 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
5911 Including_RTS is True.
5913 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
5914 Including_RTS defaulted to False.
5916 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
5919 2009-04-29 Javier Miranda <miranda@adacore.com>
5921 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
5923 2009-04-29 Javier Miranda <miranda@adacore.com>
5925 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
5926 associated with dyamically tagged expressions if the expression
5927 initializing a tagged type corresponds with a non default CPP
5929 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
5930 of limited type objects.
5932 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
5933 when a CPP constructor is called in an assignment. Disable also the
5934 error message associated with dyamically tagged expressions if the
5935 exporession initializing a tagged type corresponds with a non default
5938 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
5939 non-default C++ constructors.
5941 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
5943 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
5944 non-default constructors.
5945 (Init_Proc): Add support for non-default constructors.
5947 * exp_disp.adb (Set_Default_Constructor): Removed.
5948 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
5949 but extending its functionality to handle non-default constructors.
5951 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
5952 constructors. Minor code cleanup removing unrequired label and goto
5955 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
5957 (Build_Init_Statements): Add support for non-default constructors.
5958 (Expand_N_Object_Declaration): Add support for non-default constructors.
5959 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
5960 to Set_CPP_Constructors.
5962 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
5963 non-default constructors.
5964 Required to handle its use in build-in-place statements.
5966 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
5967 pragma for non-default C++ constructors and the new compiler support
5968 that allows the use of these constructors in record components, limited
5969 aggregates, and extended return statements.
5971 2009-04-29 Vincent Celier <celier@adacore.com>
5973 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
5974 project extending an abstract project.
5976 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5978 * targparm.ads: Fix oversight.
5980 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5982 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
5983 derivation when necessary, to find the user-subprogram that is actally
5986 2009-04-29 Robert Dewar <dewar@adacore.com>
5988 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
5991 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5993 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
5994 primitive operation, rather than source line of synchronized type, when
5995 building the wrapper for a primitive operation that overrides an
5996 operation inherited from a progenitor, to improve the error message on
5997 duplicate declarations.
5999 * sem_ch3.adb (Process_Full_View): Use new signature of
6002 2009-04-29 Robert Dewar <dewar@adacore.com>
6004 * prj-nmsc.ads: Minor reformatting
6006 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
6008 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
6009 expression on the existing parent If statement.
6011 2009-04-29 Robert Dewar <dewar@adacore.com>
6013 * prj-proc.adb, prj.ads: Minor reformatting
6015 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
6017 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
6018 existing parent If statement on the newly created one.
6020 2009-04-29 Emmanuel Briot <briot@adacore.com>
6022 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
6023 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
6024 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
6025 (Set_In_Configuration, In_Configuration): Removed.
6026 Replaced by an extra parameter Is_Config_File in several parameter to
6027 avoid global variables to store the state of the parser.
6029 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6031 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
6032 with_clauses generated for the same unit through rtsfind, and that
6033 appear in the context of different units.
6035 * rtsfind.adb: New attribute First_Implicit_With, component of the
6036 Unit_Record that stores information about a unit loaded through rtsfind.
6038 2009-04-29 Gary Dismukes <dismukes@adacore.com>
6040 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
6041 (other conditions permitting), so that abstract stream subprograms will
6042 be declared for them.
6044 2009-04-29 Bob Duff <duff@adacore.com>
6046 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
6048 * g-expect.ads: Minor comment fixes.
6050 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6052 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
6053 dispatching operation is a body without previous spec, update the list
6054 of primitive operations to ensure that cross-reference information is
6057 2009-04-29 Albert Lee <lee@adacore.com>
6059 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6060 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
6061 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
6062 (GNAT.Sockets.Thin.C_Readv,
6063 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
6064 (GNAT.Sockets.Thin.C_Recvmsg,
6065 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
6067 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
6068 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
6070 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6072 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
6073 operation is a body without previous spec, update the list of
6074 primitive operations to ensure that cross-reference information is
6077 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
6078 new compilation unit node for the instance declaration, keep the
6079 context items of the original unit on it, so that the context of the
6080 instance body only holds the context inherited from the generic body.
6082 2009-04-29 Bob Duff <duff@adacore.com>
6084 * sem_res.adb: Minor comment fix.
6086 2009-04-29 Thomas Quinot <quinot@adacore.com>
6088 * sem_elim.adb: Minor reformatting
6090 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6092 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
6093 predefined unit, allow arbitrary number of components in static
6094 aggregate, to ensure that the same level of constant folding applies
6095 for Ada 95 and Ada 05 versions of the file.
6097 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6099 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
6100 information: no need for full scope check.
6101 (Eliminate_Error): Do not emit error in a generic context.
6103 2009-04-29 Ed Falis <falis@adacore.com>
6105 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
6106 VxWorks 653 POS does not support rmdir.
6108 2009-04-29 Matteo Bordin <bordin@adacore.com>
6110 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
6111 results are printed.
6113 2009-04-29 Arnaud Charlet <charlet@adacore.com>
6115 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
6118 2009-04-29 Thomas Quinot <quinot@adacore.com>
6120 * make.adb: Minor reformatting.
6121 Minor code reorganization throughout.
6123 2009-04-29 Matteo Bordin <bordin@adacore.com>
6125 * s-stausa.ads: Changed visibility of type Task_Result: moved to
6126 public part to give application visibility over it.
6127 This is for future improvement and to build a public API on top of it.
6128 Changed record components name of type Task_Result to reflect the new
6131 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
6132 reporting Stack usage.
6134 * gnat_ugn.texi: Update doc of stack usage report.
6136 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
6138 * Makefile.rtl: Add new run-time files.
6140 2009-04-29 Pascal Obry <obry@adacore.com>
6142 * initialize.c: Do not expand quoted arguments.
6144 2009-04-29 Emmanuel Briot <briot@adacore.com>
6146 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
6148 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
6149 Prj.Ultimate_Extending_Project_Of
6151 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6153 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
6154 Amendment type, add the with_clause for Finalization.List_Controller
6155 only if the current context is a package body.
6157 2009-04-29 Thomas Quinot <quinot@adacore.com>
6159 * sem_ch12.adb: Minor reformatting
6161 * sem_aggr.adb: Minor reformatting
6163 * sem_ch6.adb, sem_cat.ads: Minor reformatting
6165 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
6167 2009-04-29 Quentin Ochem <ochem@adacore.com>
6169 * prj.ads (Source_Id): Now general pointer type.
6171 2009-04-29 Thomas Quinot <quinot@adacore.com>
6173 * exp_ch7.adb, rtsfind.adb: Minor reformatting
6175 * sem_res.adb: Minor reformatting
6177 2009-04-29 Thomas Quinot <quinot@adacore.com>
6179 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
6180 operands is static only if it is a predefined concatenation operator.
6182 * sem_util.adb: Minor reformatting
6184 * sem_ch12.adb (Save_References): When propagating semantic information
6185 from generic copy back to generic template, for the case of an
6186 identifier that has been rewritten to an explicit dereference whose
6187 prefix is either an object name or a parameterless funcion call
6188 denoting a global object or function, properly capture the denoted
6189 global entity: perform the corresponding rewriting in the template,
6190 and point the rewritten identifier to the correct global entity (not
6191 to the associated identifier in the generic copy).
6193 2009-04-29 Robert Dewar <dewar@adacore.com>
6195 * rtsfind.adb, prj-env.adb: Minor reformatting
6196 Minor code reorganization
6198 2009-04-29 Emmanuel Briot <briot@adacore.com>
6200 * make.adb: Fix comment
6202 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
6203 is given as argument, as might happen in gnatmake.
6205 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6207 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
6208 an abstract operation of a progenitor is not properly overridden by an
6209 operation of a derived synchronized type.
6211 2009-04-29 Robert Dewar <dewar@adacore.com>
6213 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
6214 prj-proc.adb: Minor reformatting
6215 Minor code reorganization
6217 2009-04-29 Bob Duff <duff@adacore.com>
6219 * exp_ch7.adb (Build_Final_List): For an access type that designates a
6220 Taft Amendment type, if the access type needs finalization, make sure
6221 the implicit with clause for List_Controller occurs on the package spec.
6223 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
6224 with's created for the pseudo-children of Text_IO and friends. In
6225 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
6226 Ada.Text_IO.Integer_IO both with-ing each other.
6228 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
6229 oddball cases when pragma Extend_System is used.
6231 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
6232 the case where a package spec instantiates a generic whose body with's
6233 this package, so Walk_Library_Items won't complain about cyclic with's.
6235 2009-04-29 Emmanuel Briot <briot@adacore.com>
6237 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
6238 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
6239 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
6240 (Project_Id): now a real pointer to Project_Data, instead of an index
6241 into the Projects_Table. This simplifies the API significantly, avoiding
6242 extra lookups in this table and the need to pass the Project_Tree_Ref
6243 parameter in several cases
6245 2009-04-29 Nicolas Setton <setton@adacore.com>
6247 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
6250 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
6252 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
6255 2009-04-24 Robert Dewar <dewar@adacore.com>
6257 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
6258 clean.adb: Minor reformatting.
6259 Minor code reorganization and message improvement.
6261 2009-04-24 Emmanuel Briot <briot@adacore.com>
6263 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
6264 (Alternate_Languages): now implemented as a malloc-ed list rather
6265 than through a table.
6267 2009-04-24 Thomas Quinot <quinot@adacore.com>
6269 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
6270 accurately handle cases such as "lit" & "lit" and
6271 "lit" & static_string_constant
6273 2009-04-24 Emmanuel Briot <briot@adacore.com>
6275 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
6276 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
6277 removed. Lists of projects are now implemented via standard malloc
6278 rather than through the table.
6280 2009-04-24 Thomas Quinot <quinot@adacore.com>
6282 * sem_ch12.adb: Minor reformatting
6284 * g-trasym.adb: Minor reformatting
6286 * exp_ch6.adb: Minor reformatting
6288 2009-04-24 Robert Dewar <dewar@adacore.com>
6290 * layout.adb (Layout_Type): For packed array type, copy unset
6291 size/alignment fields from the referenced Packed_Array_Type.
6293 2009-04-24 Bob Duff <duff@adacore.com>
6295 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
6296 longer needed after sem_ch12 changes.
6298 * sem.adb (Walk_Library_Items): Include with's in some debugging
6301 2009-04-24 Emmanuel Briot <briot@adacore.com>
6303 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
6304 only ever using the Project field.
6306 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6308 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
6309 Body_Required on the generated compilation node. The new node is linked
6310 to its body, but both share the same file, so we do not set this flag
6311 on the new unit so as not to create a spurious dependency on a
6312 non-existent body in the ali file for the instance.
6314 2009-04-24 Robert Dewar <dewar@adacore.com>
6316 * make.adb: Minor reformatting
6318 2009-04-24 Emmanuel Briot <briot@adacore.com>
6320 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
6321 Add_Source): merge some code between those. In particular change where
6322 file normalization is done to avoid a few extra calls to
6323 Canonicalize_File_Name. This also removes the need for passing
6324 Current_Dir in a number of subprograms.
6326 2009-04-24 Bob Duff <duff@adacore.com>
6328 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
6329 False, assign the correct unit to the Cunit field of the new table
6330 entry. We want the spec unit, not the body unit.
6332 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
6333 interface for these.
6334 (Maybe_Add_With): Check whether we're trying to a with on the current
6335 unit, and avoid creating such directly self-referential with clauses.
6336 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
6337 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
6338 and matches existing comments in the spec.
6340 * sem.adb (Walk_Library_Items): Add various special cases to make the
6343 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
6344 instead of Parent (N), for uniformity.
6346 2009-04-24 Robert Dewar <dewar@adacore.com>
6348 * errout.ads: Minor reformatting
6350 2009-04-24 Emmanuel Briot <briot@adacore.com>
6352 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
6353 behavior when the project includes sources from multiple languages
6355 2009-04-24 Vincent Celier <celier@adacore.com>
6357 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
6358 is a language other than Ada declared.
6360 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
6361 Imported_First set to True.
6363 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6365 * sem_res.adb: additional optimization to inhibit creation of
6366 redundant transient scopes.
6368 2009-04-24 Bob Duff <duff@adacore.com>
6370 * rtsfind.ads: Minor comment fix
6372 2009-04-24 Emmanuel Briot <briot@adacore.com>
6374 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
6375 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
6376 basically doing the same work (for explicit or implicit sources).
6377 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
6378 role. Rewritten to share some code (testing that all explicit sources
6379 have been found) between ada_only and multi_language modes.
6381 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
6383 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
6384 for CLI imported types.
6385 (Analyze_Pragma): Allow CIL or Java imported functions returning
6386 access-to-subprogram types.
6388 2009-04-24 Emmanuel Briot <briot@adacore.com>
6390 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
6391 (Project_Data.Dir_Path): field removed, since it can be computed
6392 directly from .Directory, and is needed only once when processing the
6393 project is buildgpr.adb or make.adb
6395 2009-04-24 Robert Dewar <dewar@adacore.com>
6397 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
6398 rtsfind.adb: Minor reformatting.
6399 Minor code reorganization
6401 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6403 * mlib-prj.adb: Use friendlier english identifier.
6405 * gnatcmd.adb, make.adb: Use better english identifiers.
6407 2009-04-24 Robert Dewar <dewar@adacore.com>
6409 * clean.adb: Minor reformatting
6411 2009-04-24 Robert Dewar <dewar@adacore.com>
6413 * einfo.adb (OK_To_Rename): New flag
6415 * einfo.ads (OK_To_Rename): New flag
6417 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
6420 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
6422 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
6425 2009-04-24 Emmanuel Briot <briot@adacore.com>
6427 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
6428 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
6429 field removed. This is not a property of the
6430 project, just a boolean used to traverse the project tree, and storing
6431 it in the structure prevents doing multiple traversal in parallel.
6432 (Project_Data.Checked): also removed, since it was playing the same role
6433 as Seen when we had two nested loops, and this is no longer necessary
6434 (For_All_Imported_Projects): removed, since in fact there was already
6435 the equivalent in For_Every_Project_Imported. The latter was rewritten
6436 to use a local hash table instead of Project_Data.Seen
6437 Various loops were rewritten to use For_Every_Project_Imported, thus
6438 removing the need for Project_Data.Seen. This avoids a lot of code
6441 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6443 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
6444 statements, even though the actual of the call is a concatenation,
6445 because the argument is static, and we want to preserve warning
6446 messages about sequences of code statements that are not marked
6449 * sem_warn.adb: remove obsolete comment about warning being obsolete
6451 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
6452 requeued and the delay has expired while within the accept statement
6453 that executes the requeue, do not perform the requeue and indicate that
6454 the timed call has been aborted.
6456 2009-04-24 Emmanuel Briot <briot@adacore.com>
6458 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6459 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
6460 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
6461 since they can be computed from the above.
6463 2009-04-24 Vincent Celier <celier@adacore.com>
6465 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
6467 * prj-env.adb: Move all global variables to the private part of the
6469 Access these new components instead of the global variables no longer
6471 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
6472 components that were previously global variables.
6474 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
6475 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
6478 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
6479 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
6481 * prj.adb (Initialize): Do not call Prj.Env.Initialize
6482 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
6483 components in the private part of the project tree data.
6485 * prj.ads (Private_Project_Tree_Data): new components moved from
6486 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
6487 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
6488 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
6490 2009-04-24 Vincent Celier <celier@adacore.com>
6492 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
6494 * prj-nmsc.adb (Check_Library): No error for imports by shared library
6495 projects, when --unchecked-shared-lib-imports is used.
6497 2009-04-24 Robert Dewar <dewar@adacore.com>
6499 * sem_ch7.adb: Minor reformatting
6501 2009-04-24 Tristan Gingold <gingold@adacore.com>
6503 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
6506 2009-04-24 Emmanuel Briot <briot@adacore.com>
6508 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
6509 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
6510 (For_All_Imported_Projects): new procedure
6511 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
6512 above rather than duplicating code.
6514 2009-04-24 Emmanuel Briot <briot@adacore.com>
6516 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6517 (Source_Id, Source_Data): use a real list to store sources rather than
6518 using an external table to store the elements. This makes code more
6519 efficient and more readable.
6521 2009-04-24 Emmanuel Briot <briot@adacore.com>
6523 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6524 (Source_Iterator): new type.
6525 This removes the need for having the sources on three different
6526 lists at the project tree, project and language level. They are now
6529 2009-04-24 Emmanuel Briot <briot@adacore.com>
6531 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
6533 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6535 * sem_warn.adb: Add comment on obsolete warning
6537 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6539 * s-tassta.adb (Create_Task): Fix violation of locking rule.
6541 2009-04-24 Emmanuel Briot <briot@adacore.com>
6543 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
6544 to Language_Ptr to better reflect its new implementation.
6545 (Project_Data.First_Languages_Processing): renamed to Languages now
6546 that the field with that name is no longer used
6547 (Project_Data.Languages): removed, no longer used, and duplicates
6548 information already available through First_Language_Processing.
6549 (Prj.Language_Index): now an actual pointer, instead of an index into
6550 a table. This makes the list somewhat more obvious, but more importantly
6551 removes the need to pass a pointer to the project_tree_data in a few
6552 places, and makes accessing the attributes of a languages more
6555 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6556 Thomas Quinot <quinot@adacore.com>
6558 * fe.h (Set_Identifier_Casing): Add const to second parameter.
6559 * gcc-interface/misc.c (internal_error_function): Make copy of return
6560 from pp_formatted_text before assigning BUFFER to it.
6561 (gnat_init): Likewise for main_input_filename and gnat_argv.
6562 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
6564 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6566 * ttypes.ads (Target_Double_Float_Alignment): New variable.
6567 (Target_Double_Scalar_Alignment): Likewise.
6568 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
6569 (Get_Double_Float_Alignment): New imported function.
6570 (Get_Double_Scalar_Alignment): Likewise.
6571 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
6572 the alignment of "double" floating-point types and "double" or larger
6573 scalar types, as parameterized by Target_Double_Float_Alignment and
6574 Target_Double_Scalar_Alignment respectively.
6575 * gcc-interface/gigi.h (double_float_alignment): Declare.
6576 (double_scalar_alignment): Likewise.
6577 (is_double_float_or_array): Likewise.
6578 (is_double_scalar_or_array): Likewise.
6579 (get_target_double_float_alignment): Likewise.
6580 (get_target_double_scalar_alignment): Likewise.
6581 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
6582 (get_target_strict_alignment): ...this.
6583 (get_target_double_float_alignment): New function.
6584 (get_target_double_scalar_alignment): Likewise.
6585 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6586 Test the presence of an alignment clause for under-aligned integer
6587 types. Take into account specific caps for the alignment of "double"
6588 floating-point types and "double" or larger scalar types, as
6589 parameterized by Target_Double_Float_Alignment and
6590 Target_Double_Scalar_Alignment respectively.
6591 (validate_alignment): Likewise.
6592 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
6593 (gigi): Initialize double_float_alignment and double_scalar_alignment.
6594 * gcc-interface/utils.c (double_float_alignment): New global variable.
6595 (double_scalar_alignment): Likewise.
6596 (is_double_float_or_array): New predicate.
6597 (is_double_scalar_or_array): Likewise.
6599 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6601 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
6602 the conditional expression only if it is common to both arms.
6604 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6606 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
6607 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
6608 arguments to build_allocator.
6609 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
6610 Remove code handling special allocator and assert its uselessness.
6612 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6614 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
6615 alignment is specified, do not promote that of the component type
6617 <E_Array_Subtype>: Likewise.
6619 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6621 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
6622 * sinfo.ads (Object Declaration): Likewise.
6623 (Assignment Statement): Likewise.
6624 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
6625 Do not force Is_True_Constant to false on the temporary.
6626 (Freeze_Entity): Do not force Is_True_Constant to false on names on
6627 the RHS of object declarations.
6628 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
6629 New case. Return 1 if the object is atomic.
6630 <N_Assignment_Statement>: Likewise.
6632 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6634 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
6635 For packed array types, make the original array type a parallel type
6636 for the modular type and its JM wrapper if the type is bit-packed.
6637 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
6638 record type for packed array types. Remove kludge.
6640 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6642 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
6643 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6644 Use front-end predicates to compute signedness and precision.
6645 <E_String_Literal_Subtype>: Fold range type.
6646 Make sure to set longest_float_type_node to a scalar type.
6647 (elaborate_entity): Use consistent Constraint_Error spelling.
6648 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
6649 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
6650 output for the modulus, if any.
6651 <ENUMERAL_TYPE>: Likewise for the RM size.
6652 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
6654 * gcc-interface/utils.c (finish_record_type): Really test the alignment
6655 of BLKmode bit-fields to compute their addressability.
6656 (create_index_type): Adjust comments.
6657 (create_param_decl): Create the biased subtype manually.
6658 * gcc-interface/utils2.c (build_component_ref): Use consistent
6659 Constraint_Error spelling.
6661 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6663 * gcc-interface/cuintp.c: Clean up include directives.
6664 * gcc-interface/targtyps.c: Likewise.
6665 * gcc-interface/decl.c: Likewise.
6666 * gcc-interface/misc.c: Likewise.
6667 * gcc-interface/trans.c: Likewise.
6668 * gcc-interface/utils.c: Likewise.
6669 * gcc-interface/utils2.c: Likewise.
6670 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
6672 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6674 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
6675 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
6676 (SET_DECL_LANG_SPECIFIC): Likewise.
6678 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6679 Update comment about use of build_range_type.
6680 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
6681 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
6682 check for other cases of overloading.
6683 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
6684 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
6685 Use size_int in lieu of build_int_cst.
6686 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
6689 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6691 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
6692 type is an enumeral or a boolean type, change it to an integer type
6693 with the same mode and signedness.
6695 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6697 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
6698 for an external constant whose initializer is not absolute.
6700 2009-04-22 Taras Glek <tglek@mozilla.com>
6702 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
6703 * gcc-interface/trans.c: Likewise.
6704 * gcc-interface/utils.c: Likewise.
6706 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6708 * sem_res.adb: Create block around procedure call when actual is a
6711 2009-04-22 Thomas Quinot <quinot@adacore.com>
6713 * s-soflin.ads: Fix typos
6715 2009-04-22 Vincent Celier <celier@adacore.com>
6717 * prj-env.adb: Minor comment change
6719 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
6720 Get_Name_String with No_File.
6722 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
6723 cannot be created even when not in verbose mode.
6725 2009-04-22 Emmanuel Briot <briot@adacore.com>
6727 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
6728 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
6729 Multi_Language modes, to avoid code duplication.
6730 (Project_Data.Include_Language): Removed.
6732 2009-04-22 Vincent Celier <celier@adacore.com>
6734 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
6735 the temporary file cannot be created, indicating the directory when the
6736 creation was attempted.
6738 2009-04-22 Emmanuel Briot <briot@adacore.com>
6740 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
6741 the language names, not their indices.
6743 2009-04-22 Emmanuel Briot <briot@adacore.com>
6745 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
6746 (Source_Data.Language_Name): Field removed.
6748 2009-04-22 Emmanuel Briot <briot@adacore.com>
6750 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
6753 2009-04-22 Emmanuel Briot <briot@adacore.com>
6755 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
6756 separate_suffix to the same value as the body_suffix.
6758 2009-04-22 Robert Dewar <dewar@adacore.com>
6760 * prj.adb: Minor code reorganization
6763 * prj-proc.adb: Minor code reorganization, clean up.
6765 * prj-nmsc.adb: Minor reformatting
6766 Minor code reorganization
6768 * gnat_ugn.texi: Add to doc on strict aliasing
6770 2009-04-22 Pascal Obry <obry@adacore.com>
6772 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
6775 * s-tasini.adb: Minor reformatting.
6777 * s-tassta.adb: Minor reformatting.
6779 2009-04-22 Emmanuel Briot <briot@adacore.com>
6781 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
6782 smaller subprograms.
6783 Renamed to Check_File_Naming_Schemes to avoid confusion with the
6784 other Check_Naming_Schemes functions that plays a totally different
6786 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
6787 extracted from the above. These were partially rewritten to avoid
6788 unnecessary code and temporary variables.
6789 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
6790 and Get_Unit (which for now still exist since they contain mode-specific
6793 2009-04-22 Emmanuel Briot <briot@adacore.com>
6795 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
6796 Remove duplicated code.
6797 (Canonical_Case_File_Name): new subprogram
6798 (Check_And_Normalize_Unit_Names): new subprogram
6799 (Write_Attr): new subprogram
6800 Better sharing of code
6801 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
6802 split Check_Naming and help find duplicated code
6803 (Check_Common): new subprogram, sharing code between ada_only and
6804 multi_language mode.
6805 (Naming_Data.Dot_Repl_Loc): field removed
6807 2009-04-22 Emmanuel Briot <briot@adacore.com>
6809 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
6810 Minor refactoring to reduce the size of
6811 Process_Sources_In_Multi_Language_Mode.
6812 Avoid extra copied of Source_Data, which we found in the past could be
6814 (Mark_Excluded_Sources): new subprogram.
6815 (Remove_Locally_Removed_Files_From_Units): merged into the above
6816 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
6817 and allow better sharing of code between multi_lang and ada_only modes
6818 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
6820 2009-04-22 Emmanuel Briot <briot@adacore.com>
6822 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
6823 Removed, since unused.
6825 2009-04-22 Vincent Celier <celier@adacore.com>
6827 * prj-attr.adb: New single project level attribute
6828 Separate_Run_Path_Options.
6830 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6831 attribute Seperate_Run_Path_Options.
6833 * prj.ads: (Project_Configuration): New Boolean component
6834 Separate_Run_Path_Options, defaulted to False.
6836 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
6838 2009-04-22 Robert Dewar <dewar@adacore.com>
6840 * sem_type.adb: Minor reformatting
6842 * mlib.adb: Minor reformatting
6844 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
6847 2009-04-22 Nicolas Setton <setton@adacore.com>
6849 * link.c: Add flag __gnat_separate_run_path_options.
6851 * mlib.adb (Separate_Run_Path_Options): New subprogram.
6853 * mlib.ads (Separate_Run_Path_Options): Declare.
6855 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
6856 switch per directory, rather than one "rpath" switch listing all
6859 * gnatlink.adb (Process_Binder_File): Likewise.
6861 * make.adb (Gnatmake): Likewise.
6863 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
6865 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
6866 Add a call to Move_Final_List when the target of the assignment is a
6867 return object that needs finalization and the expression is a
6868 controlled build-in-place function.
6870 2009-04-22 Vincent Celier <celier@adacore.com>
6872 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
6873 Including_Libraries set to True.
6875 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6877 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
6878 create a unit table entry for the subprogram declaration created for a
6879 child suprogram body that has no separate specification.
6881 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
6882 subprogram body, call Make_Child_Decl_Unit.
6884 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
6885 table can only be the created specification of a child subprogram body
6886 that is the main unit, which has not been entered in the table yet.
6888 * errout.adb (Output_Messages): Ignore created specification of a
6889 child subprogram body to prevent repeated listing of error messages.
6891 * gnat1drv.adb (gnat1drv): The generated specification for a child
6892 subprogram body does not generate code.
6894 2009-04-22 Arnaud Charlet <charlet@adacore.com>
6896 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
6897 since this unit is now part of bootstrap units, so must use Ada 95
6900 2009-04-22 Thomas Quinot <quinot@adacore.com>
6902 * a-tasatt.adb: Minor reformatting
6904 2009-04-22 Bob Duff <duff@adacore.com>
6906 * s-stalib.ads: Remove "with System;" since we're inside System, so
6909 2009-04-22 Vincent Celier <celier@adacore.com>
6911 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
6912 the source record, as there may be a dependency file even if no object
6915 2009-04-22 Robert Dewar <dewar@adacore.com>
6917 * lib-load.adb: Minor reformatting
6919 * lib-load.ads: Minor reformatting
6921 * sinfo.ads: Minor reformatting
6923 2009-04-22 Bob Duff <duff@adacore.com>
6925 * exp_pakd.adb: Minor comment fixes.
6927 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
6928 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
6929 include units containing instantiations, as well as units that are
6930 generic instantiations.
6932 * sem.adb: Include dependents and corresponding specs/bodies in the
6935 * gcc-interface/Make-lang.in:
6936 sem now depends on s-bitops, because of the packed array of Booleans.
6938 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6940 * gcc-interface/ada-tree.def: Fix formatting nits.
6941 (REGION_STMT): Delete.
6942 (HANDLER_STMT): Likewise.
6943 * gcc-interface/ada-tree.h: Fix formatting nits.
6945 (REGION_STMT_BODY): Likewise.
6946 (REGION_STMT_HANDLE): Likewise.
6947 (REGION_STMT_BLOCK): Likewise.
6948 (HANDLER_STMT_ARG): Likewise.
6949 (HANDLER_STMT_LIST): Likewise.
6950 (HANDLER_STMT_BLOCK): Likewise.
6951 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
6952 (fp_size_to_prec): Likewise.
6953 (largest_move_alignment): Delete.
6954 (gnat_compute_largest_alignment): Likewise.
6956 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6957 Remove redundant code.
6958 <E_Array_Type>: Remove redundant assert.
6959 <E_Array_Subtype>: Exit early from index computation in pathological
6961 Rewrite conditional assignment.
6962 (make_type_from_size): Likewise.
6963 * gcc-interface/misc.c (largest_move_alignment): Delete.
6964 (gnat_finish_incomplete_decl): Likewise.
6965 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
6966 (asm_out_file): Likewise
6967 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
6968 (gnat_dwarf_name): Move around.
6969 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
6970 (gigi): Remove call to gnat_compute_largest_alignment.
6971 * utils.c (create_field_decl): Rewrite conditional assignment.
6974 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6976 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
6977 on entry. Defer common processing for types. Reorder and clean up.
6978 Compute the equivalent GNAT node and the default size for types only.
6979 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
6980 <E_Access_Type>: For an unconstrained designated type, do not pretend
6981 that a dummy type is always made.
6982 <all> Fix nits in comments.
6983 (validate_size): Fix formatting nits and comments.
6984 (set_rm_size): Likewise.
6985 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
6986 passed to TARGET_PROMOTE_PROTOTYPES hook.
6988 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6990 * fe.h (Get_External_Name): Declare.
6991 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
6992 (concat_name): ...this.
6993 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
6994 gnu_entity_name and adjust for above renaming.
6995 <E_Access_Type>: Use create_concat_name to get the name of the various
6996 types associated with unconstrained array types.
6997 (make_aligning_type): Adjust for above renaming.
6998 (maybe_pad_type): Likewise.
6999 (components_to_record): Likewise. Use get_identifier_with_length for
7000 the encoding of the variant.
7001 (get_entity_name): Use get_identifier_with_length.
7002 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
7003 Do not fiddle with Name_Buffer.
7004 (concat_id_with_name): Rename to...
7005 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
7007 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
7010 2009-04-21 Joseph Myers <joseph@codesourcery.com>
7012 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
7015 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7017 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
7019 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7021 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
7022 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
7023 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
7024 Remove useless support code for packed array types and assert its
7026 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
7027 adjust for TYPE_RM_SIZE change.
7028 <all> Fix nits in comments. Use Original_Array_Type accessor instead
7029 of Associated_Node_For_Itype accessor for packed array types.
7030 (make_packable_type): Likewise.
7031 (maybe_pad_type): Likewise.
7032 (set_rm_size): Likewise. Rework conditional statement. Adjust for
7033 TYPE_RM_SIZE change.
7034 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
7035 (rm_size): Fix nits in comments. Rework conditional statements.
7036 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
7038 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
7039 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
7040 appropriate function to initialize the size_type_node. Adjust for
7041 TYPE_RM_SIZE change.
7043 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7045 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
7046 for imported subprograms.
7048 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7050 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
7051 constant objects covered by 13.3(19) volatile.
7053 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
7055 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
7056 of dummy fat pointer types to the debug back-end.
7058 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7060 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
7061 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
7062 before wrapping it up in the record type. Do not overwrite the
7063 Ada size of the record type with the Esize.
7065 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7067 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
7068 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
7069 if the conversion is on the LHS of an assignment and a no-op.
7070 <all> Do not convert the result to the result type if the Parent
7071 node is such a conversion.
7073 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7075 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
7076 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
7077 of types with unknown discriminants.
7078 (substitute_in_type): Rewrite and restrict to formal substitutions.
7079 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
7080 (update_pointer_to): Update comment.
7082 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7084 * sem_ch8.adb (Use_One_Package): In an instance, if two
7085 potentially_use_visible and non-overloadable homonyms are available
7086 from the actuals of distinct formal packages, retain the current one,
7087 which was visible in the generic, to prevent spurious visibility
7089 (End_Use_Package): Restore use_visibility when needed.
7091 2009-04-20 Sergey Rybin <rybin@adacore.com>
7093 * gnat_ugn.texi, vms_data.ads: Update doc.
7095 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7097 * gcc-interface/Make-lang.in: Update dependencies
7099 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
7102 2009-04-20 Robert Dewar <dewar@adacore.com>
7104 * checks.ads: Fix documentation of range check handling
7106 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7108 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
7109 a redundant use_type clause.
7111 2009-04-20 Robert Dewar <dewar@adacore.com>
7113 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
7114 this attribute can be evaluated at compile time.
7115 (Eval_Attribute, case Range_Length): Same improvement
7117 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
7119 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7121 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
7122 for better handling of null procedures.
7123 (Check_Overriding_Indicator): Do not emit a warning on a missing
7124 overriding indicator on an operator when the type of which the operator
7125 is a primitive is private.
7127 2009-04-20 Bob Duff <duff@adacore.com>
7129 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
7132 2009-04-20 Robert Dewar <dewar@adacore.com>
7134 * sem_attr.adb: Minor reformatting
7136 * gnatcmd.adb: Minor reformatting
7138 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7140 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
7141 overloaded and one interpretation matches the context, label the
7142 operand with the type of first formal.
7144 2009-04-20 Bob Duff <duff@adacore.com>
7146 * debug.ads: Minor comment fix.
7148 * debug.adb: Minor comment fixes.
7150 2009-04-20 Javier Miranda <miranda@adacore.com>
7152 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
7154 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
7156 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
7157 is expanded into a call to Raise_Exception, avoid passing the
7158 exception-name'identity in runtimes in which this argument
7161 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
7163 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
7164 generated bindings for cil.
7166 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7168 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
7169 discriminants, collect components from the Underlying_Record_View,
7170 which will be used in the expansion of the aggregate into assignments.
7172 * sem_ch3.adb: Do not label derived type with unknown discriminants as
7173 having a private declaration.
7175 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7177 * exp_util.adb (Expand_Subtype_From_Expr): use the
7178 underlying_record_view when available, to create the proper constrained
7179 subtype for an object of a derived type with unknown discriminants.
7181 2009-04-20 Javier Miranda <miranda@adacore.com>
7183 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
7184 formals that have pragma unreferenced.
7186 2009-04-20 Pascal Obry <obry@adacore.com>
7188 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
7189 Remove all calls to To_Lower_If_Case_Insensitive to preserve
7190 the pathname original casing.
7192 2009-04-20 Robert Dewar <dewar@adacore.com>
7194 * g-trasym.adb: Minor reformatting
7196 * s-os_lib.adb: Minor reformatting
7198 * sem.adb: Minor reformatting
7199 Minor code reorganization
7201 * sem_ch3.adb: Minor reformatting
7203 * sem_ch4.adb: Minor reformatting
7205 * sem_ch8.adb: Minor reformatting
7207 * sem_type.adb: Minor reformatting
7209 2009-04-20 Javier Miranda <miranda@adacore.com>
7211 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
7212 generated by derivations of tagged types use the aliased subprogram a
7213 reference to locate their controlling type.
7215 2009-04-20 Tristan Gingold <gingold@adacore.com>
7217 * g-trasym.adb: Set size of result buffer before calling
7220 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7222 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
7223 to a function returning an array can be interpreted as a call with
7224 defaulted parameters whose result is indexed, take into account the
7225 types of all the indices of the array result type.
7227 2009-04-20 Pascal Obry <obry@adacore.com>
7229 * a-direct.adb, s-os_lib.adb: Minor reformatting.
7231 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7233 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
7234 null exclusion qualifiers for object renaming declarations.
7236 2009-04-20 Nicolas Roche <roche@adacore.com>
7238 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
7239 unsigned long long. So compare local_time and utc_time before computing
7242 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7244 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7245 of the Underlying_Record_View before that of the derived type.
7247 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
7248 with unknown discriminants with regard to the parent subtype.
7250 2009-04-20 Bob Duff <duff@adacore.com>
7252 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
7253 that are not included. This is necessary if the main unit is a generic
7256 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
7257 because it doesn't work if -gnatn is used.
7259 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7261 * rtsfind.adb (RTE, RTE_Record_Component): In
7262 Configurable_Run_Time_Mode, do not enable front-end inlining.
7264 2009-04-20 Thomas Quinot <quinot@adacore.com>
7266 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
7267 System.Address_To_Access_Conversions.
7269 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7271 * sem.adb: Guard against ill-formed subunits.
7273 2009-04-20 Bob Duff <duff@adacore.com>
7275 * output.adb (Flush_Buffer): Do not indent blank lines.
7276 (Ignore_Output): New procedure for output suppression.
7278 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7280 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
7281 when it is positive. This avoids a potential constraint error raised
7282 by the conversion to Natural.
7284 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7286 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
7287 involves a target that has a specified address, don't set Forward_OK
7288 and Backward_OK to False if the rhs is an aggregate, since overlap
7291 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7293 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
7294 in an object renaming declaration when the expected type is an
7295 anonymous access type.
7297 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
7298 ambiguity when one interpretation is an anonymous access type and the
7299 other is a named access type, and the context itself is anonymous
7301 2009-04-20 Thomas Quinot <quinot@adacore.com>
7303 * einfo.ads: Minor comment rewording
7305 * sem_aggr.adb: Minor comment rewording
7307 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
7309 2009-04-20 Pascal Obry <obry@adacore.com>
7311 * adaint.c (__gnat_is_readable_file): Check for file existence
7312 when not using ACL (always the case on remote drives).
7314 2009-04-20 Robert Dewar <dewar@adacore.com>
7316 * sinfo.ads: Minor comment fixes
7318 * exp_disp.adb: Minor reformatting
7320 * gnat1drv.adb: Minor reformatting
7322 * output.adb: Minor reformatting
7324 * s-vxwext-kernel.ads: Minor reformatting
7326 * sem.ads: Minor reformatting
7328 * sem.adb: Minor reformatting
7330 * sem_elim.adb: Minor reformatting
7332 * uname.ads: Minor reformatting
7334 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7336 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
7337 a small dope of 4 words to the adjustment to the stack pointer.
7339 2009-04-20 Thomas Quinot <quinot@adacore.com>
7341 * xoscons.adb: generate C header s-oscons.h in
7342 addition to s-oscons.ads.
7344 * socket.c: On VMS, use s-oscons.h.
7346 * sem_ch3.adb: Minor reformatting
7348 * exp_ch9.adb: Minor reformatting
7350 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7352 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
7353 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
7354 (call_to_gnu): Likewise.
7356 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7358 * gcc-interface/trans.c (gigi): Declare the name of the compilation
7359 unit as the first global name at the very beginning.
7361 2009-04-20 Thomas Quinot <quinot@adacore.com>
7363 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7364 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
7365 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
7366 since HP-UX supports neither inet_aton nor inet_pton (altough the
7367 latter is part of the Single UNIX Specification!).
7368 So reorganize code, and share C implementation based on inet_addr(3)
7369 with VMS (instead of having a VMS specific Ada implementation in
7372 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7374 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
7375 to return the object file name saved by Set_Object_Output_File_Name.
7377 2009-04-20 Emmanuel Briot <briot@adacore.com>
7379 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
7380 for the standard command line, when argc has been modified since the
7381 start of the application.
7383 2009-04-20 Thomas Quinot <quinot@adacore.com>
7385 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
7386 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
7388 2009-04-20 Bob Duff <duff@adacore.com>
7390 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
7393 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7395 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
7396 subprogram as Eliminated when source operation is.
7397 (Expand_N_Protected_Type_Declaration): Generate protected and
7398 unprotected specs for the internal operations, even if the source
7399 operation is eliminated.
7401 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7403 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
7404 Predefined_Primitive_Bodies): Do not create the declarations and bodies
7405 of the primitive subprograms associated with dispatching select
7406 statements when the runtime is in configurable mode.
7408 2009-04-20 Ed Falis <falis@adacore.com>
7410 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
7412 2009-04-20 Thomas Quinot <quinot@adacore.com>
7414 * s-oscons-tmplt.c: Add support for generating a dummy version of
7415 s-oscons.ads providing all possible constants.
7417 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
7419 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
7420 ANSI version (not the UNICODE version) of WSAStringToAddress.
7422 2009-04-20 Pascal Obry <obry@adacore.com>
7424 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
7425 allocated for the security descriptor and make sure all
7426 handles are closed before leaving this procedure.
7428 2009-04-20 Javier Miranda <miranda@adacore.com>
7430 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
7431 (Set_Is_Underlying_Record_View): New subprogram
7433 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
7434 private types with unknown discriminants use the underlying record view
7437 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
7438 underlying record view in the full view of private types whose parent
7439 has unknown discriminants.
7440 (Build_Derived_Record_Type): Avoid generating the class-wide entity
7441 associated with an underlying record view.
7442 (Derived_Type_Declaration): Avoid deriving parent primitives in
7443 underlying record views.
7445 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
7446 records with unknown discriminants.
7448 * sem_type.adb (Covers): Handle underlying record views.
7449 (Is_Ancestor): Add support for underlying record views.
7451 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
7452 dispatching call if the type of the target object is tagged and has
7453 unknown discriminants.
7455 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
7456 unknown discriminants.
7458 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
7459 tables for internally built underlying record views.
7461 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
7462 empty list of component associations.
7464 2009-04-20 Thomas Quinot <quinot@adacore.com>
7466 * sem_ch10.adb: Minor reformatting
7468 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7469 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
7470 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
7471 standard inet_pton API (and emulate it on platforms that do not
7473 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
7474 DECC$INET_ADDR, imported in Ada.
7475 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
7476 implementation provided by GNAT runtime.
7477 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
7480 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7482 * gnat_ugn.texi: Add documentation for -fno-ivopts.
7484 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7486 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
7487 with_clause if it is the main unit.
7489 2009-04-20 Thomas Quinot <quinot@adacore.com>
7491 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
7492 (no behaviour change): Use Append instead of Increment_Last followed
7495 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7497 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
7498 declarations of all primitives associated with dispatching asynchronous,
7499 conditional and timed selects when dispaching calls are forbidden and
7500 select statements are not allowed (such as in Ravenscar).
7501 (Predefined_Primitive_Bodies): Ditto for bodies.
7503 * exp_disp.ad (Make_DT): Do not create and populate the
7504 Select_Specific_Data of the dispatch table when dispatching calls are
7505 forbidden and select statements are not allowed (such as in Ravenscar).
7507 2009-04-20 Robert Dewar <dewar@adacore.com>
7509 * a-tifiio.adb: Minor reformatting
7511 2009-04-20 Thomas Quinot <quinot@adacore.com>
7513 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
7514 other C library functions, report *failure* with a zero status, and
7515 success with a non-zero status.
7517 2009-04-20 Bob Duff <duff@adacore.com>
7519 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
7520 (Semantics): After analyzing each unit, Append it to the
7521 Comp_Unit_List, if appropriate.
7523 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
7525 (Gnat1drv): Correct comment regarding Back_End_Mode.
7527 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7529 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
7531 2009-04-20 Thomas Quinot <quinot@adacore.com>
7533 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7534 output.adb, output.ads, s-taprop-hpux-dce.adb,
7535 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
7538 2009-04-20 Thomas Quinot <quinot@adacore.com>
7540 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
7541 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
7542 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
7543 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
7544 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
7545 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
7547 * debug.adb: Fix typo
7549 * gnat_rm.texi: Minor doc fix.
7551 * sem_ch7.adb, freeze.adb: Minor reformatting
7553 2009-04-20 Thomas Quinot <quinot@adacore.com>
7555 * g-socket.ads: Add new constants:
7557 Unspecified_Group_Inet_Addr
7558 All_Hosts_Group_Inet_Addr
7559 All_Routers_Group_Inet_Addr
7561 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
7562 ERANGE (Result too large).
7563 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
7564 propagation of errno to caller.
7566 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7568 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
7569 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
7572 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7574 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
7575 checking for references to eliminated subprograms that should be
7577 (Eliminate_Error_Message): Update comment to say "references" rather
7578 than "calls" (since attribute cases are handled here as well).
7580 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
7581 checking for references to eliminated subprograms that should be
7582 flagged. Add with and use of Sem and Sem_Util.
7584 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
7585 Add with and use of Sem_Elim.
7587 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
7588 applied to eliminated subprograms.
7589 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
7590 eliminated subprograms.
7591 Add with and use of Sem_Elim.
7593 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
7594 to eliminated subprograms, now handled during Resolve_Call.
7595 Remove with and use of Sem_Elim.
7597 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
7598 testing Is_Eliminated, for proper handling of primitive derived from
7599 eliminated subprograms.
7601 2009-04-20 Vincent Celier <celier@adacore.com>
7603 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
7604 has been declared (Library_GCC or Linker'Driver), for the driver name.
7606 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
7607 Linker'Driver is, use Linker'Driver as the shared library linker.
7608 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
7609 Library_GCC is declared.
7610 (Check_Library_Attributes): Set up the shared linker driver: either
7611 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
7614 2009-04-20 Thomas Quinot <quinot@adacore.com>
7616 * g-socket.ads (Send_Socket): Fix misleading comment.
7618 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7620 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
7623 2009-04-20 Geert Bosch <bosch@adacore.com>
7625 * a-tifiio.adb (Put): Avoid generating too many digits for certain
7626 fixed types with smalls that are neither integer or the reciprocal
7629 2009-04-20 Bob Duff <duff@adacore.com>
7631 * uname.ads: Minor comment fix.
7633 * types.ads: Minor comment fix.
7635 2009-04-20 Pascal Obry <obry@adacore.com>
7637 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
7638 avoid warning. At the same time fix a memory leak.
7640 * osint.adb (Get_Libraries_From_Registry): Properly free memory
7641 returned by the above routine.
7643 2009-04-20 Robert Dewar <dewar@adacore.com>
7645 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
7646 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
7647 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
7648 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
7650 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
7652 2009-04-20 Pascal Obry <obry@adacore.com>
7654 * initialize.c (__gnat_initialize): Add braces to kill warning.
7656 * adaint.c: Minor reformatting, remove trailing spaces.
7658 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7660 * gcc-interface/Make-lang.in: Update dependencies.
7662 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7664 * adaint.h (__gnat_lwp_self): Declare on Linux.
7666 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
7668 2009-04-20 Robert Dewar <dewar@adacore.com>
7670 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
7671 front-end part of -fpreserve-control-flow switch.
7673 2009-04-20 Bob Duff <duff@adacore.com>
7675 * rtsfind.adb: Minor comment fix
7677 2009-04-20 Robert Dewar <dewar@adacore.com>
7679 * exp_aggr.adb: Minor reformatting
7680 Minor code reorganization (use Nkind_In)
7682 * g-socket.adb: Minor reformatting
7684 * g-socket.ads: Minor comment fix
7686 * s-auxdec.ads: Minor comment and organization update.
7688 * s-auxdec-vms_64.ads: Minor comment and organization update.
7690 * sem_ch10.adb: Minor addition of ??? comment
7692 * sem_disp.adb: Minor reformatting
7694 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7696 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
7697 list a caller of an inlined subprogram, if the caller itself is not
7700 2009-04-20 Pascal Obry <obry@adacore.com>
7702 * adaint.c: Disable use of ACL on network drives.
7704 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7706 * gnat_ugn.texi: Add examples.
7708 2009-04-20 Thomas Quinot <quinot@adacore.com>
7710 * g-socket.ads (Abort_Selector): Clarify documentation.
7712 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7714 * opt.ads (Inspector_Mode): Update documentation of this flag.
7716 2009-04-20 Thomas Quinot <quinot@adacore.com>
7718 * g-socket.ads: Minor reformatting
7720 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
7721 consider S_resolvLib error codes since we only use the hostLib wrappers.
7723 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7725 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7726 of the Underlying_Record_View after that of the derived type.
7728 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7730 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
7733 2009-04-20 Javier Miranda <miranda@adacore.com>
7735 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
7737 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
7740 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
7743 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
7744 in internally built overriding subprograms.
7746 2009-04-20 Doug Rupp <rupp@adacore.com>
7748 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
7750 * s-auxdec.ads: Likewise
7752 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7754 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
7755 type by an interface.
7757 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
7758 minimze difference in expanded tree when compiled as spec of the main
7759 unit, or as a spec in the context of another unit.
7761 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7763 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
7764 (localtime_tzoff): This routine no longer accepts an actual of type
7766 (UTC_Time_Offset): Remove local variable Secs_TM.
7768 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
7769 actual of type struct tm*. Add local variable of type struct tm for all
7770 targets that provide localtime_r and need to invoke it.
7772 2009-04-20 Thomas Quinot <quinot@adacore.com>
7774 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
7775 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
7776 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
7778 2009-04-20 Robert Dewar <dewar@adacore.com>
7780 * sem_ch3.adb: Minor reformatting
7782 * lib-load.adb: Minor reformatting
7784 * sem_ch4.adb: Minor reformatting
7786 2009-04-20 Robert Dewar <dewar@adacore.com>
7788 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
7789 (equal values => False).
7791 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7793 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
7794 to null procedures can be inlined unconditionally.
7796 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7798 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
7799 non-addressable parameter passed by reference, do not convert the
7800 actual if its type is already the nominal type, unless it is of
7801 self-referential size.
7803 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7805 * gnat_ugn.texi: Fix typos.
7807 2009-04-20 Robert Dewar <dewar@adacore.com>
7809 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
7810 Validate_Unchecked_Warnings to suppress warnings about size or
7811 alignment or extra bits if either type involved has pragma Warnings
7812 (Off) set for the type entity.
7814 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
7816 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
7817 a builtin type and give it a name.
7819 2009-04-17 Diego Novillo <dnovillo@google.com>
7821 * gcc-interface/misc.c (gnat_expand_expr): Remove.
7822 (LANG_HOOKS_EXPAND_EXPR): Remove.
7824 2009-04-17 Robert Dewar <dewar@adacore.com>
7826 * sem_ch3.adb: Minor reformatting
7828 2009-04-17 Pascal Obry <obry@adacore.com>
7830 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
7832 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7834 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
7835 illegal constraints on type derived from formal discrete types.
7837 2009-04-17 Thomas Quinot <quinot@adacore.com>
7841 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7842 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7843 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
7844 g-socket.ads (GNAT.Sockets.Thin.C_Send,
7845 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
7846 Replace calls to send(2) with equivalent sendto(2) calls.
7847 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
7848 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
7849 report an error in that case. Factor code common to the two versions
7850 (datagram and stream) in common routine Stream_Write.
7852 2009-04-17 Robert Dewar <dewar@adacore.com>
7854 * exp_disp.adb: Minor reformatting
7855 Minor code reorganization (use Nkind_In)
7857 * prepcomp.adb: Minor reformatting
7859 * sem_ch3.adb: Minor reformatting
7861 * sem_res.adb: Minor comment addition
7863 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
7866 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
7867 setting Is_Referenced
7869 * types.ads: Minor reformatting
7871 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7873 * gnat_ugn.texi: Initial documentation on binding generator.
7875 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7877 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
7878 type extensions whose parent is a type with unknown discriminants.
7880 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
7881 aggregate has unknown discriminants, use the Underlying_Record_View to
7882 obtain the discriminants of the ancestor part.
7884 * exp_disp.adb (Build_Dispatch_Tables): Types that are
7885 Underlying_Record_Views share the dispatching information of the
7886 original record extension.
7888 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
7889 discriminants, propagate dispach table information to the
7890 Underlying_Record_View.
7892 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
7893 discriminants and declaration is not a completion, generate
7894 Underlying_Record_View to provide proper discriminant information to
7895 the front-end and to gigi.
7897 2009-04-17 Robert Dewar <dewar@adacore.com>
7899 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
7900 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
7901 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
7902 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
7903 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
7904 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
7905 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
7906 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
7907 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
7908 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
7909 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
7910 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
7911 s-conca3.ads: Remove unneeded pragma Warnings
7913 2009-04-17 Robert Dewar <dewar@adacore.com>
7915 * g-moreex.adb: Add comments.
7917 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
7919 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
7922 * prepcomp.adb: Add ??? comment
7924 * a-tasatt.adb: Minor reformatting
7926 * g-trasym-vms-alpha.adb: Add ??? comment
7928 * g-trasym-vms-ia64.adb: Add ??? comment
7930 * xoscons.adb: Minor reformatting
7932 * s-tassta.adb: Minor reformatting
7934 * s-scaval.adb: Add ??? comment
7936 * stand.ads: Minor code clean up (remove junk with of Namet)
7938 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
7939 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
7940 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
7941 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
7942 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
7943 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
7944 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
7945 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
7946 Warnings off pragmas.
7948 2009-04-17 Pascal Obry <obry@adacore.com>
7950 * initialize.c: Fix test for reallocating the arguments array.
7952 2009-04-17 Geert Bosch <bosch@adacore.com>
7954 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
7955 conversion truncate only for decimal fixed point types.
7957 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
7959 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
7962 2009-04-17 Robert Dewar <dewar@adacore.com>
7964 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
7965 Backwards_OK if either operand has an address clause.
7967 2009-04-17 Pascal Obry <obry@adacore.com>
7969 * initialize.c: Code clean up, use realloc.
7971 2009-04-17 Pascal Obry <obry@adacore.com>
7973 * initialize.c: Do not get Unicode command line if Unicode support not
7975 Add support for wildcard expansion for Unicode parameters on Win32.
7977 * mingw32.h: Add missing macros when Unicode support not activated.
7979 2009-04-17 Javier Miranda <miranda@adacore.com>
7981 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
7982 avoid generating code that references the Current_Master
7983 when compiling without tasks.
7985 2009-04-17 Vincent Celier <celier@adacore.com>
7987 * prj-attr.adb: New project level attribute Target
7989 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
7992 * prj.ads (Project_Configuration): New component Target
7994 2009-04-17 Thomas Quinot <quinot@adacore.com>
7996 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
7997 case for the case of an aggregate component, the attach call for the
7998 result is actually needed.
8000 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
8001 an array aggregate must be disabled if the component type requires
8004 * exp_ch3.adb: Minor reformatting
8006 2009-04-17 Bob Duff <duff@adacore.com>
8008 * output.ads (Indent,Outdent): New procedures for indenting the output.
8009 (Write_Char): Correct comment -- LF _is_ allowed.
8011 * output.adb (Indent,Outdent): New procedures for indenting the output.
8012 Keep track of the indentation level, and make sure it doesn't get too
8014 (Flush_Buffer): Insert spaces at the beginning of each line, if
8015 indentation level is nonzero.
8016 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
8018 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
8019 "Next_Col := 1;". Flush_Buffer does that.
8021 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
8022 controlled by the -gnatdc switch. It now occurs on entry/exit to the
8023 relevant analysis routines, and calls Indent/Outdent to make the
8024 indentation reflect the nesting level. Add "helper" routines, since
8025 otherwise lots of "return;" statements would skip the debugging output.
8027 2009-04-17 Arnaud Charlet <charlet@adacore.com>
8029 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
8030 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
8031 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
8033 2009-04-17 Thomas Quinot <quinot@adacore.com>
8035 * exp_aggr.adb: Minor code reorganization, no behaviour change.
8037 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8039 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
8040 clause in a unit that is a package body or a subunit, when the previous
8041 clause appears in a spec or a parent.
8043 2009-04-17 Thomas Quinot <quinot@adacore.com>
8045 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
8047 * exp_ch7.adb: Minor reformatting
8049 2009-04-17 Bob Duff <duff@adacore.com>
8051 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
8052 allocator, check that the expression of the qualified expression obeys
8053 the constraints of the subtype of the qualified expression.
8055 2009-04-17 Thomas Quinot <quinot@adacore.com>
8057 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
8059 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8061 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
8062 aggregate, using context imposed by subtype mark in allocator.
8064 2009-04-17 Pascal Obry <obry@adacore.com>
8066 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
8068 2009-04-17 Nicolas Roche <roche@adacore.com>
8070 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
8073 2009-04-17 Gary Dismukes <dismukes@adacore.com>
8075 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
8076 cover both calls and attribute references ("call" => "reference").
8078 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8080 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
8081 type for which Storage_Size is set to 0 is legal in a pure unit.
8083 2009-04-17 Thomas Quinot <quinot@adacore.com>
8085 * exp_ch7.adb: Minor reformatting
8087 2009-04-17 Robert Dewar <dewar@adacore.com>
8089 * restrict.adb (Check_Restriction_No_Dependence): Don't check
8090 restriction if outside main extended source unit.
8092 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
8093 for parents of child units as well as the child unit itself.
8095 2009-04-17 Bob Duff <duff@adacore.com>
8097 * checks.ads: Minor comment fix
8099 * exp_aggr.ads: Minor comment fix
8101 2009-04-17 Nicolas Roche <roche@adacore.com>
8103 * adaint.c: Improve cross compiler detection and handling.
8105 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
8107 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
8109 2009-04-17 Pascal Obry <obry@adacore.com>
8111 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
8114 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
8115 value when no encoding form paramter is set on Text_IO services.
8117 * adaint.c: CurrentCodePage new variable on Windows.
8118 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
8121 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
8124 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
8125 environment variable value. Default is UTF-8.
8127 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
8128 fopen and freopen encoding parameter is now set to Unspecified.
8129 The default value is in this case UTF-8 (as it was before) but
8130 use the new macros that convert to/from the code page set
8131 at runtime (CurrentCodePage).
8133 * s-fileio.adb: When no encoding specified use Unspecified value.
8135 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8137 * atree.adb, atree.ads: Remove dead code.
8139 2009-04-17 Arnaud Charlet <charlet@adacore.com>
8141 * gcc-interface/Make-lang.in: Update dependencies.
8143 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8145 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
8146 illegal uses of incomplete types in formal parts and return types.
8148 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
8149 access to subprograms.
8151 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
8152 Taft-amendment types as the return type of an access_to_function type.
8154 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
8155 type for access_to_subprograms. The check is performed on package exit.
8157 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8159 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
8161 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
8163 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
8165 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
8166 semantic units, because the handling of itypes in the copied tree
8167 requires semantic information that does not belong in atree.
8169 2009-04-17 Robert Dewar <dewar@adacore.com>
8171 * par-ch6.adb: Minor reformatting
8173 * prj.adb: Minor reformatting
8175 2009-04-17 Gary Dismukes <dismukes@adacore.com>
8177 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
8178 on protected subprogram bodies, so exclude the case where Pf_Flags is
8179 Pf_Decl_Pbod from the error check.
8181 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
8182 indicators on subprograms in protected bodies, and proceed with parsing
8185 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
8186 subprograms from the check for primitiveness on subprograms with
8187 overriding indicators.
8188 (Check_Overriding_Indicator): Include protected subprograms in the
8189 style check for missing overriding indicators.
8191 2009-04-17 Tristan Gingold <gingold@adacore.com>
8193 * init.c: Fix stack checking for x86 Darwin.
8195 2009-04-17 Vincent Celier <celier@adacore.com>
8197 * prj-attr.adb: New project level attribute Object_File_Suffix
8200 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
8202 (Process_Compiler): Process attribute Object_File_Suffix
8204 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
8205 platform suffix, when specified.
8207 * prj.ads (Language_Config): New component Object_File_Suffix,
8208 defaulted to No_Name.
8209 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
8211 * snames.ads-tmpl: New standard name Object_File_Suffix
8213 2009-04-17 Robert Dewar <dewar@adacore.com>
8215 * gnat_rm.texi: Add documentation about No_Streams restriction
8217 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
8218 attributes when checking No_Streams restriction.
8220 2009-04-17 Thomas Quinot <quinot@adacore.com>
8222 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
8224 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
8225 missing calls to RE_Request_Destroy to deallocate request objects after
8228 2009-04-17 Nicolas Setton <setton@adacore.com>
8230 * link.c: Fix support for passing a response file under Darwin.
8232 2009-04-17 Emmanuel Briot <briot@adacore.com>
8234 * prj.adb (Free): new subprogram.
8236 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8238 * sem_ch3.adb: additional initialization on incomplete subtypes.
8240 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
8241 part and one of the formals is an incomplete tagged type, attach to
8242 list of private dependends of the type for later validation.
8244 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
8245 primitive operations of a Taft-amendmment type.
8247 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
8248 type. The check is performed on package exit, possibly after the
8249 subprogram is frozen.
8251 2009-04-17 Vincent Celier <celier@adacore.com>
8253 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
8254 before looking for source directories, but make sure that there are nil
8255 if they are not explicitely declared and there is explicitely no
8256 sources in the project.
8258 2009-04-17 Pascal Obry <obry@adacore.com>
8260 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
8262 * init.c: Fix minor typo and style fix.
8264 2009-04-17 Robert Dewar <dewar@adacore.com>
8266 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
8268 * sem_attr.adb (Analyze_Attribute, case Address): Use
8269 PE_Address_Of_Intrinsic.
8271 * types.ads: Add PE_Address_Of_Intrinsic
8273 * types.h: Add PE_Address_Of_Intrinsic
8275 2009-04-17 Nicolas Setton <setton@adacore.com>
8277 * gcc-interface/Makefile.in: Under darwin, build shared libraries
8278 with install_name starting with "@rpath/".
8280 2009-04-17 Nicolas Setton <setton@adacore.com>
8282 * link.c: Add darwin section
8284 2009-04-16 Robert Dewar <dewar@adacore.com>
8286 * g-pehage.adb: Minor reformatting
8288 * sem_ch12.adb: Minor reformatting
8290 * exp_dist.adb: Minor reformatting
8292 * bindgen.adb: Minor style fixes.
8294 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8296 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
8297 indexed components to the case where the prefix is a static string
8300 2009-04-16 Javier Miranda <miranda@adacore.com>
8302 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
8303 objects avoid any further expansion of the expression initializing the
8306 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8308 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
8309 that hides an outer homograph, make that homograph invisible when
8310 analyzing the actuals, to to prevent illegal direct visibility on it.
8312 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8314 * g-pehage.adb (Initialize): Fix off-by-one error.
8316 2009-04-16 Tristan Gingold <gingold@adacore.com>
8318 * init.c: Detect real stack overflow on Darwin.
8320 * system-darwin-x86.ads: Use stack probing on darwin x86.
8322 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8324 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
8325 take the address of an intrinsic subprogram.
8327 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8329 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
8330 for the targets where GNAT.Traceback.Symbolic is not supported.
8332 2009-04-16 Vincent Celier <celier@adacore.com>
8334 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
8336 * g-trasym.ads: Update comments.
8338 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8340 * tracebak.c (STOP_FRAME): Verify validity of the current address
8341 before dereferencing.
8343 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8345 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
8346 the original location of the index expressions and the index subtypes,
8347 to prevent spurious out-of-scope references in gigi.
8349 2009-04-16 Tristan Gingold <gingold@adacore.com>
8351 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
8352 Add support for stack checking on darwin.
8354 2009-04-16 Vincent Celier <celier@adacore.com>
8356 * prj-attr.adb: New attribute Runtime_Source_Dir
8358 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
8359 attribute Runtime_Source_Dir.
8360 (Check_Naming_Schemes): Give default values to out parameters to avoid
8363 * prj.ads (Language_Config): New component Runtime_Source_Dir
8365 * snames.ads-tmpl: New standard name Runtime_Source_Dir
8367 2009-04-16 Pascal Obry <obry@adacore.com>
8369 * adaint.h, adaint.c (__gnat_rmdir): New routine.
8370 Simple wrapper routines used to convert to proper encoding on
8373 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
8375 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
8378 2009-04-16 Pascal Obry <obry@adacore.com>
8380 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
8382 2009-04-16 Thomas Quinot <quinot@adacore.com>
8384 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
8385 integrated preprocessor.
8387 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
8388 (Initialize): Split into two subprograms, Initialize (to be called
8389 prior to compiler command line processing) and Setup_Hooks (to be called
8390 later on when the first source file is loaded).
8392 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
8393 Add call to Prep.Initialize.
8395 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
8396 to Prep.Setup_Hooks.
8398 2009-04-16 Pascal Obry <obry@adacore.com>
8400 * adaint.h, adaint.c (__gnat_chdir): New routine.
8401 Simple wrapper routines used to convert to proper encoding on
8404 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
8406 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
8408 2009-04-16 Quentin Ochem <ochem@adacore.com>
8410 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
8413 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8415 * a-convec.ads (Is_Empty): Mark inline.
8417 2009-04-16 Nicolas Roche <roche@adacore.com>
8419 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
8421 2009-04-16 Thomas Quinot <quinot@adacore.com>
8423 * prepcomp.adb: Minor reformatting
8425 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8427 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
8428 Access_Subprogram types can also be imported.
8429 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
8432 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8434 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8435 preserve homonym chain when the declaration is rewritten into a
8436 renaming declaration, in order to preserve visibility structure.
8438 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8440 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
8441 taken into account for VM targets.
8443 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8445 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
8447 (Year_Week_In_Year): New routine which contains the original code from
8448 Week_In_Year. Add the missing special case for January 1st falling on
8451 2009-04-16 Thomas Quinot <quinot@adacore.com>
8453 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
8454 actual type, use the base type to build the To_Any function.
8455 (Build_From_Any_Function): Remove junk, useless subtype conversion.
8457 2009-04-16 Thomas Quinot <quinot@adacore.com>
8459 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
8460 restrict.adb: Minor code reorganization (use
8461 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
8463 2009-04-16 Bob Duff <duff@adacore.com>
8465 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
8468 2009-04-16 Thomas Quinot <quinot@adacore.com>
8470 * sem_ch4.adb: Minor reformatting
8472 * adaint.c: Remove junk duplicated code.
8474 * sem_ch3.adb: Minor reformatting
8476 * exp_dist.adb: Minor comment rewording
8478 2009-04-16 Robert Dewar <dewar@adacore.com>
8480 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
8483 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8485 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
8486 usable before calling Add_One_Interp, to resolve spurious ambiguities.
8488 2009-04-16 Robert Dewar <dewar@adacore.com>
8490 * Make-lang.in: Add entries for s-conca?.o
8492 * Makefile.rtl: Add entries for s-conca?
8494 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
8495 of concatenation expansion
8497 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
8498 string cases instead of expanding assignments inline.
8500 * opt.ads (Optimize_Size): New flag
8502 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
8503 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
8504 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
8505 s-conca9.adb, s-conca9.ads: New file.
8507 2009-04-16 Robert Dewar <dewar@adacore.com>
8509 * exp_ch6.adb: Add comments
8511 * rtsfind.ads: Add entries for s-conca? routines
8513 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8515 * gcc-interface/Make-lang.in: Update dependencies.
8517 * gcc-interface/Makefile.in: Update translation for vms.
8519 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8521 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
8522 and made global, to be used when installing parents of a child
8523 instance, to provide mappings for entities declared in formal packages
8524 of ancestor units. Now called from Install_Formal_Packages.
8526 2009-04-16 Doug Rupp <rupp@adacore.com>
8528 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
8529 notation for clarity.
8531 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8532 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
8533 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
8534 (Initialize): Initialize Known_Tasks with Environment task.
8536 * s-taskin.ads (Task_States): Move new states to end for the sake of
8539 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
8541 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8543 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
8544 operation has an inline pragma, propagate the flag to the internal
8545 unprotected subprogram.
8547 2009-04-16 Doug Rupp <rupp@adacore.com>
8549 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
8550 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
8551 s-taprop-hpux-dce.adb, s-taprop-posix.adb
8552 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
8554 * s-taprop-vms.adb (Enter_Task): Likewise.
8555 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
8557 * s-tassta.adb (Activate_Tasks): After task creation set state to
8558 Activating, vice Runnable. Initialize Known_Tasks, moved here from
8559 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
8560 Set state to Runnable after above.
8561 (Task_Wrapper): Set Debug_Event_Run. In exception block set
8562 Debug_Event_Terminated.
8564 * s-taskin.ads (Task_States): Add new states Activiting and
8565 Activator_Delay_Sleep.
8566 (Bit_Array, Debug_Event_Array): New types.
8567 (Global_Task_Debug_Event_Set: New flag.
8568 (Common_ATCB): New field Debug_Events.
8570 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
8572 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
8575 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
8576 Activating and when Acceptor_Delay_Sleep.
8578 * s-tasdeb.ads: Add constants for Debug_Events.
8579 (Debug_Event_Kind_Type): New subtype.
8580 (Signal_Debug_Event): New subprogram.
8582 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
8584 2009-04-16 Thomas Quinot <quinot@adacore.com>
8586 * sem_elim.adb: Minor reformatting
8588 * freeze.adb: Minor reformatting
8590 * exp_ch4.adb: Minor reformatting
8592 2009-04-16 Emmanuel Briot <briot@adacore.com>
8594 * prj-nmsc.adb (Path_Name_Of): fix memory leak
8596 2009-04-16 Robert Dewar <dewar@adacore.com>
8598 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
8600 2009-04-16 Vincent Celier <celier@adacore.com>
8602 * fmap.adb (Initialize): Show the current line when the mapping file
8603 is detected as "incorrectly formatted".
8605 2009-04-16 Robert Dewar <dewar@adacore.com>
8607 * sem_ch12.adb: Minor reformatting
8609 * sem_ch5.adb: Minor comment addition
8611 * sem_util.adb: Minor reformatting
8613 * sinput-p.adb: Minor reformatting
8614 Add missing pragma Warnings (On)
8616 2009-04-16 Ed Falis <falis@adacore.com>
8618 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
8620 2009-04-16 Vincent Celier <celier@adacore.com>
8622 * ali-util.adb: Minor comment spelling error fix
8624 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8626 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
8627 generate an assignment loop in case of overlap.
8629 2009-04-16 Olivier Hainque <hainque@adacore.com>
8631 * gnat_ugn.texi (gnatmem description): Make it explicit that
8632 gnatmem is designed to work in association with static runtime
8635 2009-04-16 Thomas Quinot <quinot@adacore.com>
8637 * sem_type.adb: Minor reformatting
8639 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8641 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
8642 concerning return codes of gettimeofday and return value check.
8644 2009-04-16 Ed Falis <falis@adacore.com>
8646 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
8647 body can be renaming of imported routines.
8649 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8651 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
8654 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8656 * exp_ch9.adb: Comment improvements.
8657 (Build_Entry_Family_Name): Add parentheses around the index of a entry
8660 2009-04-15 Bob Duff <duff@adacore.com>
8662 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
8663 "while X /= null loop" where X is unchanged inside the loop. We were
8664 not warning in this case, because of the pointers -- we feared that the
8665 loop variable could be updated via a pointer, if there are any pointers
8666 around the place. But that is impossible in this case.
8668 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
8669 the case of dereferences. In X.all, X cannot be an l-value. We now
8670 catch that case (and implicit dereferences, too).
8672 2009-04-15 Vincent Celier <celier@adacore.com>
8674 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
8676 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8678 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
8680 (Analyze_Package_Instantiation): If generic unit in child instance is
8681 the same as generic unit in parent instance, look for an outer homonym
8682 to locate the desired generic.
8684 2009-04-15 Bob Duff <duff@adacore.com>
8686 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
8687 warnings unless the loop comes from source, because checking generated
8688 loops is a waste of time, and makes it harder to debug
8689 Check_Infinite_Loop_Warning.
8691 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
8692 tested in the while loop is a renaming, do not warn. Otherwise, we get
8693 false alarms, because it's usually renaming something that we can't
8694 deal with (an indexed component, a global variable, ...).
8696 * gnat_rm.texi: Fix typo
8698 2009-04-15 Thomas Quinot <quinot@adacore.com>
8700 * sem_ch6.adb: Minor reformatting
8702 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8704 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
8705 immediate parent of the controlled function call is a component
8708 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8710 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
8711 corresponding class-wide type is also in use.
8713 2009-04-15 Thomas Quinot <quinot@adacore.com>
8715 * frontend.adb: Minor comment fix
8717 2009-04-15 Robert Dewar <dewar@adacore.com>
8719 * gnatchop.adb (BOM_Length): New global variable
8720 (Write_Unit): Add new parameter Write_BOM
8721 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
8724 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
8726 2009-04-15 Geert Bosch <bosch@adacore.com>
8728 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
8729 (Backend_Overflow_Checks): Set to True.
8731 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8733 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
8734 keyword is given in a record extension.
8736 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8738 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
8739 of a controlled function call in the context of a record aggregate.
8740 This does not apply to array aggregates since the call will be expanded
8743 2009-04-15 Ed Falis <falis@adacore.com>
8745 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
8746 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
8747 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
8748 s-osinte-vxworks* and s-vxwext*.
8750 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8752 * gcc-interface/Make-lang.in: Update dependencies.
8754 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
8757 2009-04-15 Robert Dewar <dewar@adacore.com>
8759 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
8760 of node for location for warning messages.
8762 * gnatchop.adb: Minor reformatting
8764 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8766 * exp_ch6.adb: additional guard for renaming declarations for in
8767 parameters of an array type.
8769 2009-04-15 Robert Dewar <dewar@adacore.com>
8771 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
8772 in case they were rewritten by expander (Force_Evaluation).
8774 * targparm.adb (Get_Target_Parameters): Correct check for
8775 Suppress_Exception_Locations.
8777 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8779 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
8780 inlined is of an array type that is not bit-packed, use a renaming
8781 declaration to capture its value, rather than a constant declaration.
8783 2009-04-15 Robert Dewar <dewar@adacore.com>
8785 * rtsfind.adb: Minor reformatting.
8787 2009-04-15 Emmanuel Briot <briot@adacore.com>
8789 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
8790 Restore, and free the saved context.
8792 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8794 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
8795 for illegal private extension from a synchronized interface parent in
8796 front of check for illegal limited extension so that limited extension
8797 from a synchronized interface will be rejected.
8798 (Check_Ifaces): Check that a private extension that has a synchronized
8799 interface as a progenitor must be explicitly declared synchronized.
8800 Also check that a record extension cannot derive from a synchronized
8803 2009-04-15 Pascal Obry <obry@adacore.com>
8805 * adaint.h (__gnat_unlink): Add spec.
8806 (__gnat_rename): Likewise.
8808 2009-04-15 Vincent Celier <celier@adacore.com>
8810 * prj-nmsc.adb: Minor spelling error corrections in error messages
8812 2009-04-15 Robert Dewar <dewar@adacore.com>
8814 * sinfo.ads: Minor comment update
8816 * opt.ads: Minor comment updates
8818 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
8821 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8823 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
8824 that generates the code needed to update a dispatch table when a
8825 primitive operation is declared with a subprogram body without previous
8826 spec. Insertion of the generated code is responsibility of the caller.
8827 (Make_DT): When building static tables, append the code created by
8828 Register_Primitive to update a secondary table after it has been
8831 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
8833 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
8834 on an overriding operation that implements an interface operation only
8835 if not building static dispatch tables.
8837 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8839 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
8840 does not cause overflow when converted to Duration. Use the safe value
8841 as the maximum allowable time delay..
8843 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
8845 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
8846 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
8847 translated to "-j 2".
8849 2009-04-15 Bob Duff <duff@adacore.com>
8851 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
8852 with_clauses, to avoid code duplication. Change this processing so we
8853 always add a with_clause on the main unit if needed.
8855 2009-04-15 Pascal Obry <obry@adacore.com>
8857 Add support for Win32 native encoding for delete/rename routines.
8859 * adaint.c (__gnat_unlink): New routine.
8860 (__gnat_rename): New routine.
8861 Simple wrapper routines used to convert to proper encoding on
8864 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
8865 call to the C library.
8867 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
8869 2009-04-15 Robert Dewar <dewar@adacore.com>
8871 * s-tassta.adb: Minor reformatting
8873 2009-04-15 Robert Dewar <dewar@adacore.com>
8875 * frontend.adb (Frontend): Set proper default for
8876 Warn_On_Non_Local_Exception.
8878 * opt.ads (Exception_Handler_Encountered): New flag
8879 (No_Warn_On_Non_Local_Exception): New flag
8881 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
8883 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8884 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8886 2009-04-15 Cyrille Comar <comar@adacore.com>
8888 * s-tassta.adb, a-exextr.adb, a-elchha.adb
8889 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
8890 message when exception traces are active since it would generate
8891 redundant information.
8892 (Exception_Traces.Notify_Exception): put message output by a critical
8893 section to avoid unsynchronized output.
8894 (Trace_Unhandled_Exception_In_Task): put message output by a critical
8895 section to avoid unsynchronized output.
8897 2009-04-15 Emmanuel Briot <briot@adacore.com>
8899 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
8900 (Free): New subprogram.
8902 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8904 * a-calend.adb: Add new constant Nanos_In_Four_Years.
8905 (Formatting_Operations.Time_Of): Change the way four year chunks of
8906 nanoseconds are added to the intermediate result.
8908 2009-04-15 Nicolas Setton <setton@adacore.com>
8910 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
8911 does not need to wait for a carriage return.
8913 2009-04-15 Tristan Gingold <gingold@adacore.com>
8915 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
8918 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8920 * freeze.adb (Freeze_Entity): improve error message for improper use of
8922 Diagnose additional illegal uses of incomplete types in formal parts.
8923 appearing in formal parts.
8925 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
8927 2009-04-15 Robert Dewar <dewar@adacore.com>
8929 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
8931 2009-04-15 Nicolas Roche <roche@adacore.com>
8933 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
8936 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
8938 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
8940 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8942 * sem_ch4.adb: improve error message on exponentiation.
8944 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8946 * a-calend.adb: Move constant Epoch_Offset from package
8947 Conversion_Operations to top level.
8948 (Delay_Operations.To_Duration): Define a constant which represents
8949 "end of time" and use it as a guard against very distant delay dates.
8950 Protect the code against overflow when performing the origin shift to
8953 2009-04-15 Robert Dewar <dewar@adacore.com>
8955 * sem_prag.adb: Minor reformatting.
8957 * sem_type.adb: Minor reformatting
8959 2009-04-15 Javier Miranda <miranda@adacore.com>
8961 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
8962 support to check eliminated subprograms.
8964 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
8966 * sem_elim.adb (Set_Eliminated): Add support for elimination of
8967 dispatching subprograms.
8969 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
8970 operations. Initialize with "null" the slots of eliminated dispaching
8972 (Write_DT): Add output for eliminated primitives.
8974 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
8976 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8978 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
8979 the second is redundant, regardless of scopes.
8981 2009-04-15 Vincent Celier <celier@adacore.com>
8983 * prj-nmsc.adb (Get_Directories): Check for sources before checking
8984 the object directory as when there are no sources, they may not be any
8987 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
8988 directory, when there are no exec directory.
8990 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8992 * sem_type.adb (Remove_Conversions): In order to resolve spurious
8993 ambiguities, refine removal of universal interpretations from complex
8994 expressions with literal arguments, when some numeric operators have
8995 been declared abstract.
8997 2009-04-15 Ed Falis <falis@adacore.com>
8999 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
9000 and backward compatibility for targets using probing for stack overflow
9002 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9004 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
9005 after any declaration, including renaming declarations.
9007 2009-04-15 Arnaud Charlet <charlet@adacore.com>
9009 * gcc-interface/Make-lang.in: Update dependencies.
9011 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
9012 Update xenomai target pairs.
9014 2009-04-15 Javier Miranda <miranda@adacore.com>
9016 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9018 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
9019 functions returning anonymous access to class-wide limited types. Mark
9020 also the containing scope as a task master.
9022 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
9023 limited-withed packages. Required to restore their visibility after
9024 processing packages associated with implicit with-clauses.
9026 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
9027 associated with return statements because this work is now done by
9028 Check_Anonymous_Return.
9029 (Build_Master): Code cleanup.
9031 2009-04-15 Thomas Quinot <quinot@adacore.com>
9033 * sem_warn.ads: Minor reformatting
9035 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9037 * sem_ch3.adb: better error message for illegal interfaces
9039 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
9040 formal is an incomplete type from a limited_with clause.
9042 2009-04-15 Vincent Celier <celier@adacore.com>
9044 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
9045 Externally_Built indicating if the project is externally built. If it
9046 is, and --subdirs is specified, but the subdir does not exist, look
9047 for the specified directory, without the subdir.
9049 2009-04-15 Gary Dismukes <dismukes@adacore.com>
9051 * a-tasatt.adb: Fix typo, plus minor reformatting
9053 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
9055 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
9057 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9059 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
9060 private extension whose parent is a synchronized interface carries an
9061 explicit synchronized keyword.
9063 2009-04-15 Thomas Quinot <quinot@adacore.com>
9065 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
9066 instantiate generic shared object package with the corresponding
9069 2009-04-15 Arnaud Charlet <charlet@adacore.com>
9071 * system-linux-sparc.ads: Remove obsolete entries.
9073 2009-04-15 Thomas Quinot <quinot@adacore.com>
9075 * s-tasuti.ads: Add ??? comment
9077 2009-04-15 Ed Schonberg <schonberg@adacore.com>
9079 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
9080 type even if the designated type comes from a limited_with clause, to
9081 ensure that the symbol for the finalization list of the access type is
9084 2009-04-10 Robert Dewar <dewar@adacore.com>
9086 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
9087 for warning suppression.
9089 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9091 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
9092 identical, there is no redudancy to check.
9094 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9096 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
9097 calls initializing SS_Allocator (which is initialized in following
9099 (Expand_Simple_Function_Return): Add comment about False value for
9100 Comes_From_Source on secondary-stack allocator.
9102 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
9103 (Build_Entry_Name): Add comment.
9105 2009-04-10 Robert Dewar <dewar@adacore.com>
9107 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
9109 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
9110 bound tested, since this is now done more generally in Sem_Res.
9112 * sem_res.adb (Resolve_Comparison_Op): Add call to
9113 Check_Lower_Bound_Tested.
9114 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
9116 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
9117 (Low_Bound_Tested): New name for Low_Bound_Known flag
9119 * exp_ch5.adb: Minor reformatting
9122 Add comments on copying the Comes_From_Source flag for allocators
9125 Add comments on copying the Comes_From_Source flag for allocators
9127 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
9128 Comes_From_Source flag from old allocator to new one.
9130 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9132 * sem_ch6.ads: Address missing documentation query
9134 2009-04-10 Vincent Celier <celier@adacore.com>
9137 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
9138 and Response_File_Switches.
9140 * prj-nmsc.adb (Process_Linker): Process new attributes
9141 Max_Command_Line_Length, Response_File_Format and
9142 Response_File_Switches.
9144 * prj.ads (Response_File_Format): New enumeration type
9145 (Project_Configuration): New componants Max_Command_Line_Length,
9146 Resp_File_Format and Resp_File_Options.
9148 * snames.ads-tmpl: Add new standard names for linking response files
9149 for gprbuild: GNU, None, Object_List, Option_List,
9150 Max_Command_Line_Length, Response_File_Format and
9151 Response_File_Switches.
9153 2009-04-10 Geert Bosch <bosch@adacore.com>
9155 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
9156 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
9157 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
9158 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
9159 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
9160 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
9161 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
9162 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
9163 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
9164 system-vxworks-arm.ads, system-vxworks-m68k.ads,
9165 system-vxworks-mips.ads, system-vxworks-ppc.ads,
9166 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
9167 (Backend_Overflow_Checks): Set to True.
9169 2009-04-10 Thomas Quinot <quinot@adacore.com>
9171 * exp_attr.adb: Minor reformatting
9173 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9175 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
9176 analyze the expression for a postcondition, even if the compiler mode
9179 2009-04-10 Robert Dewar <dewar@adacore.com>
9181 * sem_aux.adb: Minor reformatting
9183 2009-04-10 Ed Falis <falis@adacore.com>
9185 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
9187 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
9189 2009-04-10 Thomas Quinot <quinot@adacore.com>
9191 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
9192 undocumented formal.
9195 * a-direio.ads: Fix typo in comment
9197 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
9198 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
9199 Use uniform phrasing for comment at start of subprogram body.
9201 * xsnamest.adb: Add note to explain why we use specific names for the
9202 newly generated files instead of generating snames.{ads,adb,h} directly
9204 2009-04-10 Sergey Rybin <rybin@adacore.com>
9207 Add qualifier for new gnatstub option '--no-exception'
9210 Add the description of the new gnatstub option '--no-exception'
9212 2009-04-10 Robert Dewar <dewar@adacore.com>
9214 * rtsfind.adb: Minor reformatting
9216 2009-04-10 Thomas Quinot <quinot@adacore.com>
9218 * sem_disp.adb: Minor reformatting.
9219 Add comment pointing to RM clause for the case of warning against a
9220 (failed) attempt at declaring a primitive operation elsewhere than in a
9223 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9225 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
9226 an actual for a previous formal package of the current instance.
9228 2009-04-10 Bob Duff <duff@adacore.com>
9230 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
9231 them first, rather than on the extended main unit.
9233 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9235 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
9236 specification of full view carries a null exclusion indicator, create
9237 an itype for it, to check for conformance with partial view.
9239 2009-04-10 Bob Duff <duff@adacore.com>
9241 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
9243 * rtsfind.adb: Minor comment changes, and remove useless code.
9245 * sinfo.ads: Add ??? comment.
9247 2009-04-10 Vincent Celier <celier@adacore.com>
9249 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
9251 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9253 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
9254 type is a synchronized type, retrieve tag information from the
9255 corresponding record, which has the dispatch table link.
9257 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
9259 * g-comlin.adb (Group_Analysis): Take care of switches that might be
9260 decomposed afterwards, but are present as-is in the command line
9261 configuration, and thus should be kept as-is.
9263 2009-04-10 Robert Dewar <dewar@adacore.com>
9265 * gnat_rm.texi: Document that postconditions are tested on implicit
9268 * sem_aux.adb: Minor reformatting
9270 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9272 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
9275 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
9276 Null_Exclusion_In_Return_Present when an access-to-function type has a
9277 result type with an explicit not null.
9279 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
9280 given on the result type, then create a null-excluding itype for the
9283 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
9284 the case where a null exclusion is imposed on a named access type.
9285 (Analyze_Subprogram_Specification): Push and pop the scope of the
9286 function around the call to Analyze_Return_Type in the case of no
9287 formals, for consistency with handling when formals are present
9288 (Process_Formals does this). Ensures that any itype created for the
9289 return type will be associated with the proper scope.
9291 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
9292 exclusion is given on a generic function's result type, then create a
9293 null-excluding itype for the generic function.
9294 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
9295 for an actual for a formal in object according to the setting on the
9296 formal. Ensures null exclusion checks are done when the association is
9299 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
9300 N_Access_Function_Definition.
9302 * sinfo.adb: Add Get_ and Set_ operations for
9303 Null_Exclusion_In_Return_Present.
9305 2009-04-10 Bob Duff <duff@adacore.com>
9307 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
9308 call to the _Postconditions procedure in the case of implicit returns
9309 from analysis to expansion. This eliminates some duplicated code. Use
9310 the Postcondition_Proc to find the identity of this procedure during
9313 2009-04-10 Robert Dewar <dewar@adacore.com>
9315 * sem_ch6.adb: Minor code clean up.
9317 * einfo.ads, sem_attr.adb: Minor comment fixes.
9319 2009-04-10 Robert Dewar <dewar@adacore.com>
9321 * sem_ch8.adb: Minor reformatting
9323 2009-04-10 Robert Dewar <dewar@adacore.com>
9325 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
9328 * sem_ch6.adb: Minor code clean up.
9330 2009-04-10 Robert Dewar <dewar@adacore.com>
9332 * mlib-tgt-specific-xi.adb: Minor reformatting
9334 2009-04-10 Bob Duff <duff@adacore.com>
9336 * einfo.ads: Minor comment fixes
9338 2009-04-10 Vincent Celier <celier@adacore.com>
9340 * snames.ads-tmpl: Remove names that are no longer used in the
9342 Mark specifically those that are used only in gprbuild
9344 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
9346 * init.c: Adjust EH support code on Alpha/Tru64.
9348 2009-04-10 Bob Duff <duff@adacore.com>
9350 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
9351 procedure on every path that could return implicitly (not via a return
9352 statement) from a procedure.
9354 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9356 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
9357 valid scope for a task declarations and therefore for a master id.
9359 2009-04-10 Robert Dewar <dewar@adacore.com>
9361 * sem_aux.adb: Minor reformatting
9363 2009-04-10 Vincent Celier <celier@adacore.com>
9365 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
9367 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
9368 (Set_Obsolescent_Check): New procedure to change the value of
9369 Obsolescent_Check_Flag.
9371 * scn.ads (Set_Obsolescent_Check): New procedure to control
9374 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
9375 obsolescent features while preprocessing.
9377 2009-04-10 Thomas Quinot <quinot@adacore.com>
9379 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
9380 generated files on all platforms.
9382 2009-04-10 Robert Dewar <dewar@adacore.com>
9384 * sem_aux.adb: Minor reformatting
9386 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9388 * sem_ch3.adb (Access_Definition): Handle properly the case of a
9389 protected function with formals that returns an anonymous access type.
9391 2009-04-10 Thomas Quinot <quinot@adacore.com>
9393 * sem_disp.adb: Minor reformatting
9395 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
9397 * seh_init.c: Do not use the 32-bit specific implementation of
9398 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
9401 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9403 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
9404 a '/' at the end so we better use the complete target name to determine
9405 whether it is a PowerPC 55xx target.
9407 2009-04-10 Thomas Quinot <quinot@adacore.com>
9409 * sem_eval.adb: Minor reformatting
9411 2009-04-10 Thomas Quinot <quinot@adacore.com>
9413 * snames.h, snames.ads, snames.adb: Remove files, now generated from
9416 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
9419 * xsnamest.adb: New file.
9421 * gcc-interface/Make-lang.in: New target for automated generation of
9422 snames.ads, snames.adb and snames.h
9424 2009-04-10 Tristan Gingold <gingold@adacore.com>
9426 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
9427 avoid compile time warnings.
9428 Do not add gcc/config in include search list while compiling the RTS.
9429 Pragma Thread_Local_Storage is available on any target.
9431 2009-04-10 Bob Duff <duff@adacore.com>
9433 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
9435 2009-04-10 Tristan Gingold <gingold@adacore.com>
9437 * init.c: Install signal handler on Darwin.
9439 2009-04-10 Robert Dewar <dewar@adacore.com>
9441 * sem_prag.adb: Minor reformatting
9443 * exp_util.adb (Make_Non_Empty_Check): New function
9444 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
9445 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
9447 2009-04-10 Arnaud Charlet <charlet@adacore.com>
9449 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
9451 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9453 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
9454 tool prefix for AVR and PowerPC 55xx targets.
9456 2009-04-10 Robert Dewar <dewar@adacore.com>
9458 * sem_warn.adb (Within_Postcondition): New function
9459 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
9461 2009-04-10 Robert Dewar <dewar@adacore.com>
9463 * sem_warn.adb: Minor reformatting
9465 * make.adb: Minor reformatting.
9467 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9469 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
9470 entity and the scope is a subprogram, retrieve the Sloc of the
9471 subprogram's body rather than using the sloc of the spec, for better
9472 line-stepping behavior in gdb.
9473 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
9474 controller, use the Sloc of the first declaration of the containing list
9475 rather than that of the node that triggered creation of the list
9478 2009-04-10 Vincent Celier <celier@adacore.com>
9480 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
9481 to avoid gcc warning.
9483 2009-04-10 Robert Dewar <dewar@adacore.com>
9485 * g-comlin.adb: Add ??? comment
9487 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9489 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
9490 unreferenced entities for a package with no visible declarations.
9492 2009-04-10 Robert Dewar <dewar@adacore.com>
9494 * exp_ch9.adb: Minor reformatting
9496 2009-04-10 Thomas Quinot <quinot@adacore.com>
9498 * sem_prag.adb: Minor reformatting
9500 2009-04-10 Vincent Celier <celier@adacore.com>
9503 (Check_Library_Attributes): For a project qualified as a library project
9504 that is not a library project, indicate in the error message which
9505 attributes are missing (Library_Dir and/or Library_Name).
9507 2009-04-10 Bob Duff <duff@adacore.com>
9509 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
9510 generated nodes, because it might confuse various circuits in the FE.
9512 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9514 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
9515 of pragma. It will be recopied and analyzed when used in call to
9518 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
9519 initialization operations and recognize use of it in procedure calls
9522 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
9523 argument, because it may have side-effects.
9525 * exp_ch2.adb: Remove obsolete comments on default functions
9527 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9529 * adaint.c (RTX section): Do for RTX the same thing as we do for
9530 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
9532 2009-04-10 Robert Dewar <dewar@adacore.com>
9534 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
9536 * sem_res.adb (Resolve_Call): Fix test for
9537 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
9538 a non-dynamic scope).
9540 2009-04-10 Robert Dewar <dewar@adacore.com>
9542 * make.adb: Add comment.
9545 2009-04-10 Nicolas Setton <setton@adacore.com>
9547 * s-osprim-darwin.adb: New file.
9549 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
9551 2009-04-10 Thomas Quinot <quinot@adacore.com>
9553 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
9555 2009-04-09 Nick Clifton <nickc@redhat.com>
9557 * adadecode.h: Change copyright header to refer to version
9558 3 of the GNU General Public License with version 3.1 of the
9559 GCC Runtime Library Exception and to point readers at the
9560 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
9562 * 9drpc.adb: Likewise.
9563 * a-assert.adb: Likewise.
9564 * a-astaco.adb: Likewise.
9565 * a-calari.adb: Likewise.
9566 * a-calcon.adb: Likewise.
9567 * a-calcon.ads: Likewise.
9568 * a-caldel.ads: Likewise.
9569 * a-calend-vms.adb: Likewise.
9570 * a-calend-vms.ads: Likewise.
9571 * a-calend.adb: Likewise.
9572 * a-calend.ads: Likewise.
9573 * a-calfor.adb: Likewise.
9574 * a-catizo.adb: Likewise.
9575 * a-cdlili.adb: Likewise.
9576 * a-cdlili.ads: Likewise.
9577 * a-cgaaso.adb: Likewise.
9578 * a-cgaaso.ads: Likewise.
9579 * a-cgarso.adb: Likewise.
9580 * a-cgcaso.adb: Likewise.
9581 * a-chacon.adb: Likewise.
9582 * a-chacon.ads: Likewise.
9583 * a-chahan.adb: Likewise.
9584 * a-chahan.ads: Likewise.
9585 * a-chlat9.ads: Likewise.
9586 * a-chtgke.adb: Likewise.
9587 * a-chtgke.ads: Likewise.
9588 * a-chtgop.adb: Likewise.
9589 * a-chtgop.ads: Likewise.
9590 * a-chzla1.ads: Likewise.
9591 * a-chzla9.ads: Likewise.
9592 * a-cidlli.adb: Likewise.
9593 * a-cidlli.ads: Likewise.
9594 * a-cihama.adb: Likewise.
9595 * a-cihama.ads: Likewise.
9596 * a-cihase.adb: Likewise.
9597 * a-cihase.ads: Likewise.
9598 * a-ciorma.adb: Likewise.
9599 * a-ciorma.ads: Likewise.
9600 * a-ciormu.adb: Likewise.
9601 * a-ciormu.ads: Likewise.
9602 * a-ciorse.adb: Likewise.
9603 * a-ciorse.ads: Likewise.
9604 * a-clrefi.adb: Likewise.
9605 * a-clrefi.ads: Likewise.
9606 * a-cohama.adb: Likewise.
9607 * a-cohama.ads: Likewise.
9608 * a-cohase.adb: Likewise.
9609 * a-cohase.ads: Likewise.
9610 * a-cohata.ads: Likewise.
9611 * a-coinve.adb: Likewise.
9612 * a-coinve.ads: Likewise.
9613 * a-colien.adb: Likewise.
9614 * a-colien.ads: Likewise.
9615 * a-colire.adb: Likewise.
9616 * a-colire.ads: Likewise.
9617 * a-comlin.adb: Likewise.
9618 * a-comlin.ads: Likewise.
9619 * a-convec.adb: Likewise.
9620 * a-convec.ads: Likewise.
9621 * a-coorma.adb: Likewise.
9622 * a-coorma.ads: Likewise.
9623 * a-coormu.adb: Likewise.
9624 * a-coormu.ads: Likewise.
9625 * a-coorse.adb: Likewise.
9626 * a-coorse.ads: Likewise.
9627 * a-coprnu.adb: Likewise.
9628 * a-coprnu.ads: Likewise.
9629 * a-crbltr.ads: Likewise.
9630 * a-crbtgk.adb: Likewise.
9631 * a-crbtgk.ads: Likewise.
9632 * a-crbtgo.adb: Likewise.
9633 * a-crbtgo.ads: Likewise.
9634 * a-crdlli.adb: Likewise.
9635 * a-crdlli.ads: Likewise.
9636 * a-cwila1.ads: Likewise.
9637 * a-cwila9.ads: Likewise.
9638 * a-decima.adb: Likewise.
9639 * a-decima.ads: Likewise.
9640 * a-diocst.adb: Likewise.
9641 * a-diocst.ads: Likewise.
9642 * a-direct.adb: Likewise.
9643 * a-direct.ads: Likewise.
9644 * a-direio.adb: Likewise.
9645 * a-direio.ads: Likewise.
9646 * a-dirval-mingw.adb: Likewise.
9647 * a-dirval-vms.adb: Likewise.
9648 * a-dirval.adb: Likewise.
9649 * a-dirval.ads: Likewise.
9650 * a-dynpri.adb: Likewise.
9651 * a-einuoc.adb: Likewise.
9652 * a-einuoc.ads: Likewise.
9653 * a-elchha.adb: Likewise.
9654 * a-elchha.ads: Likewise.
9655 * a-envvar.adb: Likewise.
9656 * a-excach.adb: Likewise.
9657 * a-except-2005.adb: Likewise.
9658 * a-except-2005.ads: Likewise.
9659 * a-except.adb: Likewise.
9660 * a-except.ads: Likewise.
9661 * a-excpol-abort.adb: Likewise.
9662 * a-excpol.adb: Likewise.
9663 * a-exctra.adb: Likewise.
9664 * a-exctra.ads: Likewise.
9665 * a-exetim-mingw.adb: Likewise.
9666 * a-exetim-mingw.ads: Likewise.
9667 * a-exexda.adb: Likewise.
9668 * a-exexpr-gcc.adb: Likewise.
9669 * a-exexpr.adb: Likewise.
9670 * a-exextr.adb: Likewise.
9671 * a-exstat.adb: Likewise.
9672 * a-filico.adb: Likewise.
9673 * a-filico.ads: Likewise.
9674 * a-finali.adb: Likewise.
9675 * a-finali.ads: Likewise.
9676 * a-interr.ads: Likewise.
9677 * a-intnam-aix.ads: Likewise.
9678 * a-intnam-darwin.ads: Likewise.
9679 * a-intnam-dummy.ads: Likewise.
9680 * a-intnam-freebsd.ads: Likewise.
9681 * a-intnam-hpux.ads: Likewise.
9682 * a-intnam-irix.ads: Likewise.
9683 * a-intnam-linux.ads: Likewise.
9684 * a-intnam-lynxos.ads: Likewise.
9685 * a-intnam-mingw.ads: Likewise.
9686 * a-intnam-rtems.ads: Likewise.
9687 * a-intnam-solaris.ads: Likewise.
9688 * a-intnam-tru64.ads: Likewise.
9689 * a-intnam-vms.ads: Likewise.
9690 * a-intnam-vxworks.ads: Likewise.
9691 * a-intsig.adb: Likewise.
9692 * a-intsig.ads: Likewise.
9693 * a-ngcefu.adb: Likewise.
9694 * a-ngcoar.adb: Likewise.
9695 * a-ngcoty.adb: Likewise.
9696 * a-ngcoty.ads: Likewise.
9697 * a-ngelfu.adb: Likewise.
9698 * a-ngrear.adb: Likewise.
9699 * a-ngrear.ads: Likewise.
9700 * a-nudira.adb: Likewise.
9701 * a-nudira.ads: Likewise.
9702 * a-nuflra.adb: Likewise.
9703 * a-nuflra.ads: Likewise.
9704 * a-numaux-darwin.adb: Likewise.
9705 * a-numaux-darwin.ads: Likewise.
9706 * a-numaux-libc-x86.ads: Likewise.
9707 * a-numaux-vxworks.ads: Likewise.
9708 * a-numaux-x86.adb: Likewise.
9709 * a-numaux-x86.ads: Likewise.
9710 * a-numaux.ads: Likewise.
9711 * a-rbtgso.adb: Likewise.
9712 * a-rbtgso.ads: Likewise.
9713 * a-reatim.ads: Likewise.
9714 * a-retide.adb: Likewise.
9715 * a-retide.ads: Likewise.
9716 * a-rttiev.adb: Likewise.
9717 * a-rttiev.ads: Likewise.
9718 * a-secain.adb: Likewise.
9719 * a-secain.ads: Likewise.
9720 * a-sequio.adb: Likewise.
9721 * a-sequio.ads: Likewise.
9722 * a-shcain.adb: Likewise.
9723 * a-shcain.ads: Likewise.
9724 * a-siocst.adb: Likewise.
9725 * a-siocst.ads: Likewise.
9726 * a-slcain.adb: Likewise.
9727 * a-slcain.ads: Likewise.
9728 * a-ssicst.adb: Likewise.
9729 * a-ssicst.ads: Likewise.
9730 * a-stboha.adb: Likewise.
9731 * a-stmaco.ads: Likewise.
9732 * a-storio.adb: Likewise.
9733 * a-strbou.adb: Likewise.
9734 * a-strbou.ads: Likewise.
9735 * a-stream.ads: Likewise.
9736 * a-strfix.adb: Likewise.
9737 * a-strhas.adb: Likewise.
9738 * a-strmap.adb: Likewise.
9739 * a-strmap.ads: Likewise.
9740 * a-strsea.adb: Likewise.
9741 * a-strsea.ads: Likewise.
9742 * a-strsup.adb: Likewise.
9743 * a-strsup.ads: Likewise.
9744 * a-strunb.adb: Likewise.
9745 * a-strunb.ads: Likewise.
9746 * a-ststio.adb: Likewise.
9747 * a-ststio.ads: Likewise.
9748 * a-stunau.adb: Likewise.
9749 * a-stunau.ads: Likewise.
9750 * a-stunha.adb: Likewise.
9751 * a-stwibo.adb: Likewise.
9752 * a-stwibo.ads: Likewise.
9753 * a-stwifi.adb: Likewise.
9754 * a-stwiha.adb: Likewise.
9755 * a-stwima.adb: Likewise.
9756 * a-stwima.ads: Likewise.
9757 * a-stwise.adb: Likewise.
9758 * a-stwise.ads: Likewise.
9759 * a-stwisu.adb: Likewise.
9760 * a-stwisu.ads: Likewise.
9761 * a-stwiun.adb: Likewise.
9762 * a-stwiun.ads: Likewise.
9763 * a-stzbou.adb: Likewise.
9764 * a-stzbou.ads: Likewise.
9765 * a-stzfix.adb: Likewise.
9766 * a-stzhas.adb: Likewise.
9767 * a-stzmap.adb: Likewise.
9768 * a-stzmap.ads: Likewise.
9769 * a-stzsea.adb: Likewise.
9770 * a-stzsea.ads: Likewise.
9771 * a-stzsup.adb: Likewise.
9772 * a-stzsup.ads: Likewise.
9773 * a-stzunb.adb: Likewise.
9774 * a-stzunb.ads: Likewise.
9775 * a-suteio.adb: Likewise.
9776 * a-suteio.ads: Likewise.
9777 * a-swbwha.adb: Likewise.
9778 * a-swmwco.ads: Likewise.
9779 * a-swunau.adb: Likewise.
9780 * a-swunau.ads: Likewise.
9781 * a-swuwha.adb: Likewise.
9782 * a-swuwti.adb: Likewise.
9783 * a-swuwti.ads: Likewise.
9784 * a-sytaco.adb: Likewise.
9785 * a-sytaco.ads: Likewise.
9786 * a-szbzha.adb: Likewise.
9787 * a-szmzco.ads: Likewise.
9788 * a-szunau.adb: Likewise.
9789 * a-szunau.ads: Likewise.
9790 * a-szuzha.adb: Likewise.
9791 * a-szuzti.adb: Likewise.
9792 * a-szuzti.ads: Likewise.
9793 * a-tags.adb: Likewise.
9794 * a-tags.ads: Likewise.
9795 * a-tasatt.ads: Likewise.
9796 * a-taside.adb: Likewise.
9797 * a-taside.ads: Likewise.
9798 * a-taster.adb: Likewise.
9799 * a-teioed.adb: Likewise.
9800 * a-teioed.ads: Likewise.
9801 * a-textio.adb: Likewise.
9802 * a-textio.ads: Likewise.
9803 * a-tiboio.adb: Likewise.
9804 * a-ticoau.adb: Likewise.
9805 * a-ticoau.ads: Likewise.
9806 * a-ticoio.adb: Likewise.
9807 * a-ticoio.ads: Likewise.
9808 * a-tideau.adb: Likewise.
9809 * a-tideau.ads: Likewise.
9810 * a-tideio.adb: Likewise.
9811 * a-tideio.ads: Likewise.
9812 * a-tienau.adb: Likewise.
9813 * a-tienau.ads: Likewise.
9814 * a-tienio.adb: Likewise.
9815 * a-tienio.ads: Likewise.
9816 * a-tifiio.adb: Likewise.
9817 * a-tifiio.ads: Likewise.
9818 * a-tiflau.adb: Likewise.
9819 * a-tiflau.ads: Likewise.
9820 * a-tiflio.adb: Likewise.
9821 * a-tiflio.ads: Likewise.
9822 * a-tigeau.adb: Likewise.
9823 * a-tigeau.ads: Likewise.
9824 * a-tiinau.adb: Likewise.
9825 * a-tiinau.ads: Likewise.
9826 * a-tiinio.adb: Likewise.
9827 * a-tiinio.ads: Likewise.
9828 * a-timoau.adb: Likewise.
9829 * a-timoau.ads: Likewise.
9830 * a-timoio.adb: Likewise.
9831 * a-timoio.ads: Likewise.
9832 * a-tiocst.adb: Likewise.
9833 * a-tiocst.ads: Likewise.
9834 * a-titest.adb: Likewise.
9835 * a-wichun.adb: Likewise.
9836 * a-wichun.ads: Likewise.
9837 * a-witeio.adb: Likewise.
9838 * a-witeio.ads: Likewise.
9839 * a-wtcoau.adb: Likewise.
9840 * a-wtcoau.ads: Likewise.
9841 * a-wtcoio.adb: Likewise.
9842 * a-wtcstr.adb: Likewise.
9843 * a-wtcstr.ads: Likewise.
9844 * a-wtdeau.adb: Likewise.
9845 * a-wtdeau.ads: Likewise.
9846 * a-wtdeio.adb: Likewise.
9847 * a-wtdeio.ads: Likewise.
9848 * a-wtedit.adb: Likewise.
9849 * a-wtedit.ads: Likewise.
9850 * a-wtenau.adb: Likewise.
9851 * a-wtenau.ads: Likewise.
9852 * a-wtenio.adb: Likewise.
9853 * a-wtenio.ads: Likewise.
9854 * a-wtfiio.adb: Likewise.
9855 * a-wtfiio.ads: Likewise.
9856 * a-wtflau.adb: Likewise.
9857 * a-wtflau.ads: Likewise.
9858 * a-wtflio.adb: Likewise.
9859 * a-wtflio.ads: Likewise.
9860 * a-wtgeau.adb: Likewise.
9861 * a-wtgeau.ads: Likewise.
9862 * a-wtinau.adb: Likewise.
9863 * a-wtinau.ads: Likewise.
9864 * a-wtinio.adb: Likewise.
9865 * a-wtmoau.adb: Likewise.
9866 * a-wtmoau.ads: Likewise.
9867 * a-wtmoio.adb: Likewise.
9868 * a-wtmoio.ads: Likewise.
9869 * a-wttest.adb: Likewise.
9870 * a-wwboio.adb: Likewise.
9871 * a-zchuni.adb: Likewise.
9872 * a-zchuni.ads: Likewise.
9873 * a-ztcoau.adb: Likewise.
9874 * a-ztcoau.ads: Likewise.
9875 * a-ztcoio.adb: Likewise.
9876 * a-ztcstr.adb: Likewise.
9877 * a-ztcstr.ads: Likewise.
9878 * a-ztdeau.adb: Likewise.
9879 * a-ztdeau.ads: Likewise.
9880 * a-ztdeio.adb: Likewise.
9881 * a-ztdeio.ads: Likewise.
9882 * a-ztedit.adb: Likewise.
9883 * a-ztedit.ads: Likewise.
9884 * a-ztenau.adb: Likewise.
9885 * a-ztenau.ads: Likewise.
9886 * a-ztenio.adb: Likewise.
9887 * a-ztenio.ads: Likewise.
9888 * a-ztexio.adb: Likewise.
9889 * a-ztexio.ads: Likewise.
9890 * a-ztfiio.adb: Likewise.
9891 * a-ztfiio.ads: Likewise.
9892 * a-ztflau.adb: Likewise.
9893 * a-ztflau.ads: Likewise.
9894 * a-ztflio.adb: Likewise.
9895 * a-ztflio.ads: Likewise.
9896 * a-ztgeau.adb: Likewise.
9897 * a-ztgeau.ads: Likewise.
9898 * a-ztinau.adb: Likewise.
9899 * a-ztinau.ads: Likewise.
9900 * a-ztinio.adb: Likewise.
9901 * a-ztmoau.adb: Likewise.
9902 * a-ztmoau.ads: Likewise.
9903 * a-ztmoio.adb: Likewise.
9904 * a-ztmoio.ads: Likewise.
9905 * a-zttest.adb: Likewise.
9906 * a-zzboio.adb: Likewise.
9907 * adadecode.c: Likewise.
9908 * adaint.c: Likewise.
9909 * adaint.h: Likewise.
9910 * alloc.ads: Likewise.
9912 * arit64.c: Likewise.
9913 * atree.adb: Likewise.
9914 * atree.ads: Likewise.
9915 * aux-io.c: Likewise.
9917 * casing.adb: Likewise.
9918 * casing.ads: Likewise.
9920 * csets.adb: Likewise.
9921 * csets.ads: Likewise.
9922 * cstreams.c: Likewise.
9923 * ctrl_c.c: Likewise.
9924 * debug.adb: Likewise.
9925 * debug.ads: Likewise.
9926 * dec.ads: Likewise.
9927 * einfo.adb: Likewise.
9928 * einfo.ads: Likewise.
9929 * elists.adb: Likewise.
9930 * elists.ads: Likewise.
9933 * errno.c: Likewise.
9936 * final.c: Likewise.
9937 * fname.adb: Likewise.
9938 * fname.ads: Likewise.
9939 * g-allein.ads: Likewise.
9940 * g-alleve.adb: Likewise.
9941 * g-alleve.ads: Likewise.
9942 * g-altcon.adb: Likewise.
9943 * g-altcon.ads: Likewise.
9944 * g-altive.ads: Likewise.
9945 * g-alveop.adb: Likewise.
9946 * g-alveop.ads: Likewise.
9947 * g-alvety.ads: Likewise.
9948 * g-alvevi.ads: Likewise.
9949 * g-arrspl.adb: Likewise.
9950 * g-arrspl.ads: Likewise.
9951 * g-calend.ads: Likewise.
9952 * g-comlin.adb: Likewise.
9953 * g-debpoo.adb: Likewise.
9954 * g-debpoo.ads: Likewise.
9955 * g-eacodu-vms.adb: Likewise.
9956 * g-eacodu.adb: Likewise.
9957 * g-excact.adb: Likewise.
9958 * g-excact.ads: Likewise.
9959 * g-locfil.adb: Likewise.
9960 * g-os_lib.ads: Likewise.
9961 * g-rannum.adb: Likewise.
9962 * g-rannum.ads: Likewise.
9963 * g-regist.adb: Likewise.
9964 * g-regist.ads: Likewise.
9965 * g-signal.adb: Likewise.
9966 * g-signal.ads: Likewise.
9967 * g-soccon.ads: Likewise.
9968 * g-string.adb: Likewise.
9969 * g-string.ads: Likewise.
9970 * g-strspl.ads: Likewise.
9971 * g-timsta.adb: Likewise.
9972 * g-timsta.ads: Likewise.
9973 * g-trasym-vms-alpha.adb: Likewise.
9974 * g-trasym-vms-ia64.adb: Likewise.
9975 * g-utf_32.adb: Likewise.
9976 * g-utf_32.ads: Likewise.
9977 * g-wistsp.ads: Likewise.
9978 * g-zstspl.ads: Likewise.
9980 * gnatvsn.adb: Likewise.
9981 * gnatvsn.ads: Likewise.
9982 * gsocket.h: Likewise.
9983 * hostparm.ads: Likewise.
9984 * i-c.adb: Likewise.
9985 * i-cexten.ads: Likewise.
9986 * i-cobol.adb: Likewise.
9987 * i-cobol.ads: Likewise.
9988 * i-cpoint.adb: Likewise.
9989 * i-cpoint.ads: Likewise.
9990 * i-cpp.adb: Likewise.
9991 * i-cpp.ads: Likewise.
9992 * i-cstrea-vms.adb: Likewise.
9993 * i-cstrea.adb: Likewise.
9994 * i-cstrea.ads: Likewise.
9995 * i-cstrin.adb: Likewise.
9996 * i-cstrin.ads: Likewise.
9997 * i-forbla-darwin.adb: Likewise.
9998 * i-forbla-unimplemented.ads: Likewise.
9999 * i-forbla.adb: Likewise.
10000 * i-forbla.ads: Likewise.
10001 * i-forlap.ads: Likewise.
10002 * i-fortra.adb: Likewise.
10003 * i-pacdec.adb: Likewise.
10004 * i-pacdec.ads: Likewise.
10005 * i-vxwoio.adb: Likewise.
10006 * i-vxwoio.ads: Likewise.
10007 * indepsw-aix.adb: Likewise.
10008 * indepsw-gnu.adb: Likewise.
10009 * indepsw-mingw.adb: Likewise.
10010 * indepsw.adb: Likewise.
10011 * indepsw.ads: Likewise.
10012 * init.c: Likewise.
10013 * initialize.c: Likewise.
10014 * interfac.ads: Likewise.
10015 * krunch.adb: Likewise.
10016 * krunch.ads: Likewise.
10017 * lib-list.adb: Likewise.
10018 * lib-sort.adb: Likewise.
10019 * lib.adb: Likewise.
10020 * lib.ads: Likewise.
10021 * link.c: Likewise.
10022 * math_lib.adb: Likewise.
10023 * memtrack.adb: Likewise.
10024 * mingw32.h: Likewise.
10025 * mkdir.c: Likewise.
10026 * namet-sp.adb: Likewise.
10027 * namet-sp.ads: Likewise.
10028 * namet.adb: Likewise.
10029 * namet.ads: Likewise.
10030 * nlists.adb: Likewise.
10031 * nlists.ads: Likewise.
10032 * opt.adb: Likewise.
10033 * opt.ads: Likewise.
10034 * output.adb: Likewise.
10035 * output.ads: Likewise.
10036 * raise-gcc.c: Likewise.
10037 * raise.c: Likewise.
10038 * raise.h: Likewise.
10039 * repinfo.adb: Likewise.
10040 * repinfo.ads: Likewise.
10041 * repinfo.h: Likewise.
10042 * rident.ads: Likewise.
10043 * s-addima.adb: Likewise.
10044 * s-addima.ads: Likewise.
10045 * s-addope.adb: Likewise.
10046 * s-addope.ads: Likewise.
10047 * s-arit64.adb: Likewise.
10048 * s-arit64.ads: Likewise.
10049 * s-assert.adb: Likewise.
10050 * s-assert.ads: Likewise.
10051 * s-asthan-vms-alpha.adb: Likewise.
10052 * s-asthan.adb: Likewise.
10053 * s-asthan.ads: Likewise.
10054 * s-atacco.adb: Likewise.
10055 * s-atacco.ads: Likewise.
10056 * s-auxdec-empty.adb: Likewise.
10057 * s-auxdec-empty.ads: Likewise.
10058 * s-auxdec-vms_64.ads: Likewise.
10059 * s-auxdec.adb: Likewise.
10060 * s-auxdec.ads: Likewise.
10061 * s-bitops.adb: Likewise.
10062 * s-bitops.ads: Likewise.
10063 * s-boarop.ads: Likewise.
10064 * s-carsi8.adb: Likewise.
10065 * s-carsi8.ads: Likewise.
10066 * s-carun8.adb: Likewise.
10067 * s-carun8.ads: Likewise.
10068 * s-casi16.adb: Likewise.
10069 * s-casi16.ads: Likewise.
10070 * s-casi32.adb: Likewise.
10071 * s-casi32.ads: Likewise.
10072 * s-casi64.adb: Likewise.
10073 * s-casi64.ads: Likewise.
10074 * s-casuti.ads: Likewise.
10075 * s-caun16.adb: Likewise.
10076 * s-caun16.ads: Likewise.
10077 * s-caun32.adb: Likewise.
10078 * s-caun32.ads: Likewise.
10079 * s-caun64.adb: Likewise.
10080 * s-caun64.ads: Likewise.
10081 * s-chepoo.ads: Likewise.
10082 * s-crc32.adb: Likewise.
10083 * s-crc32.ads: Likewise.
10084 * s-crtl.ads: Likewise.
10085 * s-direio.adb: Likewise.
10086 * s-direio.ads: Likewise.
10087 * s-dsaser.ads: Likewise.
10088 * s-except.adb: Likewise.
10089 * s-except.ads: Likewise.
10090 * s-exctab.adb: Likewise.
10091 * s-exctab.ads: Likewise.
10092 * s-exnint.adb: Likewise.
10093 * s-exnint.ads: Likewise.
10094 * s-exnllf.adb: Likewise.
10095 * s-exnllf.ads: Likewise.
10096 * s-exnlli.adb: Likewise.
10097 * s-exnlli.ads: Likewise.
10098 * s-expint.adb: Likewise.
10099 * s-expint.ads: Likewise.
10100 * s-explli.adb: Likewise.
10101 * s-explli.ads: Likewise.
10102 * s-expllu.adb: Likewise.
10103 * s-expllu.ads: Likewise.
10104 * s-expmod.adb: Likewise.
10105 * s-expmod.ads: Likewise.
10106 * s-expuns.adb: Likewise.
10107 * s-expuns.ads: Likewise.
10108 * s-fatflt.ads: Likewise.
10109 * s-fatgen.adb: Likewise.
10110 * s-fatgen.ads: Likewise.
10111 * s-fatlfl.ads: Likewise.
10112 * s-fatllf.ads: Likewise.
10113 * s-fatsfl.ads: Likewise.
10114 * s-ficobl.ads: Likewise.
10115 * s-fileio.adb: Likewise.
10116 * s-fileio.ads: Likewise.
10117 * s-filofl.ads: Likewise.
10118 * s-finimp.adb: Likewise.
10119 * s-finimp.ads: Likewise.
10120 * s-finroo.adb: Likewise.
10121 * s-finroo.ads: Likewise.
10122 * s-fishfl.ads: Likewise.
10123 * s-fore.adb: Likewise.
10124 * s-fore.ads: Likewise.
10125 * s-fvadfl.ads: Likewise.
10126 * s-fvaffl.ads: Likewise.
10127 * s-fvagfl.ads: Likewise.
10128 * s-gearop.adb: Likewise.
10129 * s-gearop.ads: Likewise.
10130 * s-gecobl.adb: Likewise.
10131 * s-gecobl.ads: Likewise.
10132 * s-gecola.adb: Likewise.
10133 * s-gecola.ads: Likewise.
10134 * s-gerebl.adb: Likewise.
10135 * s-gerebl.ads: Likewise.
10136 * s-gerela.adb: Likewise.
10137 * s-gerela.ads: Likewise.
10138 * s-geveop.adb: Likewise.
10139 * s-geveop.ads: Likewise.
10140 * s-gloloc.adb: Likewise.
10141 * s-gloloc.ads: Likewise.
10142 * s-hibaen.ads: Likewise.
10143 * s-imenne.adb: Likewise.
10144 * s-imenne.ads: Likewise.
10145 * s-imgbiu.adb: Likewise.
10146 * s-imgbiu.ads: Likewise.
10147 * s-imgboo.adb: Likewise.
10148 * s-imgboo.ads: Likewise.
10149 * s-imgcha.adb: Likewise.
10150 * s-imgcha.ads: Likewise.
10151 * s-imgdec.adb: Likewise.
10152 * s-imgdec.ads: Likewise.
10153 * s-imgenu.adb: Likewise.
10154 * s-imgenu.ads: Likewise.
10155 * s-imgint.adb: Likewise.
10156 * s-imgint.ads: Likewise.
10157 * s-imgllb.adb: Likewise.
10158 * s-imgllb.ads: Likewise.
10159 * s-imglld.adb: Likewise.
10160 * s-imglld.ads: Likewise.
10161 * s-imglli.adb: Likewise.
10162 * s-imglli.ads: Likewise.
10163 * s-imgllu.adb: Likewise.
10164 * s-imgllu.ads: Likewise.
10165 * s-imgllw.adb: Likewise.
10166 * s-imgllw.ads: Likewise.
10167 * s-imgrea.adb: Likewise.
10168 * s-imgrea.ads: Likewise.
10169 * s-imguns.adb: Likewise.
10170 * s-imguns.ads: Likewise.
10171 * s-imgwch.adb: Likewise.
10172 * s-imgwch.ads: Likewise.
10173 * s-imgwiu.adb: Likewise.
10174 * s-imgwiu.ads: Likewise.
10175 * s-inmaop-dummy.adb: Likewise.
10176 * s-inmaop-vms.adb: Likewise.
10177 * s-inmaop.ads: Likewise.
10178 * s-interr-hwint.adb: Likewise.
10179 * s-interr-sigaction.adb: Likewise.
10180 * s-interr-vms.adb: Likewise.
10181 * s-interr.adb: Likewise.
10182 * s-interr.ads: Likewise.
10183 * s-intman-dummy.adb: Likewise.
10184 * s-intman-mingw.adb: Likewise.
10185 * s-intman-posix.adb: Likewise.
10186 * s-intman-solaris.adb: Likewise.
10187 * s-intman-vms.adb: Likewise.
10188 * s-intman-vms.ads: Likewise.
10189 * s-intman-vxworks.adb: Likewise.
10190 * s-intman-vxworks.ads: Likewise.
10191 * s-intman.ads: Likewise.
10192 * s-io.adb: Likewise.
10193 * s-io.ads: Likewise.
10194 * s-linux-alpha.ads: Likewise.
10195 * s-linux-hppa.ads: Likewise.
10196 * s-linux.ads: Likewise.
10197 * s-maccod.ads: Likewise.
10198 * s-mantis.adb: Likewise.
10199 * s-mantis.ads: Likewise.
10200 * s-mastop-irix.adb: Likewise.
10201 * s-mastop.adb: Likewise.
10202 * s-mastop.ads: Likewise.
10203 * s-memcop.ads: Likewise.
10204 * s-memory-mingw.adb: Likewise.
10205 * s-memory.adb: Likewise.
10206 * s-memory.ads: Likewise.
10207 * s-os_lib.ads: Likewise.
10208 * s-oscons-tmplt.c: Likewise.
10209 * s-osinte-aix.adb: Likewise.
10210 * s-osinte-darwin.adb: Likewise.
10211 * s-osinte-freebsd.adb: Likewise.
10212 * s-osinte-irix.adb: Likewise.
10213 * s-osinte-lynxos-3.adb: Likewise.
10214 * s-osinte-rtems.ads: Likewise.
10215 * s-osinte-tru64.adb: Likewise.
10216 * s-osinte-vxworks-kernel.adb: Likewise.
10217 * s-osinte-vxworks.adb: Likewise.
10218 * s-osprim-mingw.adb: Likewise.
10219 * s-osprim-posix.adb: Likewise.
10220 * s-osprim-solaris.adb: Likewise.
10221 * s-osprim-unix.adb: Likewise.
10222 * s-osprim-vms.adb: Likewise.
10223 * s-osprim-vms.ads: Likewise.
10224 * s-osprim-vxworks.adb: Likewise.
10225 * s-osprim.ads: Likewise.
10226 * s-pack03.adb: Likewise.
10227 * s-pack03.ads: Likewise.
10228 * s-pack05.adb: Likewise.
10229 * s-pack05.ads: Likewise.
10230 * s-pack06.adb: Likewise.
10231 * s-pack06.ads: Likewise.
10232 * s-pack07.adb: Likewise.
10233 * s-pack07.ads: Likewise.
10234 * s-pack09.adb: Likewise.
10235 * s-pack09.ads: Likewise.
10236 * s-pack10.adb: Likewise.
10237 * s-pack10.ads: Likewise.
10238 * s-pack11.adb: Likewise.
10239 * s-pack11.ads: Likewise.
10240 * s-pack12.adb: Likewise.
10241 * s-pack12.ads: Likewise.
10242 * s-pack13.adb: Likewise.
10243 * s-pack13.ads: Likewise.
10244 * s-pack14.adb: Likewise.
10245 * s-pack14.ads: Likewise.
10246 * s-pack15.adb: Likewise.
10247 * s-pack15.ads: Likewise.
10248 * s-pack17.adb: Likewise.
10249 * s-pack17.ads: Likewise.
10250 * s-pack18.adb: Likewise.
10251 * s-pack18.ads: Likewise.
10252 * s-pack19.adb: Likewise.
10253 * s-pack19.ads: Likewise.
10254 * s-pack20.adb: Likewise.
10255 * s-pack20.ads: Likewise.
10256 * s-pack21.adb: Likewise.
10257 * s-pack21.ads: Likewise.
10258 * s-pack22.adb: Likewise.
10259 * s-pack22.ads: Likewise.
10260 * s-pack23.adb: Likewise.
10261 * s-pack23.ads: Likewise.
10262 * s-pack24.adb: Likewise.
10263 * s-pack24.ads: Likewise.
10264 * s-pack25.adb: Likewise.
10265 * s-pack25.ads: Likewise.
10266 * s-pack26.adb: Likewise.
10267 * s-pack26.ads: Likewise.
10268 * s-pack27.adb: Likewise.
10269 * s-pack27.ads: Likewise.
10270 * s-pack28.adb: Likewise.
10271 * s-pack28.ads: Likewise.
10272 * s-pack29.adb: Likewise.
10273 * s-pack29.ads: Likewise.
10274 * s-pack30.adb: Likewise.
10275 * s-pack30.ads: Likewise.
10276 * s-pack31.adb: Likewise.
10277 * s-pack31.ads: Likewise.
10278 * s-pack33.adb: Likewise.
10279 * s-pack33.ads: Likewise.
10280 * s-pack34.adb: Likewise.
10281 * s-pack34.ads: Likewise.
10282 * s-pack35.adb: Likewise.
10283 * s-pack35.ads: Likewise.
10284 * s-pack36.adb: Likewise.
10285 * s-pack36.ads: Likewise.
10286 * s-pack37.adb: Likewise.
10287 * s-pack37.ads: Likewise.
10288 * s-pack38.adb: Likewise.
10289 * s-pack38.ads: Likewise.
10290 * s-pack39.adb: Likewise.
10291 * s-pack39.ads: Likewise.
10292 * s-pack40.adb: Likewise.
10293 * s-pack40.ads: Likewise.
10294 * s-pack41.adb: Likewise.
10295 * s-pack41.ads: Likewise.
10296 * s-pack42.adb: Likewise.
10297 * s-pack42.ads: Likewise.
10298 * s-pack43.adb: Likewise.
10299 * s-pack43.ads: Likewise.
10300 * s-pack44.adb: Likewise.
10301 * s-pack44.ads: Likewise.
10302 * s-pack45.adb: Likewise.
10303 * s-pack45.ads: Likewise.
10304 * s-pack46.adb: Likewise.
10305 * s-pack46.ads: Likewise.
10306 * s-pack47.adb: Likewise.
10307 * s-pack47.ads: Likewise.
10308 * s-pack48.adb: Likewise.
10309 * s-pack48.ads: Likewise.
10310 * s-pack49.adb: Likewise.
10311 * s-pack49.ads: Likewise.
10312 * s-pack50.adb: Likewise.
10313 * s-pack50.ads: Likewise.
10314 * s-pack51.adb: Likewise.
10315 * s-pack51.ads: Likewise.
10316 * s-pack52.adb: Likewise.
10317 * s-pack52.ads: Likewise.
10318 * s-pack53.adb: Likewise.
10319 * s-pack53.ads: Likewise.
10320 * s-pack54.adb: Likewise.
10321 * s-pack54.ads: Likewise.
10322 * s-pack55.adb: Likewise.
10323 * s-pack55.ads: Likewise.
10324 * s-pack56.adb: Likewise.
10325 * s-pack56.ads: Likewise.
10326 * s-pack57.adb: Likewise.
10327 * s-pack57.ads: Likewise.
10328 * s-pack58.adb: Likewise.
10329 * s-pack58.ads: Likewise.
10330 * s-pack59.adb: Likewise.
10331 * s-pack59.ads: Likewise.
10332 * s-pack60.adb: Likewise.
10333 * s-pack60.ads: Likewise.
10334 * s-pack61.adb: Likewise.
10335 * s-pack61.ads: Likewise.
10336 * s-pack62.adb: Likewise.
10337 * s-pack62.ads: Likewise.
10338 * s-pack63.adb: Likewise.
10339 * s-pack63.ads: Likewise.
10340 * s-parame-ae653.ads: Likewise.
10341 * s-parame-hpux.ads: Likewise.
10342 * s-parame-rtems.adb: Likewise.
10343 * s-parame-vms-alpha.ads: Likewise.
10344 * s-parame-vms-ia64.ads: Likewise.
10345 * s-parame-vms-restrict.ads: Likewise.
10346 * s-parame-vxworks.adb: Likewise.
10347 * s-parame-vxworks.ads: Likewise.
10348 * s-parame.adb: Likewise.
10349 * s-parame.ads: Likewise.
10350 * s-parint.adb: Likewise.
10351 * s-parint.ads: Likewise.
10352 * s-pooglo.adb: Likewise.
10353 * s-pooglo.ads: Likewise.
10354 * s-pooloc.adb: Likewise.
10355 * s-pooloc.ads: Likewise.
10356 * s-poosiz.adb: Likewise.
10357 * s-poosiz.ads: Likewise.
10358 * s-powtab.ads: Likewise.
10359 * s-proinf-irix-athread.adb: Likewise.
10360 * s-proinf-irix-athread.ads: Likewise.
10361 * s-proinf.adb: Likewise.
10362 * s-proinf.ads: Likewise.
10363 * s-purexc.ads: Likewise.
10364 * s-rannum.adb: Likewise.
10365 * s-rannum.ads: Likewise.
10366 * s-restri.adb: Likewise.
10367 * s-restri.ads: Likewise.
10368 * s-rident.ads: Likewise.
10369 * s-rpc.adb: Likewise.
10370 * s-rpc.ads: Likewise.
10371 * s-scaval.adb: Likewise.
10372 * s-scaval.ads: Likewise.
10373 * s-secsta.adb: Likewise.
10374 * s-secsta.ads: Likewise.
10375 * s-sequio.adb: Likewise.
10376 * s-sequio.ads: Likewise.
10377 * s-shasto.adb: Likewise.
10378 * s-shasto.ads: Likewise.
10379 * s-soflin.adb: Likewise.
10380 * s-soflin.ads: Likewise.
10381 * s-solita.adb: Likewise.
10382 * s-solita.ads: Likewise.
10383 * s-sopco3.adb: Likewise.
10384 * s-sopco3.ads: Likewise.
10385 * s-sopco4.adb: Likewise.
10386 * s-sopco4.ads: Likewise.
10387 * s-sopco5.adb: Likewise.
10388 * s-sopco5.ads: Likewise.
10389 * s-stache.adb: Likewise.
10390 * s-stache.ads: Likewise.
10391 * s-stalib.adb: Likewise.
10392 * s-stalib.ads: Likewise.
10393 * s-stausa.adb: Likewise.
10394 * s-stausa.ads: Likewise.
10395 * s-stchop-limit.ads: Likewise.
10396 * s-stchop-rtems.adb: Likewise.
10397 * s-stchop-vxworks.adb: Likewise.
10398 * s-stchop.adb: Likewise.
10399 * s-stchop.ads: Likewise.
10400 * s-stoele.adb: Likewise.
10401 * s-stoele.ads: Likewise.
10402 * s-stopoo.adb: Likewise.
10403 * s-stopoo.ads: Likewise.
10404 * s-stratt.adb: Likewise.
10405 * s-stratt.ads: Likewise.
10406 * s-strcom.adb: Likewise.
10407 * s-strcom.ads: Likewise.
10408 * s-string.adb: Likewise.
10409 * s-string.ads: Likewise.
10410 * s-strops.adb: Likewise.
10411 * s-strops.ads: Likewise.
10412 * s-strxdr.adb: Likewise.
10413 * s-ststop.adb: Likewise.
10414 * s-ststop.ads: Likewise.
10415 * s-taasde.adb: Likewise.
10416 * s-taasde.ads: Likewise.
10417 * s-tadeca.adb: Likewise.
10418 * s-tadeca.ads: Likewise.
10419 * s-tadert.adb: Likewise.
10420 * s-tadert.ads: Likewise.
10421 * s-taenca.adb: Likewise.
10422 * s-taenca.ads: Likewise.
10423 * s-taprob.ads: Likewise.
10424 * s-taprop-dummy.adb: Likewise.
10425 * s-taprop-hpux-dce.adb: Likewise.
10426 * s-taprop-irix.adb: Likewise.
10427 * s-taprop-linux.adb: Likewise.
10428 * s-taprop-lynxos.adb: Likewise.
10429 * s-taprop-mingw.adb: Likewise.
10430 * s-taprop-posix.adb: Likewise.
10431 * s-taprop-solaris.adb: Likewise.
10432 * s-taprop-tru64.adb: Likewise.
10433 * s-taprop-vms.adb: Likewise.
10434 * s-taprop-vxworks.adb: Likewise.
10435 * s-taprop.ads: Likewise.
10436 * s-tarest.adb: Likewise.
10437 * s-tarest.ads: Likewise.
10438 * s-tasdeb.adb: Likewise.
10439 * s-tasdeb.ads: Likewise.
10440 * s-tasinf-irix.ads: Likewise.
10441 * s-tasinf-linux.adb: Likewise.
10442 * s-tasinf-linux.ads: Likewise.
10443 * s-tasinf-mingw.adb: Likewise.
10444 * s-tasinf-mingw.ads: Likewise.
10445 * s-tasinf-solaris.adb: Likewise.
10446 * s-tasinf-solaris.ads: Likewise.
10447 * s-tasinf-tru64.ads: Likewise.
10448 * s-tasinf.adb: Likewise.
10449 * s-tasinf.ads: Likewise.
10450 * s-tasini.adb: Likewise.
10451 * s-tasini.ads: Likewise.
10452 * s-taskin.adb: Likewise.
10453 * s-taskin.ads: Likewise.
10454 * s-taspri-dummy.ads: Likewise.
10455 * s-taspri-hpux-dce.ads: Likewise.
10456 * s-taspri-mingw.ads: Likewise.
10457 * s-taspri-solaris.ads: Likewise.
10458 * s-taspri-tru64.ads: Likewise.
10459 * s-taspri-vms.ads: Likewise.
10460 * s-taspri-vxworks.ads: Likewise.
10461 * s-tasque.adb: Likewise.
10462 * s-tasque.ads: Likewise.
10463 * s-tasren.adb: Likewise.
10464 * s-tasren.ads: Likewise.
10465 * s-tasres.ads: Likewise.
10466 * s-tassta.adb: Likewise.
10467 * s-tassta.ads: Likewise.
10468 * s-tasuti.adb: Likewise.
10469 * s-tasuti.ads: Likewise.
10470 * s-tfsetr-default.adb: Likewise.
10471 * s-tfsetr-vxworks.adb: Likewise.
10472 * s-tpinop.adb: Likewise.
10473 * s-tpinop.ads: Likewise.
10474 * s-tpoben.adb: Likewise.
10475 * s-tpoben.ads: Likewise.
10476 * s-tpobop.adb: Likewise.
10477 * s-tpobop.ads: Likewise.
10478 * s-tpopde-vms.adb: Likewise.
10479 * s-tpopde-vms.ads: Likewise.
10480 * s-tpopsp-lynxos.adb: Likewise.
10481 * s-tpopsp-posix-foreign.adb: Likewise.
10482 * s-tpopsp-posix.adb: Likewise.
10483 * s-tpopsp-solaris.adb: Likewise.
10484 * s-tpopsp-vxworks.adb: Likewise.
10485 * s-tporft.adb: Likewise.
10486 * s-tposen.adb: Likewise.
10487 * s-tposen.ads: Likewise.
10488 * s-traceb.adb: Likewise.
10489 * s-traceb.ads: Likewise.
10490 * s-traces-default.adb: Likewise.
10491 * s-traces.adb: Likewise.
10492 * s-traces.ads: Likewise.
10493 * s-traent-vms.adb: Likewise.
10494 * s-traent-vms.ads: Likewise.
10495 * s-traent.adb: Likewise.
10496 * s-traent.ads: Likewise.
10497 * s-trafor-default.adb: Likewise.
10498 * s-trafor-default.ads: Likewise.
10499 * s-tratas-default.adb: Likewise.
10500 * s-tratas.adb: Likewise.
10501 * s-tratas.ads: Likewise.
10502 * s-unstyp.ads: Likewise.
10503 * s-utf_32.adb: Likewise.
10504 * s-utf_32.ads: Likewise.
10505 * s-vaflop-vms-alpha.adb: Likewise.
10506 * s-vaflop.adb: Likewise.
10507 * s-vaflop.ads: Likewise.
10508 * s-valboo.adb: Likewise.
10509 * s-valboo.ads: Likewise.
10510 * s-valcha.adb: Likewise.
10511 * s-valcha.ads: Likewise.
10512 * s-valdec.adb: Likewise.
10513 * s-valdec.ads: Likewise.
10514 * s-valenu.adb: Likewise.
10515 * s-valenu.ads: Likewise.
10516 * s-valint.adb: Likewise.
10517 * s-valint.ads: Likewise.
10518 * s-vallld.adb: Likewise.
10519 * s-vallld.ads: Likewise.
10520 * s-vallli.adb: Likewise.
10521 * s-vallli.ads: Likewise.
10522 * s-valllu.adb: Likewise.
10523 * s-valllu.ads: Likewise.
10524 * s-valrea.adb: Likewise.
10525 * s-valrea.ads: Likewise.
10526 * s-valuns.adb: Likewise.
10527 * s-valuns.ads: Likewise.
10528 * s-valuti.adb: Likewise.
10529 * s-valuti.ads: Likewise.
10530 * s-valwch.adb: Likewise.
10531 * s-valwch.ads: Likewise.
10532 * s-veboop.adb: Likewise.
10533 * s-veboop.ads: Likewise.
10534 * s-vector.ads: Likewise.
10535 * s-vercon.adb: Likewise.
10536 * s-vercon.ads: Likewise.
10537 * s-vmexta.adb: Likewise.
10538 * s-vmexta.ads: Likewise.
10539 * s-vxwext-kernel.ads: Likewise.
10540 * s-vxwext-rtp.adb: Likewise.
10541 * s-vxwext-rtp.ads: Likewise.
10542 * s-vxwext.ads: Likewise.
10543 * s-vxwork-arm.ads: Likewise.
10544 * s-vxwork-m68k.ads: Likewise.
10545 * s-vxwork-mips.ads: Likewise.
10546 * s-vxwork-ppc.ads: Likewise.
10547 * s-vxwork-sparcv9.ads: Likewise.
10548 * s-vxwork-x86.ads: Likewise.
10549 * s-wchcnv.adb: Likewise.
10550 * s-wchcnv.ads: Likewise.
10551 * s-wchcon.adb: Likewise.
10552 * s-wchcon.ads: Likewise.
10553 * s-wchjis.adb: Likewise.
10554 * s-wchjis.ads: Likewise.
10555 * s-wchstw.adb: Likewise.
10556 * s-wchstw.ads: Likewise.
10557 * s-wchwts.adb: Likewise.
10558 * s-wchwts.ads: Likewise.
10559 * s-widboo.adb: Likewise.
10560 * s-widboo.ads: Likewise.
10561 * s-widcha.adb: Likewise.
10562 * s-widcha.ads: Likewise.
10563 * s-widenu.adb: Likewise.
10564 * s-widenu.ads: Likewise.
10565 * s-widlli.adb: Likewise.
10566 * s-widlli.ads: Likewise.
10567 * s-widllu.adb: Likewise.
10568 * s-widllu.ads: Likewise.
10569 * s-widwch.adb: Likewise.
10570 * s-widwch.ads: Likewise.
10571 * s-win32.ads: Likewise.
10572 * s-winext.ads: Likewise.
10573 * s-wwdcha.adb: Likewise.
10574 * s-wwdcha.ads: Likewise.
10575 * s-wwdenu.adb: Likewise.
10576 * s-wwdenu.ads: Likewise.
10577 * s-wwdwch.adb: Likewise.
10578 * s-wwdwch.ads: Likewise.
10579 * scans.adb: Likewise.
10580 * scans.ads: Likewise.
10581 * seh_init.c: Likewise.
10582 * sfn_scan.adb: Likewise.
10583 * sinfo.adb: Likewise.
10584 * sinfo.ads: Likewise.
10585 * sinput.adb: Likewise.
10586 * sinput.ads: Likewise.
10587 * snames.adb: Likewise.
10588 * snames.ads: Likewise.
10589 * socket.c: Likewise.
10590 * stand.adb: Likewise.
10591 * stand.ads: Likewise.
10592 * stringt.adb: Likewise.
10593 * stringt.ads: Likewise.
10594 * sysdep.c: Likewise.
10595 * system-aix.ads: Likewise.
10596 * system-darwin-ppc.ads: Likewise.
10597 * system-darwin-x86.ads: Likewise.
10598 * system-darwin-x86_64.ads: Likewise.
10599 * system-freebsd-x86.ads: Likewise.
10600 * system-hpux-ia64.ads: Likewise.
10601 * system-hpux.ads: Likewise.
10602 * system-irix-n32.ads: Likewise.
10603 * system-irix-n64.ads: Likewise.
10604 * system-irix-o32.ads: Likewise.
10605 * system-linux-alpha.ads: Likewise.
10606 * system-linux-hppa.ads: Likewise.
10607 * system-linux-ia64.ads: Likewise.
10608 * system-linux-mips.ads: Likewise.
10609 * system-linux-mipsel.ads: Likewise.
10610 * system-linux-ppc.ads: Likewise.
10611 * system-linux-ppc64.ads: Likewise.
10612 * system-linux-s390.ads: Likewise.
10613 * system-linux-s390x.ads: Likewise.
10614 * system-linux-sh4.ads: Likewise.
10615 * system-linux-sparc.ads: Likewise.
10616 * system-linux-sparcv9.ads: Likewise.
10617 * system-linux-x86.ads: Likewise.
10618 * system-linux-x86_64.ads: Likewise.
10619 * system-lynxos-ppc.ads: Likewise.
10620 * system-lynxos-x86.ads: Likewise.
10621 * system-mingw-x86_64.ads: Likewise.
10622 * system-mingw.ads: Likewise.
10623 * system-rtems.ads: Likewise.
10624 * system-solaris-sparc.ads: Likewise.
10625 * system-solaris-sparcv9.ads: Likewise.
10626 * system-solaris-x86.ads: Likewise.
10627 * system-solaris-x86_64.ads: Likewise.
10628 * system-tru64.ads: Likewise.
10629 * system-vms-ia64.ads: Likewise.
10630 * system-vms-zcx.ads: Likewise.
10631 * system-vms.ads: Likewise.
10632 * system-vms_64.ads: Likewise.
10633 * system-vxworks-arm.ads: Likewise.
10634 * system-vxworks-m68k.ads: Likewise.
10635 * system-vxworks-mips.ads: Likewise.
10636 * system-vxworks-ppc.ads: Likewise.
10637 * system-vxworks-sparcv9.ads: Likewise.
10638 * system-vxworks-x86.ads: Likewise.
10639 * system.ads: Likewise.
10640 * table.adb: Likewise.
10641 * table.ads: Likewise.
10642 * targext.c: Likewise.
10643 * targparm.ads: Likewise.
10644 * tree_in.adb: Likewise.
10645 * tree_in.ads: Likewise.
10646 * tree_io.adb: Likewise.
10647 * tree_io.ads: Likewise.
10648 * types.adb: Likewise.
10649 * types.ads: Likewise.
10650 * uintp.adb: Likewise.
10651 * uintp.ads: Likewise.
10652 * uname.adb: Likewise.
10653 * uname.ads: Likewise.
10654 * urealp.adb: Likewise.
10655 * urealp.ads: Likewise.
10656 * vx_stack_info.c: Likewise.
10657 * widechar.adb: Likewise.
10658 * widechar.ads: Likewise.
10659 * exp_attr.adb: Change copyright header to refer to version
10660 3 of the GNU General Public License and to point readers at the
10661 COPYING3 file and the FSF's license web page.
10662 * sem.adb: Likewise.
10663 * sem_attr.ads: Likewise.
10664 * freeze.adb: Likewise.
10665 * freeze.ads: Likewise.
10666 * errout.ads: Likewise.
10667 * erroutc.adb: Likewise.
10668 * exp_ch11.ads: Likewise.
10670 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10672 * config-lang.in: Change copyright header to refer to version
10673 3 of the GNU General Public License and to point readers at the
10674 COPYING3 file and the FSF's license web page.
10675 * gcc-interface/trans.c: Likewise.
10676 * gnathtml.pl: Likewise.
10677 * gcc-interface/ada.h: Likewise. Remove runtime exception.
10678 * gcc-interface/gigi.h: Likewise.
10679 * gcc-interface/misc.c: Likewise.
10680 * gcc-interface/targtyps.c: Likewise.
10682 2009-04-09 Nicolas Setton <setton@adacore.com>
10684 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
10686 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
10689 2009-04-09 Bob Duff <duff@adacore.com>
10691 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
10692 internally-generated nodes related to select statements to avoid
10693 confusing the debugger.
10695 2009-04-09 Pascal Obry <obry@adacore.com>
10697 * make.adb: Ensure that all linker arguments are duplicated.
10699 2009-04-09 Robert Dewar <dewar@adacore.com>
10701 * sem_ch5.adb: Minor reformatting
10703 2009-04-09 Vincent Celier <celier@adacore.com>
10706 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
10707 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
10708 New qualifier /LXDEBUG=nnn for -gnatDnnn
10712 Update documentation for VMS qualifiers equivalent to -gnatGnn and
10715 2009-04-09 Nicolas Setton <setton@adacore.com>
10717 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
10718 to match layout of siginfo_t in sys/signal.h.
10720 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
10722 2009-04-09 Thomas Quinot <quinot@adacore.com>
10724 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
10726 2009-04-09 Nicolas Setton <setton@adacore.com>
10728 * s-oscons-tmplt.c: Allow long lines in the generated spec.
10729 Add generation of Darwin-specific constants needed when binding to the
10732 2009-04-09 Robert Dewar <dewar@adacore.com>
10735 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
10736 when no invalid values exist, Avoid duplicate read of atomic variable.
10738 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
10739 (Standard_Unsigned): Set Is_Known_Valid
10741 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
10742 subtype declaration if no constraint.
10743 (Set_Modular_Size): Set Is_Known_Valid if appropriate
10744 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
10746 2009-04-09 Robert Dewar <dewar@adacore.com>
10748 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
10749 switch.ads: for numeric switches, an optional equal sign is always
10752 2009-04-09 Vincent Celier <celier@adacore.com>
10754 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
10755 the case of file names is not significant.
10757 2009-04-09 Vincent Celier <celier@adacore.com>
10759 * errout.adb: Remove dependency on package Style
10761 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
10764 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
10767 * errutil.adb, par.adb: Import Stylesw
10769 2009-04-09 Arnaud Charlet <charlet@adacore.com>
10771 * opt.ads: Fix typos.
10773 2009-04-09 Robert Dewar <dewar@adacore.com>
10775 * einfo.adb: Minor reformatting
10777 2009-04-09 Robert Dewar <dewar@adacore.com>
10779 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
10782 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
10784 2009-04-09 Robert Dewar <dewar@adacore.com>
10786 * g-comver.adb: Minor reformatting.
10788 2009-04-09 Thomas Quinot <quinot@adacore.com>
10790 * lib-load.ads (Load_Unit): Update documentation.
10792 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10794 * lib-load.adb (Load_Unit): When loading the parent of a child unit
10795 named in a with_clause, retain the with_clause to preserve a
10796 limited_with indication.
10798 2009-04-09 Robert Dewar <dewar@adacore.com>
10800 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
10801 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
10802 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
10803 possible to replace an OR of two separate tests.
10805 2009-04-09 Robert Dewar <dewar@adacore.com>
10807 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
10810 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
10811 warning status as well.
10813 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
10815 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
10818 * bindusg.adb, usage.adb: Update line for -gnatm switch
10820 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
10821 -mnn binder switch.
10823 2009-04-09 Robert Dewar <dewar@adacore.com>
10825 * sem_ch10.adb: Minor reformatting.
10827 2009-04-09 Bob Duff <duff@adacore.com>
10829 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
10830 Set Sloc of generated nodes for calls to Undefer_Aborts and
10831 Save_Occurrence to No_Location, so the debugger ignores them and
10832 therefore does not jump back and forth when single stepping.
10834 2009-04-09 Robert Dewar <dewar@adacore.com>
10836 * switch-b.adb: Minor reformatting.
10838 2009-04-09 Robert Dewar <dewar@adacore.com>
10840 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
10841 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
10842 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
10843 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
10844 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
10845 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
10846 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
10847 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
10848 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
10849 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
10850 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
10852 2009-04-09 Robert Dewar <dewar@adacore.com>
10854 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
10856 * atree.h: Add Elist26
10858 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
10861 2009-04-09 Javier Miranda <miranda@adacore.com>
10863 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
10864 retrieve from the Dispatch_Table_Wrappers list the external name.
10865 Addition of documentation.
10866 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
10867 used to export secondary dispatch tables (in the previous version of
10868 the frontend only primary dispatch tables were exported). Addition of
10870 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
10871 dispatch table of a given tagged type.
10872 (Make_Tags): Modified to import secondary dispatch tables.
10874 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
10875 (Constant_Redeclaration): Code cleanup.
10877 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
10878 Dispatch_Table_Wrappers. Update documentation.
10880 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
10881 Renamed to Dispatch_Table_Wrappers.
10883 * sem_util.adb (Collect_Interface_Components): Improve handling of
10886 * atree.ads (Elist26, Set_Elist26): New subprograms
10888 * atree.adb (Elist26, Set_Elist26): New subprograms
10890 2009-04-09 Javier Miranda <miranda@adacore.com>
10892 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
10893 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
10896 2009-04-09 Robert Dewar <dewar@adacore.com>
10898 * s-direio.adb: Minor reformatting
10900 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
10902 2009-04-09 Robert Dewar <dewar@adacore.com>
10904 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
10906 2009-04-09 Pascal Obry <obry@adacore.com>
10908 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
10909 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
10910 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
10911 a-filico.ads: Add some missing overriding keywords.
10913 2009-04-09 Pascal Obry <obry@adacore.com>
10915 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
10916 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
10917 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
10920 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10922 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
10923 missing overriding indicator if the new declaration is not seen as
10926 2009-04-09 Thomas Quinot <quinot@adacore.com>
10928 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
10929 overflows in computation of bounds.
10931 2009-04-09 Pascal Obry <obry@adacore.com>
10933 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
10936 2009-04-09 Robert Dewar <dewar@adacore.com>
10938 * sem_attr.adb (Check_Stream_Attribute): Check violation of
10939 restriction No_Streams
10941 * gnat_rm.texi: Clarify No_Streams restriction
10943 * g-socket.adb: Minor reformatting.
10945 2009-04-09 Thomas Quinot <quinot@adacore.com>
10947 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
10949 2009-04-09 Geert Bosch <bosch@adacore.com>
10951 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
10952 (Set_Result): Likewise.
10953 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
10954 conversion, as required by RM 4.6(31).
10956 2009-04-08 Robert Dewar <dewar@adacore.com>
10958 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
10961 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
10964 2009-04-08 Robert Dewar <dewar@adacore.com>
10966 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
10967 No_Local_Allocators restriction preventing local instantiation.
10969 2009-04-08 Thomas Quinot <quinot@adacore.com>
10971 * sem_eval.adb: Minor comment fix
10973 2009-04-08 Thomas Quinot <quinot@adacore.com>
10975 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
10976 New limited controlled type used to automate the initialization and
10977 finalization of the sockets implementation.
10978 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
10980 2009-04-08 Vincent Celier <celier@adacore.com>
10982 * prj-attr.adb: New read-only project-level attribute Project_Dir
10984 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
10985 read-only attribute of the same name.
10986 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
10987 (Recursive_Process): Ditto
10989 * snames.adb: Add new standard name Project_Dir
10991 * snames.ads: Add new standard name Project_Dir
10993 2009-04-08 Thomas Quinot <quinot@adacore.com>
10995 * checks.adb: Minor reformatting
10997 2009-04-08 Vincent Celier <celier@adacore.com>
10999 * vms_data.ads: Add documentation for new style keyword
11000 OVERRIDING_INDICATORS
11002 2009-04-08 Robert Dewar <dewar@adacore.com>
11004 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
11005 spec is in the current unit.
11007 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11009 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
11010 presence of entity.
11012 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
11014 2009-04-08 Vincent Celier <celier@adacore.com>
11016 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
11018 2009-04-08 Thomas Quinot <quinot@adacore.com>
11020 * checks.ads: Minor reformatting
11022 2009-04-08 Robert Dewar <dewar@adacore.com>
11024 * gnat_rm.texi: Update documentation of pragma Obsolescent
11026 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
11027 be omitted, and allow Entity parameter to be omitted.
11029 2009-04-08 Thomas Quinot <quinot@adacore.com>
11031 * exp_util.adb: Minor comment fix
11033 2009-04-08 Robert Dewar <dewar@adacore.com>
11035 * g-socket.ads: Fix bad syntax in pragma Obsolescent
11037 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
11038 argument with no identifier following one that has an identifier. Was
11039 missed in some cases.
11041 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
11043 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
11045 * snames.adb: Add Name_Policy
11047 * snames.ads: Add Name_Policy
11049 2009-04-08 Robert Dewar <dewar@adacore.com>
11051 * gnat_rm.texi: Minor reformatting
11053 * par-ch2.adb: Minor reformatting
11055 2009-04-08 Robert Dewar <dewar@adacore.com>
11057 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
11059 2009-04-08 Robert Dewar <dewar@adacore.com>
11061 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
11062 properly in the presence of Remote_Types or Remote_Call_Interface.
11064 * sem_util.adb: Add comment.
11066 2009-04-08 Robert Dewar <dewar@adacore.com>
11068 * ug_words: Add /ASSUME_VALID for -gnatB
11070 * vms_data.ads: Add /ASSUME_VALID for -gnatB
11072 * sem_cat.adb: Add clarifying commment
11074 * a-direio.ads (Bytes): Make sure value is non-zero
11076 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11078 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
11079 that does not come from source, check for a rewritten function call in
11080 prefixed notation before other forms of rewriting.
11082 2009-04-08 Robert Dewar <dewar@adacore.com>
11084 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
11085 these are now obsolescent units used only for bootrapping with an
11088 2009-04-08 Robert Dewar <dewar@adacore.com>
11090 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
11092 * sem_ch3.adb: Minor comment updates
11094 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11096 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
11097 that come from source.
11099 2009-04-08 Tristan Gingold <gingold@adacore.com>
11101 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
11102 * gcc-interface/decl.c (prepend_attributes): New case
11103 Pragma_Thread_Local_Storage.
11104 * gcc-interface/utils.c (process_attributes): New case
11105 ATTR_THREAD_LOCAL_STORAGE.
11107 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11109 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
11110 by the back-end if it contains a call to a subprogram without a
11111 previous spec that is declared in the same unit.
11113 * errout.ads: Update comments on uses of dirs
11115 2009-04-08 Robert Dewar <dewar@adacore.com>
11117 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
11119 2009-04-08 Tristan Gingold <gingold@adacore.com>
11121 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
11123 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
11125 2009-04-08 Vincent Celier <celier@adacore.com>
11128 (Add_Source): Add the mapping of the unit name to source file name in
11129 the Unit_Sources_HT hash table, if the unit name is not null.
11131 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
11133 * prj.ads (Unit_Sources_Htable): New hash table instantiation
11134 (Project_Tree_Data): New component Unit_Sources_HT
11136 2009-04-08 Thomas Quinot <quinot@adacore.com>
11138 * sem_ch8.adb: Minor reformatting.
11139 Minor code reorganization.
11141 2009-04-08 Robert Dewar <dewar@adacore.com>
11143 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
11144 snames.ads, freeze.adb, par-prag.adb: Add implementation of
11145 pragma Thread_Local_Storage, setting new flag
11146 Has_Pragma_Thread_Local_Storage in corresponding entities.
11148 2009-04-08 Emmanuel Briot <briot@adacore.com>
11150 * prj.ads: Update comment on switches file
11152 * prj-nmsc.adb: Code clean up. Use renaming clauses.
11154 2009-04-08 Robert Dewar <dewar@adacore.com>
11156 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
11158 2009-04-08 Thomas Quinot <quinot@adacore.com>
11160 * ali-util.adb: Minor comment fix
11162 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11164 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
11165 appears in a context clause, and the enclosing package is mentioned in
11166 a limited_with_clause.
11167 (Use_One_Type): Reject clause if type is still incomplete.
11169 2009-04-08 Emmanuel Briot <briot@adacore.com>
11171 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
11172 avoid copies of Source_Data variables when possible, since these
11173 involve calls to memcpy() which are done too many times.
11175 2009-04-08 Robert Dewar <dewar@adacore.com>
11177 * exp_ch4.adb (Expand_Concatenate): Clean up code
11179 2009-04-07 Thomas Quinot <quinot@adacore.com>
11181 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
11182 type for the case of concatenating a constrained array indexed by an
11185 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11187 * sem_ch6.adb (Check_Conformance): when checking conformance of an
11188 operation that overrides an abstract operation inherited from an
11189 interface, return False if only one of the controlling formals is an
11192 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11194 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
11195 mandated by AI05-105.
11197 2009-04-07 Vincent Celier <celier@adacore.com>
11199 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
11201 2009-04-07 Thomas Quinot <quinot@adacore.com>
11203 * usage.adb: Minor fix in usage message.
11205 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
11206 match declaration; the correct subtype is Node_Id, not Entity_Id,
11207 because the expected node kind is an identifier, not a defining
11210 * switch-c.adb: Minor reformatting.
11212 * uintp.adb: Minor reformatting.
11214 2009-04-07 Robert Dewar <dewar@adacore.com>
11216 * exp_ch13.adb: Minor reformatting
11218 2009-04-07 Robert Dewar <dewar@adacore.com>
11220 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
11221 against missing parent.
11223 2009-04-07 Thomas Quinot <quinot@adacore.com>
11225 * xoscons.adb: Minor reformatting
11227 2009-04-07 Robert Dewar <dewar@adacore.com>
11229 * rtsfind.ads: Remove obsolete string concatenation entries
11231 2009-04-07 Robert Dewar <dewar@adacore.com>
11233 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
11235 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11237 * sem_ch10.adb (Check_Body_Required): Handle properly imported
11240 2009-04-07 Gary Dismukes <dismukes@adacore.com>
11242 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
11243 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
11244 is of a scalar or string type then suppress the setting of the
11245 expression to Empty.
11247 * freeze.adb (Warn_Overlay): Also emit the warnings about default
11248 initialization for the cases of scalar and string objects when
11249 Init_Or_Norm_Scalars is True.
11251 2009-04-07 Bob Duff <duff@adacore.com>
11253 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
11255 2009-04-07 Bob Duff <duff@adacore.com>
11257 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
11258 Form parameter of Text_Translation=No allows binary mode for Text_IO
11261 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
11263 2009-04-07 Javier Miranda <miranda@adacore.com>
11265 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
11266 processing the bounds for bit packed arrays or VM target machines.
11268 2009-04-07 Thomas Quinot <quinot@adacore.com>
11270 * g-sothco.ads (Int_Access): Remove extraneous access type (use
11271 anonymous access instead).
11272 (Get_Socket_From_Set): Fix incorrectly reverted formals
11273 Last and Socket to match the underlying C routine.
11275 * g-socket.adb, g-socket.ads
11276 (Get): Use named parameter associations instead of positional ones in
11277 call go Get_Socket_From_Set, since this routine has two formals of the
11279 (Image): New procedure.
11281 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11282 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
11283 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
11284 for type of Arg formal.
11286 * sem_warn.adb: Minor reformatting
11288 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11290 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
11291 over record components.
11293 2009-04-07 Nicolas Roche <roche@adacore.com>
11296 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
11297 has disappeared between VxWorks 6.4 and VxWorks 6.5
11298 In RTP mode use time.h instead of times.h
11300 2009-04-07 Robert Dewar <dewar@adacore.com>
11302 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
11304 2009-04-07 Kevin Pouget <pouget@adacore.com>
11306 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
11307 expanded code for constrained types.
11309 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11311 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
11312 AI05-105: in an object renaming declaration, anonymousness is a name
11315 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
11317 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11319 * g-comlin.adb (Expansion): Fix old regression: also return directory
11320 names when matching.
11322 2009-04-07 Robert Dewar <dewar@adacore.com>
11325 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
11326 (Expand_Concatenate): New name for Expand_Concatenate_String which has
11327 been rewritten to handle all types.
11328 (Expand_Concatenate_Other): Remove
11330 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11332 * lib-xref.adb (Generate_Reference): A default subprogram in an
11333 instance appears within the tree for the instance, but generates an
11334 implicit reference in the ALI.
11336 2009-04-07 Javier Miranda <miranda@adacore.com>
11338 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
11339 derived type that has discriminants, propagate the list of interfaces
11340 to the corresponding new base type. In addition, propagate also
11341 attribute Limited_Present (found working in this patch).
11343 2009-04-07 Robert Dewar <dewar@adacore.com>
11345 * exp_ch4.adb: Rewrite concatenation expansion.
11347 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11349 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
11350 relevant to packages.
11352 2009-04-07 Robert Dewar <dewar@adacore.com>
11354 * sem_attr.adb: Minor reformatting
11356 * sem_ch6.adb: Minor reformatting
11358 2009-04-07 Tristan Gingold <gingold@adacore.com>
11360 * socket.c: Add more protections against S_resolvLib_ macros.
11362 2009-04-07 Thomas Quinot <quinot@adacore.com>
11364 * sem_attr.adb: Minor reformatting
11366 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11368 * sem_ch6.adb (New_Overloaded_Entity): New predicate
11369 Is_Overriding_Alias to handle properly types that inherit two homonym
11370 operations that have distinct dispatch table entries.
11372 2009-04-07 Emmanuel Briot <briot@adacore.com>
11374 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
11375 looking for the end of a parenthesis group
11377 2009-04-07 Tristan Gingold <gingold@adacore.com>
11379 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
11381 * socket.c Don't use resolvLib_ macros if not defined.
11383 2009-04-07 Robert Dewar <dewar@adacore.com>
11385 * g-socket.adb: Minor reformatting.
11387 * g-socthi-mingw.adb: Minor reformatting
11389 * g-sothco.ads: Minor reformatting
11392 (Expand_Concatenate_String): Complete rewrite to generate efficient code
11393 inline instead of relying on external library routines.
11395 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
11396 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
11399 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11402 (Eval_Attribute): for attributes of array objects that are not strings,
11403 attributes are not static if nominal subtype of object is unconstrained.
11405 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11407 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
11408 operations for a type T in an instance do not override each other,
11409 when T is derived from a formal private type, the corresponding
11410 operations inherited by a type derived from T outside
11411 of the instance do not override each other either.
11413 2009-04-07 Robert Dewar <dewar@adacore.com>
11415 (Osint.Fail): Change calling sequence to have one string arg
11416 (Make.Make_Failed): Same change
11417 All callers are adjusted to use concatenation
11419 2009-04-07 Robert Dewar <dewar@adacore.com>
11421 * exp_ch4.adb: Fix documentation typo
11423 2009-04-07 Robert Dewar <dewar@adacore.com>
11425 * tbuild.ads: Minor reformatting
11427 2009-04-07 Javier Miranda <miranda@adacore.com>
11429 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
11430 when compiling under ZFP runtime.
11432 2009-04-07 Robert Dewar <dewar@adacore.com>
11434 * g-comlin.adb: Minor reformatting
11436 2009-04-07 Thomas Quinot <quinot@adacore.com>
11438 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11439 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
11440 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
11441 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
11443 2009-04-07 Robert Dewar <dewar@adacore.com>
11445 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
11447 * opt.ads (Sprint_Line_Limit): New parameter
11449 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
11451 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
11453 * usage.adb: Output information for -gnatGnn -gnatDnn
11455 2009-04-07 Robert Dewar <dewar@adacore.com>
11457 * make.adb: Minor reformatting
11459 2009-04-07 Robert Dewar <dewar@adacore.com>
11461 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
11463 2009-04-07 Robert Dewar <dewar@adacore.com>
11465 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
11467 2009-04-07 Robert Dewar <dewar@adacore.com>
11470 Remove Assume_Valid parameter from In_Subrange_Of calls
11473 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11474 (Is_In_Range): Remove incorrect use of Assume_Valid
11475 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
11478 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11479 (Is_In_Range): Documentation cleanup
11480 (Is_Out_Of_Range): Documentation cleanup
11483 Add documentation for Assume_No_Invalid_Values pragma
11485 * sem_ch12.adb: Minor reformatting
11487 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
11489 * sem_prag.adb: Improve error message.
11491 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
11492 LF/CR no longer recognized as line terminator
11494 * switch.ads: Minor documentation improvement
11496 * vms_data.ads: Minor reformatting
11498 2009-04-07 Robert Dewar <dewar@adacore.com>
11500 * checks.adb (Determine_Range): Add Assume_Valid parameter
11502 * checks.ads (Determine_Range): Add Assume_Valid parameter
11504 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
11505 Is_Null_Loop to suppress warnings in a loop body.
11508 (Rewrite_Comparison): Major rewrite to accomodate invalid values
11511 (Expand_N_Loop_Statement): Delete loop known not to execute
11514 (Assume_No_Invalid_Values): Now set to False, and as documented, this
11515 fully enables the proper handling of invalid values.
11518 New calling sequence for Is_In_Range
11521 (Analyze_Iteration_Scheme): Accomodate possible invalid values
11522 in determining if a loop range is null.
11525 (Is_In_Range): Add Assume_Valid parameter
11526 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11527 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
11528 also to do more accurate and complete range analysis, catching more
11532 (Is_In_Range): Add Assume_Valid parameter
11533 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11536 New calling sequence for Is_In_Range
11539 (Suppress_Loop_Warnings): New flag
11542 (Is_Null_Loop): Update documentation
11543 (Suppress_Loop_Warnings): New flag
11545 * gnat_ugn.texi: Document -gnatB switch
11547 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11549 * gnatvsn.ads: Bump version number.
11551 2009-04-07 Thomas Quinot <quinot@adacore.com>
11553 * exp_ch3.adb: Minor rewording (comments)
11555 2009-04-07 Robert Dewar <dewar@adacore.com>
11557 * exp_disp.adb: Minor reformatting
11559 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11561 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
11563 * gcc-interface/trans.c (lvalue_required_p): Likewise.
11565 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11567 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
11568 Do not convert the result. Remove obsolete comment.
11570 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11572 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
11574 (Subprogram_Body_to_gnu): Fix pasto.
11576 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11578 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
11579 (void_type_decl_node): Remove.
11580 (init_gigi_decls): Likewise.
11581 (gnat_install_builtins): Declare.
11582 (record_builtin_type): Likewise.
11583 (create_type_stub_decl): Likewise.
11584 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
11585 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
11587 <E_Array_Subtype>: Use the index types, not only their name, in the
11588 record giving the names of the bounds, if any.
11589 For a packed array type, make it artificial only if the base type
11590 was artificial as well. Remove redundant statement.
11591 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
11593 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
11594 (rest_of_type_decl_compilation_no_defer): Likewise.
11595 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
11596 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
11597 and use create_type_stub_decl to build it.
11598 (gnat_pushdecl): Rewrite condition.
11599 (gnat_install_builtins): Remove bogus declaration.
11600 (record_builtin_type): New function.
11601 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
11603 (create_type_stub_decl): New function.
11604 (create_type_decl): Assert that the type is not dummy. If the type
11605 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
11606 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
11607 (build_vms_descriptor): Likewise.
11608 (init_gigi_decls): Delete and move bulk of code to...
11609 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
11610 (emit_range_check): Add gnat_node parameter.
11611 (emit_index_check): Likewise.
11612 (emit_check): Likewise.
11613 (build_unary_op_trapv): Likewise.
11614 (build_binary_op_trapv): Likewise.
11615 (convert_with_check): Likewise.
11616 (Attribute_to_gnu): Adjust calls for above changes.
11617 (call_to_gnu): Likewise.
11618 (gnat_to_gnu): Likewise.
11619 (assoc_to_constructor): Likewise.
11620 (pos_to_constructor): Likewise.
11621 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
11622 (process_type): Do not create TYPE_DECL for dummy types.
11624 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11626 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
11627 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
11628 * gcc-interface/utils.c: Fix comments.
11630 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11632 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
11634 (gnat_to_gnu_type): Move around.
11635 (get_unpadded_type): Likewise.
11636 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
11639 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11641 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
11642 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
11643 (call_to_gnu): Invoke it instead of manually checking.
11645 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
11647 * gcc-interface/utils.c (finish_record_type): Force structural equality
11648 checks if the record type is discriminated.
11650 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
11652 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
11653 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
11654 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
11655 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
11656 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
11657 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
11658 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
11660 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
11662 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
11663 of TREE_CONSTANT_OVERFLOW.
11665 2009-03-30 Joseph Myers <joseph@codesourcery.com>
11667 PR rtl-optimization/323
11668 * gcc-interface/misc.c (gnat_post_options): Set
11669 flag_excess_precision_cmdline. Give an error for
11670 -fexcess-precision=standard for processors where the option is
11673 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11676 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
11679 2009-03-11 Olivier Hainque <hainque@adacore.com>
11681 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
11682 checks processing, remove unintended TREE_TYPE walk on index type.
11684 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
11687 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
11688 call make_packable_type on fat pointer types.
11689 <E_Array_Subtype>: Likewise.
11690 <E_Record_Subtype>: Call make_packable_type on all record types
11691 except for fat pointer types.
11692 (make_packable_type): Likewise.
11693 (gnat_to_gnu_field): Likewise.
11695 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
11697 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
11698 EH_MECHANISM change made on 2007-12-06.
11700 2009-02-26 Andreas Schwab <schwab@suse.de>
11703 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
11704 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
11705 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
11707 (target_cpu_default): Substitute.
11709 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11712 * a-teioed.adb (Expand): Fix Result overflow.
11714 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11716 * gcc-interface/Makefile.in: Fix multilib handling for
11719 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11721 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
11723 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
11725 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
11727 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
11729 * gcc-interface/deftarg.c: Remove.
11731 2009-02-10 Olivier Hainque <hainque@adacore.com>
11732 Eric Botcazou <ebotcazou@adacore.com>
11734 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
11735 (copy_alias_set): Rename into...
11736 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
11737 underlying array of unconstrained arrays for the new type as well.
11738 If the old and new alias sets don't conflict, make one a subset of
11739 the other as per the OP parameter.
11740 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
11741 <E_Record_Type>: Do not copy the alias set for derived types.
11742 For all types, make the alias set of derived types a superset of
11743 that of their parent type.
11744 (make_aligning_type): Adjust calls to copy_alias_set.
11745 (make_packable_type): Likewise.
11746 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
11747 Check for alias set conflict instead of strict equality to issue the
11750 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
11752 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11753 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
11754 (copy_alias_set): Assert that arrays have the same aliasing settings.
11755 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
11757 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
11759 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11760 Set TYPE_NONALIASED_COMPONENT on the array type.
11762 2009-01-31 Laurent GUERBY <laurent@guerby.net>
11764 * gcc-interface/Makefile.in: Fix mipsel linux handling.
11766 2009-01-16 Jakub Jelinek <jakub@redhat.com>
11768 * gcc-interface/Makefile.in: Fix multilib handling for
11771 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
11773 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
11774 only useless conversions around renamed objects.
11776 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
11778 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
11779 the _Tag field before any discriminants in the field list.
11780 (components_to_record): Remove obsolete comment.
11784 Copyright (C) 2009 Free Software Foundation, Inc.
11786 Copying and distribution of this file, with or without modification,
11787 are permitted in any medium without royalty provided the copyright
11788 notice and this notice are preserved.