1 2009-11-30 Thomas Quinot <quinot@adacore.com>
3 * s-crtl.ads, s-oscons-tmplt.c: Fix support for VMS
4 * make.adb, g-comlin.ads, exp_ch6.adb: Minor reformatting
6 2009-11-30 Robert Dewar <dewar@adacore.com>
8 * bcheck.adb, gnatlink.adb, make.adb, makeutl.adb, osint.adb,
9 osint.ads, prj-ext.adb, sem_case.adb: Minor reformatting
10 * g-alleve.adb: Minor code reorganization (use conditional expressions)
12 2009-11-30 Matthew Heaney <heaney@adacore.com>
14 * a-crbtgo.adb (Delete_Fixup): Changed always-true predicates to
17 2009-11-30 Thomas Quinot <quinot@adacore.com>
19 * a-tasatt.adb, s-crtl.ads, s-taprop-dummy.adb (System.CRTL.malloc32,
20 System.CRTL.realloc32): Remove VMS-specific routines.
21 (Ada.Task_Attributes.Reference): Remove unreachable code.
22 (System.Task_Primitives.Operations.Initialize, dummy version):
23 Use plain Program_Error rather than call to
24 System.Error_Reporting.Shutdown.
26 2009-11-30 Thomas Quinot <quinot@adacore.com>
28 * s-oscons-tmplt.c, xoscons.adb: Add new constants in preparation for
29 sharing s-crtl across all platforms.
31 2009-11-30 Thomas Quinot <quinot@adacore.com>
33 * s-commun.adb, s-commun.ads: New internal support unit,
34 allowing code sharing between GNAT.Sockets and
35 GNAT.Serial_Communication.
36 * g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb,
37 g-socket.adb (GNAT.Sockets.Last_Index): Move to System.Communication.
38 (GNAT.Serial_Communication.Read): Handle correctly the case where no
39 data was read, and Buffer'First = Stream_Element_Offset'First.
40 * Makefile.rtl: Add entry for s-commun
41 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
42 g-socthi-vxworks.ads, g-stseme.adb, g-socthi-mingw.ads,
43 g-socthi.adb, g-socthi.ads (GNAT.Sockets.Thin.Socket_Error_Message):
44 Reimplement in terms of System.CRTL.strerror.
46 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
48 * gcc-interface/utils.c (copy_type): Unshare the language-specific data
49 and the contents of the language-specific slot if needed.
51 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
53 * gcc-interface/trans.c (gnat_to_gnu) <N_In>: Set the source location
54 of the operator on both branches of the test in the generic case.
56 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
58 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): Rename into...
59 (unchecked_conversion_nop): ...this. Handle actual parameters.
60 (gnat_to_gnu): Adjust for above renaming.
62 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
64 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
65 Translate regular boolean types into BOOLEAN_TYPEs.
67 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
69 * sem_util.adb (Set_Debug_Info_Needed): For an E_Class_Wide_Subtype,
70 also set the flag on the Equivalent_Type.
71 * gcc-interface/utils.c (finish_record_type): Replace DO_NOT_FINALIZE
72 parameter with DEBUG_INFO_P. Rename FIELDLIST into FIELD_LIST.
73 (rest_of_record_type_compilation): Rename FIELDLIST into FIELD_LIST.
74 (build_vms_descriptor32): Adjust call to finish_record_type.
75 (build_vms_descriptor): Likewise.
76 (build_unc_object_type): Likewise.
77 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust calls to
78 finish_record_type and components_to_record.
79 (make_packable_type): Adjust call to finish_record_type.
80 (maybe_pad_type): Likewise. Tweak condition.
81 (components_to_record): Likewise. Replace DO_NOT_FINALIZE parameter
82 with MAYBE_UNUSED. Adjust recursive call.
83 (create_variant_part_from): Adjust call to finish_record_type. Do not
84 call rest_of_record_type_compilation on the new record types.
85 * gcc-interface/trans.c (gigi): Adjust call to finish_record_type.
86 * gcc-interface/gigi.h (finish_record_type): Adjust prototype and
88 (rest_of_record_type_compilation): Adjust comment.
90 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
92 * exp_util.adb (Make_CW_Equivalent_Type): Do not mark the type as
93 frozen for targets that do not require front-end layout.
94 (New_Class_Wide_Subtype): Always reset the freezing status to False.
95 * exp_ch8.adb: Do not 'with' Targparm.
96 (Expand_N_Object_Renaming_Declaration): Always freeze a class-wide
97 subtype that has been built from the expression.
98 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
99 class wide, freeze the implicit type that has been built from the
100 expression at the dereference point.
101 * freeze.adb (Freeze_Entity): Adjust comment.
102 * gcc-interface/decl.c (Gigi_Equivalent_Type) <E_Class_Wide_Type>:
104 * gcc-interface/trans.c (process_freeze_entity): Do not special-case
107 * s-osinte-aix.adb (clock_gettime): Fix comment.
108 * s-osinte-darwin.adb (clock_gettime): Likewise.
110 2009-11-23 Eric Botcazou <ebotcazou@adacore.com>
112 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Pass the list
113 of attributes when building the corresponding variable of a constant.
114 * gcc-interface/utils.c (create_var_decl_1): Do not process attributes
117 2009-11-23 Laurent GUERBY <laurent@guerby.net>
118 Eric Botcazou <ebotcazou@adacore.com>
121 * s-osinte-linux.ads (struct_timeval): Delete.
122 * s-osinte-hpux.ads (struct_timeval, To_Duration, To_Timeval): Delete.
123 * s-osinte-kfreebsd-gnu.ads: Likewise.
124 * s-osinte-rtems.ads: Likewise.
125 * s-osinte-aix.ads: Likewise.
126 * s-osinte-hpux-dce.ads: Likewise.
127 * s-osinte-darwin.ads: Likewise.
128 * s-osinte-solaris-posix.ads: Likewise.
129 * s-osinte-irix.ads: Likewise.
130 * s-osinte-solaris.ads: Likewise.
131 * s-osinte-hpux-dce.adb (To_Duration, To_Timeval): Delete.
132 * s-osinte-irix.adb: Likewise.
133 * s-osinte-solaris.adb: Likewise.
134 * s-osinte-rtems.adb: Likewise. Minor reformatting.
135 * s-osinte-aix.adb (To_Duration, To_Timeval): Delete.
136 (clock_gettime): Use cal.c's timeval_to_duration.
137 * s-osinte-darwin.adb: Likewise.
139 2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
141 * adaint.h: Assume large file support on IRIX only if _LFAPI.
143 2009-11-21 Laurent GUERBY <laurent@guerby.net>
144 Eric Botcazou <ebotcazou@adacore.com>
146 * s-osinte-linux.ads (struct_timeval, To_Duration, To_Timeval,
147 gettimeofday): Delete.
148 * s-osinte-posix.adb (To_Duration, To_Timeval): Delete.
149 * s-osprim-posix.adb (struct_timezone, struct_timeval, gettimeofday):
151 (Clock): Use cal.c's timeval_to_duration.
152 * s-taprop-linux.adb (Monotonic_Clock): Likewise.
154 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
155 Laurent GUERBY <laurent@guerby.net>
157 * init.c (GNU/Linux Section): Enable for all architectures.
159 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
162 * system-linux-alpha.ads (Stack_Check_Probes): Set to true.
163 * system-linux-hppa.ads (Stack_Check_Probes): Likewise.
164 * system-linux-sparc.ads (Stack_Check_Probes): Likewise.
165 * system-linux-sparcv9.ads (Stack_Check_Probes): Likewise.
167 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
169 * system-linux-alpha.ads (AAMP, Compiler_System_Version, OpenVMS,
170 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
172 (Stack_Check_Limits, Always_Compatible_Rep): New.
173 * system-linux-mips.ads (AAMP, Compiler_System_Version, OpenVMS,
174 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
176 (Stack_Check_Limits, Always_Compatible_Rep): New.
177 * system-linux-mips64el.ads (AAMP, Compiler_System_Version, OpenVMS,
178 Functions_Return_By_DSP, Front_End_ZCX_Support, High_Integrity_Mode,
179 Long_Shifts_Inlined): Delete.
180 (Stack_Check_Limits, Always_Compatible_Rep): New.
181 * system-linux-mipsel.ads (AAMP, Compiler_System_Version, OpenVMS,
182 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
184 (Stack_Check_Limits, Always_Compatible_Rep): New.
185 * system-linux-s390.ads (AAMP, Compiler_System_Version, OpenVMS,
186 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
188 (Stack_Check_Limits, Always_Compatible_Rep): New.
189 * system-linux-s390x.ads (AAMP, Compiler_System_Version, OpenVMS,
190 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
192 (Stack_Check_Limits, Always_Compatible_Rep): New.
193 * system-linux-sh4.ads (Stack_Check_Limits, Always_Compatible_Rep):
195 * system-linux-sparc.ads (AAMP, Compiler_System_Version, OpenVMS,
196 Front_End_ZCX_Support): Delete.
197 (Stack_Check_Limits, Always_Compatible_Rep): New.
198 * system-linux-sparcv9.ads (AAMP, Compiler_System_Version, OpenVMS,
199 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
201 (Stack_Check_Limits, Always_Compatible_Rep): New.
202 * system-rtems.ads (OpenVMS): Delete.
203 (Stack_Check_Limits, Always_Compatible_Rep): New.
205 2009-11-08 Eric Botcazou <ebotcazou@adacore.com>
207 * gcc-interface/decl.c (make_packable_type): Fix oversight.
208 (gnat_to_gnu_field): Do not attempt to change the form of the type
209 if the field requires strict alignment. Always change the form of
210 the type if the specified size is smaller than its size.
212 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
214 * gcc-interface/utils.c (gnat_type_for_mode): Handle vector modes.
216 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
218 * gcc-interface/trans.c (lvalue_required_p) <N_Unchecked_Conversion>:
221 2009-10-30 Eric Botcazou <ebotcazou@adacore.com>
223 * gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete.
224 (create_field_decl): Update description. In a packed record, round
225 the size up to a byte boundary only if the field's type has BLKmode.
226 * gcc-interface/gigi.h (create_field_decl): Update description.
228 2009-10-30 Emmanuel Briot <briot@adacore.com>
230 * make.adb (Start_Compile_If_Possible): Compute location of resulting
231 ALI file in this procedure instead of after the compilation itself,
232 since the current directory might have changed in between when using
235 * osint.ads: Addded missing alignment clause.
237 * adaint.c, adaint.h, osint.adb (__gnat_reset_attributes,
238 __gnat_size_of_file_attributes): Rename reset_attributes and
239 size_of_file_attributes.
241 2009-10-30 Javier Miranda <miranda@adacore.com>
243 * sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences
244 of statements when searching for SCIL nodes.
246 2009-10-30 Tristan Gingold <gingold@adacore.com>
248 * gnatlink.adb, link.c: By default use shared libgcc on darwin.
250 2009-10-30 Emmanuel Briot <briot@adacore.com>
252 * make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is
254 This saves system calls when looking for ALI files
255 (Scan_Make_Args): The parameter to gnatmake's -D is now converted to an
256 absolute PATH (so that the above improvement properly occurs if both
257 -D<dir> and -aO<dir> are specified).
259 2009-10-30 Thomas Quinot <quinot@adacore.com>
261 * a-direct.adb: Minor reformatting
263 2009-10-30 Emmanuel Briot <briot@adacore.com>
265 * make.adb, adaint.c, adaint.h, osint.adb, osint.ads, bcheck.adb
266 (*_attr): new subprograms.
267 (File_Length, File_Time_Stamp, Is_Writable_File): new subprograms
268 (Read_Library_Info_From_Full, Full_Library_Info_Name,
269 Full_Source_Name): Now benefit from a previous cache of the file
270 attributes, to further save on system calls.
271 (Smart_Find_File): now also cache the file attributes. This makes the
272 package File_Stamp_Hash_Table useless, and it was removed.
273 (Compile_Sources): create subprograms for the various steps of the main
274 loop, for readibility and to avoid sharing variables between the
277 2009-10-30 Emmanuel Briot <briot@adacore.com>
279 * make.adb, osint.adb, osint.ads (Library_File_Stamp): Removed, since
281 (Read_Library_Info_From_Full): New subprogram.
283 2009-10-30 Robert Dewar <dewar@adacore.com>
285 * a-tideio.adb: Minor reformatting
286 * a-wtdeio.adb, a-ztdeio.adb: Update comments, code clean up.
288 * a-reatim.adb, a-tideau.adb, a-ngelfu.adb, a-ztdeau.adb, a-ngrear.adb,
289 a-wtedit.adb, a-ststio.adb, a-ztedit.adb: Minor code reorganization
290 (use conditional expressions).
292 2009-10-30 Ed Schonberg <schonberg@adacore.com>
294 * gnat_ugn.texi: Additional info on gnatw.i and gnatw.I
296 * sem_case.adb: Improved error message.
298 2009-10-30 Emmanuel Briot <briot@adacore.com>
300 * a-direct.adb, gnatcmd.adb, gnatname.adb, makeutl.adb, opt.ads,
301 osint.adb, prj-ext.adb, switch-m.adb (Follow_Links_For_Dirs): Now
302 defaults to False, and controlled by -eL.
303 * a-direct.adb: Add comments.
304 * osint.adb (File_Stamp): Avoid unneeded duplicate system call
306 2009-10-30 Robert Dewar <dewar@adacore.com>
308 * sem_res.adb (Resolve_Type_Conversion): Avoid false positive when
309 converting non-static subtype to "identical" static subtype.
311 2009-10-30 Ed Schonberg <schonberg@adacore.com>
313 * usage.adb: Add -gnatw.i switch.
315 2009-10-30 Vincent Celier <celier@adacore.com>
317 * xsnamest.adb: Update comments with regards to the template files
320 2009-10-30 Bob Duff <duff@adacore.com>
322 * s-fileio.adb (Errno_Message): Suppress VMS-specific warning.
324 2009-10-30 Ed Schonberg <schonberg@adacore.com>
326 * sem_case.adb (Check_Choices): Add explanatory message when there are
327 missing alternatives when the required range of alternatives is given
328 by the base type of the case expression or discriminant in a variant
331 * opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially
332 dangerous overlap between actuals in a call, activated by -gnatw.i
333 * sem_warn.adb (Set_Dot_Warning_Switch): set flag.
334 (Warn_On_Overlapping_Actuals): use new flag.
336 * gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals
338 2009-10-30 Robert Dewar <dewar@adacore.com>
340 * exp_aggr.adb, exp_ch9.adb: Minor reformatting
342 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
344 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
345 create integer types with precision 0.
347 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
350 * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
351 parameters and rewrite comments. For a derived type, return the
352 setting of its parent type.
353 (gnat_to_gnu_entity): Do an alias set copy for derived types if they
354 are composite. Adjust calls to above function.
356 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
358 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not
359 return the RM size for padded types.
361 2009-10-28 Robert Dewar <dewar@adacore.com>
363 * sem_type.adb: Minor reformatting
365 2009-10-28 Arnaud Charlet <charlet@adacore.com>
367 * exp_ch9.adb (Build_Task_Proc_Specification): Generate a different
368 suffix for task type bodies.
370 2009-10-28 Ed Schonberg <schonberg@adacore.com>
372 * exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a
373 finalization list if the designated type requires no control actions,
374 to prevent a useless semantic dependence on ada.tags.
376 2009-10-28 Bob Duff <duff@adacore.com>
378 * s-fileio.adb: Give more information in exception messages.
380 2009-10-28 Robert Dewar <dewar@adacore.com>
382 * gnat_ugn.texi: Document new -gnatyt requirement for space after right
383 paren if next token starts with digit or letter.
384 * styleg.adb (Check_Right_Paren): New rule for space after if next
385 character is a letter or digit.
387 2009-10-28 Thomas Quinot <quinot@adacore.com>
389 * s-crtl.ads (System.CRTL.strerror): New function.
391 2009-10-28 Ed Schonberg <schonberg@adacore.com>
393 * sem_type.adb: Add guard to recover some type errors.
395 2009-10-28 Vincent Celier <celier@adacore.com>
397 * prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
398 Add_If_Not_In_List to account to the fact that a directory may be
399 removed from the list. Only remove directory if Removed is True.
401 2009-10-28 Gary Dismukes <dismukes@adacore.com>
403 * a-textio.ads, a-textio.ads: Put back function EOF_Char in private
404 part. Put back body of function EOF_Char.
405 * a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
408 2009-10-28 Emmanuel Briot <briot@adacore.com>
410 * prj-tree.adb (Free): Fix memory leak.
412 2009-10-28 Thomas Quinot <quinot@adacore.com>
414 * s-fileio.adb: Minor reformatting
416 2009-10-28 Arnaud Charlet <charlet@adacore.com>
418 * gcc-interface/Make-lang.in: Update dependencies.
420 2009-10-28 Robert Dewar <dewar@adacore.com>
422 * exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
423 types.ads: Minor reformatting
425 2009-10-28 Tristan Gingold <gingold@adacore.com>
427 * init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
429 2009-10-28 Thomas Quinot <quinot@adacore.com>
431 * exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
432 the operand of the unary minus and ABS operators.
434 * sem_type.adb (Covers): A concurrent type and its corresponding record
436 * exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
437 attribute reference for the current instance of a protected type while
438 analyzing an access discriminant constraint in a component definition.
439 Such a reference is handled in the corresponding record's init proc,
440 while initializing the constrained component.
441 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
442 corresponding record type, propagate components'
443 Has_Per_Object_Constraint flag.
444 * exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
445 For a concurrent type, set up concurrent aspects before initializing
446 components with a per object constrain, because they may be controlled,
447 and their initialization may call entries or protected subprograms of
448 the enclosing concurrent object.
450 2009-10-28 Emmanuel Briot <briot@adacore.com>
452 * prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
454 (Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
455 processing the directories specified explicitly in the project file.
457 2009-10-28 Robert Dewar <dewar@adacore.com>
459 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
460 a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
462 (Initialize_Standard_Files): New procedure.
463 * a-tienau.adb: Minor change to make EOF directly visible
464 * a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
465 a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
466 * gnat_rm.texi: Add documentation for
467 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
468 * Makefile.rtl: Add entries for
469 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
471 2009-10-28 Thomas Quinot <quinot@adacore.com>
473 * exp_ch9.ads: Minor reformatting
474 * sem_ch3.adb: Minor reformatting
475 * sem_aggr.adb: Minor reformatting.
476 * sem_attr.adb: Minor reformatting
477 * tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
479 Minor code reorganization/factoring.
481 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
483 * gcc-interface/decl.c (purpose_member_field): New static function.
484 (annotate_rep): Use it instead of purpose_member.
486 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
488 * raise-gcc (db_region_for): Use _Unwind_GetIPInfo instead of
489 _Unwind_GetIP if HAVE_GETIPINFO is defined.
490 (db_action_for): Likewise.
492 2009-10-27 Robert Dewar <dewar@adacore.com>
494 * s-fileio.adb, s-fileio.ads, sem_util.adb, sem_warn.adb,
495 sem_warn.ads: Minor reformatting
497 2009-10-27 Robert Dewar <dewar@adacore.com>
499 * sem_warn.adb, sem_util.adb, sem_util.ads: Minor reformatting. Add
502 2009-10-27 Robert Dewar <dewar@adacore.com>
504 * s-os_lib.ads, s-os_lib.adb, prj-err.adb, makeutl.adb: Minor
507 2009-10-27 Ed Schonberg <schonberg@adacore.com>
509 * sem.util.ads, sem_util.adb (Denotes_Same_Object,
510 Denotes_Same_Prefix): New functions to detect overlap between actuals
511 that are not by-copy in a call, when one of them is in-out.
512 * sem_warn.ads, sem_warn.adb (Warn_On_Overlapping_Actuals): New
513 procedure, called on a subprogram call to warn when an in-out actual
514 that is not by-copy overlaps with another actual, thus leadind to
515 potentially dangerous aliasing in the body of the called subprogram.
516 Currently the warning is under control of the -gnatX switch.
517 * sem_res.adb (resolve_call): call Warn_On_Overlapping_Actuals.
519 2009-10-27 Thomas Quinot <quinot@adacore.com>
521 * sem_ch12.adb (Install_Formal_Packages): Do not omit installation of
522 visible entities when the formal package doesn't have a box.
524 * checks.adb: Minor reformatting.
526 2009-10-27 Vincent Celier <celier@adacore.com>
528 * prj-part.adb (Parse): Catch exception Types.Unrecoverable_Error and
529 set Project to Empty_Node.
531 2009-10-27 Robert Dewar <dewar@adacore.com>
533 * gnatbind.adb: Minor reformatting
535 2009-10-27 Arnaud Charlet <charlet@adacore.com>
537 * exp_aggr.adb: Fix comment.
539 2009-10-27 Emmanuel Briot <briot@adacore.com>
541 * prj-err.adb (Error_Msg): take into account continuation lines when
542 computing whether we have a warning.
544 2009-10-27 Vasiliy Fofanov <fofanov@adacore.com>
546 * make.adb, s-os_lib.adb, s-os_lib.ads (Create_Temp_Output_File): New
547 routine that is designed to create temp file descriptor specifically
548 for redirecting an output stream.
550 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
552 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
553 processing the parent type, build the COMPONENT_REF for a discriminant
554 with the proper type.
556 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
558 * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo.
559 * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO.
560 Pass GNATLIBCFLAGS_FOR_C to recursive invocations.
562 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
564 * gcc-interfaces/decl.c (build_subst_list): Convert the expression of
565 the constraint to the type of the discriminant.
567 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
569 * gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
570 TYPE_DECL when a type is padded if there is already one and reset
571 TYPE_STUB_DECL in this case.
573 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
575 * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
576 main_identifier_node.
578 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
580 * gcc-interface/utils.c (convert): When converting to a padded type
581 with an inner type of self-referential size, pad the expression before
582 doing the unchecked conversion.
584 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
586 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
587 sure the element type is consistent.
589 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
591 * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
593 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
595 * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
596 (TYPE_IS_FAT_POINTER_P): ...this.
597 (TYPE_THIN_POINTER_P): Rename into...
598 (TYPE_IS_THIN_POINTER_P): ...this.
599 (TYPE_FAT_OR_THIN_POINTER_P): Rename into...
600 (TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
601 (TYPE_IS_PADDING_P): Change definition, move old one to...
602 (TYPE_PADDING_P): ...this.
603 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
604 (get_unpadded_type): Likewise.
605 (gnat_to_gnu_component_type): Likewise.
606 (gnat_to_gnu_param): Likewise.
607 (relate_alias_sets): Likewise.
608 (make_packable_type): Likewise.
609 (maybe_pad_type): Likewise.
610 (gnat_to_gnu_field): Likewise.
611 (is_variable_size): Likewise.
612 (annotate_object): Likewise.
613 (validate_size): Likewise.
614 (set_rm_size): Likewise.
615 (make_type_from_size): Likewise.
617 * gcc-interface/misc.c (gnat_print_type): Likewise.
618 (gnat_get_alias_set): Likewise.
619 * gcc-interface/trans.c (Identifier_to_gnu): Likewise.
620 (Attribute_to_gnu): Likewise.
621 (call_to_gnu): Likewise.
622 (gnat_to_gnu): Likewise.
623 (add_decl_expr): Likewise.
624 (convert_with_check): Likewise.
625 (addressable_p): Likewise.
626 (maybe_implicit_deref): Likewise.
627 (protect_multiple_eval): Likewise.
628 (gnat_stabilize_reference_1): Likewise.
629 * gcc-interface/utils.c (gnat_pushdecl): Likewise.
630 (finish_record_type): Likewise.
631 (rest_of_record_type_compilation): Likewise.
632 (create_type_decl): Likewise.
633 (gnat_types_compatible_p): Likewise.
634 (build_template): Likewise.
635 (convert_vms_descriptor64): Likewise.
636 (convert_vms_descriptor32): Likewise.
637 (build_unc_object_type_from_ptr): Likewise.
638 (update_pointer_to): Likewise.
639 (convert_to_fat_pointer): Likewise.
640 (convert_to_fat_pointer): Likewise.
642 (remove_conversions): Likewise.
643 (maybe_unconstrained_array): Likewise.
644 (unchecked_convert): Likewise.
645 (handle_vector_type_attribute): Likewise.
646 * gcc-interface/utils2.c (build_binary_op): Likewise.
647 (build_unary_op): Likewise.
648 (build_allocator): Likewise.
650 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
652 * exp_dbug.ads: Adjust type names in comments.
653 * gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
654 add new IS_COMPONENT_TYPE parameter. Adjust. Remove dead code.
655 (gnat_to_gnu_entity): Adjust for above change.
656 (gnat_to_gnu_component_type): Likewise.
657 (gnat_to_gnu_field): Likewise.
658 * gcc-interface/trans.c (call_to_gnu): Likewise. Do not unnecessarily
660 * gcc-interface/utils.c (finish_record_type): Remove obsolete code.
661 * gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.
663 2009-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
665 * s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
666 * s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.
668 2009-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
670 * env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
672 2009-10-10 Samuel Tardieu <sam@rfc1149.net>
674 * sem_eval.adb: Give a more precise error message.
676 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
679 * a-rttiev.adb (Time_Of_Event): Return Time_First for unset event.
681 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
684 * sem_prag.adb (Process_Import_Or_Interface): Forbid an abstract
685 subprogram to be completed with a "pragma Import".
687 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
689 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>:
690 Generate an XVZ variable alongside the XVS type if the size is
692 (maybe_pad_type): Minor tweak.
694 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
696 * gcc-interface/decl.c (check_ok_for_atomic): Do nothing if the type
697 doesn't come from source.
699 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
701 * gcc-interface/decl.c (gnat_to_gnu_component_type): Force at least
702 unit size for the component size of an array with aliased components.
703 (maybe_pad_type): Do not warn for MAX_EXPR.
705 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
707 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
708 common code processing the component type into...
709 <E_Array_Subtype>: Likewise.
710 (gnat_to_gnu_component_type): ...this new static function.
711 (maybe_pad_type): Minor cleanup.
713 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
715 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
716 the handling of constrained discriminated record subtypes.
717 (components_to_record): Declare the type of the variants and of the
719 (build_subst_list): Move around.
720 (compute_field_positions): Rename into...
721 (build_position_list): ...this. Return a TREE_VEC.
722 (annotate_rep): Adjust for above renaming.
723 (build_variant_list): New static function.
724 (create_field_decl_from): Likewise.
725 (get_rep_part): Likewise.
726 (get_variant_part): Likewise.
727 (create_variant_part_from): Likewise.
728 (copy_and_substitute_in_size): Likewise.
730 2009-09-28 Olivier Hainque <hainque@adacore.com>
733 * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
734 Account for observable alignments out of default allocators.
736 2009-09-28 Richard Henderson <rth@redhat.com>
738 * gcc-interface/utils.c (gnat_install_builtins): Update call to
739 build_common_builtin_nodes.
741 2009-09-26 Eric Botcazou <ebotcazou@adacore.com>
743 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
744 negative size for the array dimensions like in the constrained case.
745 <E_Array_Subtype>: Do not create an artificially non-constant high
746 bound if the low bound is non-constant. Minor tweaks.
748 * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
749 and turn ALIASED into a boolean parameter. Adjust calls to self.
750 <N_Attribute_Reference>: Return 1 for more attributes.
751 <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
752 <N_Assignment_Statement>: Return 1 for the LHS.
753 (Identifier_to_gnu): Adjust calls to lvalue_required_p.
754 (call_to_gnu): Be prepared for wrapped boolean rvalues.
756 2009-09-25 Olivier Hainquqe <hainque@adacore.com>
757 Eric Botcazou <ebotcazou@adacore.com>
759 * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
760 specific node. Representative array type for VECTOR_TYPE entities.
761 * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
762 Turn an ARRAY_TYPE entity into a VECTOR_TYPE.
763 (gnat_types_compatible_p): Handle VECTOR_TYPEs.
764 (convert): Likewise. Arrange to produce VECTOR_CST out of constant
765 array aggregates for VECTOR_TYPE entities.
766 (unchecked_convert): Likewise.
767 (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
768 converted to the associated TYPE_REPRESENTATIVE_ARRAY.
769 (handle_pure_attribute, handle_sentinel_attribute,
770 handle_noreturn_attribute, handle_malloc_attribute,
771 handle_vector_size_attribute): Replace uses of qE format by qs.
772 Remove GCC_DIAG_STYLE definition.
773 * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
774 vector input to representative array type on entry.
775 <N_Op_Eq, etc>: Likewise.
776 * gcc-interface/gigi.h (maybe_vector_array): Declare.
777 (VECTOR_TYPE_P): New predicate.
778 * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
780 2009-09-24 Eric Botcazou <ebotcazou@adacore.com>
782 * gcc-interface/ada.h: Fix outdated comment.
783 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
784 lieu of mark_visited.
785 * gcc-interface/gigi.h (mark_visited): Change type of parameter.
786 (MARK_VISITED): New macro.
787 (gnat_truthvalue_conversion): Delete.
788 * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
790 (annotate_rep): Fix formatting and tidy.
791 (compute_field_positions): Get rid of useless variable.
792 * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
793 node only once. Use IN operator for the Nkind in more cases.
794 Remove calls to gnat_truthvalue_conversion.
795 (mark_visited): Change type of parameter and adjust.
796 (mark_visited_r): Dereference TP only once.
797 (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
798 * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
799 (build_binary_op): Remove calls to gnat_truthvalue_conversion.
800 (build_unary_op): Likewise.
802 2009-09-24 Dave Korn <dave.korn.cygwin@gmail.com>
804 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
805 a-except% in target pairs list; don't (implicitly) compare whitespace.
807 2009-09-24 Jakub Jelinek <jakub@redhat.com>
809 * gcc-interface/utils.c (gnat_pushdecl): Don't set
810 DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
813 2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
815 * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
816 Bind to getpagesize() in RTEMS 4.10 and newer.
818 2009-09-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
820 * env.c [__alpha__ && __osf__] (_BSD): Define.
821 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
824 2009-09-18 Pascal Obry <obry@adacore.com>
826 * mingw32.h: Activate Unicode support for x86-64 Windows platform.
828 2009-09-18 Vadim Godunko <godunko@adacore.com>
830 * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
832 2009-09-18 Javier Miranda <miranda@adacore.com>
834 * exp_aggr.adb (Backend_Processing_Possible): Disable backend
835 processing for array aggregates in the VM backend if the array has
838 2009-09-18 Ed Schonberg <schonberg@adacore.com>
840 * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
841 the prefix indicates a previous semantic error, and this is the first
842 error in the program.
844 2009-09-18 Bob Duff <duff@adacore.com>
846 * gnat_ugn.texi: Minor editing.
848 2009-09-18 Vincent Celier <celier@adacore.com>
850 * prj.ads, prj.adb (Project_Data): New component
851 Imported_Directories_Switches.
853 2009-09-18 Pascal Obry <obry@adacore.com>
855 * mingw32.h: Include standard _mingw.h file.
856 Define _WIN32_WINNT only if not already defined.
858 2009-09-18 Thomas Quinot <quinot@adacore.com>
860 * g-socket.adb (Is_Open): New function indicating whether a
861 Selector_Type object is open.
863 2009-09-18 Vincent Celier <celier@adacore.com>
865 * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
866 is deleted before creating it.
868 2009-09-18 Robert Dewar <dewar@adacore.com>
870 * bindgen.adb: Minor reformatting
872 2009-09-18 Arnaud Charlet <charlet@adacore.com>
874 * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
875 s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
876 signal handler is installed.
877 * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
878 tasks if Abort_Task_Interrupt cannot be used.
880 2009-09-18 Vincent Celier <celier@adacore.com>
882 * prj-tree.ads: Minor comment update
884 2009-09-17 Bob Duff <duff@adacore.com>
886 * g-socket.ads: Document the fact that Close_Selector has no effect on
888 * g-socket.adb: Raise an exception when a Selector that should be open
890 (Check_Selector): Declare RSig as a constant rather than a renames,
893 2009-09-17 Robert Dewar <dewar@adacore.com>
895 * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
896 prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
897 prj-tree.ads: Minor reformatting
899 2009-09-17 Emmanuel Briot <briot@adacore.com>
901 * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
903 (Do_Autoconf): If the object directory does not exists, create auto.cgpr
904 in a temporary directory instead
906 2009-09-17 Bob Duff <duff@adacore.com>
908 * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
910 (Get_Priority): Correct message for "terminated" case -- it said "null".
912 2009-09-17 Robert Dewar <dewar@adacore.com>
914 * exp_ch6.adb: Minor reformatting
916 2009-09-17 Emmanuel Briot <briot@adacore.com>
918 * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
919 switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
920 (Project_Node_Tree_Data.Project_Path): New field.
922 * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
924 2009-09-17 Emmanuel Briot <briot@adacore.com>
926 * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
927 Remove duplicate code.
928 (Prj.Ext): Fix memory leak
929 (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
930 variable. This was previously allowed in the code in
931 Is_External_Assignment, and some tests rely on it
933 2009-09-17 Bob Duff <duff@adacore.com>
935 * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
937 2009-09-17 Emmanuel Briot <briot@adacore.com>
939 * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
940 makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
941 prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
942 prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
943 Scenario variables are now specific to each project tree loaded in
947 2009-09-17 Javier Miranda <miranda@adacore.com>
949 * exp_disp.adb (Make_DT): Remove wrong line of code that was
950 undocumented and probably added by mistake.
952 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
954 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
955 conversions between original and packable version of types from
958 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
960 * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
961 If a padding type was made for the field, declare it.
962 (components_to_record): Add DEBUG_INFO_P parameter. Adjust call
963 to gnat_to_gnu_field and call to self.
964 (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
965 <E_Array_Subtype>: Likewise.
966 Adjust calls to gnat_to_gnu_field and components_to_record.
968 2009-09-16 Robert Dewar <dewar@adacore.com>
970 * prj-nmsc.adb: Minor reformatting
972 2009-09-16 Ed Schonberg <schonberg@adacore.com>
974 * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
975 expression is a by-reference type (tagged or inherently limited)
976 introduce an access type to capture references to the values of each
977 branch of the conditional.
979 2009-09-16 Emmanuel Briot <briot@adacore.com>
981 * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
982 (Project_Name_And_Node.Display_Name): new field
983 The display name of a project (as written in the .gpr file) is now
984 computed when the project file itself is parsed, not when it is
987 2009-09-16 Thomas Quinot <quinot@adacore.com>
989 * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
990 intrinsics untouched (to be expanded later on by gigi) if an external
991 name has been specified.
992 (Freeze_Entity): Do not generate a default external name for
993 imported subprograms with convention Intrinsic (so that the above code
994 can identify the case where an external name has been explicitly
997 * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
998 replaced by something else due to an existing #define clause.
1000 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1002 * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
1003 Parameter_Association node, created for the extra actual generated for
1004 an access parameter of a function that dispatches on result, to prevent
1005 double generation of such actuals when the call is rewritten is a
1007 * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
1008 * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
1009 that carry this flag when rewriting the original call as a dispatching
1010 call, after propagating the controlling tag.
1012 2009-09-16 Vincent Celier <celier@adacore.com>
1014 * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
1016 (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
1018 (Find_Source_Dirs): New parameter Rank to be recorded with the source
1020 (Search_Directories): Call Check_File with the rank of the directory
1021 * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
1022 (Free): Free also Number_Lists
1023 (Reset): Init also Number_Lists
1024 * prj.ads (Number_List_Table): New dynamic table for lists of numbers
1025 (Source_Data): New component Source_Dir_Rank. Remove component
1026 Known_Order_Of_Source_Dirs, no longer needed.
1027 (Project_Data): New component Source_Dir_Ranks
1028 (Project_Tree_Data): New components Number_Lists
1030 2009-09-16 Vincent Celier <celier@adacore.com>
1032 * gprep.adb (Yes_No): New global constant
1033 Unix_Line_Terminators: New global Boolean variable
1034 (Process_One_File): Create the out file with a "Text_Translation=" form
1035 that depends on the use of option -T.
1036 (Scan_Command_Line): Add option -T
1037 (Usage): Add line for option -T
1039 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1041 * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
1042 predicate that describes a proper subset of
1043 Is_Predefined_Dispatching_Operation and excludes stream operations,
1044 which can be overridden by the user.
1045 * sem_ch6.adb (Create_Extra_Formals): use
1046 Is_Predefined_Internal_Operation, so that stream operations get extra
1048 * exp_ch6.adb (Prevent double generation of extra actuals in calls to
1049 'Input, which may be expanded twice, first as a function call and then
1050 as a dispatching call.
1052 2009-09-16 Thomas Quinot <quinot@adacore.com>
1054 * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
1055 * g-expect.adb (Set_Up_Child_Communications): Use
1056 System.OS_Constants.Target_OS to determine whether running on Windows.
1058 2009-09-14 Richard Henderson <rth@redhat.com>
1060 * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
1062 2009-09-14 Eric Botcazou <ebotcazou@adacore.com>
1064 * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
1065 the unconstrained case.
1066 * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
1067 the encoding. Do not give a name to the pointer type to the XUT type.
1068 * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
1069 for fat pointer types, if any. Make sure DECL_ARTIFICIAL is cleared
1070 on nodes with DECL_ORIGINAL_TYPE set.
1071 (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
1072 for fat pointer types. Make sure DECL_ARTIFICIAL is cleared.
1074 2009-09-14 Richard Henderson <rth@redhat.com>
1076 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
1077 default_init_unwind_resume_libfunc.
1078 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
1079 __builtin_eh_pointer.
1080 * gcc-interface/utils.c (gnat_install_builtins): Update call
1081 to build_common_builtin_nodes.
1083 2009-09-13 Richard Guenther <rguenther@suse.de>
1084 Rafael Avila de Espindola <espindola@google.com>
1086 * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
1087 eh_personality_libfunc and lang_eh_runtime_type.
1088 (LANG_HOOKS_EH_PERSONALITY): Define.
1089 (gnat_eh_personality_decl): New static variable.
1090 (gnat_eh_personality): New static function.
1091 Include gt-ada-misc.h.
1092 * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
1093 * gcc-interface/config-lang.in (gtfiles): Add misc.c.
1095 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1098 * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
1100 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1102 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
1104 Avoid useless work when processing the Treat_As_Volatile flag.
1106 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1108 * gcc-interface/targtyps.c: Reorder include directives.
1110 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1112 * gcc-interface/targtyps.c: Add missing include for tm_p.h.
1113 * gcc-interface/Make-lang.in: Update dependencies.
1115 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1117 * make.adb: Add missing documentation for multilib handling.
1119 2009-09-03 Diego Novillo <dnovillo@google.com>
1121 * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
1123 2009-09-02 Richard Henderson <rth@redhat.com>
1125 * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
1127 2009-09-02 Olivier Hainque <hainque@adacore.com>
1129 * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
1132 2009-09-02 Olivier Hainque <hainque@adacore.com>
1134 * gcc-interface/decl.c (cannot_be_superflat_p): Handle
1135 Signed_Integer_Type_Definition Scalar_Ranges.
1137 2009-09-02 Eric Botcazou <ebotcazou@adacore.com>
1139 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
1140 SAVE_EXPR built for misaligned arguments. Remove redundant stuff.
1141 (addressable_p): Return true for more rvalues.
1143 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1145 * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
1146 POINTER_SIZE to HOST_WIDE_INT.
1148 2009-09-01 Richard Guenther <rguenther@suse.de>
1150 * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1152 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
1154 * gcc-interface/trans.c (call_to_gnu): Tidy.
1155 (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
1156 non-constant size but the array itself has constant size.
1157 * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
1159 (convert_vms_descriptor32): Likewise.
1161 2009-08-22 Aurelien Jarno <aurelien@aurel32.net>
1163 * gcc-interface/Makefile.in: Add Ada support for
1164 GNU/kFreeBSD x86_64.
1165 * system-freebsd-x86_64.ads: New file based on
1166 system-freebsd-x86.ads.
1168 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1170 * gcc-interface/utils.c (convert): In the padded case, do the final
1171 conversion as an unchecked conversion if the underlying types are
1172 array types with variable size.
1174 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1176 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
1178 * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
1180 * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
1182 (gnat_gimplify_expr) <DECL_EXPR>: New case.
1184 2009-08-17 Aurelien Jarno <aurelien@aurel32.net>
1186 * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
1187 (stack_t): New record type.
1188 (sigaltstack): New imported function.
1189 (Alternate_Stack): New imported variable.
1190 (Alternate_Stack_Size): New constant.
1192 2009-08-17 Vasiliy Fofanov <fofanov@adacore.com>
1194 * a-calend-vms.adb: Fix typo.
1196 2009-08-17 Tristan Gingold <gingold@adacore.com>
1198 * s-taprop-posix.adb: Round up the stack size to avoid failure on
1201 2009-08-17 Gary Dismukes <dismukes@adacore.com>
1203 * sem_cat.adb (Validate_Static_Object_Name): Update comment.
1205 2009-08-17 Vincent Celier <celier@adacore.com>
1207 * make.adb (Arguments_Collected): Unneeded, removed
1208 (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
1209 ensure caller does not pass in No_Project.
1210 (Compile): Add new parameter Project. Let procedure
1211 Collect_Arguments_And_Compile provide the proper value.
1213 * switch-c.adb: Add documentation for -gnatea and -gnatez
1215 2009-08-17 Ben Brosgol <brosgol@adacore.com>
1217 * gnat_ugn.texi: Changed name of package in SAL example, to avoid
1218 clash with Ada 2005 reserved word (interface).
1220 2009-08-17 Robert Dewar <dewar@adacore.com>
1222 * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
1223 a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
1224 a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
1225 (use conditional expressions).
1227 2009-08-17 Robert Dewar <dewar@adacore.com>
1229 * make.adb: Add ??? comment
1230 * tbuild.adb: Minor reformatting
1232 2009-08-17 Thomas Quinot <quinot@adacore.com>
1234 * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
1235 Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
1236 Use Tbuild.Make_Temporary to create entity for the temporary.
1238 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1240 * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
1241 and ignore -mieee switch to avoid spawning an extra gcc in this case.
1243 2009-08-17 Thomas Quinot <quinot@adacore.com>
1245 * tbuild.adb: Minor reformatting
1247 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1249 * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
1250 exist, as is the case for synchronized types, use the type of the
1251 discriminal in the parameter specification, to prevent a spurious
1252 subtype mismatch in gigi.
1254 2009-08-17 Robert Dewar <dewar@adacore.com>
1256 * prj-env.adb: Minor reformatting
1257 * make.adb: Minor reformatting
1260 2009-08-17 Javier Miranda <miranda@adacore.com>
1262 * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
1264 2009-08-17 Emmanuel Briot <briot@adacore.com>
1266 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
1267 (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
1268 object directories must be present. In the case of gprclean at least,
1269 these are optional (if they do not exist there is nothing to clean)
1271 2009-08-17 Robert Dewar <dewar@adacore.com>
1273 * prj-env.adb: Minor reformatting
1274 * sem_ch3.adb: Minor reformatting
1276 2009-08-17 Hristian Kirtchev <kirtchev@adacore.com>
1278 * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
1279 the time zone since VxWorks chose positive values to represent west
1280 time zones and negative for east zones.
1282 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1284 * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
1285 an anonymous access type whose designated type is generic.
1287 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1289 * comperr.adb (Compiler_Abort): Do not generate a bug box when in
1290 codepeer mode, friendlier.
1292 2009-08-10 Laurent GUERBY <laurent@guerby.net>
1294 * make.adb: Handle multilib
1296 2009-08-10 Vincent Celier <celier@adacore.com>
1298 * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
1299 the temporary file name in the error message when the temporary file
1302 2009-08-10 Yannick Moy <moy@adacore.com>
1304 * gnat_ugn.texi: Fix typo
1306 2009-08-10 Robert Dewar <dewar@adacore.com>
1308 * exp_ch7.adb: Add ??? comment for last change
1310 2009-08-10 Vincent Celier <celier@adacore.com>
1312 * prj-env.adb (Add_To_Buffer): New procedure
1313 (Create_Config_Pragmas_File): Write to temporary file in one shot
1314 (Create_Mapping_File): Ditto
1315 (Set_Ada_Paths): Ditto
1317 2009-08-10 Vincent Celier <celier@adacore.com>
1320 * xref_lib.adb (Print_Xref): Make sure that there is at least one space
1321 between a declaration name and its type.
1323 2009-08-07 Javier Miranda <miranda@adacore.com>
1325 * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
1328 2009-08-07 Robert Dewar <dewar@adacore.com>
1330 * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
1332 2009-08-07 Vincent Celier <celier@adacore.com>
1334 * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
1335 specified on the command line and there are switches in the Compiler
1336 package of the project file, use these compilation switches to invoke
1339 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1341 * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
1343 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1345 * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
1346 even if not in main unit, to simplify debugging.
1348 2009-08-07 Arnaud Charlet <charlet@adacore.com>
1350 * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
1351 * gcc-interface/Make-lang.in: Update dependencies.
1353 2009-08-07 Robert Dewar <dewar@adacore.com>
1355 * types.ads: Minor reformatting
1356 * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
1357 * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
1358 Output_Non_Modified_In_Out_Warnings.
1359 * sem_ch13.adb: Remove ??? comment.
1361 2009-08-07 Vincent Celier <celier@adacore.com>
1363 * mlib-prj.adb (Build_Library): Include binder generate object file
1364 for SAL when library name is only one character.
1366 2009-08-07 Thomas Quinot <quinot@adacore.com>
1368 * targparm.adb: Minor reformatting
1369 * sem.adb: Minor reformatting
1370 * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
1372 2009-08-07 Emmanuel Briot <briot@adacore.com>
1374 * prj-conf.adb: Remove duplicate directory separator in the output when
1375 an object directory does not exist.
1377 2009-08-07 Robert Dewar <dewar@adacore.com>
1379 * exp_util.adb: Minor reformatting
1381 2009-08-07 Vincent Celier <celier@adacore.com>
1383 * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
1386 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1388 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
1389 detect non-static private components that will violate restriction
1390 No_Implicit_Heap_Allocation.
1392 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1394 * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
1396 2009-08-02 Eric Botcazou <ebotcazou@adacore.com>
1398 * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
1399 * gcc-interface/utils.c (end_subprog_body): Likewise.
1400 * gcc-interface/trans.c (gigi): Likewise.
1401 (gnat_to_gnu): Likewise.
1403 2009-07-30 Ben Brosgol <brosgol@adacore.com>
1405 * gnat_ugn.texi: Correct minor texi glitch.
1407 2009-07-30 Ed Schonberg <schonberg@adacore.com>
1409 * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
1410 expression has an underlying representation that is an unchecked union,
1411 there is no subtype to build.
1413 2009-07-30 Robert Dewar <dewar@adacore.com>
1415 * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
1416 s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
1417 sem_ch7.adb, adaint.c: Minor reformatting
1419 2009-07-29 Javier Miranda <miranda@adacore.com>
1421 * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
1422 moved from the expander to the semantic analyzer to allow the
1423 generation of these internal entities when compiling with no code
1424 generation. Required by ASIS.
1425 * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
1426 * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
1427 * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
1428 (Expand_Freeze_Record_Type): Remove call to
1429 Add_Internal_Interface_Entities because this routine is now called at
1430 early stage --when the freezing node is analyzed.
1432 2009-07-29 Robert Dewar <dewar@adacore.com>
1434 * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
1435 exp_disp.adb, g-socket.adb: Minor reformatting
1437 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1439 * sem_ch7.adb (New_Private_Type): Create class-wide type after other
1440 attributes have been established, so that they are all inherited by the
1442 * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
1443 properly named subtypes of class-wide types.
1445 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1447 * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
1448 indicators on user-defined operators.
1450 2009-07-29 Vadim Godunko <godunko@adacore.com>
1452 * g-socket.adb (Receive_Vector): Add comment.
1454 2009-07-29 Javier Miranda <miranda@adacore.com>
1456 * frontend.adb (Frontend): Code cleanup.
1457 * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
1458 Rewriten as a procedure because it a new out-mode parameters to
1459 keep up-to-date the controlling tag node in the caller.
1460 (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
1461 new out-mode parameter to keep up-to-date the controlling tag node in
1463 * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
1464 exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
1466 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
1467 available in new package Sem_SCIL.
1468 (Next_Non_SCIL_Node): Ditto.
1469 * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
1471 (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
1472 plus complete decoration of SCIL dispatching node.
1473 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1474 * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
1476 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1477 * exp_ch3.adb (Build_Init_Procedure): Fix comment.
1478 * sem_scil.ads, sem_scil.adb: New files.
1479 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
1480 Update dependencies.
1482 2009-07-28 Robert Dewar <dewar@adacore.com>
1484 * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
1485 makeutl.adb: Minor reformatting & code reorganization
1486 * sem_ch3.adb: Minor reformatting.
1487 Fix spelling error (constraint for constrain) in error msg.
1489 2009-07-28 Emmanuel Briot <briot@adacore.com>
1491 * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
1492 global variable that also exists in makeutl.ads, and that some routines
1493 in that package use already.
1494 (Check): Moved part of the code to makeutl.adb for better sharing with
1497 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1499 * gcc-interface/Make-lang.in: Update dependencies.
1501 2009-07-28 Emmanuel Briot <briot@adacore.com>
1503 * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
1504 importing project does not end up in the list, in the case of extending
1506 * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
1507 makeutl.ads, for better sharing with gprbuild.
1509 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1511 * gnat_ugn.texi: Fix typo.
1513 2009-07-28 Ed Schonberg <schonberg@adacore.com>
1515 * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
1516 derivation that renames some discriminants and constrain others.
1517 * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
1518 prefix is a derived untagged type, convert to the root type to conform
1519 to the signature of the protected operations.
1521 2009-07-28 Robert Dewar <dewar@adacore.com>
1523 * sinfo.ads: Update comments.
1524 * exp_attr.adb: Minor reformatting
1526 2009-07-28 Ed Schonberg <schonberg@adacore.com>
1528 * sem_aggr.adb (Get_Value): A named association in a record aggregate
1529 should be treated as a modification of the named component, not as a
1532 2009-07-28 Quentin Ochem <ochem@adacore.com>
1534 * prj-tree.ads, prj-tree.adb (Free): Minor editing.
1535 * prj.ads, prj.adb (Image): Ditto.
1537 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1539 * frontend.adb: Minor reformatting.
1540 (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
1543 2009-07-28 Bob Duff <duff@adacore.com>
1545 * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
1546 'Address to get a pointer to the protected body wrapper.
1548 2009-07-28 Javier Miranda <miranda@adacore.com>
1550 * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
1551 nodes if we are not generating code.
1552 * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
1553 attribute SCIL_Related_Node of SCIL dispatching nodes.
1554 (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
1555 * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1556 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1557 (SCIL_Entity): Update documentation.
1558 (SCIL_Related_Node): Update documentation.
1559 (SCIL_Controlling_Tag): New attribute.
1560 (SCIL_Target_Prim): Update documentation.
1561 (N_Null_Statement): Remove attributes associated with SCIL nodes.
1562 (N_SCIL_Dispatch_Table_Object_Init): New node.
1563 (N_SCIL_Dispatch_Table_Tag_Init): New node.
1564 (N_SCIL_Dispatching_Call): New node.
1565 (N_SCIL_Tag_Init): New node.
1566 * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1567 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1568 (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
1569 (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
1570 (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
1571 (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
1572 N_SCIL_Dispatching_Call nodes.
1573 * sem.adb (Analyze): No need to analyze SCIL nodes.
1574 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
1575 (Next_Non_SCIL_Node): New subprogram
1576 * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
1578 * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
1580 * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
1582 * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
1583 null statement nodes.
1584 (Build_Init_Procedure): Generate new SCIL node.
1585 * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
1587 * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
1588 they are currently implemented as special N_Null_Statement nodes.
1589 * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
1590 procedure call then check if some SCIL node references it and needs
1592 * exp_disp.ads (SCIL_Node_Kind): Removed.
1593 (Adjust_SCIL_Node): New subprogram.
1594 (Find_SCIL_Node): New subprogram.
1595 (Get_SCIL_Node_Kind): Removed.
1596 (New_SCIL_Node): Removed.
1597 * exp_disp.adb (Adjust_SCIL_Node): New subprogram
1598 (Expand_Dispatching_Call): Generate new SCIL dispatching node including
1599 decoration of its new controlling_tag attribute.
1600 (Get_SCIL_Node_Kind): Removed.
1601 (Find_SCIL_Node): New subprogram.
1602 (Make_Secondary_DT): Generate new SCIL nodes.
1603 (Make_Tags): Generate new SCIL nodes.
1604 (New_SCIL_Node): Removed.
1605 * exp_util.adb (Insert_Actions): Handle SCIL nodes.
1606 (Remove_Side_Effects): Check if relocated nodes require readjustment
1607 of some SCIL dispatching node.
1608 * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
1610 2009-07-28 Robert Dewar <dewar@adacore.com>
1612 * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
1614 2009-07-28 Sergey Rybin <rybin@adacore.com>
1616 * gnat_ugn.texi: Add section about gnatcheck rule exemption.
1618 2009-07-28 Vadim Godunko <godunko@adacore.com>
1620 * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
1621 not defined by limits.h.
1623 * g-socket.adb (Receive_Vector): Use minimum length from user's vector
1624 length and maximum supported length of data vector.
1626 2009-07-28 Gary Dismukes <dismukes@adacore.com>
1628 * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
1629 * make.adb: Call Get_Target_Parameters before calling Usage so that
1630 VM_Target and AAMP_On_Target will be set.
1632 2009-07-28 Olivier Hainque <hainque@adacore.com>
1634 * g-ssinty.ads: Remove, pointless and just confusing at this stage.
1635 * gnat_rm.texi: Remove documentation.
1636 * g-sse.ads: Minor reorg along the way.
1637 * gcc-interface/Makefile.in: Remove processing for g-ssinty.
1638 * g-ssvety.ads: Minor comment updates.
1640 2009-07-28 Sergey Rybin <rybin@adacore.com>
1642 * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
1643 for the new format of the report file.
1645 2009-07-28 Sergey Rybin <rybin@adacore.com>
1647 * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
1649 2009-07-28 Pascal Obry <obry@adacore.com>
1651 * g-expect.adb: Record standard handles only on Windows.
1653 2009-07-27 Emmanuel Briot <briot@adacore.com>
1655 * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
1658 2009-07-27 Sergey Rybin <rybin@adacore.com>
1660 * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
1661 rule definition the paragraph that explains that generic functions and
1662 functions from generic packages are not checked.
1664 2009-07-27 Gary Dismukes <dismukes@adacore.com>
1666 * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
1667 procedure when determining whether to set the Overridden_Operation
1668 field of a subprogram overriding an inherited subprogram.
1670 2009-07-27 Robert Dewar <dewar@adacore.com>
1672 * a-except.adb, a-except-2005.ads: Minor reformatting
1674 2009-07-27 Robert Dewar <dewar@adacore.com>
1676 * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
1678 2009-07-27 Javier Miranda <miranda@adacore.com>
1680 * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
1681 add some documentation explaining why the SCIL nodes must be generated
1684 2009-07-27 Olivier Hainque <hainque@adacore.com>
1686 * a-except.adb: Bind to __builtin_longjmp directly.
1687 * a-except-2005.ads: Provide direct binding to __builtin_longjmp
1689 * a-exexpr.adb: Use it.
1690 * a-except-xi.adb: Likewise.
1691 * raise.c (_gnat_builtin_longjmp): Remove and update comments.
1692 * raise.h (_gnat_builtin_longjmp): Remove declaration.
1694 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1696 * sem_eval.adb (Compile_Time_Compare): More precise handling of
1697 Known_Valid flag, to prevent spurious range deductions when scalar
1698 variables may be uninitialized. New predicate Is_Known_Valid_Operand.
1700 2009-07-27 Robert Dewar <dewar@adacore.com>
1702 * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
1705 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1707 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
1708 Ravenscar mode. Error has already been posted on specification.
1710 * sem.adb: Further code clean ups.
1712 2009-07-27 Robert Dewar <dewar@adacore.com>
1714 * g-sse.ads: Minor reformatting
1716 2009-07-27 Arnaud Charlet <charlet@adacore.com>
1718 * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
1719 alternate ali extension.
1720 * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
1721 account Osint.ALI_Suffix.
1722 * osint.ads (ALI_Suffix): Make visible.
1723 * gnatfind.adb (Gnatfind): Add support for --ext= switch.
1724 * gnat_ugn.texi: Document new gnatfind --ext= switch.
1726 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1728 * sem.adb (Walk_Library_Items): If main unit is an instance body, do
1731 2009-07-27 Javier Miranda <miranda@adacore.com>
1733 * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
1734 the dispatching call has is expanded.
1736 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1738 * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
1739 Is_Known_Valid flag on the temporary created for the value whose
1740 validity is being checked.
1742 * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
1743 handle properly main units that are package specifications.
1745 2009-07-27 Geert Bosch <bosch@adacore.com>
1747 * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
1748 * sem_aux.ads: Fix typo in comment
1749 * sem_util.ads (Is_LHS): Adjust comment to match body
1751 2009-07-27 Sergey Rybin <rybin@adacore.com>
1753 * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
1756 2009-07-27 Olivier Hainque <hainque@adacore.com>
1758 * g-sse.ads, g-ssvety.ads: Update comments.
1760 2009-07-27 Sergey Rybin <rybin@adacore.com>
1762 * gnat_ugn.texi: Update gnatcheck doc.
1764 2009-07-27 Arnaud Charlet <charlet@adacore.com>
1766 * lib-xref.ads: Allocate/document 'o' char for use by references to
1767 spark 'own' variables.
1769 2009-07-27 Gary Dismukes <dismukes@adacore.com>
1771 * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
1772 objects, since these are implicitly referenced by the return statement.
1773 * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
1774 Is_Return_Object in this procedure, as return objects will never make
1775 it here since they're now marked as Referenced.
1777 2009-07-27 Robert Dewar <dewar@adacore.com>
1779 * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
1781 2009-07-27 Robert Dewar <dewar@adacore.com>
1783 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
1785 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
1787 2009-07-27 Geert Bosch <bosch@adacore.com>
1789 * checks.adb (Find_Check): Minor streamlining of logic.
1790 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
1791 * debug.adb: Document -gnatdX debug flag
1792 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
1793 list information about reads from scalar entities.
1794 Also slightly simplify condition for Expand_Current_Value.
1795 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
1798 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
1801 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
1802 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
1804 (__gnat_stat): Adjust reference to STAT in prototype.
1805 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
1806 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
1807 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
1808 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
1809 __gnat_is_writable_file, __gnat_is_executable_file,
1810 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
1811 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
1812 __gnat_copy_attribs): Adjust all references to the above.
1813 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
1815 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1817 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
1818 done at the same time, guard against listing a body more than once.
1820 2009-07-23 Robert Dewar <dewar@adacore.com>
1822 * exp_ch6.adb: Minor reformatting
1824 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1826 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
1827 static expression is known valid.
1828 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
1829 operands of a subtype with a single value.
1831 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1833 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
1834 are in the context of the main unit body.
1836 2009-07-23 Sergey Rybin <rybin@adacore.com>
1838 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
1839 misprint in rule description.
1841 2009-07-23 Gary Dismukes <dismukes@adacore.com>
1843 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
1844 test that the object declaration is within an extended return statement
1845 with direct test of whether the declared object associated with the
1846 build-in-place call is a return object, since the enclosing function
1847 might not even be a build-in-place function.
1849 2009-07-23 Robert Dewar <dewar@adacore.com>
1851 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
1852 Minor code reorganization
1854 2009-07-23 Arnaud Charlet <charlet@adacore.com>
1856 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
1857 for static analysis, only packed arrays are causing troubles.
1859 2009-07-23 Gary Dismukes <dismukes@adacore.com>
1861 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
1862 ancestor part is a call to a limited function with an unconstrained
1863 result subtype unless the aggregate has a null extension type.
1864 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
1865 the parent type declaration to avoid blowups on subtype cases.
1867 2009-07-23 Robert Dewar <dewar@adacore.com>
1869 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
1872 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
1874 * s-regexp.adb: Minor reformatting
1875 * scos.ads: Minor reformatting.
1877 2009-07-23 Arnaud Charlet <charlet@adacore.com>
1879 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
1880 other similar messages.
1881 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
1882 messages/implicit packing in CodePeer mode.
1883 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
1884 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
1887 2009-07-23 Pascal Obry <obry@adacore.com>
1889 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
1892 2009-07-23 Robert Dewar <dewar@adacore.com>
1894 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
1897 2009-07-23 Yannick Moy <moy@adacore.com>
1899 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
1901 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
1903 (Raise_Exception): Ditto.
1905 2009-07-23 Olivier Hainque <hainque@adacore.com>
1907 * g-sse.ads: Simplify comment.
1909 2009-07-23 Olivier Hainque <hainque@adacore.com>
1911 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
1912 low level internal type definitions for distinct higher level
1913 binding development activities (user type definitions and
1915 * gnat_rm.texi: Document it.
1916 * g-ssvety.ads: Use it.
1917 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
1918 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
1919 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
1920 for the "may_alias" attribute.
1922 2009-07-23 Thomas Quinot <quinot@adacore.com>
1924 * scos.ads: Minor typo fix
1926 * gcc-interface/decl.c (validate_alignment): For the case of an
1927 implicit array base type, look for alignment clause on first subtype.
1929 2009-07-23 Robert Dewar <dewar@adacore.com>
1931 * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
1932 with tagged parent if tagged parent is fully repped.
1934 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1936 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
1937 in the context depends on the spec of the main unit, by delaying
1938 processing of the main unit body until all other units have been
1941 2009-07-23 Arnaud Charlet <charlet@adacore.com>
1943 * a-convec.adb: Add comments about suspicious/subtle code.
1945 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1947 * einfo.ads: Document use of Alias in private overriding
1949 2009-07-23 Thomas Quinot <quinot@adacore.com>
1951 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
1952 an array type, propagate alignment from first subtype to implicit base
1953 type so that other subtypes (such as the itypes for aggregates of the
1954 type) also receive the expected alignment.
1956 * g-comlin.ads: Minor documentation clarification/rewording.
1957 * scos.ads: Minor comments update.
1958 * lib-writ.ads: Minor reformatting
1960 2009-07-23 Gary Dismukes <dismukes@adacore.com>
1962 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
1963 of a class-wide interface type that is a return object of a
1964 build-in-place function, bypass the interface-related expansions into
1965 renamings with displacement conversions, etc.
1966 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
1967 for the case where a renaming occurs in a build-in-place context, to
1968 assert that the bypassing of the build-in-place treatment only occurs
1969 in the case of a renaming that is an expansion of a return expression
1970 that is itself a build-in-place function call.
1972 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1974 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
1975 valid candidate interpretation in a prefixed view if it is hidden, but
1976 overrides an inherited operation declared in the visible part.
1978 2009-07-23 Robert Dewar <dewar@adacore.com>
1980 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
1981 division operands to 64-bit at all in any circumstances.
1983 2009-07-23 Robert Dewar <dewar@adacore.com>
1985 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
1986 checking ranges for mod/rem to see if conditional jump will be
1988 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
1989 generating special -1 test for rem, generate it whenever both
1990 operands can be negative (match circuit in Sem_Res).
1991 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
1992 destroys memory of positive range.
1993 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
1994 checking ranges for mod/rem to see if conditional jump will be generated
1996 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1998 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
1999 scalar components has non-static bounds, the equivalent aggregate
2000 cannot be built, even if the expression is static, because range checks
2003 2009-07-23 Robert Dewar <dewar@adacore.com>
2005 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2006 division operands to 64-bit inside a conversion if 64-bit division not
2009 2009-07-23 Sergey Rybin <rybin@adacore.com>
2011 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
2013 2009-07-23 Javier Miranda <miranda@adacore.com>
2015 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
2016 (Entity/Set_Entity): not available in N_Null_Statement nodes
2017 (Is_Scil_Node): renamed as Is_SCIL_Node
2018 (Scil_Nkind): renamed as SCIL_Nkind
2019 (Scil_Related_Node): renamed as SCIL_Related_Node
2020 (Scil_Target_Prim): renamed as SCIL_Target_Prim
2021 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
2022 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
2023 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
2024 Update documentation
2025 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
2026 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2027 (New_Scil_Node): Renamed as New_SCIL_Node
2028 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
2029 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2030 (New_Scil_Node): Renamed as New_SCIL_Node
2031 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
2033 2009-07-23 Robert Dewar <dewar@adacore.com>
2035 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
2036 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
2037 * einfo.adb: Minor reformatting
2039 2009-07-23 Robert Dewar <dewar@adacore.com>
2041 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
2042 cross-referencing the new related code in
2043 Exp_Ch4.Expand_N_Type_Conversion.
2044 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
2046 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
2049 2009-07-23 Javier Miranda <miranda@adacore.com>
2051 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
2052 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
2053 * exp_disp.ads (Scil_Node_Kind): Ditto.
2054 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
2055 * exp_ch3.adb (Build_Init_Procedure): Ditto.
2057 2009-07-23 Javier Miranda <miranda@adacore.com>
2059 * einfo.adb (Component_Type): Add missing assertion.
2060 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
2061 reading attribute Component_Size.
2062 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
2063 before reading attributes Component_Size and Component_Type.
2064 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
2065 before reading attribute Component_Type.
2067 2009-07-23 Olivier Hainque <hainque@adacore.com>
2069 * gnat_rm.texi: Document the GNAT.SSE units.
2071 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2073 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
2074 not null return if it appears on a subunit.
2076 2009-07-23 Robert Dewar <dewar@adacore.com>
2078 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
2079 check right away so it does not get skipped for early returns, e.g.
2081 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
2082 left-side unless we really know the value is valid.
2084 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
2085 reformatting. Minor code reorganization. Add comments.
2087 2009-07-23 Robert Dewar <dewar@adacore.com>
2089 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
2092 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2094 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
2095 with test of coverage, to allow specific type objects in extended
2096 returns of class-wide functions. Remove now-unnecessary special-case
2097 tests that allowed this in certain cases of expanded extended returns.
2099 2009-07-23 Javier Miranda <miranda@adacore.com>
2101 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
2102 N_Null_Statements (for SCIL nodes).
2103 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
2104 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
2105 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
2107 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
2108 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
2109 associated with dispatching call.
2110 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
2111 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
2112 initialization of dispatch tables and initialization of tags.
2113 (New_Scil_Node): New function that creates a new SCIL node.
2114 (Build_Init_Procedure): Add generation of SCIL node associated with the
2115 initialization of tags done in the IP subprogram.
2117 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2119 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
2120 Warnings_Off, do not emit continuation messages.
2122 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
2125 2009-07-23 Emmanuel Briot <briot@adacore.com>
2127 * ali.adb: Minor comment update
2129 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
2131 * s-win32.ads (HANDLE): Define to be the same size as address type.
2134 2009-07-23 Olivier Hainque <hainque@adacore.com>
2136 * g-sse.ads: New file. Root of the SSE facilities trees, with
2137 general description and common declarations.
2138 * g-ssvety.ads: New file. Expose user level SSE vector types.
2139 * impunit.adb (Non_Imp_File_Names_95): Register new units.
2140 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
2141 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
2143 2009-07-23 Ben Brosgol <brosgol@adacore.com>
2145 * gnat_ugn.texi: Wordsmithing.
2147 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2149 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
2151 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
2153 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
2154 they are already of the base type of the index.
2156 2009-07-22 Brett Porter <porter@adacore.com>
2158 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
2160 2009-07-22 Robert Dewar <dewar@adacore.com>
2162 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
2163 * gnat_ugn.texi: Add documentation for -gnateS switch
2164 * ug_words: Add entry for -gnateS /SCO_OUTPUT
2165 * gcc-interface/Make-lang.in: Update dependencies.
2167 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
2168 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
2169 complete information for SCO input/output.
2171 2009-07-22 Sergey Rybin <rybin@adacore.com>
2173 * gnat_ugn.texi: Update doc for some gnatcheck rules.
2175 2009-07-22 Robert Dewar <dewar@adacore.com>
2177 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
2178 contents of SCO tables.
2179 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
2180 scos.adb, scos.ads: New files.
2181 * gcc-interface/Make-lang.in: Update dependencies.
2183 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
2184 fixes and reformatting.
2186 2009-07-22 Robert Dewar <dewar@adacore.com>
2188 * g-socket.ads: Minor reformatting
2190 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2192 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
2193 include the entity kind for following cases of unreferenced entities:
2194 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
2196 2009-07-22 Ed Falis <falis@adacore.com>
2198 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
2201 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2203 * adadecode.c: Make this file compilable outside of GCC.
2205 2009-07-22 Thomas Quinot <quinot@adacore.com>
2207 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
2208 (partially) default-initialized socket sets are handled properly by
2209 clearing their Set component.
2211 2009-07-22 Bob Duff <duff@adacore.com>
2213 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
2215 2009-07-22 Robert Dewar <dewar@adacore.com>
2217 * gnat_ugn.texi: Minor reformatting
2219 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2221 * errout.adb (Error_Msg): A style message within an instantiation
2222 should not be labelled as an error.
2224 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2226 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
2227 in initialization expression if function does not have convention Ada.
2229 2009-07-22 Sergey Rybin <rybin@adacore.com>
2231 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
2232 '--separate-label' to control label layout.
2234 2009-07-22 Robert Dewar <dewar@adacore.com>
2236 * exp_tss.ads, sem_eval.adb: Minor reformatting
2238 2009-07-22 Bob Duff <duff@adacore.com>
2240 * exp_dist.adb, exp_dist.ads: Update comments.
2242 2009-07-22 Brett Porter <porter@adacore.com>
2244 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
2246 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
2248 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2250 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
2251 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
2253 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
2254 used poor terminology.
2256 2009-07-22 Robert Dewar <dewar@adacore.com>
2258 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
2259 * sem_eval.adb, exp_tss.adb: Minor comment update.
2260 * stylesw.adb: Code clean up.
2262 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2264 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
2265 component size is an exact number of bytes, an array type can have a
2266 size clause that forces packing even though the array type itself is
2269 2009-07-22 Thomas Quinot <quinot@adacore.com>
2271 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
2272 if there is a previous entity with the same name in the scope, ignore
2273 it if it is the renaming declaration for a generic package introduced
2276 2009-07-22 Nicolas Roche <roche@adacore.com>
2278 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
2279 handler on x86_64 windows.
2281 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2283 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
2284 false positives in CodePeer, so ignore this pragma in this mode.
2286 2009-07-22 Thomas Quinot <quinot@adacore.com>
2288 * sem_util.adb, sem_ch10.adb: Minor reformatting
2290 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
2291 special handling for the case of no data received and Item'First =
2292 Stream_Element_Offset'First.
2293 (Last_Index): New subprogram factoring the above special handling
2294 over the various locations where it is required.
2296 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2298 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
2299 checks in CodePeer_Mode.
2300 * gcc-interface/Make-lang.in: Update dependencies.
2302 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2304 * sem_aggr.adb: Improve error message.
2306 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
2307 of an address representation clause.
2308 * freeze.adb (Freeze_Static_Object): An local imported object is legal
2309 if it has an address clause.
2311 2009-07-22 Thomas Quinot <quinot@adacore.com>
2313 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
2314 expression to insert an elab check using a conditional expression, be
2315 sure to carry the original list of interpretations to the new location.
2317 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2319 * gnat1drv.adb: Fix spelling error.
2321 2009-07-22 Javier Miranda <miranda@adacore.com>
2323 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
2324 at the library level and fix a hidden bug in its implementation: its
2325 functionality for renaming objects was broken because
2326 N_Object_Renaming_Declarations nodes are not a subclass of
2327 N_Declaration nodes (as documented in sinfo.ads).
2328 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
2329 check nodes that are actuals of generic instantiations.
2331 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2333 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
2334 context of a compilation unit is being analyzed. Used to detect
2335 circularities created by with_clauses that are not detected by the
2337 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
2338 analyzing the context of the current compilation unit, to detect
2339 possible circularities created by with_clauses.
2341 2009-07-22 Thomas Quinot <quinot@adacore.com>
2343 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
2345 2009-07-22 Robert Dewar <dewar@adacore.com>
2347 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
2348 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
2350 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
2351 * gnat_ugn.texi: Add documentation of -gnatyB
2352 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
2354 2009-07-22 Robert Dewar <dewar@adacore.com>
2356 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
2357 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
2358 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
2359 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
2360 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
2361 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
2362 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
2363 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
2364 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
2365 obey short-circuit style rule.
2367 2009-07-20 Bob Duff <duff@adacore.com>
2369 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
2370 instead of "and", because otherwise Parent_Last_Bit is read
2371 uninitialized in the case where it's not a tagged type, or the tagged
2372 parent does not have a complete rep clause.
2374 2009-07-20 Robert Dewar <dewar@adacore.com>
2376 * stylesw.ads: Minor documentation change.
2378 * types.ads: Minor reformatting
2380 2009-07-20 Javier Miranda <miranda@adacore.com>
2382 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
2383 generating the tag checks associated with dispatching calls.
2384 * exp_disp.adb (Apply_Access_Checks): New subprogram.
2385 (New_Value): This routine was previously local to expand dispatching
2386 calls but it is now used also by Apply_Access_Checks.
2387 (Expand_Dispatching_Calls): Cleanup code because the functionality of
2388 tag checks is now provided by Apply_Access_Checks.
2389 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
2390 case of dispatching calls.
2392 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2394 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
2397 2009-07-20 Gary Dismukes <dismukes@adacore.com>
2399 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
2400 for VMS, only rewrite the first component of the associated exception's
2401 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
2402 and third components that were being replaced with 'M' and 'S'.
2404 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2406 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
2407 Also do not generate error when parsing a spec in CodePeer mode.
2409 2009-07-20 Javier Miranda <miranda@adacore.com>
2411 * checks.adb (Apply_Access_Check): Avoid checks on availability of
2412 runtime function Offset_To_Top_Ptr when compiling with no tagged
2414 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
2415 adding code to the init proc when compiling for VM backends.
2417 2009-07-20 Vincent Celier <celier@adacore.com>
2419 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
2420 account switches -gnatw.?
2422 2009-07-20 Thomas Quinot <quinot@adacore.com>
2424 * sem_dist.adb, exp_dist.adb: Minor reformatting
2426 * Make-generated.in: New file.
2428 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
2430 2009-07-20 Javier Miranda <miranda@adacore.com>
2432 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
2434 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
2435 dynamically tagged expression.
2436 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
2438 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
2439 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2441 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2443 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
2444 CodePeer_Mode is set, to benefit from full front-end expansion
2447 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2449 * sem_res.adb: Add guard.
2451 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
2452 for possible attribute definition of External_Tag, in case clause
2453 appears in the private part of a package.
2455 2009-07-20 Jerome Guitton <guitton@adacore.com>
2457 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
2459 2009-07-20 Vadim Godunko <godunko@adacore.com>
2461 * a-coorma.adb: Minor reformatting.
2463 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2465 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
2466 access return types.
2467 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
2468 provide an itype reference to gigi to force elaboration of the subtype
2469 at the proper point.
2471 2009-07-20 Tristan Gingold <gingold@adacore.com>
2473 * g-expect.adb: Avoid closeing already closed handle.
2475 2009-07-20 Robert Dewar <dewar@adacore.com>
2477 * sprint.adb (Write_Subprogram_Name): New procedure to output
2478 subprogram name with possible preceding $ (replaces
2479 Note_Implicit_Run_Time_Call).
2481 2009-07-20 Robert Dewar <dewar@adacore.com>
2483 * vms_data.ads: Minor reformatting
2485 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
2486 applies to base type.
2487 (Parent_Subtype): Now allowed on record subtype, applies to base type
2488 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
2489 for case of fully repped tagged type.
2490 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
2491 tag save/restore for fully repped tagged type case.
2492 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
2493 * fe.h (Is_Fully_Repped_Tagged_Type): New function
2494 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
2495 overlap of tagged type components with parent type if parent type is
2497 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
2499 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
2501 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
2502 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
2504 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
2505 logical operators (AND/OR/XOR), not comparison operators.
2507 * sprint.ads: Minor reformatting
2509 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2511 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
2512 intrinsics, check that argument is a string literal, rather than
2513 checking for staticness.
2515 2009-07-20 Robert Dewar <dewar@adacore.com>
2517 * sem_ch13.adb: Minor reformatting
2519 * einfo.ads: Minor reformatting
2520 Component_Bit_Offset is no longer considered obsolescent
2522 2009-07-20 Nicolas Roche <roche@adacore.com>
2524 * a-calend.adb: Redefine time_t as signed integer with same size as
2526 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
2528 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
2531 2009-07-20 Javier Miranda <miranda@adacore.com>
2533 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
2534 constructors that have anonymous access type formals.
2536 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
2537 class-wide arguments in case of imported C++ subprograms.
2539 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
2541 2009-07-20 Sergey Rybin <rybin@adacore.com>
2543 * vms_data.ads: Update qualifiers.
2545 2009-07-20 Robert Dewar <dewar@adacore.com>
2547 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
2550 2009-07-17 Richard Guenther <rguenther@suse.de>
2553 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
2554 state. Remove unused parameter.
2555 (gnat_gimplify_function): Do not gimplify here.
2556 Fold into its only caller and remove.
2557 (gnat_builtin_function): Adjust for end_subprog_body signature change.
2558 (gnat_write_global_declarations): Also finalize the CU.
2559 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
2560 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
2561 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
2563 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
2565 2009-07-15 Arnaud Charlet <charlet@adacore.com>
2567 * gcc-interface/Make-lang.in: Update dependencies
2569 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
2571 2009-07-15 Robert Dewar <dewar@adacore.com>
2573 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
2574 N_Label. Remove SCO table entry for entry point (not used).
2576 * par_sco.ads: Remove SCO entry point type (not used)
2578 * switch.adb: Minor code clean up.
2580 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
2582 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
2584 2009-07-15 Thomas Quinot <quinot@adacore.com>
2586 * gnatls.adb: Minor reformatting
2588 * gnatcmd.adb: Minor code reorganization
2590 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2592 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
2593 determine whether a component of a private type has a composite type.
2595 2009-07-15 Robert Dewar <dewar@adacore.com>
2597 * sem_ch10.adb: Minor reformatting throughout
2598 Minor code reorganization (put nested subprograms in alpha order)
2600 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2602 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
2603 when compiling a call to a protected function that returns a controlled
2606 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
2608 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
2609 one. Add task locking and unlocking around the critical region which
2610 mentions localtime_r and global variable timezone for various targets.
2611 Comment reformatting.
2613 2009-07-15 Robert Dewar <dewar@adacore.com>
2615 * gnat_rm.texi: Document s-ststop.ads
2617 * impunit.ad: (Map_Array): New table of alternative names
2618 (Get_Kind_Of_Unit): Return possible suggested alternative name
2620 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
2623 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
2624 alternative unit if an implementation unit is with'ed.
2626 2009-07-15 Robert Dewar <dewar@adacore.com>
2628 * gnat_ugn.texi: Minor updates.
2630 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
2632 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2634 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
2635 conditions of a derived boolean type.
2638 2009-07-15 Robert Dewar <dewar@adacore.com>
2640 * gnat1drv.adb: Initialize SCO tables
2642 * par-load.adb: Call SCO_Record for main unit spec
2644 * par.adb: Make call to SCO_Record for main unit
2646 * par_sco.adb (Unit_Table): Change format to facilitate sort
2647 (Process_Decisions): New procedure with list argument
2648 (Traverse_Generic_Package_Declaration): New procedure
2649 (Initialize): New procedure, replaces Init
2650 (SCO_Output): Sort unit table before output
2651 (SCO_Record): Avoid duplications
2652 (SCO_Record): Handle remaining cases of units
2653 (Traverse_Declarations_Or_Statements): Handle generics
2655 * par_sco.ads (Initialize): New peocedure (replaces Init)
2657 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
2660 2009-07-15 Arnaud Charlet <charlet@adacore.com>
2662 * debug.adb: Add -gnatd.J switch for now to support scil generation in
2663 parallel. Add missing doc for -gnatd.I and -gnatd.O
2665 2009-07-15 Robert Dewar <dewar@adacore.com>
2667 * lib-load.adb: Minor reformatting
2669 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
2671 2009-07-15 Robert Dewar <dewar@adacore.com>
2673 * par.adb: Minor reformatting
2674 Add ??? comment for possible bad comment
2676 * par-ch10.adb: Minor reformatting
2678 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2680 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
2681 is a literal of a derived boolean type, it appears as an unchecked
2682 conversion. Retrieve actual value from expression of conversion.
2684 2009-07-15 Robert Dewar <dewar@adacore.com>
2686 * sem_ch3.adb: Minor reformatting
2688 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
2689 lib-writ.ads, lib-writ.adb: Minor reformatting.
2690 Fix problem with SCO format in ALI files
2692 2009-07-15 Robert Dewar <dewar@adacore.com>
2694 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2695 exp_aggr.adb: Minor code reorganization (better calling sequence for
2698 2009-07-15 Thomas Quinot <quinot@adacore.com>
2700 * opt.ads: Minor comment edits
2702 2009-07-15 Tristan Gingold <gingold@adacore.com>
2704 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
2707 2009-07-15 Robert Dewar <dewar@adacore.com>
2709 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
2712 * lib-writ.ads: Document addition of SCO lines to ALI file
2714 * par_sco.ads, par_sco.adb: New files.
2716 * opt.ads (Generate_SCO): New switch
2718 * par.adb (Par): Call SCO_Record to record SCO information
2720 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
2722 * switch-c.adb: Recognize -gnateS to generate SCO information
2724 * usage.adb: Add line for -gnateS
2726 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
2728 2009-07-15 Robert Dewar <dewar@adacore.com>
2730 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
2733 2009-07-15 Thomas Quinot <quinot@adacore.com>
2735 * g-socthi-mingw.adb: Minor comment addition
2737 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
2739 2009-07-15 Robert Dewar <dewar@adacore.com>
2741 * g-htable.ads, s-htable.ads: Minor reformatting
2743 2009-07-15 Robert Dewar <dewar@adacore.com>
2745 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
2746 new switch -gnatw.g.
2747 (Set_GNAT_Mode_Warnings): New procedure.
2749 * lib-xref.adb: Minor reformatting
2751 2009-07-15 Robert Dewar <dewar@adacore.com>
2753 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
2754 Minor code reorganization
2756 2009-07-14 Taras Glek <tglek@mozilla.com>
2757 Rafael Espindola <espindola@google.com>
2759 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
2760 installing plugin headers.
2762 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2764 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2765 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
2766 and link it to the expression whose value it captures.
2768 2009-07-13 Robert Dewar <dewar@adacore.com>
2770 * output.adb: Minor comment addition for last change
2772 * sinfo.ads: Minor reformatting
2774 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
2776 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
2777 spawn failed like on all other targets.
2779 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2781 * exp_ch7.adb: Indicate origin of temporary for transient expression.
2783 2009-07-13 Thomas Quinot <quinot@adacore.com>
2785 * s-oscons-tmplt.c: Add comment.
2787 2009-07-13 Robert Dewar <dewar@adacore.com>
2789 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
2790 reformatting. Minor code reorganization (add 9 argument version of
2793 * impunit.adb: Remove s-os_lib from list of system extensions.
2795 * sem_util.ads: Minor reformatting
2797 * output.adb: Add warnings off/on around System.OS_Lib.
2799 2009-07-13 Bob Duff <duff@adacore.com>
2801 * exp_dist.adb: Minor comment updates.
2803 2009-07-13 Gary Dismukes <dismukes@adacore.com>
2805 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
2806 several references to CodePeer.
2808 2009-07-13 Bob Duff <duff@adacore.com>
2810 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
2811 Build_TypeCode_Function_All): Do not recurse if the type is the base
2814 2009-07-13 Robert Dewar <dewar@adacore.com>
2816 * exp_ch4.adb: Minor comment change
2818 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2820 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
2821 type of iteration, to prevent spurious warnings.
2823 2009-07-13 Nicolas Roche <roche@adacore.com>
2825 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
2828 2009-07-13 Arnaud Charlet <charlet@adacore.com>
2830 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
2831 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
2833 (CodePeer_Mode): New -gnatC switch.
2834 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
2837 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
2839 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
2840 integer bound forces the check if it is compared to its subtype range.
2842 2009-07-13 Robert Dewar <dewar@adacore.com>
2844 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
2845 prj-strt.ads: Minor reformatting
2847 2009-07-13 Thomas Quinot <quinot@adacore.com>
2849 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
2850 set the type of the From_Any call to the base type.
2852 2009-07-13 Doug Rupp <rupp@adacore.com>
2854 * symbols-processing-vms-ia64.adb (Process): Add variables and
2855 constants to retrieve and check for symbol visibility.
2857 2009-07-13 Javier Miranda <miranda@adacore.com>
2859 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
2860 the identical type we remove the conversion completely because
2863 2009-07-13 Emmanuel Briot <briot@adacore.com>
2865 * prj-err.adb (Error_Msg): One more case where a message should be
2866 considered as a warning.
2868 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
2870 2009-07-13 Thomas Quinot <quinot@adacore.com>
2872 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
2873 calling stubs in the (library level) scope of the RCI locator, where it
2874 is attached, not in the caller's scope.
2876 2009-07-13 Javier Miranda <miranda@adacore.com>
2878 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
2879 interface object declarations we delay the generation of the equivalent
2880 record type declarations until its expansion because there are cases in
2881 which they are not required.
2883 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
2885 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
2886 addition of assertion.
2888 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
2889 interface types require no equivalent constrained type declarations
2890 because the expanded code only references the tag component associated
2892 (Find_Interface_Tag): Improve management of interfaces that are
2893 ancestors of tagged types.
2895 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
2896 class-wide object declarations to add missing support to statically
2897 displace the pointer to the object to reference the tag component
2898 associated with the interface.
2900 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
2901 auxiliary types associated with user-defined dispatching calls if the
2902 type has no user-defined primitives.
2904 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
2906 * mingw32.h: Make it explicit that we need XP or later.
2908 * initialize.c: Remove useless extern symbol declaration.
2910 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
2911 code reuse in expect.c.
2913 * adaint.c: Changes throughout the Windows section to redesign storage
2914 of the child process list and the process identification.
2916 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
2917 for interfacing, fix errors.
2918 (__gnat_expect_portable_execvp): use function in adaint.c
2920 2009-07-13 Emmanuel Briot <briot@adacore.com>
2922 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
2923 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
2924 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
2925 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
2926 (Prj.Nmsc.Report_Error): Removed, no longer needed.
2927 Always use Prj.Err.Report_Message.
2929 2009-07-13 Robert Dewar <dewar@adacore.com>
2931 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
2934 2009-07-13 Robert Dewar <dewar@adacore.com>
2936 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
2937 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
2939 2009-07-13 Emmanuel Briot <briot@adacore.com>
2941 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
2942 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
2943 Ada_Prj_Include_File_Set): Removed, since not needed
2946 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2948 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
2949 Analyze_Membership_Op.
2951 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
2952 Resolve_Membership_Op.
2954 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
2957 2009-07-13 Robert Dewar <dewar@adacore.com>
2959 * clean.adb: Minor reformattting
2961 2009-07-13 Emmanuel Briot <briot@adacore.com>
2963 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
2964 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
2965 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
2966 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
2967 and attributes in a project tree.
2968 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
2969 Remove last remaining mode-specific code (ada_only or
2970 multi_language). This was duplicating code
2971 (Get_Mode, Set_Mode): removed, no longer used.
2972 (Initialize_Project_Path): all tools will now take into account both
2973 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
2974 Remove some global variables and subprograms no longer used
2975 Make temporary files tree-specific, to avoid interferences between
2976 trees loaded in memory at the same time.
2977 (Prj.Delete_Temporary_File): new subprogram
2978 (Object_Paths, Source_Paths): fields no longer stored in the project
2979 tree, since they are only needed locally in Set_Ada_Paths.
2980 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
2982 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
2983 by local variables in the appropriate subprograms
2984 (Has_Foreign_Sources): removed.
2986 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
2988 2009-07-13 Arnaud Charlet <charlet@adacore.com>
2990 * gnat1drv.adb (Adjust_Global_Switches): No longer set
2991 Back_Annotate_Rep_Info in inspector mode.
2992 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
2994 * opt.ads: Update comment.
2996 2009-07-13 Robert Dewar <dewar@adacore.com>
2998 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
2999 prj.ads: Minor reformatting and code reorganization.
3001 * par-ch3.adb (Check_Restricted_Expression): New procedure
3003 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3005 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
3006 attribute into a call of the corresponding suprogram, create extra
3007 formals for the subprogram, because it may be a renaming whose
3008 analysis does not create extra formals.
3010 2009-07-13 Emmanuel Briot <briot@adacore.com>
3012 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3013 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3014 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
3015 prj-tree.ads: Minor reformatting.
3016 (Processing_Flags): new record to encapsulate the set of common
3017 parameters to several subprograms in the project manager.
3018 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
3019 Remove the need for the Current_Dir parameter in subprograms.
3020 (Look_For_Sources): minor refactoring, now that we no longer need to
3021 share subprograms between the two Ada_Only and Multi_Language modes
3022 (Processing_Flags): New field Error_On_Unknown_Language.
3023 Merge tests for library project between gnatmake and gprbuild.
3025 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3027 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
3030 2009-07-13 Emmanuel Briot <briot@adacore.com>
3032 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
3035 2009-07-13 Thomas Quinot <quinot@adacore.com>
3037 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
3038 Write,Input,Output} from private view to full view.
3040 * sem_type.adb, sem_type.ads: Minor reformatting
3042 2009-07-13 Nicolas Setton <setton@adacore.com>
3044 * exp_dbug.ads: Add documentation note on the utility of
3045 DW_AT_GNAT_encoding for IDEs.
3047 2009-07-13 Robert Dewar <dewar@adacore.com>
3049 * g-socthi-vxworks.adb: Minor reformatting
3051 * gnatcmd.adb: Minor reformatting
3053 2009-07-13 Thomas Quinot <quinot@adacore.com>
3055 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
3056 removed, not used anymore.
3057 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
3058 New subprogram, implements copy of an Any value into a limited object.
3059 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
3060 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
3061 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
3062 of parameters of a limited type, use the above new subprogram.
3064 2009-07-13 Emmanuel Briot <briot@adacore.com>
3066 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
3068 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
3070 (Error_Report): Remove global variable, replaced by parameters.
3072 2009-07-13 Thomas Quinot <quinot@adacore.com>
3074 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
3075 standard sendto(2) interface for connected sockets (passing a null
3076 destination address). Use send(2) instead for that case.
3078 2009-07-13 Pascal Obry <obry@adacore.com>
3080 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
3082 2009-07-13 Emmanuel Briot <briot@adacore.com>
3084 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3085 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
3086 variables and tables in prj-nmsc.adb.
3087 (Tree_Processing_Data): Renames Processing_Data, some new fields added
3088 (Project_Processing_Data): New record
3089 Simplify/unify check for missing sources.
3091 2009-07-13 Emmanuel Briot <briot@adacore.com>
3093 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
3094 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3095 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
3096 prj-tree.ads (Immediate_Directory_Of): Removed.
3097 (Prj.Pars): Now parse the project simulating a default config file.
3098 (Add_Default_GNAT_Naming_Scheme): New subprogram
3099 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
3100 Remove gnatmake-specific parsing of source files.
3101 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
3102 the error itself to provide more precise diagnostics.
3103 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
3104 a unit belongs to several projects.
3105 (Copy_Interface_Sources): Search the full path of files to copy in the
3106 list of sources of the application rather than in the list of units.
3107 (Parse_Project_And_Apply_Config): Do not reset the name of the main
3109 (Check_File): Use htables to find out whether a source is duplicated.
3110 (Add_Source): check whether the source or unit were already seen earlier
3112 * gcc-interface/Makefile.in: Update gnatmake dependencies.
3114 2009-07-13 Robert Dewar <dewar@adacore.com>
3116 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
3117 expression if extensions permitted.
3119 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
3121 (P_Relation): Use P_Membership_Test
3123 * par.adb (P_Membership_Test): New procedure (implement membership set
3126 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
3128 * sprint.adb (Sprint_Node): Handle set form for membership tests.
3130 2009-07-13 Thomas Quinot <quinot@adacore.com>
3132 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
3133 Do not attempt to generate stubs for predefined primitives of
3134 synchronized interfaces.
3135 (Add_Stub_Type): Factor some code from the PCS-specific variants of
3138 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3140 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
3141 Controlling_Result flag from the operation they override.
3143 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3145 * gcc-interface/Make-lang.in: Update dependencies
3147 2009-07-13 Robert Dewar <dewar@adacore.com>
3149 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
3150 details on unsupported constructs.
3152 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
3155 * s-trafor-default.adb: Correct some warnings
3157 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
3158 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
3161 * par-ch4.adb (Conditional_Expression): Capture proper location for
3162 conditional expression, should point to IF.
3164 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
3165 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
3166 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
3167 reorganization (use conditional expressions).
3169 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3171 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
3172 build-in-place function that returns an inherently limited type (not
3173 just a task type) create proper object declaration so that extra
3174 build-in-place actuals are properly added to the call.
3176 2009-07-13 Robert Dewar <dewar@adacore.com>
3178 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
3180 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
3182 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
3184 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
3185 Warn_On_Suspicious_Modulus_Value.
3187 * ug_words: Add entries for -gnatw.m/-gnatw.M.
3189 * usage.adb: Add lines for -gnatw.m/.M switches.
3191 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
3193 2009-07-13 Javier Miranda <miranda@adacore.com>
3195 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
3196 reading the Is_Interface attribute of the dispatching type.
3198 2009-07-13 Robert Dewar <dewar@adacore.com>
3200 * a-convec.adb: Minor code reorganization (use conditional expressions)
3202 2009-07-13 Robert Dewar <dewar@adacore.com>
3204 * freeze.adb (Check_Suspicious_Modulus): New procedure.
3206 2009-07-13 Robert Dewar <dewar@adacore.com>
3208 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
3211 * par-ch4.adb: Minor reformatting
3213 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3215 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
3216 => Is_Atomic_Aggregate
3218 2009-07-13 Emmanuel Briot <briot@adacore.com>
3220 * prj-nmsc.adb: Avoid traversing the list of source files if
3221 we have already processed all locally removed files.
3223 2009-07-13 Jose Ruiz <ruiz@adacore.com>
3225 * gnat_ugn.texi: Fix typo.
3227 2009-07-13 Robert Dewar <dewar@adacore.com>
3229 * freeze.adb: Minor reformatting
3230 Minor code reorganization (use Nkind_In)
3232 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
3234 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3236 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
3237 local variable and do not test it in Compile_Time_Bad_Alignment.
3238 Do not issue size or alignment warnings for the X'Address form.
3239 * sem_util.ads (Find_Overlaid_Object): Delete.
3240 (Find_Overlaid_Entity): New procedure.
3241 * sem_util.adb (Find_Overlaid_Object): Rename to...
3242 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
3243 whether the address is offseted within the overlaid entity.
3244 (Has_Compatible_Alignment): Track the offset globally instead of
3245 passing it to Check_Offset. For an indexed component, compute the
3246 full offset when possible. If the resulting offset is zero, only
3248 (Check_Offset): Delete.
3249 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
3250 (Address_Aliased_Entity): Delete.
3251 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
3252 Find_Overlaid_Entity to find the overlaid entity and the offset.
3253 Adjust throughout for above change.
3254 (Validate_Address_Clauses): Always use attributes of entities, not of
3255 their type. Tweak message for warning. Call Has_Compatible_Alignment
3256 if the address is offseted to warn about incompatible alignments.
3257 * gcc-interface/gigi.h (annotate_object): Declare.
3258 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
3259 entity. Call annotate_object instead of annotating manually objects.
3260 (annotate_object): New function.
3261 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
3264 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3266 * gcc-interface/ada-tree.h: Minor reorganization.
3267 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
3268 (gnat_print_type): Likewise.
3270 2009-07-11 Thomas Quinot <quinot@adacore.com>
3272 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
3275 * exp_ch6.adb: Minor reformatting
3277 2009-07-11 Ed Schonberg <schonberg@adacore.com>
3279 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
3280 account possible type qualification to determine whether aggregate
3281 needs a target temporary to respect atomic type or object.
3283 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
3284 Expand_Atomic_Aggregate.
3286 2009-07-11 Emmanuel Briot <briot@adacore.com>
3288 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
3290 (Excluded_Sources_Htable): No longer a global table.
3291 Change error message to indicate which files are illegal in the list
3292 of excluded files, as opposed to only the location in the project
3294 (Find_Source): New subprogram.
3296 2009-07-10 Thomas Quinot <quinot@adacore.com>
3298 * exp_ch7.adb: Update comments.
3300 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3302 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
3303 clause if -gnatI is set instead of crashing.
3305 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3307 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
3308 Additional work to remove redundant successive raise statements, in
3309 this case access checks.
3311 2009-07-10 Vincent Celier <celier@adacore.com>
3313 * make.adb (Compile): Always create a deep copy of the mapping file
3314 argument (-gnatem=...) as it may be deallocate/reallocate by
3315 Normalize_Arguments.
3317 2009-07-10 Javier Miranda <miranda@adacore.com>
3319 * einfo.adb (Directly_Designated_Type): Add assertion.
3321 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
3322 access types before using attribute Directly_Designated_Type.
3324 2009-07-10 Emmanuel Briot <briot@adacore.com>
3326 * prj.ads: Minor typo fix
3328 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3330 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
3333 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
3334 subprogram is a function call, resolve properly, to ensure that extra
3335 actuals are added as needed.
3337 2009-07-10 Thomas Quinot <quinot@adacore.com>
3339 * sem_aggr.adb: Minor comments editing
3341 * exp_tss.adb, exp_ch3.adb: Minor reformatting
3343 2009-07-10 Robert Dewar <dewar@adacore.com>
3345 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
3347 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
3350 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
3351 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
3352 case of conditional expressions that may not be elaborated.
3354 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
3355 conditional expression where we may not execute then then or else
3358 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3360 * i-cexten.ads (bool): New type.
3362 2009-07-10 Robert Dewar <dewar@adacore.com>
3364 * sinfo.ads (N_Short_Circuit): New definition
3366 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
3367 treepr.adb: Minor code reorganization (use N_Short_Circuit)
3369 2009-07-10 Javier Miranda <miranda@adacore.com>
3371 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
3372 non-tagged record types.
3375 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
3376 with non-tagged types. Required to import C++ classes that have no
3378 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
3379 returning non-tagged types. For backward compatibility, if the
3380 constructor returns a class wide type we internally change the
3381 returned type to the corresponding non class-wide type.
3384 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
3385 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
3386 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
3387 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
3390 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
3392 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
3394 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
3396 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
3398 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
3401 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
3404 (pragma CPP_Class): Document that it can be used now with non-tagged
3406 (pragma CPP_Constructor): Document that it can be used now with
3407 functions returning specific types. For backward compatibility
3408 we also support functions returning class-wide types.
3411 (Interfacing with C++ constructors): Update the examples to incorporate
3412 the new syntax in which the functions used to import C++ constructors
3413 return specific types.
3414 (Interfacing with C++ at the Class Level): Update the examples to
3415 incorporate the new syntax in which the functions used to import
3416 C++ constructors return specific types.
3418 2009-07-10 Thomas Quinot <quinot@adacore.com>
3420 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
3421 Make_Disp_Conditional_Select_Body,
3422 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
3423 interface nor a concurrent type, the primitive body is empty. Generate
3424 a null statement so that it remains well formed.
3426 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3428 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
3429 replace references to them in defaulted component expressions with
3430 references to the values of the discriminants of the target object.
3432 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3434 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
3435 pragma, to capture global references if the context is generic.
3437 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
3438 appears within the initialization procedure for the corresponding
3439 record, replace it with the proper discriminal.
3441 2009-07-10 Vincent Celier <celier@adacore.com>
3443 * make.adb: Do not include object directories or library ALI
3444 directories of library projects in the object path.
3446 2009-07-10 Javier Miranda <miranda@adacore.com>
3448 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
3449 Typ argument to ensure proper management of access types.
3451 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3453 * exp_ch7.adb (Build_Final_List): If the list is being built for a
3454 Taft-Amendment type, place the finalization list in the package body,
3455 to ensure that the tree for the spec is identical whenever it is
3458 2009-07-10 Javier Miranda <miranda@adacore.com>
3460 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
3461 inheriting attributes from a private Parent_Base.
3463 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3465 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
3466 statements with the same condition.
3468 2009-07-10 Robert Dewar <dewar@adacore.com>
3470 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
3472 2009-07-09 Tom Tromey <tromey@redhat.com>
3474 * raise-gcc.c: Include dwarf2h (unconditionally).
3476 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3478 * sem_ch10.adb (Install_Context): If the unit is a package body,
3479 install the private with_clauses of the corresponding package
3482 2009-07-09 Robert Dewar <dewar@adacore.com>
3484 * checks.adb: Minor reformatting
3486 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3488 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3491 2009-07-09 Thomas Quinot <quinot@adacore.com>
3493 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3494 Do not warn for a constant overlaying any constant object
3496 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3498 * sem_ch10.adb (Install_Context): If the unit is a package body,
3499 install the private with_clauses of the corresponding package
3502 2009-07-09 Robert Dewar <dewar@adacore.com>
3504 * checks.adb: Minor reformatting
3506 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3508 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3511 2009-07-09 Thomas Quinot <quinot@adacore.com>
3513 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3514 Do not warn for a constant overlaying any constant object
3516 2009-07-09 Arnaud Charlet <charlet@adacore.com>
3518 * gcc-interface/Make-lang.in: Update dependencies
3520 2009-07-09 Thomas Quinot <quinot@adacore.com>
3522 * g-socket.adb (Check_Selector): Do not create local copies of the
3523 socket sets on the stack.
3525 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3527 * gnat_ugn.texi: Add missing VMS translations.
3529 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3531 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
3532 condition, to prevent generation of visible code during expansion,
3533 when Check is not enabled.
3535 2009-07-09 Gary Dismukes <dismukes@adacore.com>
3537 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
3538 the check gets registered for any available local handler
3541 * sem_util.adb: Add with and use of Exp_Ch11.
3542 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
3543 that the check gets registered for any available local handler.
3545 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
3548 2009-07-09 Steve Baird <baird@adacore.com>
3550 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
3552 (Expand_N_Exception_Declaration): Fix handling of exceptions
3553 declared in a subprogram.
3555 2009-07-09 Emmanuel Briot <briot@adacore.com>
3557 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
3560 2009-07-09 Thomas Quinot <quinot@adacore.com>
3562 * freeze.adb: Minor reformatting
3564 * exp_ch3.adb: Minor comment fix.
3566 * sinfo.ads: Minor comment fix
3568 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3570 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
3572 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3574 * freeze.adb (Freeze_Expression): If the expression is the name of a
3575 function in a call, and the function has not been frozen yet, create
3576 extra formals for it to ensure that the proper actuals are created
3577 when expanding the call.
3579 2009-07-09 Emmanuel Briot <briot@adacore.com>
3581 * prj-pp.adb (Print): Fix handling of source index when set on a
3584 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3586 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
3587 a temporary to the source expression whose value it captures.
3589 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
3591 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3593 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
3596 2009-07-07 Gary Dismukes <dismukes@adacore.com>
3598 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
3599 parameters when the subtype of the actual is not known to be a subrange
3600 of the formal's subtype.
3601 (Expand_Call): Generate a range check only in the E_In_parameter case
3602 (in out parameter range checks are now handled in Expand_Actuals).
3604 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
3607 2009-07-07 Robert Dewar <dewar@adacore.com>
3609 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
3611 2009-07-07 Javier Miranda <miranda@adacore.com>
3613 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
3614 designated type comes from a limited views.
3616 2009-07-07 Emmanuel Briot <briot@adacore.com>
3618 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
3619 locally removed files that are later made visible again in an importing
3622 2009-07-07 Robert Dewar <dewar@adacore.com>
3624 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
3626 2009-07-07 Sergey Rybin <rybin@adacore.com>
3628 * gnat_ugn.texi: Add an example to the description of gnatcheck
3629 'Style_Checks' rule option.
3631 2009-07-07 Tristan Gingold <gingold@adacore.com>
3633 * seh_init.c: Fix inline assembly statement in seh_init.c
3635 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3637 * sem_warn.adb (Check_References): Do not emit warnings on formals of
3638 an entry body. Only the formals of the entry declaration are traced.
3640 2009-07-07 Robert Dewar <dewar@adacore.com>
3642 * s-osprim-mingw.adb: Minor code reorganization
3644 2009-07-07 Robert Dewar <dewar@adacore.com>
3646 * prj-nmsc.adb: Minor reformatting
3648 2009-07-07 Pascal Obry <obry@adacore.com>
3650 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
3651 cases where Pattern is longer than Source.
3653 2009-07-07 Pascal Obry <obry@adacore.com>
3655 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
3657 2009-07-07 Emmanuel Briot <briot@adacore.com>
3659 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
3662 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3664 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
3665 primitive operations, in case one of them is called in the
3666 initialization procedure for the type.
3668 2009-07-07 Robert Dewar <dewar@adacore.com>
3670 * a-calend.adb: Minor code reorganization (use conditional expressions)
3672 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
3673 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
3674 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
3675 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
3676 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
3677 g-comlin.adb, exp_ch11.adb: Minor reformatting.
3679 2009-07-07 Gary Dismukes <dismukes@adacore.com>
3681 * checks.adb (Generate_Range_Check): Replace type conversions with
3682 unchecked conversions to support the case of performing range checks
3683 on Enum'Val (permits integer values to be converted to enumeration).
3685 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
3686 Attribute_Succ): Set Do_Range_Check to False before calling
3687 Expand_Pred_Succ, to prevent gigi from generating any range checks.
3688 (Expand_N_Attribute_Reference, case Attribute_Val):
3689 Generate a range check when needed (and set Do_Range_Check to False).
3691 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
3692 scalar object initialization if needed.
3694 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
3695 when needed on scalar allocators.
3696 (Expand_N_Qualified_Expression): Generate range check when needed.
3697 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
3698 Checks on slice ranges handled in Resolve_Slice.
3700 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
3701 when needed, for all scalar assignments, not just discrete.
3702 (Expand_Simple_Function_Return): Resolve the conversion created for a
3703 scalar function return so that the conversion will get expanded to
3704 generate a possible constraint check.
3706 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
3707 in out scalar actuals when subtypes don't match, to ensure generation
3708 of return checks (and set Do_Range_Check to False).
3709 (Expand_Call): Uncomment code to perform range checks, but make it apply
3710 only to in and in out parameters (checks on parameter returns are
3711 handled in Expand_Actuals). If a scalar actual for a call to a derived
3712 subprogram is marked as needing a range check, peform it here (and set
3713 Do_Range_Check to False).
3715 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
3716 range check on scalar component associations when needed.
3718 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
3719 infinities but the second type does not, as these aren't compatible
3720 floating-point types.
3722 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
3723 slice is itself a slice, pick up the Etype of the prefix. This handles
3724 the case where the prefix was an Image attribute expanded to a slice,
3725 and ensures that we get the subtype with the slice constraint rather
3726 than the unconstrained subbtype of the 'Image.
3728 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3730 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
3731 overloaded expressions in a conditional expressions.
3733 * sem_res.adb (Resolve): Handle properly overloaded conditional
3736 2009-07-07 Robert Dewar <dewar@adacore.com>
3738 * scng.adb: Minor reformattting
3740 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
3741 association allows conditional expression without parens.
3743 * par-ch4.adb (P_Name): Attribute arguments can be conditional
3744 expressions without enclosing parentheses, and also as parameters,
3745 indexing expressions etc.
3746 (P_Conditional_Expression): New procedure
3747 (P_Expression_If_OK): New procedure
3749 * par.adb (P_Conditional_Expression): New procedure
3750 (P_Expression_If_OK): New procedure
3752 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
3753 form of conditional expression.
3755 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
3756 missing True argument if ELSE argument missing.
3758 * sinfo.adb (Is_Elsif): New flag
3760 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
3761 part of the language, and the documentation is modified accordingly.
3762 (Is_Elsif): New flag
3764 2009-07-06 Olivier Hainque <hainque@adacore.com>
3766 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
3767 setjmp_longjmp): Attach the exception propagation reraise fallback
3768 to the sequence end label location when we have it.
3770 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3773 * init.c (APPLE): Include <mach/mach_init.h>.
3774 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
3776 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
3778 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
3779 (SET_DECL_LANG_SPECIFIC): Likewise.
3780 (TYPE_RM_VALUE): New macro.
3781 (SET_TYPE_RM_VALUE): Likewise.
3782 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
3783 (TYPE_RM_MIN_VALUE): Likewise.
3784 (TYPE_RM_MAX_VALUE): Likewise.
3785 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
3786 (SET_TYPE_RM_MIN_VALUE): Likewise.
3787 (SET_TYPE_RM_MAX_VALUE): Likewise.
3788 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
3790 2009-07-04 Laurent GUERBY <laurent@guerby.net>
3793 * tracebak.c (__gnat_backtrace): Fix old-style definition.
3795 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3797 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
3799 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3802 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
3805 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
3807 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
3809 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
3811 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
3812 the type of the left operand if it pads a self-referential type when
3813 the right operand is a constructor.
3815 * gcc-interface/lang-specs.h: Fix copyright date.
3817 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
3819 * gcc-interface/decl.c: Include tree-inline.h.
3820 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
3821 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
3822 * gcc-interface/utils2.c: Include tree-inline.
3823 (known_alignment) <CALL_EXPR>: Likewise.
3825 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
3827 * raise-gcc.c: Include dwarf2.h conditionally.
3829 2009-06-29 Tom Tromey <tromey@redhat.com>
3831 * raise-gcc.c: Include elf/dwarf2.h.
3833 2009-06-27 Laurent GUERBY <laurent@guerby.net>
3835 * tb-gcc.c (trace_callback): Add casts to silence warning.
3837 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
3839 * tb-gcc.c: Fix copyright notice.
3841 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
3843 * init.c (__gnat_set_globals): Add prototype.
3844 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
3845 (__gnat_sals_init_using_constructors): Likewise.
3846 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
3847 (get_block_jmpbuf_decl): Likewise.
3848 (gnat_poplevel): Likewise.
3849 (merge_sizes): Rename local variable.
3850 (copy_type): Likewise.
3851 (build_vms_descriptor32): Likewise.
3852 (build_vms_descriptor): Likewise.
3853 (convert_vms_descriptor64): Likewise.
3854 (convert_vms_descriptor32): Likewise.
3855 (convert_to_fat_pointer): Likewise.
3856 (maybe_unconstrained_array): Likewise.
3857 (def_fn_type): Use promoted type with va_arg.
3858 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
3859 (substitute_in_type): Rename local variable.
3860 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
3862 2009-06-26 Laurent GUERBY <laurent@guerby.net>
3864 * tb-gcc.c (trace_callback): Use char* instead of void*.
3865 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
3866 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
3867 (Attribute_to_gnu): Adjust for above change.
3868 (Subprogram_Body_to_gnu): Likewise.
3869 * gcc-interface/utils.c (merge_sizes): Rename local variable.
3870 (copy_type): Likewise.
3871 (build_vms_descriptor32): Likewise.
3872 (build_vms_descriptor): Likewise.
3873 (convert_vms_descriptor64): Likewise.
3874 (convert_vms_descriptor32): Likewise.
3875 (convert_to_fat_pointer): Likewise.
3876 (maybe_unconstrained_array): Likewise.
3877 * gcc-interface/decl.c (substitute_in_type): Likewise.
3879 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
3881 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
3882 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
3883 of the upper bound of the index types.
3885 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
3887 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
3888 out common predicate. Use the maximum to compute the upper bound of
3889 the index type only when it is not wider than sizetype. Perform the
3890 comparison in the index type for the generic expression. Use real
3891 precision to decide whether to generate special types for debugging
3894 2009-06-26 Matthew Gingell <gingell@adacore.com>
3896 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
3898 2009-06-26 Vincent Celier <celier@adacore.com>
3900 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
3903 2009-06-26 Robert Dewar <dewar@adacore.com>
3905 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
3907 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
3909 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
3910 correct arguments to create_field_decl. Remove redundant iteration.
3911 Rewrite computation of the maximum size.
3912 <E_Array_Subtype>: Reorder and simplify handling of special cases.
3913 Rewrite computation of the maximum size. Use consistent naming.
3914 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
3915 comparison order for consistency. Use generic integer node to
3916 build the operator and fold the result.
3918 2009-06-25 Vincent Celier <celier@adacore.com>
3920 * vms_data.ads: Minor comment change
3922 2009-06-25 Gary Dismukes <dismukes@adacore.com>
3924 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
3925 assignment statement to targeting a caller-provided object when the
3926 result type is an interface type.
3928 * exp_ch6.adb (Expand_Call): Remove redundant test of
3929 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
3930 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
3932 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
3933 to OK_For_Limited_Init.
3935 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
3936 condition so that True is returned for all limited interfaces, not
3937 just synchronized ones. Ignore components of an interface type when
3938 checking for limited components (such a component can be a parent
3941 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
3942 (OK_For_Limited_Init): Add type parameter.
3944 * sem_ch3.adb (Check_Initialization): Add type in call to
3945 OK_For_Limited_Init.
3946 (OK_For_Limited_Init): Add new type param in call to
3947 OK_For_Limited_Init_In_05.
3948 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
3949 nonlimited type when the context type is a limited interface. Add type
3952 * sem_ch4.adb (Analyze_Allocator): Add type in call to
3953 OK_For_Limited_Init.
3955 * sem_ch6.adb (Check_Limited_Return): Add type in call to
3956 OK_For_Limited_Init.
3958 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
3959 OK_For_Limited_Init.
3960 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
3962 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
3963 class-wide interface, get the base type before applying Etype, in order
3964 to account for class-wide subtypes.
3966 2009-06-25 Emmanuel Briot <briot@adacore.com>
3968 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
3969 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
3970 between gnatmake and gprbuild.
3971 (Naming_Data): Removed, no longer used
3972 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
3973 needed locally in one subprogram, no need to store forever in the
3975 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
3977 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
3978 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
3979 Spec_Suffix_Id_Of): removed, no longer used.
3981 2009-06-25 Javier Miranda <miranda@adacore.com>
3983 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
3984 types on qualified expression in calls to imported C++ constructors.
3986 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
3987 imported C++ constructors.
3989 2009-06-25 Sergey Rybin <rybin@adacore.com>
3991 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
3993 2009-06-25 Vincent Celier <celier@adacore.com>
3995 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
3996 provided, on Windows change all '/' to '\'.
3998 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
3999 used. Minor comment changes
4001 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
4002 Remove_Forbidden_File_Name.
4004 2009-06-25 Quentin Ochem <ochem@adacore.com>
4006 * prj.ads (Unit_Index): Now general access type.
4008 2009-06-25 Pascal Obry <obry@adacore.com>
4010 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
4012 2009-06-25 Emmanuel Briot <briot@adacore.com>
4014 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
4015 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
4016 computed efficiently from the other fields.
4017 (Object_To_Global_Archive): New subprogram
4018 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
4019 (Override_Kind): Fix handling of separates in Ada.
4020 (Create_Mapping_File): Remove duplicate code
4021 (Naming_Data.Implementation_Exception, Specification_Exception):
4022 field removed, since never used.
4023 (Naming_Data.Specs, .Bodies): field removed, since this is only
4024 used while processing the project and is not needed once the tree
4025 is in memory. This brings Naming_Data and Lang_Naming_Data
4026 closer (same content now, but different use still).
4028 2009-06-25 Pascal Obry <obry@adacore.com>
4030 * sem_ch4.adb: Minor reformatting.
4032 * a-strsea.adb: Fix confusion between 'Length and 'Last.
4034 2009-06-25 Ed Schonberg <schonberg@adacore.com>
4036 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
4037 Unchecked_Access): If the context is an interface type, and the prefix
4038 is of the corresponding class-wide type, do not insert a conversion
4039 because the pointer displacement has already taken place, and we must
4040 retain the class-wide type in a dispatching context.
4042 2009-06-25 Emmanuel Briot <briot@adacore.com>
4044 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
4045 the previous source file.
4046 (Create_Mapping): Iterate on sources rather than on units.
4048 2009-06-25 Emmanuel Briot <briot@adacore.com>
4050 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
4051 prj-env.adb, prj-env.ads (Slash): removed, no longer used
4052 (Source_Data): no longer use Path.Name to point to a locally removed
4053 file. Instead we use the field Locally_Removed which is clearer
4055 2009-06-25 Arnaud Charlet <charlet@adacore.com>
4057 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
4059 * sem_maps.adb, sem_maps.ads: Removed, not used.
4061 2009-06-25 Ed Falis <falis@adacore.com>
4063 * s-vxwext-rtp.ads: Add missing declaration
4065 2009-06-25 Matthew Gingell <gingell@adacore.com>
4067 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
4068 speed up unmapped case.
4070 2009-06-25 Vincent Celier <celier@adacore.com>
4072 * prj-nmsc.adb (Check): Change error message for illegal abstract
4075 2009-06-25 Robert Dewar <dewar@adacore.com>
4077 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
4079 2009-06-25 Emmanuel Briot <briot@adacore.com>
4081 * fmap.ads: Add documentation on mapping files
4083 2009-06-25 Robert Dewar <dewar@adacore.com>
4085 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
4088 2009-06-24 Robert Dewar <dewar@adacore.com>
4090 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
4092 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
4096 2009-06-24 Ed Schonberg <schonberg@adacore.com>
4098 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
4099 present when checking whether a call may be interpreted as an indexing
4100 of the result of a call.
4102 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
4103 body for a null procedure on the freeze actions for the procedure, so
4104 that it will be analyzed at the proper place without premature freezing
4107 * sem_ch3.adb (Check_Completion): Code cleanup.
4108 Do not diagnose a null procedure without a body, if previous errors
4109 have disabled expansion.
4111 2009-06-24 Doug Rupp <rupp@adacore.com>
4113 * init.c [VMS] Resignal C$_SIGKILL
4115 2009-06-24 Ed Falis <falis@adacore.com>
4117 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
4118 Define ERROR in body for VxWorks 6 kernel
4120 2009-06-24 Pascal Obry <obry@adacore.com>
4122 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
4123 in [Send/Receive]_Socket.
4125 2009-06-24 Emmanuel Briot <briot@adacore.com>
4127 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
4128 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
4129 to several subprograms.
4130 (Source_Data.Other_Part): Removed, since can be computed from the
4132 (Other_Part): New subprogram.
4134 2009-06-24 Emmanuel Briot <briot@adacore.com>
4136 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
4137 the full base name of the file when the suffix doesn't start with a '.'.
4139 2009-06-24 Vincent Celier <celier@adacore.com>
4141 * prj-nmsc.adb (Check): A project declared abstract is legal if no
4142 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
4145 2009-06-24 Robert Dewar <dewar@adacore.com>
4147 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
4148 prj-env.adb: Minor reformatting
4150 2009-06-24 Ed Falis <falis@adacore.com>
4152 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
4153 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
4154 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
4155 support for VxWorks SMP.
4157 * gcc-interface/Make-lang.in: Update dependencies
4159 2009-06-24 Emmanuel Briot <briot@adacore.com>
4161 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4162 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
4164 (Source_Data.Lang_Kind): Removed, since it duplicates information
4165 already available through Language.Config.
4166 (Source_Data.Compile): Removed, since information is already available
4167 through the language.
4168 (Is_Compilable): New subprogram.
4169 (Source_Data.Dependency): Removed, since already available through
4171 (Source_Data.Object_Exist, Object_Linked): Removed since available
4172 through the language already.
4173 (Unit_Data.File_Names): Is now also set in multi_language mode, to
4174 bring the two modes closer in the resulting data structures.
4175 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
4176 just the name that would point into a hash table.
4177 (Get_Language_From_Name): New subprogram.
4179 2009-06-24 Javier Miranda <miranda@adacore.com>
4181 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
4182 visible through limited-with context clauses. In addition, avoid an
4183 extra tag check that is not required when the class-wide
4184 designated types of the operand and target types are
4186 (Tagged_Membership): Handle entities from the limited view.
4188 2009-06-24 Emmanuel Briot <briot@adacore.com>
4190 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
4191 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
4192 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
4193 different vocabularies for similar concepts (Impl/Body_Part and
4194 Spec/Specification).
4195 (Unit_Data): now points directly to a Source_Id, rather than duplicating
4196 some of the information in File_Name_Data. This also saves a bit of
4197 memory. However, since we are now using a pointer we need to test
4198 for null explicitly in several places of the code
4200 2009-06-24 Javier Miranda <miranda@adacore.com>
4202 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
4203 from processing the type conversion when the node is
4204 replaced by an N_Raise_Program_Error node.
4206 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
4208 * sem_ch6.adb (Designates_From_With_Type): New routine.
4209 (Process_Formals): Since anonymous access types are no longer flagged
4210 as from with types, traverse the designated type to determine whether
4211 it is coming from a limited view.
4213 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
4214 (Full_Designated_Type): Use Available_View to extract the non-limited /
4215 full view of a type.
4217 2009-06-24 Robert Dewar <dewar@adacore.com>
4219 * exp_ch6.adb: Minor reformatting
4221 * layout.adb: Minor reformatting
4223 * make.adb: Minor reformatting
4225 2009-06-24 Thomas Quinot <quinot@adacore.com>
4227 * sem_ch10.adb: Minor code reorganization.
4229 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
4231 * ttypes.ads: Minor editing.
4233 2009-06-24 Robert Dewar <dewar@adacore.com>
4235 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
4236 in deciding to do call-by-copy code.
4238 2009-06-24 Vincent Celier <celier@adacore.com>
4240 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
4241 check if an externally built library file is more current than the
4244 2009-06-23 Olivier Hainque <hainque@adacore.com>
4246 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
4247 c-common.c and populate in gnat_internal_attribute_table.
4249 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4251 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
4252 Available_View only when designated type of an anonymous access type
4255 2009-06-23 Robert Dewar <dewar@adacore.com>
4257 * sem_ch10.adb: Minor reformatting
4259 * ali.ads: Mino reformatting.
4261 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
4262 turning off inlining if ASIS mode active).
4264 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
4265 This belongs in gnat1drv.adb after switches are scanned.
4267 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
4269 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
4270 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
4271 when dealing with class-wide types. Detect a legal shadow entity and
4272 retrieve its non-limited view.
4274 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
4275 subprogram to top package level from Intall_Limited_Withed_Unit.
4276 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
4277 Add check which prevents the installation of a limited view if the
4278 non-limited view is already visible through a with clause.
4279 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
4280 legal shadow entity which may occur in subprogram formals of anonymous
4283 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
4285 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
4286 From_With_Type from the designated type to the generated anonymous
4287 access type. Remove associated comment.
4289 * sem_res.adb Add with and use clauses for Sem_Ch10.
4290 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
4291 non-limited view. Since the shadow entity may replace a regular
4292 incomplete type, return the available full view.
4294 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4296 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
4297 incomplete type declarations. Previous code was potentially quadratic
4298 in the number of visible declarations in any package appearing in a
4299 limited_with_clause.
4301 2009-06-23 Robert Dewar <dewar@adacore.com>
4303 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
4304 xref_lib.adb: Minor reformatting
4306 2009-06-23 Robert Dewar <dewar@adacore.com>
4308 * a-stzhas.adb: Provide dummy body to avoid build problems with old
4309 versions which did have a body for this unit.
4311 2009-06-23 Vincent Celier <celier@adacore.com>
4313 * prj-attr.adb: Attribute names Initial_Required_Switches and
4314 Final_Required_Switches changed to Leading_Required_Switches and
4315 Trailing_Required_Switches.
4317 * prj-nmsc.adb (Process_Compiler): Attribute names
4318 Initial_Required_Switches and Final_Required_Switches changed to
4319 Leading_Required_Switches and Trailing_Required_Switches.
4321 * prj.ads (Language_Config): Component Initial_Required_Switches and
4322 Final_Required_Switches changed to Leading_Required_Switches and
4323 Trailing_Required_Switches.
4325 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
4326 Final_Required_Switches; add standard names Leading_Required_Switches
4327 and Trailing_Required_Switches.
4329 2009-06-23 Thomas Quinot <quinot@adacore.com>
4331 * prj-conf.adb: Minor reformatting
4333 * xref_lib.adb: Minor cleanup
4335 2009-06-23 Emmanuel Briot <briot@adacore.com>
4337 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
4338 prj-conf.ads (Check_Configuration): New parameter
4339 Compiler_Driver_Mandatory.
4341 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4343 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
4344 context of the current unit has an inline pragma, the instance is not
4345 rewritten as the declaration of the package wrapper. Handle both
4346 possibilities when retrieving the visible subprogram that renames the
4347 instantiation itself.
4349 2009-06-23 Javier Miranda <miranda@adacore.com>
4351 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
4352 designated types referencing entities from the limited view.
4354 2009-06-23 Robert Dewar <dewar@adacore.com>
4356 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
4358 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
4361 * prj-conf.ads: Minor reformatting
4363 * prj-conf.adb: Minor reformatting
4365 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
4367 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
4368 to correspond to the log format that gnatmem now expects.
4370 2009-06-23 Vincent Celier <celier@adacore.com>
4372 * prj-attr.adb: New attributes Initial_Required_Switches,
4373 Final_Required_Switches and Object_File_Switches
4375 * prj-nmsc.adb (Process_Compiler): Process new attributes
4376 Name_Final_Required_Switches, Name_Initial_Required_Switches and
4377 Name_Object_File_Switches.
4379 * prj.ads (Language_Config): New component
4380 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
4381 Compiler_Final_Required_Switches and Object_File_Switches.
4383 * snames.ads-tmpl: New standard names Initial_Required_Switches,
4384 Final_Required_Switches and Object_File_Switches
4386 2009-06-23 Pascal Obry <obry@adacore.com>
4388 * s-strhas.adb, s-strhas.ads: Minor reformatting.
4390 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4392 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
4393 not indicate that the enclosing unit needs a body.
4395 2009-06-23 Emmanuel Briot <briot@adacore.com>
4397 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
4399 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4401 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
4402 primitive equality include it with its source name even if the
4403 operation is currently invisible, to make sure that the corresponding
4404 slot in the dispatch table is reserved for the internal equality
4405 subsequently generated during expansion.
4407 2009-06-23 Matthew Gingell <gingell@adacore.com>
4409 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
4411 2009-06-22 Jose Ruiz <ruiz@adacore.com>
4413 * sysdep.c (__gnat_localtime_tzoff for RTX):
4414 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
4415 GetTimeZoneInformation instead.
4417 2009-06-22 Robert Dewar <dewar@adacore.com>
4419 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
4421 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4423 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
4424 instantiations declared in a previous generic package body.
4426 2009-06-22 Robert Dewar <dewar@adacore.com>
4428 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
4429 restriction No_Direct_Boolean_Operators.
4431 2009-06-22 Thomas Quinot <quinot@adacore.com>
4433 * bindusg.adb: Minor fixes to gnatbind usage message
4435 * sem_eval.adb: Minor reformatting
4437 2009-06-22 Javier Miranda <miranda@adacore.com>
4439 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
4440 freezing point the check on the use of abstract types in object
4441 declarations. Done to allow the declaration of C++ imported variables
4442 or constants whose type corresponds with an imported C++ classes for
4443 which the constructor is not imported.
4445 2009-06-22 Thomas Quinot <quinot@adacore.com>
4447 * sem_ch6.adb: Minor reformatting
4449 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4451 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
4452 component is constrained with an expression rather than with a
4453 discriminant of the enclosing type, use that expression when building
4454 the call to default-initialize the component, when the call is part of
4455 an aggregate with box initialization.
4457 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4459 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
4460 unconditional rather than a style check, because a formal name out of
4461 order is suspicious.
4463 2009-06-22 Vincent Celier <celier@adacore.com>
4465 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
4466 creating a directory automatically.
4468 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
4470 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
4471 untagged derived type, add a hidden component for every constrained
4472 discriminant of the parent type to keep record layout consistent.
4474 2009-06-22 Thomas Quinot <quinot@adacore.com>
4476 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
4479 2009-06-22 Matthew Gingell <gingell@adacore.com>
4481 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
4482 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
4483 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
4484 a-swuwha.adb: New unit System.String_Hash.
4485 Refactor redundant cut and pasted hash functions with instances of a
4486 new generic hash function.
4487 Implement a new string hashing algorithm which appears in testing to
4488 be move effective than to previous approach.
4490 2009-06-22 Ed Falis <falis@adacore.com>
4492 * sysdep.c: remove include for nfsLib.h and an NFS specific error
4493 message for VxWorks 653 vThreads: not supported by the OS.
4495 * gsocket.h: disable sockets for VxWorks 653 vThreads.
4497 2009-06-22 Robert Dewar <dewar@adacore.com>
4499 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
4501 2009-06-22 Robert Dewar <dewar@adacore.com>
4503 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
4506 * freeze.adb: Minor comment updates
4508 * s-valrea.adb (Bad_Based_Value): New procedure
4509 (Scan_Real): Raise exceptions with messages
4511 2009-06-22 Matthew Gingell <gingell@adacore.com>
4513 * adaint.h: Complete previous change.
4515 2009-06-22 Thomas Quinot <quinot@adacore.com>
4517 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
4519 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4521 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
4522 enabled, emit warning when a non-controlling argument of the overriding
4523 operation appears out of place vis-a-vis of the formal of the
4524 overridden operation.
4526 2009-06-22 Vincent Celier <celier@adacore.com>
4528 * gnatcmd.adb (Check_Files): Close temporary files after all file names
4529 have been written into it.
4531 2009-06-22 Matthew Gingell <gingell@adacore.com>
4533 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
4536 2009-06-22 Thomas Quinot <quinot@adacore.com>
4538 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
4539 view of the root type is visible at the point of the call.
4541 2009-06-22 Pat Rogers <rogers@adacore.com>
4543 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
4545 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
4547 * freeze.adb: Add comments.
4549 2009-06-21 Thomas Quinot <quinot@adacore.com>
4551 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
4552 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
4553 Factor out code to new subprogram...
4554 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
4555 for a default initialized variable.
4556 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
4557 entity that has an associated freeze node.
4558 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
4559 If there is an init call for the object, defer it to the object freeze
4561 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
4562 name clash with new subprogram introduced in Exp_Util.
4564 2009-06-21 Robert Dewar <dewar@adacore.com>
4566 * einfo.ads: Minor reformatting
4568 2009-06-21 Ed Falis <falis@adacore.com>
4570 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
4572 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
4574 * einfo.ads: Update comments.
4576 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
4578 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
4579 where the controlling formal is of private class-wide type whose
4580 completion is a synchronized type can be converted into direct calls.
4582 2009-06-21 Vincent Celier <celier@adacore.com>
4584 * gnatcmd.adb (Check_Files): When all sources of the project are to be
4585 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
4586 of sources using -files=, so that the distinction can be made by the
4587 tool of a call with no source (to display the usage) from a call with
4588 a project file that contains no source.
4590 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
4592 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
4593 case of VM convention arrays.
4595 2009-06-20 Robert Dewar <dewar@adacore.com>
4597 * a-nudira.adb: Minor reformatting
4599 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4601 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
4602 expressions (possibly from a parent type) indicate that the scope of
4603 the new itypes is the initialization procedure being built.
4605 2009-06-20 Robert Dewar <dewar@adacore.com>
4607 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
4608 Needs_64, and now computed without anomolies for some dynamic types.
4610 2009-06-20 Thomas Quinot <quinot@adacore.com>
4612 * sem_prag.adb: Minor reformatting
4614 * exp_disp.ads: Minor reformatting
4616 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4618 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
4619 function call is a legal expression to initialize a limited object.
4621 * exp_ch3.adb: Rename various freeze operations that perform expansion
4622 actions, to prevent confusion with subprograms in the freeze package.
4624 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4626 * sem.adb (Walk_Library_Units): Check instantiations first.
4628 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
4629 private primitive if it is a function with a controlling result that is
4630 a type extension with progenitors.
4632 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
4633 a primitive operation of a synchronized tagged type that has a
4636 2009-06-20 Thomas Quinot <quinot@adacore.com>
4638 * einfo.ads: Fix typo.
4640 2009-06-20 Ed Falis <falis@adacore.com>
4642 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
4644 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4646 * gcc-interface/trans.c (emit_check): Do not wrap up the result
4648 (protect_multiple_eval): Always protect complex expressions.
4650 2009-06-19 Emmanuel Briot <briot@adacore.com>
4652 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
4653 make sure we always return a name ending with a path separator.
4655 2009-06-19 Javier Miranda <miranda@adacore.com>
4657 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
4658 Save and restore the visibility of the parent when installed.
4660 2009-06-19 Jose Ruiz <ruiz@adacore.com>
4662 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
4663 by Common which contains all these fields.
4665 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
4666 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
4667 Remove code duplication in this package by means of calling the
4668 equivalent code in s-taprob.
4670 2009-06-19 Robert Dewar <dewar@adacore.com>
4672 * a-einuoc.ads: Minor reformatting
4674 2009-06-19 Ed Falis <falis@adacore.com>
4676 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
4677 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
4679 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4681 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
4683 2009-06-19 Robert Dewar <dewar@adacore.com>
4685 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
4688 * checks.adb (Determine_Range): Move the test for generic types later.
4690 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
4692 (Eval_Relational_Op): Fold more cases including string compares
4694 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
4697 2009-06-19 Robert Dewar <dewar@adacore.com>
4699 * sem_type.ads, sem_ch12.adb: Minor reformatting
4701 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
4703 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4705 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
4706 primitive operation of a rivate extension whose controlling argument
4707 is an out parameter.
4709 * sem.adb (Walk_Library_Units): exclude generic package declarations
4712 2009-06-19 Thomas Quinot <quinot@adacore.com>
4714 * i-vxwoio.ads: Add comments
4716 2009-06-19 Thomas Quinot <quinot@adacore.com>
4718 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4719 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4720 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
4721 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
4722 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
4723 Thin_Common.Socket_Ioctl.
4724 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
4725 __gnat_socket_ioctl.
4726 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
4727 argument after the file descriptor and request code.
4729 2009-06-19 Robert Dewar <dewar@adacore.com>
4731 * checks.adb: Minor reformatting
4733 2009-06-19 Jose Ruiz <ruiz@adacore.com>
4735 * env.c (__gnat_environ): RTX does not support this functionality.
4737 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4739 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
4740 traverse, to account for front-end inlining and instantiations in a
4741 spec or in the main unit.
4743 2009-06-19 Robert Dewar <dewar@adacore.com>
4745 * checks.adb (Determine_Range): Do not attempt to get range of generic
4748 2009-06-19 Sergey Rybin <rybin@adacore.com>
4750 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
4751 gnatmetric option for generating the schema file for gnatmetric XML
4752 output. Add corresponding VMS qualifier.
4754 2009-06-19 Robert Dewar <dewar@adacore.com>
4756 * g-cgi.adb: Minor reformatting
4758 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4760 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
4761 signal code for SIGFPE and raise Program_Error for SIGILL.
4763 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
4765 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4767 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
4768 generic package if there is a visibility candidate that is declared in
4771 2009-06-18 Olivier Hainque <hainque@adacore.com>
4773 * system-aix64.ads: New file.
4774 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
4775 64bit system.ads for ppc64 multilib variants.
4777 2009-06-16 Robert Dewar <dewar@adacore.com>
4778 Olivier Hainque <hainque@adacore.com>
4780 Relax constraints on Machine_Attribute argument types:
4781 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
4783 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
4784 * gcc-interface/decl.c (prepend_attributes): Accept static
4785 expressions of any type as attribute arguments, not only string
4787 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
4788 the relaxation of the restriction on the Info argument type.
4790 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
4792 * gcc-interface/utils.c (record_builtin_type): Pass location
4793 argument to build_decl.
4794 (create_type_stub_decl): Same.
4795 (create_type_decl): Same.
4796 (create_var_decl_1): Same.
4797 (create_field_decl): Same.
4798 (create_param_decl): Same.
4799 (create_label_decl): Same.
4800 (create_subprog_decl): Same.
4801 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
4802 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
4803 argument to create_artificial_label.
4804 (Loop_Statement_to_gnu): Same.
4805 (Subprogram_Body_to_gnu): Same.
4806 (gnat_gimplify_stmt): Same.
4808 2009-06-11 Richard Henderson <rth@redhat.com>
4810 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
4813 2009-06-11 Ed Schonberg <schonberg@adacore.com>
4815 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
4816 accessibiliy check on access_to_subprogram in the context of an
4817 anonymous access that is not an access parameter.
4819 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
4821 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
4823 2009-06-11 Quentin Ochem <ochem@adacore.com>
4825 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
4826 comments for message handled by GPS.
4828 2009-06-11 Matthew Gingell <gingell@adacore.com>
4830 * adaint.c: Use fopen64 instead of fopen on platforms where we know
4833 2009-06-11 Pascal Obry <obry@adacore.com>
4835 * g-cgi.ads: Fix comment typo.
4837 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
4839 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
4841 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
4842 a reference to the original type for the type of the field of the
4844 (maybe_pad_type): Likewise.
4846 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
4847 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
4848 Pass correctly typed arguments to create_field_decl.
4849 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
4850 case of contrained discriminants as well. Use the padded base type
4851 in the other case as well. Rename temporary variable. Tweak test.
4852 Factor common access pattern. Set GNU_SIZE only once.
4854 2009-06-09 Olivier Hainque <hainque@adacore.com>
4856 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
4857 helper for build_call_alloc_dealloc with arguments to be interpreted
4858 identically. Process the case where a GNAT_PROC to call is provided.
4859 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
4860 and return an allocator for DATA_SIZE bytes aimed at containing a
4861 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
4862 DATA_TYPE alignments greater than what the latter offers.
4863 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
4864 release a DATA_TYPE object designated by DATA_PTR using the
4865 __gnat_free entry point.
4866 (build_call_alloc_dealloc): Expect object data type instead of naked
4867 alignment constraint. Use the new helpers.
4868 (build_allocator): Remove special processing for the super-aligned
4869 case, now handled by build_call_alloc_dealloc. Pass data
4870 type instead of the former alignment argument, as expected by the new
4872 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
4874 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
4875 Remove special processing for the super-aligned case, now handled
4876 by build_call_alloc_dealloc. Pass data type instead of the former
4877 alignment argument, as expected by the new interface.
4879 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
4881 * lib-writ.adb (flag_compare_debug): Import.
4882 (Write_ALI): Skip during -fcompare-debug-second.
4884 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
4886 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
4887 adjusting the discriminant nodes in an extension, use the full view
4888 of the parent subtype if it is of a private kind.
4890 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
4892 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
4893 _Parent field, if any, to the record before adding the other fields.
4894 <E_Record_Subtype>: Put the _Controller field before the other fields
4895 except for the _Tag or _Parent fields.
4896 (components_to_record): Likewise. Retrieve the _Parent field from the
4899 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
4901 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
4902 remove unused parameter and simplify.
4903 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
4904 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
4905 as context for all discriminants. Fix formatting nits.
4906 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
4907 before Discriminant_Constraint. Adjust for above renaming. Do not
4908 set GNU_TYPE more than once.
4909 (elaborate_entity): Test Has_Discriminants on the entity and use
4910 Implementation_Base_Type.
4911 (components_to_record): Rename component_list to gnat_component_list.
4912 Retrieve the _Parent field from the list. Fix nits in comments.
4913 Clarify logic in loop. Pass correct arguments to create_field_decl.
4915 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
4917 * gcc-interface/Make-lang.in: Fix formatting.
4919 2009-06-01 Olivier Hainque <hainque@adacore.com>
4920 Eric Botcazou <ebotcazou@adacore.com>
4922 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
4923 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
4924 on the result if at least one of the input fields couldn't be output
4925 as a static constant any more.
4927 2009-06-01 Olivier Hainque <hainque@adacore.com>
4928 Eric Botcazou <ebotcazou@adacore.com>
4930 * gcc-interface/utils2.c (gnat_build_constructor): Factor
4931 out code. Use initializer_constant_valid_for_bitfield_p and
4932 CONSTRUCTOR_BITFIELD_P for bit-fields.
4934 2009-05-26 Ian Lance Taylor <iant@google.com>
4936 * gcc-interface/Makefile.in (COMPILER): Define.
4937 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
4938 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
4939 (seh_init.o, tracebak.o): Likewise.
4940 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
4941 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
4942 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
4943 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
4944 (ada/utils2.o): Likewise.
4946 2009-05-24 Olivier Hainque <hainque@adacore.com>
4948 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
4949 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
4950 Add -auxbase variants to the list of recognized internal switches.
4951 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
4953 * lib.ads: Make comment on internal GCC switches more general.
4954 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
4957 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
4959 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
4961 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
4963 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
4966 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
4968 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
4969 original type because of the alignment when there is an address clause.
4971 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
4973 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
4974 discriminants affect the shape of the subtype, retrieve the GCC type
4975 directly from the original field if the GNAT types for the field and
4976 the original field are the same.
4978 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
4980 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
4982 (TYPE_RM_VALUES): Likewise.
4983 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
4984 (SET_TYPE_RM_SIZE): New macro.
4985 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
4986 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
4987 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
4988 * gcc-interface/gigi.h (create_range_type): Declare.
4989 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
4990 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
4991 <E_Signed_Integer_Subtype>: Build a regular integer type first and
4992 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
4993 <E_Floating_Point_Subtype>: Build a regular floating-point type first
4994 and then set the RM bounds.
4995 <E_Array_Type>: Use create_range_type instead of build_range_type.
4996 <E_Array_Subtype>: Build a regular integer type first and then set
4997 the RM bounds for the extra subtype.
4998 <E_String_Literal_Subtype>: Use create_range_type instead of
5000 <all>: Set the RM bounds for enumeration types and the GCC bounds for
5001 floating-point types.
5002 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
5003 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
5004 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5005 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
5006 types and with RM bounds for subtypes.
5007 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
5008 (gnat_print_type) <REAL_TYPE>: New case.
5009 <ENUMERAL_TYPE>: Fall through to above case.
5010 (gnat_get_subrange_bounds): New function.
5011 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
5012 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
5013 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
5014 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
5015 (create_range_type): New function.
5016 (create_param_decl): Build a regular integer type first and then set
5017 the RM bounds for the extra subtype.
5018 (unchecked_convert): Remove kludge for 'Valid.
5019 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
5020 the index to sizetype instead of TYPE_DOMAIN.
5022 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
5024 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
5025 parameter and move check for static expression to...
5026 (elaborate_expression): ...here. Adjust call to above function.
5027 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
5028 in calls to elaborate_expression.
5029 (elaborate_entity): Likewise.
5030 (substitution_list): Likewise.
5031 (maybe_variable): Fix formatting.
5032 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
5034 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
5036 2009-05-07 Arnaud Charlet <charlet@adacore.com>
5038 * gcc-interface/Make-lang.in: Update dependencies.
5040 2009-05-06 Laurent GUERBY <laurent@guerby.net>
5042 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
5043 Define sa_handler_pos.
5044 * s-osinte-linux.ads: Use it.
5045 * s-linux-mipsel.ads: New.
5046 * system-linux-mips64el.ads: New.
5047 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
5050 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5052 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
5053 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
5054 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
5055 (Tagged_Type_Expansion): New flag.
5056 Replace use of VM_Target related to tagged types expansion by
5057 Tagged_Type_Expansion, since tagged type expansion is not necessarily
5058 linked to VM targets.
5060 2009-05-06 Robert Dewar <dewar@adacore.com>
5062 * sem_attr.adb: Add processing for Standard'Compiler_Version
5064 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
5066 (Expr_First_Char): Add ??? comment that paren skipping needs work
5067 (Expr_Last_Char): Add ??? comment that paren skipping needs work
5069 * exp_attr.adb: Add processing for Compiler_Version
5071 * sem_attr.adb: New attribute Compiler_Version
5073 * snames.ads-tmpl: Add entries for Compiler_Version attribute
5075 * gnat_rm.texi: Document Compiler_Version attribute
5077 2009-05-06 Robert Dewar <dewar@adacore.com>
5079 * errout.adb: Minor reformatting
5081 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
5082 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
5083 styleg.adb: Add stylized comments to error messages that are included
5084 in the codefix circuitry of IDE's such as GPS.
5086 2009-05-06 Sergey Rybin <rybin@adacore.com>
5088 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
5089 new form of the rule parameter that allows to specify the suffix for
5090 access-to-access type names.
5092 2009-05-06 Robert Dewar <dewar@adacore.com>
5094 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
5095 out parameter assigned when exception handlers are present.
5097 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
5098 assignments on exit.
5100 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
5101 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
5102 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
5103 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
5104 messages that are included in the codefix circuitry of IDE's such as
5107 * sinput.ads, sinput.adb (Expr_First_Char): New function
5108 (Expr_Last_Char): New function
5110 2009-05-06 Sergey Rybin <rybin@adacore.com>
5112 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
5113 Add formal definition for extra exit point metric
5115 2009-05-06 Pascal Obry <obry@adacore.com>
5117 * adaint.c: Support for setting attributes on unicode filename on
5120 2009-05-06 Robert Dewar <dewar@adacore.com>
5122 * sem_warn.adb: Minor reformatting
5124 2009-05-06 Javier Miranda <miranda@adacore.com>
5126 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
5127 not have discriminants or components with default expressions.
5128 (Analyze_Pragma): For pragma CPP_Class check that imported types
5129 have no discriminants and components have no default expression.
5131 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
5132 class-wide types in the expression of a record component association.
5134 2009-05-06 Sergey Rybin <rybin@adacore.com>
5136 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
5138 * gnat_ugn.texi: Add description for the new extra exit points metric
5139 (gnatmetric section).
5141 2009-05-06 Robert Dewar <dewar@adacore.com>
5143 * s-fileio.adb: Minor comment update
5145 * sem_ch8.adb: Minor reformatting
5147 * exp_ch3.adb: Update comments.
5149 2009-05-06 Tristan Gingold <gingold@adacore.com>
5151 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
5153 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5155 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
5156 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
5158 * gcc-interface/Make-lang.in: Update dependencies
5160 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5162 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
5163 change. The context clause of a generic instance declaration must be
5164 preserved until the end of the compilation, because it may have to be
5165 installed/removed repeatedly.
5166 The latest change to sem.adb ensures that the context of both spec and
5167 body of an instance is traversed before the instance itself, making
5168 this patch redundant.
5170 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5172 * sem_aggr.adb: Fix typo.
5174 2009-05-06 Thomas Quinot <quinot@adacore.com>
5176 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
5177 declaration, do not adjust if the declaration is to be rewritten into
5180 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5182 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
5185 2009-05-06 Bob Duff <duff@adacore.com>
5187 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
5188 otherwise the compiler would be allowed to optimize away the cleanup
5191 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5193 * gnat_ugn.texi: Fix typo.
5195 2009-05-06 Thomas Quinot <quinot@adacore.com>
5197 * g-debuti.adb: Minor reformatting
5199 * exp_attr.adb: Minor reformatting
5201 2009-05-06 Robert Dewar <dewar@adacore.com>
5203 * sem_aggr.adb: Minor reformatting.
5205 * g-socthi-vms.adb: Minor reformatting
5207 2009-05-06 Bob Duff <duff@adacore.com>
5209 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
5210 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
5212 2009-05-06 Bob Duff <duff@adacore.com>
5214 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
5217 2009-05-06 Javier Miranda <miranda@adacore.com>
5219 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
5220 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
5221 extension aggregates.
5222 (Resolve_Record_Aggregate): Add support for C++ constructors in
5223 extension aggregates.
5225 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
5226 constructors in extension aggregates.
5228 2009-05-06 Robert Dewar <dewar@adacore.com>
5230 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
5233 2009-05-06 Thomas Quinot <quinot@adacore.com>
5235 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
5236 packed type, since on OpenVMS, struct msghdr is packed.
5238 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5240 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5241 call returning an unconstrained composite value, create the proper
5242 subtype for it, as is done for object dclarations with unconstrained
5243 nominal subtypes. Perform this transformation regarless of whether
5244 call comes from source.
5246 2009-05-06 Robert Dewar <dewar@adacore.com>
5248 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
5252 Add documentation for pragma Implicit_Packing applied to record
5255 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5257 * sem.adb (Walk_Library_Items): Place all with_clauses of an
5258 instantiation on the spec, because late instance bodies may generate
5259 with_clauses for the instance body but are inserted in the instance
5262 2009-05-06 Emmanuel Briot <briot@adacore.com>
5264 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
5265 support for returning the directory even if it doesn't exist. This is
5266 used for the object directory, since we are always setting it to a
5267 non-null value, and we should set it to an absolute name rather than a
5268 relative name for the sake of external tools that might depend on it.
5269 (Check_Library_Attributes): When Project.Library_Dir is known, check
5270 that the directory exists.
5272 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5274 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
5275 reference is an implicit dereference, do not freeze the designated type
5276 if within a default expression or when preanalyzing a pre/postcondtion.
5278 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5280 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5281 call returning an unconstrained composite value, create the proper
5282 subtype for it, as is done for object dclarations with unconstrained
5285 2009-05-06 Robert Dewar <dewar@adacore.com>
5287 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
5290 * freeze.adb: Minor reformatting
5292 2009-05-06 Thomas Quinot <quinot@adacore.com>
5294 * sem_ch3.adb (Access_Type_Declaration): An access type whose
5295 designated type is a limited view from a limited with clause (flagged
5296 From_With_Type) is not itself such a limited view.
5298 2009-05-06 Emmanuel Briot <briot@adacore.com>
5300 * prj-nmsc.adb: Remove unused variable.
5302 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
5303 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
5304 makeutl.ads, since not all users of prj.ads need this.
5306 2009-05-06 Javier Miranda <miranda@adacore.com>
5308 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
5309 constructor in case of aggregates whose type is a CPP_Class type.
5311 2009-05-06 Robert Dewar <dewar@adacore.com>
5313 * sem_ch13.adb: Minor comment additions
5315 * osint.adb: Minor reformatting
5317 2009-05-06 Pascal Obry <obry@adacore.com>
5319 * initialize.c: On Windows, keep full pathname to expanded command
5322 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5324 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
5325 an aggregate with box default is of a discriminated private type, do
5326 not build a subaggregate for it.
5327 A proper call to the initialization procedure is generated for it.
5329 2009-05-06 Thomas Quinot <quinot@adacore.com>
5331 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
5332 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
5333 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
5334 use standard array code for Standard.String.
5335 (Exp_Dist): Bump PolyORB s-parint API version to 3.
5336 (Rtsfind): New entities TA_Std_String, Unbounded_String.
5338 2009-05-06 Robert Dewar <dewar@adacore.com>
5340 * g-comlin.ads: Minor reformatting
5342 * xoscons.adb: Minor reformatting
5344 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5346 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
5347 Underlying_Type before retrieving the type definition for gathering
5348 components, to account for the case where the type is private.
5350 2009-05-06 Tristan Gingold <gingold@adacore.com>
5352 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
5354 2009-05-06 Thomas Quinot <quinot@adacore.com>
5356 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5357 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
5358 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
5359 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
5360 Windows versions): Fix incorrect base
5361 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
5362 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
5363 System.Address for the To parameter instead of a Sockaddr_In_Access, to
5364 achieve independance from AF_INET family, and also to allow this
5365 parameter to be retrieved from a Msghdr for the Windows case where
5366 these routines are used to implement C_Sendmsg and C_Recvmsg.
5368 2009-05-06 Bob Duff <duff@adacore.com>
5370 * g-expect.adb, g-expect.ads: Minor reformatting
5372 * sdefault.ads: Minor comment fix
5374 * g-expect-vms.adb: Minor reformatting
5376 * table.ads, table.adb (Append_All): New convenience procedure for
5377 appending a whole array.
5379 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
5380 box message. Call Osint.Dump_Source_File_Names to print out the file
5381 list, instead of rummaging around in various data structures.
5383 * debug.adb: New switch -gnatd.n, to print source file names as they
5386 * alloc.ads: Add parameters for Osint.File_Name_Chars.
5388 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
5389 out source file names during a "bug box".
5390 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
5391 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
5392 If it's not part of the runtimes, store it for later printing by
5393 Dump_Source_File_Names.
5395 2009-05-06 Javier Miranda <miranda@adacore.com>
5397 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
5398 documentation and add reference to the GNAT user guide for further
5401 2009-05-06 Javier Miranda <miranda@adacore.com>
5403 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
5404 also wrong examples that use extension aggregates.
5406 2009-05-06 Albert Lee <lee@adacore.com>
5408 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
5409 of Msg_Iovlen_T for VMS.
5411 2009-05-04 Laurent GUERBY <laurent@guerby.net>
5414 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
5416 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5418 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
5419 box-defaulted operator in an instantiation, when the type of the
5420 operands is not directly visible.
5422 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5424 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
5425 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
5426 analysis of the ancestor part. Remove prohibition against limited
5427 interpretations of the ancestor expression in the case of Ada 2005.
5428 Revise error message in overloaded case, adding a message to cover
5431 2009-04-29 Thomas Quinot <quinot@adacore.com>
5433 * xoscons.adb: Minor reformatting
5435 2009-04-29 Bob Duff <duff@adacore.com>
5437 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
5438 attribute_definition_clauses for the following attributes when the
5439 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
5440 Storage_Size, Write. Otherwise, we get spurious errors (for example,
5441 missing Read attribute on remote types).
5443 * gnat_ugn.texi: Document the change, and add a stern warning.
5445 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5447 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
5448 disabled not just for the current scope, but for the innermost dynamic
5451 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5453 * gcc-interface/Make-lang.in: Update dependencies
5455 2009-04-29 Vincent Celier <celier@adacore.com>
5457 * prj-part.adb: Minor comment update
5459 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5461 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
5462 box-initialized records with discriminated subcomponents that are
5463 constrained by discriminants of enclosing components. New subsidiary
5464 procedures Add_Discriminant_Values, Propagate_Discriminants.
5466 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5468 * g-socket.adb: Code clean up.
5470 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5472 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
5473 function entity, to cover the case of a parameterless function call
5474 that has not been resolved.
5476 2009-04-29 Robert Dewar <dewar@adacore.com>
5478 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
5479 reformatting and comment updates.
5481 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5483 * gnat_ugn.texi: Update some documentation about interfacing with C++
5484 Mention -fkeep-inline-functions.
5486 * gnat_ugn.texi: Minor edits
5488 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5490 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
5491 for a defaulted component of an enclosing aggregate, inherit the type
5492 from the component declaration of the enclosing type.
5494 2009-04-29 Albert Lee <lee@adacore.com>
5496 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
5497 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
5498 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
5499 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
5500 Relocate the Msghdr record type from GNAT.Sockets.Thin to
5501 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
5502 type for the Msg_Iovlen field.
5504 2009-04-29 Vincent Celier <celier@adacore.com>
5506 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
5507 Source_File_Index_Table entries for the source, to avoid crash when
5510 * gnatcmd.adb (Test_If_Relative_Path): Use
5511 Makeutl.Test_If_Relative_Path.
5513 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
5514 Including_RTS is True.
5516 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
5517 Including_RTS defaulted to False.
5519 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
5522 2009-04-29 Javier Miranda <miranda@adacore.com>
5524 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
5526 2009-04-29 Javier Miranda <miranda@adacore.com>
5528 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
5529 associated with dyamically tagged expressions if the expression
5530 initializing a tagged type corresponds with a non default CPP
5532 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
5533 of limited type objects.
5535 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
5536 when a CPP constructor is called in an assignment. Disable also the
5537 error message associated with dyamically tagged expressions if the
5538 exporession initializing a tagged type corresponds with a non default
5541 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
5542 non-default C++ constructors.
5544 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
5546 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
5547 non-default constructors.
5548 (Init_Proc): Add support for non-default constructors.
5550 * exp_disp.adb (Set_Default_Constructor): Removed.
5551 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
5552 but extending its functionality to handle non-default constructors.
5554 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
5555 constructors. Minor code cleanup removing unrequired label and goto
5558 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
5560 (Build_Init_Statements): Add support for non-default constructors.
5561 (Expand_N_Object_Declaration): Add support for non-default constructors.
5562 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
5563 to Set_CPP_Constructors.
5565 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
5566 non-default constructors.
5567 Required to handle its use in build-in-place statements.
5569 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
5570 pragma for non-default C++ constructors and the new compiler support
5571 that allows the use of these constructors in record components, limited
5572 aggregates, and extended return statements.
5574 2009-04-29 Vincent Celier <celier@adacore.com>
5576 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
5577 project extending an abstract project.
5579 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5581 * targparm.ads: Fix oversight.
5583 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5585 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
5586 derivation when necessary, to find the user-subprogram that is actally
5589 2009-04-29 Robert Dewar <dewar@adacore.com>
5591 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
5594 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5596 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
5597 primitive operation, rather than source line of synchronized type, when
5598 building the wrapper for a primitive operation that overrides an
5599 operation inherited from a progenitor, to improve the error message on
5600 duplicate declarations.
5602 * sem_ch3.adb (Process_Full_View): Use new signature of
5605 2009-04-29 Robert Dewar <dewar@adacore.com>
5607 * prj-nmsc.ads: Minor reformatting
5609 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5611 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
5612 expression on the existing parent If statement.
5614 2009-04-29 Robert Dewar <dewar@adacore.com>
5616 * prj-proc.adb, prj.ads: Minor reformatting
5618 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5620 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
5621 existing parent If statement on the newly created one.
5623 2009-04-29 Emmanuel Briot <briot@adacore.com>
5625 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
5626 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
5627 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
5628 (Set_In_Configuration, In_Configuration): Removed.
5629 Replaced by an extra parameter Is_Config_File in several parameter to
5630 avoid global variables to store the state of the parser.
5632 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5634 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
5635 with_clauses generated for the same unit through rtsfind, and that
5636 appear in the context of different units.
5638 * rtsfind.adb: New attribute First_Implicit_With, component of the
5639 Unit_Record that stores information about a unit loaded through rtsfind.
5641 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5643 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
5644 (other conditions permitting), so that abstract stream subprograms will
5645 be declared for them.
5647 2009-04-29 Bob Duff <duff@adacore.com>
5649 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
5651 * g-expect.ads: Minor comment fixes.
5653 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5655 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
5656 dispatching operation is a body without previous spec, update the list
5657 of primitive operations to ensure that cross-reference information is
5660 2009-04-29 Albert Lee <lee@adacore.com>
5662 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5663 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5664 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
5665 (GNAT.Sockets.Thin.C_Readv,
5666 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
5667 (GNAT.Sockets.Thin.C_Recvmsg,
5668 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
5670 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
5671 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
5673 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5675 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
5676 operation is a body without previous spec, update the list of
5677 primitive operations to ensure that cross-reference information is
5680 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
5681 new compilation unit node for the instance declaration, keep the
5682 context items of the original unit on it, so that the context of the
5683 instance body only holds the context inherited from the generic body.
5685 2009-04-29 Bob Duff <duff@adacore.com>
5687 * sem_res.adb: Minor comment fix.
5689 2009-04-29 Thomas Quinot <quinot@adacore.com>
5691 * sem_elim.adb: Minor reformatting
5693 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5695 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
5696 predefined unit, allow arbitrary number of components in static
5697 aggregate, to ensure that the same level of constant folding applies
5698 for Ada 95 and Ada 05 versions of the file.
5700 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5702 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
5703 information: no need for full scope check.
5704 (Eliminate_Error): Do not emit error in a generic context.
5706 2009-04-29 Ed Falis <falis@adacore.com>
5708 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
5709 VxWorks 653 POS does not support rmdir.
5711 2009-04-29 Matteo Bordin <bordin@adacore.com>
5713 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
5714 results are printed.
5716 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5718 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
5721 2009-04-29 Thomas Quinot <quinot@adacore.com>
5723 * make.adb: Minor reformatting.
5724 Minor code reorganization throughout.
5726 2009-04-29 Matteo Bordin <bordin@adacore.com>
5728 * s-stausa.ads: Changed visibility of type Task_Result: moved to
5729 public part to give application visibility over it.
5730 This is for future improvement and to build a public API on top of it.
5731 Changed record components name of type Task_Result to reflect the new
5734 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
5735 reporting Stack usage.
5737 * gnat_ugn.texi: Update doc of stack usage report.
5739 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
5741 * Makefile.rtl: Add new run-time files.
5743 2009-04-29 Pascal Obry <obry@adacore.com>
5745 * initialize.c: Do not expand quoted arguments.
5747 2009-04-29 Emmanuel Briot <briot@adacore.com>
5749 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
5751 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
5752 Prj.Ultimate_Extending_Project_Of
5754 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5756 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
5757 Amendment type, add the with_clause for Finalization.List_Controller
5758 only if the current context is a package body.
5760 2009-04-29 Thomas Quinot <quinot@adacore.com>
5762 * sem_ch12.adb: Minor reformatting
5764 * sem_aggr.adb: Minor reformatting
5766 * sem_ch6.adb, sem_cat.ads: Minor reformatting
5768 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
5770 2009-04-29 Quentin Ochem <ochem@adacore.com>
5772 * prj.ads (Source_Id): Now general pointer type.
5774 2009-04-29 Thomas Quinot <quinot@adacore.com>
5776 * exp_ch7.adb, rtsfind.adb: Minor reformatting
5778 * sem_res.adb: Minor reformatting
5780 2009-04-29 Thomas Quinot <quinot@adacore.com>
5782 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
5783 operands is static only if it is a predefined concatenation operator.
5785 * sem_util.adb: Minor reformatting
5787 * sem_ch12.adb (Save_References): When propagating semantic information
5788 from generic copy back to generic template, for the case of an
5789 identifier that has been rewritten to an explicit dereference whose
5790 prefix is either an object name or a parameterless funcion call
5791 denoting a global object or function, properly capture the denoted
5792 global entity: perform the corresponding rewriting in the template,
5793 and point the rewritten identifier to the correct global entity (not
5794 to the associated identifier in the generic copy).
5796 2009-04-29 Robert Dewar <dewar@adacore.com>
5798 * rtsfind.adb, prj-env.adb: Minor reformatting
5799 Minor code reorganization
5801 2009-04-29 Emmanuel Briot <briot@adacore.com>
5803 * make.adb: Fix comment
5805 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
5806 is given as argument, as might happen in gnatmake.
5808 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5810 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
5811 an abstract operation of a progenitor is not properly overridden by an
5812 operation of a derived synchronized type.
5814 2009-04-29 Robert Dewar <dewar@adacore.com>
5816 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
5817 prj-proc.adb: Minor reformatting
5818 Minor code reorganization
5820 2009-04-29 Bob Duff <duff@adacore.com>
5822 * exp_ch7.adb (Build_Final_List): For an access type that designates a
5823 Taft Amendment type, if the access type needs finalization, make sure
5824 the implicit with clause for List_Controller occurs on the package spec.
5826 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
5827 with's created for the pseudo-children of Text_IO and friends. In
5828 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
5829 Ada.Text_IO.Integer_IO both with-ing each other.
5831 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
5832 oddball cases when pragma Extend_System is used.
5834 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
5835 the case where a package spec instantiates a generic whose body with's
5836 this package, so Walk_Library_Items won't complain about cyclic with's.
5838 2009-04-29 Emmanuel Briot <briot@adacore.com>
5840 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
5841 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
5842 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
5843 (Project_Id): now a real pointer to Project_Data, instead of an index
5844 into the Projects_Table. This simplifies the API significantly, avoiding
5845 extra lookups in this table and the need to pass the Project_Tree_Ref
5846 parameter in several cases
5848 2009-04-29 Nicolas Setton <setton@adacore.com>
5850 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
5853 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
5855 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
5858 2009-04-24 Robert Dewar <dewar@adacore.com>
5860 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
5861 clean.adb: Minor reformatting.
5862 Minor code reorganization and message improvement.
5864 2009-04-24 Emmanuel Briot <briot@adacore.com>
5866 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
5867 (Alternate_Languages): now implemented as a malloc-ed list rather
5868 than through a table.
5870 2009-04-24 Thomas Quinot <quinot@adacore.com>
5872 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
5873 accurately handle cases such as "lit" & "lit" and
5874 "lit" & static_string_constant
5876 2009-04-24 Emmanuel Briot <briot@adacore.com>
5878 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
5879 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
5880 removed. Lists of projects are now implemented via standard malloc
5881 rather than through the table.
5883 2009-04-24 Thomas Quinot <quinot@adacore.com>
5885 * sem_ch12.adb: Minor reformatting
5887 * g-trasym.adb: Minor reformatting
5889 * exp_ch6.adb: Minor reformatting
5891 2009-04-24 Robert Dewar <dewar@adacore.com>
5893 * layout.adb (Layout_Type): For packed array type, copy unset
5894 size/alignment fields from the referenced Packed_Array_Type.
5896 2009-04-24 Bob Duff <duff@adacore.com>
5898 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
5899 longer needed after sem_ch12 changes.
5901 * sem.adb (Walk_Library_Items): Include with's in some debugging
5904 2009-04-24 Emmanuel Briot <briot@adacore.com>
5906 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
5907 only ever using the Project field.
5909 2009-04-24 Ed Schonberg <schonberg@adacore.com>
5911 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
5912 Body_Required on the generated compilation node. The new node is linked
5913 to its body, but both share the same file, so we do not set this flag
5914 on the new unit so as not to create a spurious dependency on a
5915 non-existent body in the ali file for the instance.
5917 2009-04-24 Robert Dewar <dewar@adacore.com>
5919 * make.adb: Minor reformatting
5921 2009-04-24 Emmanuel Briot <briot@adacore.com>
5923 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
5924 Add_Source): merge some code between those. In particular change where
5925 file normalization is done to avoid a few extra calls to
5926 Canonicalize_File_Name. This also removes the need for passing
5927 Current_Dir in a number of subprograms.
5929 2009-04-24 Bob Duff <duff@adacore.com>
5931 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
5932 False, assign the correct unit to the Cunit field of the new table
5933 entry. We want the spec unit, not the body unit.
5935 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
5936 interface for these.
5937 (Maybe_Add_With): Check whether we're trying to a with on the current
5938 unit, and avoid creating such directly self-referential with clauses.
5939 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
5940 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
5941 and matches existing comments in the spec.
5943 * sem.adb (Walk_Library_Items): Add various special cases to make the
5946 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
5947 instead of Parent (N), for uniformity.
5949 2009-04-24 Robert Dewar <dewar@adacore.com>
5951 * errout.ads: Minor reformatting
5953 2009-04-24 Emmanuel Briot <briot@adacore.com>
5955 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
5956 behavior when the project includes sources from multiple languages
5958 2009-04-24 Vincent Celier <celier@adacore.com>
5960 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
5961 is a language other than Ada declared.
5963 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
5964 Imported_First set to True.
5966 2009-04-24 Ed Schonberg <schonberg@adacore.com>
5968 * sem_res.adb: additional optimization to inhibit creation of
5969 redundant transient scopes.
5971 2009-04-24 Bob Duff <duff@adacore.com>
5973 * rtsfind.ads: Minor comment fix
5975 2009-04-24 Emmanuel Briot <briot@adacore.com>
5977 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
5978 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
5979 basically doing the same work (for explicit or implicit sources).
5980 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
5981 role. Rewritten to share some code (testing that all explicit sources
5982 have been found) between ada_only and multi_language modes.
5984 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
5986 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
5987 for CLI imported types.
5988 (Analyze_Pragma): Allow CIL or Java imported functions returning
5989 access-to-subprogram types.
5991 2009-04-24 Emmanuel Briot <briot@adacore.com>
5993 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
5994 (Project_Data.Dir_Path): field removed, since it can be computed
5995 directly from .Directory, and is needed only once when processing the
5996 project is buildgpr.adb or make.adb
5998 2009-04-24 Robert Dewar <dewar@adacore.com>
6000 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
6001 rtsfind.adb: Minor reformatting.
6002 Minor code reorganization
6004 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6006 * mlib-prj.adb: Use friendlier english identifier.
6008 * gnatcmd.adb, make.adb: Use better english identifiers.
6010 2009-04-24 Robert Dewar <dewar@adacore.com>
6012 * clean.adb: Minor reformatting
6014 2009-04-24 Robert Dewar <dewar@adacore.com>
6016 * einfo.adb (OK_To_Rename): New flag
6018 * einfo.ads (OK_To_Rename): New flag
6020 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
6023 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
6025 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
6028 2009-04-24 Emmanuel Briot <briot@adacore.com>
6030 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
6031 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
6032 field removed. This is not a property of the
6033 project, just a boolean used to traverse the project tree, and storing
6034 it in the structure prevents doing multiple traversal in parallel.
6035 (Project_Data.Checked): also removed, since it was playing the same role
6036 as Seen when we had two nested loops, and this is no longer necessary
6037 (For_All_Imported_Projects): removed, since in fact there was already
6038 the equivalent in For_Every_Project_Imported. The latter was rewritten
6039 to use a local hash table instead of Project_Data.Seen
6040 Various loops were rewritten to use For_Every_Project_Imported, thus
6041 removing the need for Project_Data.Seen. This avoids a lot of code
6044 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6046 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
6047 statements, even though the actual of the call is a concatenation,
6048 because the argument is static, and we want to preserve warning
6049 messages about sequences of code statements that are not marked
6052 * sem_warn.adb: remove obsolete comment about warning being obsolete
6054 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
6055 requeued and the delay has expired while within the accept statement
6056 that executes the requeue, do not perform the requeue and indicate that
6057 the timed call has been aborted.
6059 2009-04-24 Emmanuel Briot <briot@adacore.com>
6061 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6062 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
6063 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
6064 since they can be computed from the above.
6066 2009-04-24 Vincent Celier <celier@adacore.com>
6068 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
6070 * prj-env.adb: Move all global variables to the private part of the
6072 Access these new components instead of the global variables no longer
6074 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
6075 components that were previously global variables.
6077 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
6078 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
6081 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
6082 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
6084 * prj.adb (Initialize): Do not call Prj.Env.Initialize
6085 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
6086 components in the private part of the project tree data.
6088 * prj.ads (Private_Project_Tree_Data): new components moved from
6089 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
6090 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
6091 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
6093 2009-04-24 Vincent Celier <celier@adacore.com>
6095 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
6097 * prj-nmsc.adb (Check_Library): No error for imports by shared library
6098 projects, when --unchecked-shared-lib-imports is used.
6100 2009-04-24 Robert Dewar <dewar@adacore.com>
6102 * sem_ch7.adb: Minor reformatting
6104 2009-04-24 Tristan Gingold <gingold@adacore.com>
6106 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
6109 2009-04-24 Emmanuel Briot <briot@adacore.com>
6111 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
6112 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
6113 (For_All_Imported_Projects): new procedure
6114 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
6115 above rather than duplicating code.
6117 2009-04-24 Emmanuel Briot <briot@adacore.com>
6119 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6120 (Source_Id, Source_Data): use a real list to store sources rather than
6121 using an external table to store the elements. This makes code more
6122 efficient and more readable.
6124 2009-04-24 Emmanuel Briot <briot@adacore.com>
6126 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6127 (Source_Iterator): new type.
6128 This removes the need for having the sources on three different
6129 lists at the project tree, project and language level. They are now
6132 2009-04-24 Emmanuel Briot <briot@adacore.com>
6134 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
6136 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6138 * sem_warn.adb: Add comment on obsolete warning
6140 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6142 * s-tassta.adb (Create_Task): Fix violation of locking rule.
6144 2009-04-24 Emmanuel Briot <briot@adacore.com>
6146 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
6147 to Language_Ptr to better reflect its new implementation.
6148 (Project_Data.First_Languages_Processing): renamed to Languages now
6149 that the field with that name is no longer used
6150 (Project_Data.Languages): removed, no longer used, and duplicates
6151 information already available through First_Language_Processing.
6152 (Prj.Language_Index): now an actual pointer, instead of an index into
6153 a table. This makes the list somewhat more obvious, but more importantly
6154 removes the need to pass a pointer to the project_tree_data in a few
6155 places, and makes accessing the attributes of a languages more
6158 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6159 Thomas Quinot <quinot@adacore.com>
6161 * fe.h (Set_Identifier_Casing): Add const to second parameter.
6162 * gcc-interface/misc.c (internal_error_function): Make copy of return
6163 from pp_formatted_text before assigning BUFFER to it.
6164 (gnat_init): Likewise for main_input_filename and gnat_argv.
6165 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
6167 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6169 * ttypes.ads (Target_Double_Float_Alignment): New variable.
6170 (Target_Double_Scalar_Alignment): Likewise.
6171 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
6172 (Get_Double_Float_Alignment): New imported function.
6173 (Get_Double_Scalar_Alignment): Likewise.
6174 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
6175 the alignment of "double" floating-point types and "double" or larger
6176 scalar types, as parameterized by Target_Double_Float_Alignment and
6177 Target_Double_Scalar_Alignment respectively.
6178 * gcc-interface/gigi.h (double_float_alignment): Declare.
6179 (double_scalar_alignment): Likewise.
6180 (is_double_float_or_array): Likewise.
6181 (is_double_scalar_or_array): Likewise.
6182 (get_target_double_float_alignment): Likewise.
6183 (get_target_double_scalar_alignment): Likewise.
6184 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
6185 (get_target_strict_alignment): ...this.
6186 (get_target_double_float_alignment): New function.
6187 (get_target_double_scalar_alignment): Likewise.
6188 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6189 Test the presence of an alignment clause for under-aligned integer
6190 types. Take into account specific caps for the alignment of "double"
6191 floating-point types and "double" or larger scalar types, as
6192 parameterized by Target_Double_Float_Alignment and
6193 Target_Double_Scalar_Alignment respectively.
6194 (validate_alignment): Likewise.
6195 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
6196 (gigi): Initialize double_float_alignment and double_scalar_alignment.
6197 * gcc-interface/utils.c (double_float_alignment): New global variable.
6198 (double_scalar_alignment): Likewise.
6199 (is_double_float_or_array): New predicate.
6200 (is_double_scalar_or_array): Likewise.
6202 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6204 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
6205 the conditional expression only if it is common to both arms.
6207 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6209 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
6210 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
6211 arguments to build_allocator.
6212 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
6213 Remove code handling special allocator and assert its uselessness.
6215 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6217 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
6218 alignment is specified, do not promote that of the component type
6220 <E_Array_Subtype>: Likewise.
6222 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6224 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
6225 * sinfo.ads (Object Declaration): Likewise.
6226 (Assignment Statement): Likewise.
6227 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
6228 Do not force Is_True_Constant to false on the temporary.
6229 (Freeze_Entity): Do not force Is_True_Constant to false on names on
6230 the RHS of object declarations.
6231 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
6232 New case. Return 1 if the object is atomic.
6233 <N_Assignment_Statement>: Likewise.
6235 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6237 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
6238 For packed array types, make the original array type a parallel type
6239 for the modular type and its JM wrapper if the type is bit-packed.
6240 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
6241 record type for packed array types. Remove kludge.
6243 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6245 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
6246 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6247 Use front-end predicates to compute signedness and precision.
6248 <E_String_Literal_Subtype>: Fold range type.
6249 Make sure to set longest_float_type_node to a scalar type.
6250 (elaborate_entity): Use consistent Constraint_Error spelling.
6251 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
6252 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
6253 output for the modulus, if any.
6254 <ENUMERAL_TYPE>: Likewise for the RM size.
6255 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
6257 * gcc-interface/utils.c (finish_record_type): Really test the alignment
6258 of BLKmode bit-fields to compute their addressability.
6259 (create_index_type): Adjust comments.
6260 (create_param_decl): Create the biased subtype manually.
6261 * gcc-interface/utils2.c (build_component_ref): Use consistent
6262 Constraint_Error spelling.
6264 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6266 * gcc-interface/cuintp.c: Clean up include directives.
6267 * gcc-interface/targtyps.c: Likewise.
6268 * gcc-interface/decl.c: Likewise.
6269 * gcc-interface/misc.c: Likewise.
6270 * gcc-interface/trans.c: Likewise.
6271 * gcc-interface/utils.c: Likewise.
6272 * gcc-interface/utils2.c: Likewise.
6273 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
6275 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6277 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
6278 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
6279 (SET_DECL_LANG_SPECIFIC): Likewise.
6281 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6282 Update comment about use of build_range_type.
6283 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
6284 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
6285 check for other cases of overloading.
6286 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
6287 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
6288 Use size_int in lieu of build_int_cst.
6289 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
6292 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6294 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
6295 type is an enumeral or a boolean type, change it to an integer type
6296 with the same mode and signedness.
6298 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6300 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
6301 for an external constant whose initializer is not absolute.
6303 2009-04-22 Taras Glek <tglek@mozilla.com>
6305 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
6306 * gcc-interface/trans.c: Likewise.
6307 * gcc-interface/utils.c: Likewise.
6309 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6311 * sem_res.adb: Create block around procedure call when actual is a
6314 2009-04-22 Thomas Quinot <quinot@adacore.com>
6316 * s-soflin.ads: Fix typos
6318 2009-04-22 Vincent Celier <celier@adacore.com>
6320 * prj-env.adb: Minor comment change
6322 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
6323 Get_Name_String with No_File.
6325 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
6326 cannot be created even when not in verbose mode.
6328 2009-04-22 Emmanuel Briot <briot@adacore.com>
6330 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
6331 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
6332 Multi_Language modes, to avoid code duplication.
6333 (Project_Data.Include_Language): Removed.
6335 2009-04-22 Vincent Celier <celier@adacore.com>
6337 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
6338 the temporary file cannot be created, indicating the directory when the
6339 creation was attempted.
6341 2009-04-22 Emmanuel Briot <briot@adacore.com>
6343 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
6344 the language names, not their indices.
6346 2009-04-22 Emmanuel Briot <briot@adacore.com>
6348 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
6349 (Source_Data.Language_Name): Field removed.
6351 2009-04-22 Emmanuel Briot <briot@adacore.com>
6353 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
6356 2009-04-22 Emmanuel Briot <briot@adacore.com>
6358 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
6359 separate_suffix to the same value as the body_suffix.
6361 2009-04-22 Robert Dewar <dewar@adacore.com>
6363 * prj.adb: Minor code reorganization
6366 * prj-proc.adb: Minor code reorganization, clean up.
6368 * prj-nmsc.adb: Minor reformatting
6369 Minor code reorganization
6371 * gnat_ugn.texi: Add to doc on strict aliasing
6373 2009-04-22 Pascal Obry <obry@adacore.com>
6375 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
6378 * s-tasini.adb: Minor reformatting.
6380 * s-tassta.adb: Minor reformatting.
6382 2009-04-22 Emmanuel Briot <briot@adacore.com>
6384 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
6385 smaller subprograms.
6386 Renamed to Check_File_Naming_Schemes to avoid confusion with the
6387 other Check_Naming_Schemes functions that plays a totally different
6389 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
6390 extracted from the above. These were partially rewritten to avoid
6391 unnecessary code and temporary variables.
6392 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
6393 and Get_Unit (which for now still exist since they contain mode-specific
6396 2009-04-22 Emmanuel Briot <briot@adacore.com>
6398 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
6399 Remove duplicated code.
6400 (Canonical_Case_File_Name): new subprogram
6401 (Check_And_Normalize_Unit_Names): new subprogram
6402 (Write_Attr): new subprogram
6403 Better sharing of code
6404 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
6405 split Check_Naming and help find duplicated code
6406 (Check_Common): new subprogram, sharing code between ada_only and
6407 multi_language mode.
6408 (Naming_Data.Dot_Repl_Loc): field removed
6410 2009-04-22 Emmanuel Briot <briot@adacore.com>
6412 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
6413 Minor refactoring to reduce the size of
6414 Process_Sources_In_Multi_Language_Mode.
6415 Avoid extra copied of Source_Data, which we found in the past could be
6417 (Mark_Excluded_Sources): new subprogram.
6418 (Remove_Locally_Removed_Files_From_Units): merged into the above
6419 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
6420 and allow better sharing of code between multi_lang and ada_only modes
6421 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
6423 2009-04-22 Emmanuel Briot <briot@adacore.com>
6425 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
6426 Removed, since unused.
6428 2009-04-22 Vincent Celier <celier@adacore.com>
6430 * prj-attr.adb: New single project level attribute
6431 Separate_Run_Path_Options.
6433 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6434 attribute Seperate_Run_Path_Options.
6436 * prj.ads: (Project_Configuration): New Boolean component
6437 Separate_Run_Path_Options, defaulted to False.
6439 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
6441 2009-04-22 Robert Dewar <dewar@adacore.com>
6443 * sem_type.adb: Minor reformatting
6445 * mlib.adb: Minor reformatting
6447 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
6450 2009-04-22 Nicolas Setton <setton@adacore.com>
6452 * link.c: Add flag __gnat_separate_run_path_options.
6454 * mlib.adb (Separate_Run_Path_Options): New subprogram.
6456 * mlib.ads (Separate_Run_Path_Options): Declare.
6458 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
6459 switch per directory, rather than one "rpath" switch listing all
6462 * gnatlink.adb (Process_Binder_File): Likewise.
6464 * make.adb (Gnatmake): Likewise.
6466 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
6468 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
6469 Add a call to Move_Final_List when the target of the assignment is a
6470 return object that needs finalization and the expression is a
6471 controlled build-in-place function.
6473 2009-04-22 Vincent Celier <celier@adacore.com>
6475 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
6476 Including_Libraries set to True.
6478 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6480 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
6481 create a unit table entry for the subprogram declaration created for a
6482 child suprogram body that has no separate specification.
6484 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
6485 subprogram body, call Make_Child_Decl_Unit.
6487 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
6488 table can only be the created specification of a child subprogram body
6489 that is the main unit, which has not been entered in the table yet.
6491 * errout.adb (Output_Messages): Ignore created specification of a
6492 child subprogram body to prevent repeated listing of error messages.
6494 * gnat1drv.adb (gnat1drv): The generated specification for a child
6495 subprogram body does not generate code.
6497 2009-04-22 Arnaud Charlet <charlet@adacore.com>
6499 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
6500 since this unit is now part of bootstrap units, so must use Ada 95
6503 2009-04-22 Thomas Quinot <quinot@adacore.com>
6505 * a-tasatt.adb: Minor reformatting
6507 2009-04-22 Bob Duff <duff@adacore.com>
6509 * s-stalib.ads: Remove "with System;" since we're inside System, so
6512 2009-04-22 Vincent Celier <celier@adacore.com>
6514 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
6515 the source record, as there may be a dependency file even if no object
6518 2009-04-22 Robert Dewar <dewar@adacore.com>
6520 * lib-load.adb: Minor reformatting
6522 * lib-load.ads: Minor reformatting
6524 * sinfo.ads: Minor reformatting
6526 2009-04-22 Bob Duff <duff@adacore.com>
6528 * exp_pakd.adb: Minor comment fixes.
6530 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
6531 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
6532 include units containing instantiations, as well as units that are
6533 generic instantiations.
6535 * sem.adb: Include dependents and corresponding specs/bodies in the
6538 * gcc-interface/Make-lang.in:
6539 sem now depends on s-bitops, because of the packed array of Booleans.
6541 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6543 * gcc-interface/ada-tree.def: Fix formatting nits.
6544 (REGION_STMT): Delete.
6545 (HANDLER_STMT): Likewise.
6546 * gcc-interface/ada-tree.h: Fix formatting nits.
6548 (REGION_STMT_BODY): Likewise.
6549 (REGION_STMT_HANDLE): Likewise.
6550 (REGION_STMT_BLOCK): Likewise.
6551 (HANDLER_STMT_ARG): Likewise.
6552 (HANDLER_STMT_LIST): Likewise.
6553 (HANDLER_STMT_BLOCK): Likewise.
6554 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
6555 (fp_size_to_prec): Likewise.
6556 (largest_move_alignment): Delete.
6557 (gnat_compute_largest_alignment): Likewise.
6559 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6560 Remove redundant code.
6561 <E_Array_Type>: Remove redundant assert.
6562 <E_Array_Subtype>: Exit early from index computation in pathological
6564 Rewrite conditional assignment.
6565 (make_type_from_size): Likewise.
6566 * gcc-interface/misc.c (largest_move_alignment): Delete.
6567 (gnat_finish_incomplete_decl): Likewise.
6568 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
6569 (asm_out_file): Likewise
6570 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
6571 (gnat_dwarf_name): Move around.
6572 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
6573 (gigi): Remove call to gnat_compute_largest_alignment.
6574 * utils.c (create_field_decl): Rewrite conditional assignment.
6577 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6579 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
6580 on entry. Defer common processing for types. Reorder and clean up.
6581 Compute the equivalent GNAT node and the default size for types only.
6582 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
6583 <E_Access_Type>: For an unconstrained designated type, do not pretend
6584 that a dummy type is always made.
6585 <all> Fix nits in comments.
6586 (validate_size): Fix formatting nits and comments.
6587 (set_rm_size): Likewise.
6588 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
6589 passed to TARGET_PROMOTE_PROTOTYPES hook.
6591 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6593 * fe.h (Get_External_Name): Declare.
6594 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
6595 (concat_name): ...this.
6596 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
6597 gnu_entity_name and adjust for above renaming.
6598 <E_Access_Type>: Use create_concat_name to get the name of the various
6599 types associated with unconstrained array types.
6600 (make_aligning_type): Adjust for above renaming.
6601 (maybe_pad_type): Likewise.
6602 (components_to_record): Likewise. Use get_identifier_with_length for
6603 the encoding of the variant.
6604 (get_entity_name): Use get_identifier_with_length.
6605 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
6606 Do not fiddle with Name_Buffer.
6607 (concat_id_with_name): Rename to...
6608 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
6610 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
6613 2009-04-21 Joseph Myers <joseph@codesourcery.com>
6615 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
6618 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6620 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
6622 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6624 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
6625 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
6626 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
6627 Remove useless support code for packed array types and assert its
6629 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
6630 adjust for TYPE_RM_SIZE change.
6631 <all> Fix nits in comments. Use Original_Array_Type accessor instead
6632 of Associated_Node_For_Itype accessor for packed array types.
6633 (make_packable_type): Likewise.
6634 (maybe_pad_type): Likewise.
6635 (set_rm_size): Likewise. Rework conditional statement. Adjust for
6636 TYPE_RM_SIZE change.
6637 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
6638 (rm_size): Fix nits in comments. Rework conditional statements.
6639 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
6641 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
6642 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
6643 appropriate function to initialize the size_type_node. Adjust for
6644 TYPE_RM_SIZE change.
6646 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6648 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
6649 for imported subprograms.
6651 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6653 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
6654 constant objects covered by 13.3(19) volatile.
6656 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6658 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
6659 of dummy fat pointer types to the debug back-end.
6661 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6663 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
6664 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
6665 before wrapping it up in the record type. Do not overwrite the
6666 Ada size of the record type with the Esize.
6668 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6670 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
6671 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
6672 if the conversion is on the LHS of an assignment and a no-op.
6673 <all> Do not convert the result to the result type if the Parent
6674 node is such a conversion.
6676 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6678 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
6679 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
6680 of types with unknown discriminants.
6681 (substitute_in_type): Rewrite and restrict to formal substitutions.
6682 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
6683 (update_pointer_to): Update comment.
6685 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6687 * sem_ch8.adb (Use_One_Package): In an instance, if two
6688 potentially_use_visible and non-overloadable homonyms are available
6689 from the actuals of distinct formal packages, retain the current one,
6690 which was visible in the generic, to prevent spurious visibility
6692 (End_Use_Package): Restore use_visibility when needed.
6694 2009-04-20 Sergey Rybin <rybin@adacore.com>
6696 * gnat_ugn.texi, vms_data.ads: Update doc.
6698 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6700 * gcc-interface/Make-lang.in: Update dependencies
6702 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
6705 2009-04-20 Robert Dewar <dewar@adacore.com>
6707 * checks.ads: Fix documentation of range check handling
6709 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6711 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
6712 a redundant use_type clause.
6714 2009-04-20 Robert Dewar <dewar@adacore.com>
6716 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
6717 this attribute can be evaluated at compile time.
6718 (Eval_Attribute, case Range_Length): Same improvement
6720 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
6722 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6724 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
6725 for better handling of null procedures.
6726 (Check_Overriding_Indicator): Do not emit a warning on a missing
6727 overriding indicator on an operator when the type of which the operator
6728 is a primitive is private.
6730 2009-04-20 Bob Duff <duff@adacore.com>
6732 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
6735 2009-04-20 Robert Dewar <dewar@adacore.com>
6737 * sem_attr.adb: Minor reformatting
6739 * gnatcmd.adb: Minor reformatting
6741 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6743 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
6744 overloaded and one interpretation matches the context, label the
6745 operand with the type of first formal.
6747 2009-04-20 Bob Duff <duff@adacore.com>
6749 * debug.ads: Minor comment fix.
6751 * debug.adb: Minor comment fixes.
6753 2009-04-20 Javier Miranda <miranda@adacore.com>
6755 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
6757 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
6759 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
6760 is expanded into a call to Raise_Exception, avoid passing the
6761 exception-name'identity in runtimes in which this argument
6764 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
6766 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
6767 generated bindings for cil.
6769 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6771 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
6772 discriminants, collect components from the Underlying_Record_View,
6773 which will be used in the expansion of the aggregate into assignments.
6775 * sem_ch3.adb: Do not label derived type with unknown discriminants as
6776 having a private declaration.
6778 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6780 * exp_util.adb (Expand_Subtype_From_Expr): use the
6781 underlying_record_view when available, to create the proper constrained
6782 subtype for an object of a derived type with unknown discriminants.
6784 2009-04-20 Javier Miranda <miranda@adacore.com>
6786 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
6787 formals that have pragma unreferenced.
6789 2009-04-20 Pascal Obry <obry@adacore.com>
6791 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
6792 Remove all calls to To_Lower_If_Case_Insensitive to preserve
6793 the pathname original casing.
6795 2009-04-20 Robert Dewar <dewar@adacore.com>
6797 * g-trasym.adb: Minor reformatting
6799 * s-os_lib.adb: Minor reformatting
6801 * sem.adb: Minor reformatting
6802 Minor code reorganization
6804 * sem_ch3.adb: Minor reformatting
6806 * sem_ch4.adb: Minor reformatting
6808 * sem_ch8.adb: Minor reformatting
6810 * sem_type.adb: Minor reformatting
6812 2009-04-20 Javier Miranda <miranda@adacore.com>
6814 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
6815 generated by derivations of tagged types use the aliased subprogram a
6816 reference to locate their controlling type.
6818 2009-04-20 Tristan Gingold <gingold@adacore.com>
6820 * g-trasym.adb: Set size of result buffer before calling
6823 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6825 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
6826 to a function returning an array can be interpreted as a call with
6827 defaulted parameters whose result is indexed, take into account the
6828 types of all the indices of the array result type.
6830 2009-04-20 Pascal Obry <obry@adacore.com>
6832 * a-direct.adb, s-os_lib.adb: Minor reformatting.
6834 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6836 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
6837 null exclusion qualifiers for object renaming declarations.
6839 2009-04-20 Nicolas Roche <roche@adacore.com>
6841 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
6842 unsigned long long. So compare local_time and utc_time before computing
6845 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6847 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6848 of the Underlying_Record_View before that of the derived type.
6850 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
6851 with unknown discriminants with regard to the parent subtype.
6853 2009-04-20 Bob Duff <duff@adacore.com>
6855 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
6856 that are not included. This is necessary if the main unit is a generic
6859 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
6860 because it doesn't work if -gnatn is used.
6862 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6864 * rtsfind.adb (RTE, RTE_Record_Component): In
6865 Configurable_Run_Time_Mode, do not enable front-end inlining.
6867 2009-04-20 Thomas Quinot <quinot@adacore.com>
6869 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
6870 System.Address_To_Access_Conversions.
6872 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6874 * sem.adb: Guard against ill-formed subunits.
6876 2009-04-20 Bob Duff <duff@adacore.com>
6878 * output.adb (Flush_Buffer): Do not indent blank lines.
6879 (Ignore_Output): New procedure for output suppression.
6881 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
6883 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
6884 when it is positive. This avoids a potential constraint error raised
6885 by the conversion to Natural.
6887 2009-04-20 Gary Dismukes <dismukes@adacore.com>
6889 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
6890 involves a target that has a specified address, don't set Forward_OK
6891 and Backward_OK to False if the rhs is an aggregate, since overlap
6894 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6896 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
6897 in an object renaming declaration when the expected type is an
6898 anonymous access type.
6900 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
6901 ambiguity when one interpretation is an anonymous access type and the
6902 other is a named access type, and the context itself is anonymous
6904 2009-04-20 Thomas Quinot <quinot@adacore.com>
6906 * einfo.ads: Minor comment rewording
6908 * sem_aggr.adb: Minor comment rewording
6910 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
6912 2009-04-20 Pascal Obry <obry@adacore.com>
6914 * adaint.c (__gnat_is_readable_file): Check for file existence
6915 when not using ACL (always the case on remote drives).
6917 2009-04-20 Robert Dewar <dewar@adacore.com>
6919 * sinfo.ads: Minor comment fixes
6921 * exp_disp.adb: Minor reformatting
6923 * gnat1drv.adb: Minor reformatting
6925 * output.adb: Minor reformatting
6927 * s-vxwext-kernel.ads: Minor reformatting
6929 * sem.ads: Minor reformatting
6931 * sem.adb: Minor reformatting
6933 * sem_elim.adb: Minor reformatting
6935 * uname.ads: Minor reformatting
6937 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6939 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
6940 a small dope of 4 words to the adjustment to the stack pointer.
6942 2009-04-20 Thomas Quinot <quinot@adacore.com>
6944 * xoscons.adb: generate C header s-oscons.h in
6945 addition to s-oscons.ads.
6947 * socket.c: On VMS, use s-oscons.h.
6949 * sem_ch3.adb: Minor reformatting
6951 * exp_ch9.adb: Minor reformatting
6953 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6955 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
6956 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
6957 (call_to_gnu): Likewise.
6959 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6961 * gcc-interface/trans.c (gigi): Declare the name of the compilation
6962 unit as the first global name at the very beginning.
6964 2009-04-20 Thomas Quinot <quinot@adacore.com>
6966 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
6967 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
6968 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
6969 since HP-UX supports neither inet_aton nor inet_pton (altough the
6970 latter is part of the Single UNIX Specification!).
6971 So reorganize code, and share C implementation based on inet_addr(3)
6972 with VMS (instead of having a VMS specific Ada implementation in
6975 2009-04-20 Gary Dismukes <dismukes@adacore.com>
6977 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
6978 to return the object file name saved by Set_Object_Output_File_Name.
6980 2009-04-20 Emmanuel Briot <briot@adacore.com>
6982 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
6983 for the standard command line, when argc has been modified since the
6984 start of the application.
6986 2009-04-20 Thomas Quinot <quinot@adacore.com>
6988 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
6989 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
6991 2009-04-20 Bob Duff <duff@adacore.com>
6993 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
6996 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6998 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
6999 subprogram as Eliminated when source operation is.
7000 (Expand_N_Protected_Type_Declaration): Generate protected and
7001 unprotected specs for the internal operations, even if the source
7002 operation is eliminated.
7004 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7006 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
7007 Predefined_Primitive_Bodies): Do not create the declarations and bodies
7008 of the primitive subprograms associated with dispatching select
7009 statements when the runtime is in configurable mode.
7011 2009-04-20 Ed Falis <falis@adacore.com>
7013 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
7015 2009-04-20 Thomas Quinot <quinot@adacore.com>
7017 * s-oscons-tmplt.c: Add support for generating a dummy version of
7018 s-oscons.ads providing all possible constants.
7020 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
7022 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
7023 ANSI version (not the UNICODE version) of WSAStringToAddress.
7025 2009-04-20 Pascal Obry <obry@adacore.com>
7027 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
7028 allocated for the security descriptor and make sure all
7029 handles are closed before leaving this procedure.
7031 2009-04-20 Javier Miranda <miranda@adacore.com>
7033 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
7034 (Set_Is_Underlying_Record_View): New subprogram
7036 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
7037 private types with unknown discriminants use the underlying record view
7040 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
7041 underlying record view in the full view of private types whose parent
7042 has unknown discriminants.
7043 (Build_Derived_Record_Type): Avoid generating the class-wide entity
7044 associated with an underlying record view.
7045 (Derived_Type_Declaration): Avoid deriving parent primitives in
7046 underlying record views.
7048 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
7049 records with unknown discriminants.
7051 * sem_type.adb (Covers): Handle underlying record views.
7052 (Is_Ancestor): Add support for underlying record views.
7054 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
7055 dispatching call if the type of the target object is tagged and has
7056 unknown discriminants.
7058 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
7059 unknown discriminants.
7061 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
7062 tables for internally built underlying record views.
7064 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
7065 empty list of component associations.
7067 2009-04-20 Thomas Quinot <quinot@adacore.com>
7069 * sem_ch10.adb: Minor reformatting
7071 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7072 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
7073 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
7074 standard inet_pton API (and emulate it on platforms that do not
7076 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
7077 DECC$INET_ADDR, imported in Ada.
7078 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
7079 implementation provided by GNAT runtime.
7080 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
7083 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7085 * gnat_ugn.texi: Add documentation for -fno-ivopts.
7087 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7089 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
7090 with_clause if it is the main unit.
7092 2009-04-20 Thomas Quinot <quinot@adacore.com>
7094 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
7095 (no behaviour change): Use Append instead of Increment_Last followed
7098 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7100 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
7101 declarations of all primitives associated with dispatching asynchronous,
7102 conditional and timed selects when dispaching calls are forbidden and
7103 select statements are not allowed (such as in Ravenscar).
7104 (Predefined_Primitive_Bodies): Ditto for bodies.
7106 * exp_disp.ad (Make_DT): Do not create and populate the
7107 Select_Specific_Data of the dispatch table when dispatching calls are
7108 forbidden and select statements are not allowed (such as in Ravenscar).
7110 2009-04-20 Robert Dewar <dewar@adacore.com>
7112 * a-tifiio.adb: Minor reformatting
7114 2009-04-20 Thomas Quinot <quinot@adacore.com>
7116 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
7117 other C library functions, report *failure* with a zero status, and
7118 success with a non-zero status.
7120 2009-04-20 Bob Duff <duff@adacore.com>
7122 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
7123 (Semantics): After analyzing each unit, Append it to the
7124 Comp_Unit_List, if appropriate.
7126 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
7128 (Gnat1drv): Correct comment regarding Back_End_Mode.
7130 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7132 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
7134 2009-04-20 Thomas Quinot <quinot@adacore.com>
7136 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7137 output.adb, output.ads, s-taprop-hpux-dce.adb,
7138 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
7141 2009-04-20 Thomas Quinot <quinot@adacore.com>
7143 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
7144 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
7145 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
7146 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
7147 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
7148 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
7150 * debug.adb: Fix typo
7152 * gnat_rm.texi: Minor doc fix.
7154 * sem_ch7.adb, freeze.adb: Minor reformatting
7156 2009-04-20 Thomas Quinot <quinot@adacore.com>
7158 * g-socket.ads: Add new constants:
7160 Unspecified_Group_Inet_Addr
7161 All_Hosts_Group_Inet_Addr
7162 All_Routers_Group_Inet_Addr
7164 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
7165 ERANGE (Result too large).
7166 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
7167 propagation of errno to caller.
7169 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7171 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
7172 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
7175 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7177 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
7178 checking for references to eliminated subprograms that should be
7180 (Eliminate_Error_Message): Update comment to say "references" rather
7181 than "calls" (since attribute cases are handled here as well).
7183 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
7184 checking for references to eliminated subprograms that should be
7185 flagged. Add with and use of Sem and Sem_Util.
7187 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
7188 Add with and use of Sem_Elim.
7190 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
7191 applied to eliminated subprograms.
7192 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
7193 eliminated subprograms.
7194 Add with and use of Sem_Elim.
7196 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
7197 to eliminated subprograms, now handled during Resolve_Call.
7198 Remove with and use of Sem_Elim.
7200 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
7201 testing Is_Eliminated, for proper handling of primitive derived from
7202 eliminated subprograms.
7204 2009-04-20 Vincent Celier <celier@adacore.com>
7206 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
7207 has been declared (Library_GCC or Linker'Driver), for the driver name.
7209 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
7210 Linker'Driver is, use Linker'Driver as the shared library linker.
7211 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
7212 Library_GCC is declared.
7213 (Check_Library_Attributes): Set up the shared linker driver: either
7214 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
7217 2009-04-20 Thomas Quinot <quinot@adacore.com>
7219 * g-socket.ads (Send_Socket): Fix misleading comment.
7221 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7223 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
7226 2009-04-20 Geert Bosch <bosch@adacore.com>
7228 * a-tifiio.adb (Put): Avoid generating too many digits for certain
7229 fixed types with smalls that are neither integer or the reciprocal
7232 2009-04-20 Bob Duff <duff@adacore.com>
7234 * uname.ads: Minor comment fix.
7236 * types.ads: Minor comment fix.
7238 2009-04-20 Pascal Obry <obry@adacore.com>
7240 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
7241 avoid warning. At the same time fix a memory leak.
7243 * osint.adb (Get_Libraries_From_Registry): Properly free memory
7244 returned by the above routine.
7246 2009-04-20 Robert Dewar <dewar@adacore.com>
7248 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
7249 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
7250 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
7251 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
7253 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
7255 2009-04-20 Pascal Obry <obry@adacore.com>
7257 * initialize.c (__gnat_initialize): Add braces to kill warning.
7259 * adaint.c: Minor reformatting, remove trailing spaces.
7261 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7263 * gcc-interface/Make-lang.in: Update dependencies.
7265 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7267 * adaint.h (__gnat_lwp_self): Declare on Linux.
7269 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
7271 2009-04-20 Robert Dewar <dewar@adacore.com>
7273 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
7274 front-end part of -fpreserve-control-flow switch.
7276 2009-04-20 Bob Duff <duff@adacore.com>
7278 * rtsfind.adb: Minor comment fix
7280 2009-04-20 Robert Dewar <dewar@adacore.com>
7282 * exp_aggr.adb: Minor reformatting
7283 Minor code reorganization (use Nkind_In)
7285 * g-socket.adb: Minor reformatting
7287 * g-socket.ads: Minor comment fix
7289 * s-auxdec.ads: Minor comment and organization update.
7291 * s-auxdec-vms_64.ads: Minor comment and organization update.
7293 * sem_ch10.adb: Minor addition of ??? comment
7295 * sem_disp.adb: Minor reformatting
7297 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7299 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
7300 list a caller of an inlined subprogram, if the caller itself is not
7303 2009-04-20 Pascal Obry <obry@adacore.com>
7305 * adaint.c: Disable use of ACL on network drives.
7307 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7309 * gnat_ugn.texi: Add examples.
7311 2009-04-20 Thomas Quinot <quinot@adacore.com>
7313 * g-socket.ads (Abort_Selector): Clarify documentation.
7315 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7317 * opt.ads (Inspector_Mode): Update documentation of this flag.
7319 2009-04-20 Thomas Quinot <quinot@adacore.com>
7321 * g-socket.ads: Minor reformatting
7323 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
7324 consider S_resolvLib error codes since we only use the hostLib wrappers.
7326 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7328 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7329 of the Underlying_Record_View after that of the derived type.
7331 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7333 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
7336 2009-04-20 Javier Miranda <miranda@adacore.com>
7338 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
7340 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
7343 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
7346 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
7347 in internally built overriding subprograms.
7349 2009-04-20 Doug Rupp <rupp@adacore.com>
7351 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
7353 * s-auxdec.ads: Likewise
7355 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7357 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
7358 type by an interface.
7360 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
7361 minimze difference in expanded tree when compiled as spec of the main
7362 unit, or as a spec in the context of another unit.
7364 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7366 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
7367 (localtime_tzoff): This routine no longer accepts an actual of type
7369 (UTC_Time_Offset): Remove local variable Secs_TM.
7371 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
7372 actual of type struct tm*. Add local variable of type struct tm for all
7373 targets that provide localtime_r and need to invoke it.
7375 2009-04-20 Thomas Quinot <quinot@adacore.com>
7377 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
7378 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
7379 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
7381 2009-04-20 Robert Dewar <dewar@adacore.com>
7383 * sem_ch3.adb: Minor reformatting
7385 * lib-load.adb: Minor reformatting
7387 * sem_ch4.adb: Minor reformatting
7389 2009-04-20 Robert Dewar <dewar@adacore.com>
7391 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
7392 (equal values => False).
7394 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7396 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
7397 to null procedures can be inlined unconditionally.
7399 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7401 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
7402 non-addressable parameter passed by reference, do not convert the
7403 actual if its type is already the nominal type, unless it is of
7404 self-referential size.
7406 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7408 * gnat_ugn.texi: Fix typos.
7410 2009-04-20 Robert Dewar <dewar@adacore.com>
7412 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
7413 Validate_Unchecked_Warnings to suppress warnings about size or
7414 alignment or extra bits if either type involved has pragma Warnings
7415 (Off) set for the type entity.
7417 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
7419 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
7420 a builtin type and give it a name.
7422 2009-04-17 Diego Novillo <dnovillo@google.com>
7424 * gcc-interface/misc.c (gnat_expand_expr): Remove.
7425 (LANG_HOOKS_EXPAND_EXPR): Remove.
7427 2009-04-17 Robert Dewar <dewar@adacore.com>
7429 * sem_ch3.adb: Minor reformatting
7431 2009-04-17 Pascal Obry <obry@adacore.com>
7433 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
7435 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7437 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
7438 illegal constraints on type derived from formal discrete types.
7440 2009-04-17 Thomas Quinot <quinot@adacore.com>
7444 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7445 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7446 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
7447 g-socket.ads (GNAT.Sockets.Thin.C_Send,
7448 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
7449 Replace calls to send(2) with equivalent sendto(2) calls.
7450 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
7451 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
7452 report an error in that case. Factor code common to the two versions
7453 (datagram and stream) in common routine Stream_Write.
7455 2009-04-17 Robert Dewar <dewar@adacore.com>
7457 * exp_disp.adb: Minor reformatting
7458 Minor code reorganization (use Nkind_In)
7460 * prepcomp.adb: Minor reformatting
7462 * sem_ch3.adb: Minor reformatting
7464 * sem_res.adb: Minor comment addition
7466 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
7469 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
7470 setting Is_Referenced
7472 * types.ads: Minor reformatting
7474 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7476 * gnat_ugn.texi: Initial documentation on binding generator.
7478 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7480 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
7481 type extensions whose parent is a type with unknown discriminants.
7483 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
7484 aggregate has unknown discriminants, use the Underlying_Record_View to
7485 obtain the discriminants of the ancestor part.
7487 * exp_disp.adb (Build_Dispatch_Tables): Types that are
7488 Underlying_Record_Views share the dispatching information of the
7489 original record extension.
7491 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
7492 discriminants, propagate dispach table information to the
7493 Underlying_Record_View.
7495 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
7496 discriminants and declaration is not a completion, generate
7497 Underlying_Record_View to provide proper discriminant information to
7498 the front-end and to gigi.
7500 2009-04-17 Robert Dewar <dewar@adacore.com>
7502 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
7503 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
7504 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
7505 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
7506 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
7507 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
7508 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
7509 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
7510 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
7511 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
7512 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
7513 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
7514 s-conca3.ads: Remove unneeded pragma Warnings
7516 2009-04-17 Robert Dewar <dewar@adacore.com>
7518 * g-moreex.adb: Add comments.
7520 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
7522 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
7525 * prepcomp.adb: Add ??? comment
7527 * a-tasatt.adb: Minor reformatting
7529 * g-trasym-vms-alpha.adb: Add ??? comment
7531 * g-trasym-vms-ia64.adb: Add ??? comment
7533 * xoscons.adb: Minor reformatting
7535 * s-tassta.adb: Minor reformatting
7537 * s-scaval.adb: Add ??? comment
7539 * stand.ads: Minor code clean up (remove junk with of Namet)
7541 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
7542 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
7543 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
7544 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
7545 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
7546 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
7547 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
7548 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
7549 Warnings off pragmas.
7551 2009-04-17 Pascal Obry <obry@adacore.com>
7553 * initialize.c: Fix test for reallocating the arguments array.
7555 2009-04-17 Geert Bosch <bosch@adacore.com>
7557 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
7558 conversion truncate only for decimal fixed point types.
7560 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
7562 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
7565 2009-04-17 Robert Dewar <dewar@adacore.com>
7567 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
7568 Backwards_OK if either operand has an address clause.
7570 2009-04-17 Pascal Obry <obry@adacore.com>
7572 * initialize.c: Code clean up, use realloc.
7574 2009-04-17 Pascal Obry <obry@adacore.com>
7576 * initialize.c: Do not get Unicode command line if Unicode support not
7578 Add support for wildcard expansion for Unicode parameters on Win32.
7580 * mingw32.h: Add missing macros when Unicode support not activated.
7582 2009-04-17 Javier Miranda <miranda@adacore.com>
7584 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
7585 avoid generating code that references the Current_Master
7586 when compiling without tasks.
7588 2009-04-17 Vincent Celier <celier@adacore.com>
7590 * prj-attr.adb: New project level attribute Target
7592 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
7595 * prj.ads (Project_Configuration): New component Target
7597 2009-04-17 Thomas Quinot <quinot@adacore.com>
7599 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
7600 case for the case of an aggregate component, the attach call for the
7601 result is actually needed.
7603 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
7604 an array aggregate must be disabled if the component type requires
7607 * exp_ch3.adb: Minor reformatting
7609 2009-04-17 Bob Duff <duff@adacore.com>
7611 * output.ads (Indent,Outdent): New procedures for indenting the output.
7612 (Write_Char): Correct comment -- LF _is_ allowed.
7614 * output.adb (Indent,Outdent): New procedures for indenting the output.
7615 Keep track of the indentation level, and make sure it doesn't get too
7617 (Flush_Buffer): Insert spaces at the beginning of each line, if
7618 indentation level is nonzero.
7619 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
7621 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
7622 "Next_Col := 1;". Flush_Buffer does that.
7624 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
7625 controlled by the -gnatdc switch. It now occurs on entry/exit to the
7626 relevant analysis routines, and calls Indent/Outdent to make the
7627 indentation reflect the nesting level. Add "helper" routines, since
7628 otherwise lots of "return;" statements would skip the debugging output.
7630 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7632 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
7633 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
7634 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
7636 2009-04-17 Thomas Quinot <quinot@adacore.com>
7638 * exp_aggr.adb: Minor code reorganization, no behaviour change.
7640 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7642 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
7643 clause in a unit that is a package body or a subunit, when the previous
7644 clause appears in a spec or a parent.
7646 2009-04-17 Thomas Quinot <quinot@adacore.com>
7648 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
7650 * exp_ch7.adb: Minor reformatting
7652 2009-04-17 Bob Duff <duff@adacore.com>
7654 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
7655 allocator, check that the expression of the qualified expression obeys
7656 the constraints of the subtype of the qualified expression.
7658 2009-04-17 Thomas Quinot <quinot@adacore.com>
7660 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
7662 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7664 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
7665 aggregate, using context imposed by subtype mark in allocator.
7667 2009-04-17 Pascal Obry <obry@adacore.com>
7669 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
7671 2009-04-17 Nicolas Roche <roche@adacore.com>
7673 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
7676 2009-04-17 Gary Dismukes <dismukes@adacore.com>
7678 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
7679 cover both calls and attribute references ("call" => "reference").
7681 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7683 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
7684 type for which Storage_Size is set to 0 is legal in a pure unit.
7686 2009-04-17 Thomas Quinot <quinot@adacore.com>
7688 * exp_ch7.adb: Minor reformatting
7690 2009-04-17 Robert Dewar <dewar@adacore.com>
7692 * restrict.adb (Check_Restriction_No_Dependence): Don't check
7693 restriction if outside main extended source unit.
7695 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
7696 for parents of child units as well as the child unit itself.
7698 2009-04-17 Bob Duff <duff@adacore.com>
7700 * checks.ads: Minor comment fix
7702 * exp_aggr.ads: Minor comment fix
7704 2009-04-17 Nicolas Roche <roche@adacore.com>
7706 * adaint.c: Improve cross compiler detection and handling.
7708 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
7710 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
7712 2009-04-17 Pascal Obry <obry@adacore.com>
7714 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
7717 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
7718 value when no encoding form paramter is set on Text_IO services.
7720 * adaint.c: CurrentCodePage new variable on Windows.
7721 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7724 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7727 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
7728 environment variable value. Default is UTF-8.
7730 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
7731 fopen and freopen encoding parameter is now set to Unspecified.
7732 The default value is in this case UTF-8 (as it was before) but
7733 use the new macros that convert to/from the code page set
7734 at runtime (CurrentCodePage).
7736 * s-fileio.adb: When no encoding specified use Unspecified value.
7738 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7740 * atree.adb, atree.ads: Remove dead code.
7742 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7744 * gcc-interface/Make-lang.in: Update dependencies.
7746 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7748 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
7749 illegal uses of incomplete types in formal parts and return types.
7751 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
7752 access to subprograms.
7754 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
7755 Taft-amendment types as the return type of an access_to_function type.
7757 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7758 type for access_to_subprograms. The check is performed on package exit.
7760 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7762 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
7764 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
7766 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
7768 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
7769 semantic units, because the handling of itypes in the copied tree
7770 requires semantic information that does not belong in atree.
7772 2009-04-17 Robert Dewar <dewar@adacore.com>
7774 * par-ch6.adb: Minor reformatting
7776 * prj.adb: Minor reformatting
7778 2009-04-17 Gary Dismukes <dismukes@adacore.com>
7780 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
7781 on protected subprogram bodies, so exclude the case where Pf_Flags is
7782 Pf_Decl_Pbod from the error check.
7784 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
7785 indicators on subprograms in protected bodies, and proceed with parsing
7788 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
7789 subprograms from the check for primitiveness on subprograms with
7790 overriding indicators.
7791 (Check_Overriding_Indicator): Include protected subprograms in the
7792 style check for missing overriding indicators.
7794 2009-04-17 Tristan Gingold <gingold@adacore.com>
7796 * init.c: Fix stack checking for x86 Darwin.
7798 2009-04-17 Vincent Celier <celier@adacore.com>
7800 * prj-attr.adb: New project level attribute Object_File_Suffix
7803 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
7805 (Process_Compiler): Process attribute Object_File_Suffix
7807 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
7808 platform suffix, when specified.
7810 * prj.ads (Language_Config): New component Object_File_Suffix,
7811 defaulted to No_Name.
7812 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
7814 * snames.ads-tmpl: New standard name Object_File_Suffix
7816 2009-04-17 Robert Dewar <dewar@adacore.com>
7818 * gnat_rm.texi: Add documentation about No_Streams restriction
7820 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
7821 attributes when checking No_Streams restriction.
7823 2009-04-17 Thomas Quinot <quinot@adacore.com>
7825 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
7827 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
7828 missing calls to RE_Request_Destroy to deallocate request objects after
7831 2009-04-17 Nicolas Setton <setton@adacore.com>
7833 * link.c: Fix support for passing a response file under Darwin.
7835 2009-04-17 Emmanuel Briot <briot@adacore.com>
7837 * prj.adb (Free): new subprogram.
7839 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7841 * sem_ch3.adb: additional initialization on incomplete subtypes.
7843 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
7844 part and one of the formals is an incomplete tagged type, attach to
7845 list of private dependends of the type for later validation.
7847 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
7848 primitive operations of a Taft-amendmment type.
7850 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7851 type. The check is performed on package exit, possibly after the
7852 subprogram is frozen.
7854 2009-04-17 Vincent Celier <celier@adacore.com>
7856 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
7857 before looking for source directories, but make sure that there are nil
7858 if they are not explicitely declared and there is explicitely no
7859 sources in the project.
7861 2009-04-17 Pascal Obry <obry@adacore.com>
7863 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
7865 * init.c: Fix minor typo and style fix.
7867 2009-04-17 Robert Dewar <dewar@adacore.com>
7869 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
7871 * sem_attr.adb (Analyze_Attribute, case Address): Use
7872 PE_Address_Of_Intrinsic.
7874 * types.ads: Add PE_Address_Of_Intrinsic
7876 * types.h: Add PE_Address_Of_Intrinsic
7878 2009-04-17 Nicolas Setton <setton@adacore.com>
7880 * gcc-interface/Makefile.in: Under darwin, build shared libraries
7881 with install_name starting with "@rpath/".
7883 2009-04-17 Nicolas Setton <setton@adacore.com>
7885 * link.c: Add darwin section
7887 2009-04-16 Robert Dewar <dewar@adacore.com>
7889 * g-pehage.adb: Minor reformatting
7891 * sem_ch12.adb: Minor reformatting
7893 * exp_dist.adb: Minor reformatting
7895 * bindgen.adb: Minor style fixes.
7897 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7899 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
7900 indexed components to the case where the prefix is a static string
7903 2009-04-16 Javier Miranda <miranda@adacore.com>
7905 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
7906 objects avoid any further expansion of the expression initializing the
7909 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7911 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
7912 that hides an outer homograph, make that homograph invisible when
7913 analyzing the actuals, to to prevent illegal direct visibility on it.
7915 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
7917 * g-pehage.adb (Initialize): Fix off-by-one error.
7919 2009-04-16 Tristan Gingold <gingold@adacore.com>
7921 * init.c: Detect real stack overflow on Darwin.
7923 * system-darwin-x86.ads: Use stack probing on darwin x86.
7925 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7927 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
7928 take the address of an intrinsic subprogram.
7930 2009-04-16 Arnaud Charlet <charlet@adacore.com>
7932 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
7933 for the targets where GNAT.Traceback.Symbolic is not supported.
7935 2009-04-16 Vincent Celier <celier@adacore.com>
7937 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
7939 * g-trasym.ads: Update comments.
7941 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
7943 * tracebak.c (STOP_FRAME): Verify validity of the current address
7944 before dereferencing.
7946 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7948 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
7949 the original location of the index expressions and the index subtypes,
7950 to prevent spurious out-of-scope references in gigi.
7952 2009-04-16 Tristan Gingold <gingold@adacore.com>
7954 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
7955 Add support for stack checking on darwin.
7957 2009-04-16 Vincent Celier <celier@adacore.com>
7959 * prj-attr.adb: New attribute Runtime_Source_Dir
7961 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
7962 attribute Runtime_Source_Dir.
7963 (Check_Naming_Schemes): Give default values to out parameters to avoid
7966 * prj.ads (Language_Config): New component Runtime_Source_Dir
7968 * snames.ads-tmpl: New standard name Runtime_Source_Dir
7970 2009-04-16 Pascal Obry <obry@adacore.com>
7972 * adaint.h, adaint.c (__gnat_rmdir): New routine.
7973 Simple wrapper routines used to convert to proper encoding on
7976 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
7978 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
7981 2009-04-16 Pascal Obry <obry@adacore.com>
7983 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
7985 2009-04-16 Thomas Quinot <quinot@adacore.com>
7987 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
7988 integrated preprocessor.
7990 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
7991 (Initialize): Split into two subprograms, Initialize (to be called
7992 prior to compiler command line processing) and Setup_Hooks (to be called
7993 later on when the first source file is loaded).
7995 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
7996 Add call to Prep.Initialize.
7998 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
7999 to Prep.Setup_Hooks.
8001 2009-04-16 Pascal Obry <obry@adacore.com>
8003 * adaint.h, adaint.c (__gnat_chdir): New routine.
8004 Simple wrapper routines used to convert to proper encoding on
8007 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
8009 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
8011 2009-04-16 Quentin Ochem <ochem@adacore.com>
8013 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
8016 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8018 * a-convec.ads (Is_Empty): Mark inline.
8020 2009-04-16 Nicolas Roche <roche@adacore.com>
8022 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
8024 2009-04-16 Thomas Quinot <quinot@adacore.com>
8026 * prepcomp.adb: Minor reformatting
8028 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8030 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
8031 Access_Subprogram types can also be imported.
8032 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
8035 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8037 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8038 preserve homonym chain when the declaration is rewritten into a
8039 renaming declaration, in order to preserve visibility structure.
8041 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8043 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
8044 taken into account for VM targets.
8046 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8048 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
8050 (Year_Week_In_Year): New routine which contains the original code from
8051 Week_In_Year. Add the missing special case for January 1st falling on
8054 2009-04-16 Thomas Quinot <quinot@adacore.com>
8056 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
8057 actual type, use the base type to build the To_Any function.
8058 (Build_From_Any_Function): Remove junk, useless subtype conversion.
8060 2009-04-16 Thomas Quinot <quinot@adacore.com>
8062 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
8063 restrict.adb: Minor code reorganization (use
8064 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
8066 2009-04-16 Bob Duff <duff@adacore.com>
8068 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
8071 2009-04-16 Thomas Quinot <quinot@adacore.com>
8073 * sem_ch4.adb: Minor reformatting
8075 * adaint.c: Remove junk duplicated code.
8077 * sem_ch3.adb: Minor reformatting
8079 * exp_dist.adb: Minor comment rewording
8081 2009-04-16 Robert Dewar <dewar@adacore.com>
8083 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
8086 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8088 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
8089 usable before calling Add_One_Interp, to resolve spurious ambiguities.
8091 2009-04-16 Robert Dewar <dewar@adacore.com>
8093 * Make-lang.in: Add entries for s-conca?.o
8095 * Makefile.rtl: Add entries for s-conca?
8097 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
8098 of concatenation expansion
8100 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
8101 string cases instead of expanding assignments inline.
8103 * opt.ads (Optimize_Size): New flag
8105 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
8106 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
8107 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
8108 s-conca9.adb, s-conca9.ads: New file.
8110 2009-04-16 Robert Dewar <dewar@adacore.com>
8112 * exp_ch6.adb: Add comments
8114 * rtsfind.ads: Add entries for s-conca? routines
8116 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8118 * gcc-interface/Make-lang.in: Update dependencies.
8120 * gcc-interface/Makefile.in: Update translation for vms.
8122 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8124 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
8125 and made global, to be used when installing parents of a child
8126 instance, to provide mappings for entities declared in formal packages
8127 of ancestor units. Now called from Install_Formal_Packages.
8129 2009-04-16 Doug Rupp <rupp@adacore.com>
8131 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
8132 notation for clarity.
8134 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8135 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
8136 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
8137 (Initialize): Initialize Known_Tasks with Environment task.
8139 * s-taskin.ads (Task_States): Move new states to end for the sake of
8142 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
8144 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8146 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
8147 operation has an inline pragma, propagate the flag to the internal
8148 unprotected subprogram.
8150 2009-04-16 Doug Rupp <rupp@adacore.com>
8152 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
8153 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
8154 s-taprop-hpux-dce.adb, s-taprop-posix.adb
8155 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
8157 * s-taprop-vms.adb (Enter_Task): Likewise.
8158 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
8160 * s-tassta.adb (Activate_Tasks): After task creation set state to
8161 Activating, vice Runnable. Initialize Known_Tasks, moved here from
8162 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
8163 Set state to Runnable after above.
8164 (Task_Wrapper): Set Debug_Event_Run. In exception block set
8165 Debug_Event_Terminated.
8167 * s-taskin.ads (Task_States): Add new states Activiting and
8168 Activator_Delay_Sleep.
8169 (Bit_Array, Debug_Event_Array): New types.
8170 (Global_Task_Debug_Event_Set: New flag.
8171 (Common_ATCB): New field Debug_Events.
8173 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
8175 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
8178 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
8179 Activating and when Acceptor_Delay_Sleep.
8181 * s-tasdeb.ads: Add constants for Debug_Events.
8182 (Debug_Event_Kind_Type): New subtype.
8183 (Signal_Debug_Event): New subprogram.
8185 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
8187 2009-04-16 Thomas Quinot <quinot@adacore.com>
8189 * sem_elim.adb: Minor reformatting
8191 * freeze.adb: Minor reformatting
8193 * exp_ch4.adb: Minor reformatting
8195 2009-04-16 Emmanuel Briot <briot@adacore.com>
8197 * prj-nmsc.adb (Path_Name_Of): fix memory leak
8199 2009-04-16 Robert Dewar <dewar@adacore.com>
8201 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
8203 2009-04-16 Vincent Celier <celier@adacore.com>
8205 * fmap.adb (Initialize): Show the current line when the mapping file
8206 is detected as "incorrectly formatted".
8208 2009-04-16 Robert Dewar <dewar@adacore.com>
8210 * sem_ch12.adb: Minor reformatting
8212 * sem_ch5.adb: Minor comment addition
8214 * sem_util.adb: Minor reformatting
8216 * sinput-p.adb: Minor reformatting
8217 Add missing pragma Warnings (On)
8219 2009-04-16 Ed Falis <falis@adacore.com>
8221 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
8223 2009-04-16 Vincent Celier <celier@adacore.com>
8225 * ali-util.adb: Minor comment spelling error fix
8227 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8229 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
8230 generate an assignment loop in case of overlap.
8232 2009-04-16 Olivier Hainque <hainque@adacore.com>
8234 * gnat_ugn.texi (gnatmem description): Make it explicit that
8235 gnatmem is designed to work in association with static runtime
8238 2009-04-16 Thomas Quinot <quinot@adacore.com>
8240 * sem_type.adb: Minor reformatting
8242 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8244 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
8245 concerning return codes of gettimeofday and return value check.
8247 2009-04-16 Ed Falis <falis@adacore.com>
8249 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
8250 body can be renaming of imported routines.
8252 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8254 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
8257 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8259 * exp_ch9.adb: Comment improvements.
8260 (Build_Entry_Family_Name): Add parentheses around the index of a entry
8263 2009-04-15 Bob Duff <duff@adacore.com>
8265 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
8266 "while X /= null loop" where X is unchanged inside the loop. We were
8267 not warning in this case, because of the pointers -- we feared that the
8268 loop variable could be updated via a pointer, if there are any pointers
8269 around the place. But that is impossible in this case.
8271 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
8272 the case of dereferences. In X.all, X cannot be an l-value. We now
8273 catch that case (and implicit dereferences, too).
8275 2009-04-15 Vincent Celier <celier@adacore.com>
8277 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
8279 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8281 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
8283 (Analyze_Package_Instantiation): If generic unit in child instance is
8284 the same as generic unit in parent instance, look for an outer homonym
8285 to locate the desired generic.
8287 2009-04-15 Bob Duff <duff@adacore.com>
8289 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
8290 warnings unless the loop comes from source, because checking generated
8291 loops is a waste of time, and makes it harder to debug
8292 Check_Infinite_Loop_Warning.
8294 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
8295 tested in the while loop is a renaming, do not warn. Otherwise, we get
8296 false alarms, because it's usually renaming something that we can't
8297 deal with (an indexed component, a global variable, ...).
8299 * gnat_rm.texi: Fix typo
8301 2009-04-15 Thomas Quinot <quinot@adacore.com>
8303 * sem_ch6.adb: Minor reformatting
8305 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8307 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
8308 immediate parent of the controlled function call is a component
8311 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8313 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
8314 corresponding class-wide type is also in use.
8316 2009-04-15 Thomas Quinot <quinot@adacore.com>
8318 * frontend.adb: Minor comment fix
8320 2009-04-15 Robert Dewar <dewar@adacore.com>
8322 * gnatchop.adb (BOM_Length): New global variable
8323 (Write_Unit): Add new parameter Write_BOM
8324 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
8327 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
8329 2009-04-15 Geert Bosch <bosch@adacore.com>
8331 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
8332 (Backend_Overflow_Checks): Set to True.
8334 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8336 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
8337 keyword is given in a record extension.
8339 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8341 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
8342 of a controlled function call in the context of a record aggregate.
8343 This does not apply to array aggregates since the call will be expanded
8346 2009-04-15 Ed Falis <falis@adacore.com>
8348 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
8349 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
8350 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
8351 s-osinte-vxworks* and s-vxwext*.
8353 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8355 * gcc-interface/Make-lang.in: Update dependencies.
8357 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
8360 2009-04-15 Robert Dewar <dewar@adacore.com>
8362 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
8363 of node for location for warning messages.
8365 * gnatchop.adb: Minor reformatting
8367 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8369 * exp_ch6.adb: additional guard for renaming declarations for in
8370 parameters of an array type.
8372 2009-04-15 Robert Dewar <dewar@adacore.com>
8374 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
8375 in case they were rewritten by expander (Force_Evaluation).
8377 * targparm.adb (Get_Target_Parameters): Correct check for
8378 Suppress_Exception_Locations.
8380 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8382 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
8383 inlined is of an array type that is not bit-packed, use a renaming
8384 declaration to capture its value, rather than a constant declaration.
8386 2009-04-15 Robert Dewar <dewar@adacore.com>
8388 * rtsfind.adb: Minor reformatting.
8390 2009-04-15 Emmanuel Briot <briot@adacore.com>
8392 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
8393 Restore, and free the saved context.
8395 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8397 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
8398 for illegal private extension from a synchronized interface parent in
8399 front of check for illegal limited extension so that limited extension
8400 from a synchronized interface will be rejected.
8401 (Check_Ifaces): Check that a private extension that has a synchronized
8402 interface as a progenitor must be explicitly declared synchronized.
8403 Also check that a record extension cannot derive from a synchronized
8406 2009-04-15 Pascal Obry <obry@adacore.com>
8408 * adaint.h (__gnat_unlink): Add spec.
8409 (__gnat_rename): Likewise.
8411 2009-04-15 Vincent Celier <celier@adacore.com>
8413 * prj-nmsc.adb: Minor spelling error corrections in error messages
8415 2009-04-15 Robert Dewar <dewar@adacore.com>
8417 * sinfo.ads: Minor comment update
8419 * opt.ads: Minor comment updates
8421 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
8424 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8426 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
8427 that generates the code needed to update a dispatch table when a
8428 primitive operation is declared with a subprogram body without previous
8429 spec. Insertion of the generated code is responsibility of the caller.
8430 (Make_DT): When building static tables, append the code created by
8431 Register_Primitive to update a secondary table after it has been
8434 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
8436 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
8437 on an overriding operation that implements an interface operation only
8438 if not building static dispatch tables.
8440 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8442 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
8443 does not cause overflow when converted to Duration. Use the safe value
8444 as the maximum allowable time delay..
8446 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
8448 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
8449 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
8450 translated to "-j 2".
8452 2009-04-15 Bob Duff <duff@adacore.com>
8454 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
8455 with_clauses, to avoid code duplication. Change this processing so we
8456 always add a with_clause on the main unit if needed.
8458 2009-04-15 Pascal Obry <obry@adacore.com>
8460 Add support for Win32 native encoding for delete/rename routines.
8462 * adaint.c (__gnat_unlink): New routine.
8463 (__gnat_rename): New routine.
8464 Simple wrapper routines used to convert to proper encoding on
8467 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
8468 call to the C library.
8470 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
8472 2009-04-15 Robert Dewar <dewar@adacore.com>
8474 * s-tassta.adb: Minor reformatting
8476 2009-04-15 Robert Dewar <dewar@adacore.com>
8478 * frontend.adb (Frontend): Set proper default for
8479 Warn_On_Non_Local_Exception.
8481 * opt.ads (Exception_Handler_Encountered): New flag
8482 (No_Warn_On_Non_Local_Exception): New flag
8484 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
8486 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8487 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8489 2009-04-15 Cyrille Comar <comar@adacore.com>
8491 * s-tassta.adb, a-exextr.adb, a-elchha.adb
8492 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
8493 message when exception traces are active since it would generate
8494 redundant information.
8495 (Exception_Traces.Notify_Exception): put message output by a critical
8496 section to avoid unsynchronized output.
8497 (Trace_Unhandled_Exception_In_Task): put message output by a critical
8498 section to avoid unsynchronized output.
8500 2009-04-15 Emmanuel Briot <briot@adacore.com>
8502 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
8503 (Free): New subprogram.
8505 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8507 * a-calend.adb: Add new constant Nanos_In_Four_Years.
8508 (Formatting_Operations.Time_Of): Change the way four year chunks of
8509 nanoseconds are added to the intermediate result.
8511 2009-04-15 Nicolas Setton <setton@adacore.com>
8513 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
8514 does not need to wait for a carriage return.
8516 2009-04-15 Tristan Gingold <gingold@adacore.com>
8518 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
8521 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8523 * freeze.adb (Freeze_Entity): improve error message for improper use of
8525 Diagnose additional illegal uses of incomplete types in formal parts.
8526 appearing in formal parts.
8528 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
8530 2009-04-15 Robert Dewar <dewar@adacore.com>
8532 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
8534 2009-04-15 Nicolas Roche <roche@adacore.com>
8536 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
8539 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
8541 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
8543 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8545 * sem_ch4.adb: improve error message on exponentiation.
8547 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8549 * a-calend.adb: Move constant Epoch_Offset from package
8550 Conversion_Operations to top level.
8551 (Delay_Operations.To_Duration): Define a constant which represents
8552 "end of time" and use it as a guard against very distant delay dates.
8553 Protect the code against overflow when performing the origin shift to
8556 2009-04-15 Robert Dewar <dewar@adacore.com>
8558 * sem_prag.adb: Minor reformatting.
8560 * sem_type.adb: Minor reformatting
8562 2009-04-15 Javier Miranda <miranda@adacore.com>
8564 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
8565 support to check eliminated subprograms.
8567 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
8569 * sem_elim.adb (Set_Eliminated): Add support for elimination of
8570 dispatching subprograms.
8572 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
8573 operations. Initialize with "null" the slots of eliminated dispaching
8575 (Write_DT): Add output for eliminated primitives.
8577 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
8579 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8581 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
8582 the second is redundant, regardless of scopes.
8584 2009-04-15 Vincent Celier <celier@adacore.com>
8586 * prj-nmsc.adb (Get_Directories): Check for sources before checking
8587 the object directory as when there are no sources, they may not be any
8590 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
8591 directory, when there are no exec directory.
8593 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8595 * sem_type.adb (Remove_Conversions): In order to resolve spurious
8596 ambiguities, refine removal of universal interpretations from complex
8597 expressions with literal arguments, when some numeric operators have
8598 been declared abstract.
8600 2009-04-15 Ed Falis <falis@adacore.com>
8602 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
8603 and backward compatibility for targets using probing for stack overflow
8605 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8607 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
8608 after any declaration, including renaming declarations.
8610 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8612 * gcc-interface/Make-lang.in: Update dependencies.
8614 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
8615 Update xenomai target pairs.
8617 2009-04-15 Javier Miranda <miranda@adacore.com>
8619 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
8621 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
8622 functions returning anonymous access to class-wide limited types. Mark
8623 also the containing scope as a task master.
8625 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
8626 limited-withed packages. Required to restore their visibility after
8627 processing packages associated with implicit with-clauses.
8629 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
8630 associated with return statements because this work is now done by
8631 Check_Anonymous_Return.
8632 (Build_Master): Code cleanup.
8634 2009-04-15 Thomas Quinot <quinot@adacore.com>
8636 * sem_warn.ads: Minor reformatting
8638 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8640 * sem_ch3.adb: better error message for illegal interfaces
8642 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
8643 formal is an incomplete type from a limited_with clause.
8645 2009-04-15 Vincent Celier <celier@adacore.com>
8647 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
8648 Externally_Built indicating if the project is externally built. If it
8649 is, and --subdirs is specified, but the subdir does not exist, look
8650 for the specified directory, without the subdir.
8652 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8654 * a-tasatt.adb: Fix typo, plus minor reformatting
8656 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
8658 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
8660 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8662 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
8663 private extension whose parent is a synchronized interface carries an
8664 explicit synchronized keyword.
8666 2009-04-15 Thomas Quinot <quinot@adacore.com>
8668 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
8669 instantiate generic shared object package with the corresponding
8672 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8674 * system-linux-sparc.ads: Remove obsolete entries.
8676 2009-04-15 Thomas Quinot <quinot@adacore.com>
8678 * s-tasuti.ads: Add ??? comment
8680 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8682 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
8683 type even if the designated type comes from a limited_with clause, to
8684 ensure that the symbol for the finalization list of the access type is
8687 2009-04-10 Robert Dewar <dewar@adacore.com>
8689 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
8690 for warning suppression.
8692 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8694 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
8695 identical, there is no redudancy to check.
8697 2009-04-10 Gary Dismukes <dismukes@adacore.com>
8699 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
8700 calls initializing SS_Allocator (which is initialized in following
8702 (Expand_Simple_Function_Return): Add comment about False value for
8703 Comes_From_Source on secondary-stack allocator.
8705 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
8706 (Build_Entry_Name): Add comment.
8708 2009-04-10 Robert Dewar <dewar@adacore.com>
8710 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
8712 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
8713 bound tested, since this is now done more generally in Sem_Res.
8715 * sem_res.adb (Resolve_Comparison_Op): Add call to
8716 Check_Lower_Bound_Tested.
8717 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
8719 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
8720 (Low_Bound_Tested): New name for Low_Bound_Known flag
8722 * exp_ch5.adb: Minor reformatting
8725 Add comments on copying the Comes_From_Source flag for allocators
8728 Add comments on copying the Comes_From_Source flag for allocators
8730 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
8731 Comes_From_Source flag from old allocator to new one.
8733 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8735 * sem_ch6.ads: Address missing documentation query
8737 2009-04-10 Vincent Celier <celier@adacore.com>
8740 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
8741 and Response_File_Switches.
8743 * prj-nmsc.adb (Process_Linker): Process new attributes
8744 Max_Command_Line_Length, Response_File_Format and
8745 Response_File_Switches.
8747 * prj.ads (Response_File_Format): New enumeration type
8748 (Project_Configuration): New componants Max_Command_Line_Length,
8749 Resp_File_Format and Resp_File_Options.
8751 * snames.ads-tmpl: Add new standard names for linking response files
8752 for gprbuild: GNU, None, Object_List, Option_List,
8753 Max_Command_Line_Length, Response_File_Format and
8754 Response_File_Switches.
8756 2009-04-10 Geert Bosch <bosch@adacore.com>
8758 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
8759 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
8760 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
8761 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
8762 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
8763 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
8764 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
8765 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
8766 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
8767 system-vxworks-arm.ads, system-vxworks-m68k.ads,
8768 system-vxworks-mips.ads, system-vxworks-ppc.ads,
8769 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
8770 (Backend_Overflow_Checks): Set to True.
8772 2009-04-10 Thomas Quinot <quinot@adacore.com>
8774 * exp_attr.adb: Minor reformatting
8776 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8778 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
8779 analyze the expression for a postcondition, even if the compiler mode
8782 2009-04-10 Robert Dewar <dewar@adacore.com>
8784 * sem_aux.adb: Minor reformatting
8786 2009-04-10 Ed Falis <falis@adacore.com>
8788 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
8790 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
8792 2009-04-10 Thomas Quinot <quinot@adacore.com>
8794 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
8795 undocumented formal.
8798 * a-direio.ads: Fix typo in comment
8800 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
8801 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
8802 Use uniform phrasing for comment at start of subprogram body.
8804 * xsnamest.adb: Add note to explain why we use specific names for the
8805 newly generated files instead of generating snames.{ads,adb,h} directly
8807 2009-04-10 Sergey Rybin <rybin@adacore.com>
8810 Add qualifier for new gnatstub option '--no-exception'
8813 Add the description of the new gnatstub option '--no-exception'
8815 2009-04-10 Robert Dewar <dewar@adacore.com>
8817 * rtsfind.adb: Minor reformatting
8819 2009-04-10 Thomas Quinot <quinot@adacore.com>
8821 * sem_disp.adb: Minor reformatting.
8822 Add comment pointing to RM clause for the case of warning against a
8823 (failed) attempt at declaring a primitive operation elsewhere than in a
8826 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8828 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
8829 an actual for a previous formal package of the current instance.
8831 2009-04-10 Bob Duff <duff@adacore.com>
8833 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
8834 them first, rather than on the extended main unit.
8836 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8838 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
8839 specification of full view carries a null exclusion indicator, create
8840 an itype for it, to check for conformance with partial view.
8842 2009-04-10 Bob Duff <duff@adacore.com>
8844 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
8846 * rtsfind.adb: Minor comment changes, and remove useless code.
8848 * sinfo.ads: Add ??? comment.
8850 2009-04-10 Vincent Celier <celier@adacore.com>
8852 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
8854 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8856 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
8857 type is a synchronized type, retrieve tag information from the
8858 corresponding record, which has the dispatch table link.
8860 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
8862 * g-comlin.adb (Group_Analysis): Take care of switches that might be
8863 decomposed afterwards, but are present as-is in the command line
8864 configuration, and thus should be kept as-is.
8866 2009-04-10 Robert Dewar <dewar@adacore.com>
8868 * gnat_rm.texi: Document that postconditions are tested on implicit
8871 * sem_aux.adb: Minor reformatting
8873 2009-04-10 Gary Dismukes <dismukes@adacore.com>
8875 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
8878 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
8879 Null_Exclusion_In_Return_Present when an access-to-function type has a
8880 result type with an explicit not null.
8882 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
8883 given on the result type, then create a null-excluding itype for the
8886 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
8887 the case where a null exclusion is imposed on a named access type.
8888 (Analyze_Subprogram_Specification): Push and pop the scope of the
8889 function around the call to Analyze_Return_Type in the case of no
8890 formals, for consistency with handling when formals are present
8891 (Process_Formals does this). Ensures that any itype created for the
8892 return type will be associated with the proper scope.
8894 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
8895 exclusion is given on a generic function's result type, then create a
8896 null-excluding itype for the generic function.
8897 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
8898 for an actual for a formal in object according to the setting on the
8899 formal. Ensures null exclusion checks are done when the association is
8902 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
8903 N_Access_Function_Definition.
8905 * sinfo.adb: Add Get_ and Set_ operations for
8906 Null_Exclusion_In_Return_Present.
8908 2009-04-10 Bob Duff <duff@adacore.com>
8910 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
8911 call to the _Postconditions procedure in the case of implicit returns
8912 from analysis to expansion. This eliminates some duplicated code. Use
8913 the Postcondition_Proc to find the identity of this procedure during
8916 2009-04-10 Robert Dewar <dewar@adacore.com>
8918 * sem_ch6.adb: Minor code clean up.
8920 * einfo.ads, sem_attr.adb: Minor comment fixes.
8922 2009-04-10 Robert Dewar <dewar@adacore.com>
8924 * sem_ch8.adb: Minor reformatting
8926 2009-04-10 Robert Dewar <dewar@adacore.com>
8928 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
8931 * sem_ch6.adb: Minor code clean up.
8933 2009-04-10 Robert Dewar <dewar@adacore.com>
8935 * mlib-tgt-specific-xi.adb: Minor reformatting
8937 2009-04-10 Bob Duff <duff@adacore.com>
8939 * einfo.ads: Minor comment fixes
8941 2009-04-10 Vincent Celier <celier@adacore.com>
8943 * snames.ads-tmpl: Remove names that are no longer used in the
8945 Mark specifically those that are used only in gprbuild
8947 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
8949 * init.c: Adjust EH support code on Alpha/Tru64.
8951 2009-04-10 Bob Duff <duff@adacore.com>
8953 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
8954 procedure on every path that could return implicitly (not via a return
8955 statement) from a procedure.
8957 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8959 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
8960 valid scope for a task declarations and therefore for a master id.
8962 2009-04-10 Robert Dewar <dewar@adacore.com>
8964 * sem_aux.adb: Minor reformatting
8966 2009-04-10 Vincent Celier <celier@adacore.com>
8968 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
8970 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
8971 (Set_Obsolescent_Check): New procedure to change the value of
8972 Obsolescent_Check_Flag.
8974 * scn.ads (Set_Obsolescent_Check): New procedure to control
8977 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
8978 obsolescent features while preprocessing.
8980 2009-04-10 Thomas Quinot <quinot@adacore.com>
8982 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
8983 generated files on all platforms.
8985 2009-04-10 Robert Dewar <dewar@adacore.com>
8987 * sem_aux.adb: Minor reformatting
8989 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8991 * sem_ch3.adb (Access_Definition): Handle properly the case of a
8992 protected function with formals that returns an anonymous access type.
8994 2009-04-10 Thomas Quinot <quinot@adacore.com>
8996 * sem_disp.adb: Minor reformatting
8998 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
9000 * seh_init.c: Do not use the 32-bit specific implementation of
9001 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
9004 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9006 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
9007 a '/' at the end so we better use the complete target name to determine
9008 whether it is a PowerPC 55xx target.
9010 2009-04-10 Thomas Quinot <quinot@adacore.com>
9012 * sem_eval.adb: Minor reformatting
9014 2009-04-10 Thomas Quinot <quinot@adacore.com>
9016 * snames.h, snames.ads, snames.adb: Remove files, now generated from
9019 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
9022 * xsnamest.adb: New file.
9024 * gcc-interface/Make-lang.in: New target for automated generation of
9025 snames.ads, snames.adb and snames.h
9027 2009-04-10 Tristan Gingold <gingold@adacore.com>
9029 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
9030 avoid compile time warnings.
9031 Do not add gcc/config in include search list while compiling the RTS.
9032 Pragma Thread_Local_Storage is available on any target.
9034 2009-04-10 Bob Duff <duff@adacore.com>
9036 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
9038 2009-04-10 Tristan Gingold <gingold@adacore.com>
9040 * init.c: Install signal handler on Darwin.
9042 2009-04-10 Robert Dewar <dewar@adacore.com>
9044 * sem_prag.adb: Minor reformatting
9046 * exp_util.adb (Make_Non_Empty_Check): New function
9047 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
9048 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
9050 2009-04-10 Arnaud Charlet <charlet@adacore.com>
9052 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
9054 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9056 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
9057 tool prefix for AVR and PowerPC 55xx targets.
9059 2009-04-10 Robert Dewar <dewar@adacore.com>
9061 * sem_warn.adb (Within_Postcondition): New function
9062 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
9064 2009-04-10 Robert Dewar <dewar@adacore.com>
9066 * sem_warn.adb: Minor reformatting
9068 * make.adb: Minor reformatting.
9070 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9072 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
9073 entity and the scope is a subprogram, retrieve the Sloc of the
9074 subprogram's body rather than using the sloc of the spec, for better
9075 line-stepping behavior in gdb.
9076 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
9077 controller, use the Sloc of the first declaration of the containing list
9078 rather than that of the node that triggered creation of the list
9081 2009-04-10 Vincent Celier <celier@adacore.com>
9083 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
9084 to avoid gcc warning.
9086 2009-04-10 Robert Dewar <dewar@adacore.com>
9088 * g-comlin.adb: Add ??? comment
9090 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9092 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
9093 unreferenced entities for a package with no visible declarations.
9095 2009-04-10 Robert Dewar <dewar@adacore.com>
9097 * exp_ch9.adb: Minor reformatting
9099 2009-04-10 Thomas Quinot <quinot@adacore.com>
9101 * sem_prag.adb: Minor reformatting
9103 2009-04-10 Vincent Celier <celier@adacore.com>
9106 (Check_Library_Attributes): For a project qualified as a library project
9107 that is not a library project, indicate in the error message which
9108 attributes are missing (Library_Dir and/or Library_Name).
9110 2009-04-10 Bob Duff <duff@adacore.com>
9112 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
9113 generated nodes, because it might confuse various circuits in the FE.
9115 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9117 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
9118 of pragma. It will be recopied and analyzed when used in call to
9121 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
9122 initialization operations and recognize use of it in procedure calls
9125 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
9126 argument, because it may have side-effects.
9128 * exp_ch2.adb: Remove obsolete comments on default functions
9130 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9132 * adaint.c (RTX section): Do for RTX the same thing as we do for
9133 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
9135 2009-04-10 Robert Dewar <dewar@adacore.com>
9137 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
9139 * sem_res.adb (Resolve_Call): Fix test for
9140 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
9141 a non-dynamic scope).
9143 2009-04-10 Robert Dewar <dewar@adacore.com>
9145 * make.adb: Add comment.
9148 2009-04-10 Nicolas Setton <setton@adacore.com>
9150 * s-osprim-darwin.adb: New file.
9152 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
9154 2009-04-10 Thomas Quinot <quinot@adacore.com>
9156 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
9158 2009-04-09 Nick Clifton <nickc@redhat.com>
9160 * adadecode.h: Change copyright header to refer to version
9161 3 of the GNU General Public License with version 3.1 of the
9162 GCC Runtime Library Exception and to point readers at the
9163 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
9165 * 9drpc.adb: Likewise.
9166 * a-assert.adb: Likewise.
9167 * a-astaco.adb: Likewise.
9168 * a-calari.adb: Likewise.
9169 * a-calcon.adb: Likewise.
9170 * a-calcon.ads: Likewise.
9171 * a-caldel.ads: Likewise.
9172 * a-calend-vms.adb: Likewise.
9173 * a-calend-vms.ads: Likewise.
9174 * a-calend.adb: Likewise.
9175 * a-calend.ads: Likewise.
9176 * a-calfor.adb: Likewise.
9177 * a-catizo.adb: Likewise.
9178 * a-cdlili.adb: Likewise.
9179 * a-cdlili.ads: Likewise.
9180 * a-cgaaso.adb: Likewise.
9181 * a-cgaaso.ads: Likewise.
9182 * a-cgarso.adb: Likewise.
9183 * a-cgcaso.adb: Likewise.
9184 * a-chacon.adb: Likewise.
9185 * a-chacon.ads: Likewise.
9186 * a-chahan.adb: Likewise.
9187 * a-chahan.ads: Likewise.
9188 * a-chlat9.ads: Likewise.
9189 * a-chtgke.adb: Likewise.
9190 * a-chtgke.ads: Likewise.
9191 * a-chtgop.adb: Likewise.
9192 * a-chtgop.ads: Likewise.
9193 * a-chzla1.ads: Likewise.
9194 * a-chzla9.ads: Likewise.
9195 * a-cidlli.adb: Likewise.
9196 * a-cidlli.ads: Likewise.
9197 * a-cihama.adb: Likewise.
9198 * a-cihama.ads: Likewise.
9199 * a-cihase.adb: Likewise.
9200 * a-cihase.ads: Likewise.
9201 * a-ciorma.adb: Likewise.
9202 * a-ciorma.ads: Likewise.
9203 * a-ciormu.adb: Likewise.
9204 * a-ciormu.ads: Likewise.
9205 * a-ciorse.adb: Likewise.
9206 * a-ciorse.ads: Likewise.
9207 * a-clrefi.adb: Likewise.
9208 * a-clrefi.ads: Likewise.
9209 * a-cohama.adb: Likewise.
9210 * a-cohama.ads: Likewise.
9211 * a-cohase.adb: Likewise.
9212 * a-cohase.ads: Likewise.
9213 * a-cohata.ads: Likewise.
9214 * a-coinve.adb: Likewise.
9215 * a-coinve.ads: Likewise.
9216 * a-colien.adb: Likewise.
9217 * a-colien.ads: Likewise.
9218 * a-colire.adb: Likewise.
9219 * a-colire.ads: Likewise.
9220 * a-comlin.adb: Likewise.
9221 * a-comlin.ads: Likewise.
9222 * a-convec.adb: Likewise.
9223 * a-convec.ads: Likewise.
9224 * a-coorma.adb: Likewise.
9225 * a-coorma.ads: Likewise.
9226 * a-coormu.adb: Likewise.
9227 * a-coormu.ads: Likewise.
9228 * a-coorse.adb: Likewise.
9229 * a-coorse.ads: Likewise.
9230 * a-coprnu.adb: Likewise.
9231 * a-coprnu.ads: Likewise.
9232 * a-crbltr.ads: Likewise.
9233 * a-crbtgk.adb: Likewise.
9234 * a-crbtgk.ads: Likewise.
9235 * a-crbtgo.adb: Likewise.
9236 * a-crbtgo.ads: Likewise.
9237 * a-crdlli.adb: Likewise.
9238 * a-crdlli.ads: Likewise.
9239 * a-cwila1.ads: Likewise.
9240 * a-cwila9.ads: Likewise.
9241 * a-decima.adb: Likewise.
9242 * a-decima.ads: Likewise.
9243 * a-diocst.adb: Likewise.
9244 * a-diocst.ads: Likewise.
9245 * a-direct.adb: Likewise.
9246 * a-direct.ads: Likewise.
9247 * a-direio.adb: Likewise.
9248 * a-direio.ads: Likewise.
9249 * a-dirval-mingw.adb: Likewise.
9250 * a-dirval-vms.adb: Likewise.
9251 * a-dirval.adb: Likewise.
9252 * a-dirval.ads: Likewise.
9253 * a-dynpri.adb: Likewise.
9254 * a-einuoc.adb: Likewise.
9255 * a-einuoc.ads: Likewise.
9256 * a-elchha.adb: Likewise.
9257 * a-elchha.ads: Likewise.
9258 * a-envvar.adb: Likewise.
9259 * a-excach.adb: Likewise.
9260 * a-except-2005.adb: Likewise.
9261 * a-except-2005.ads: Likewise.
9262 * a-except.adb: Likewise.
9263 * a-except.ads: Likewise.
9264 * a-excpol-abort.adb: Likewise.
9265 * a-excpol.adb: Likewise.
9266 * a-exctra.adb: Likewise.
9267 * a-exctra.ads: Likewise.
9268 * a-exetim-mingw.adb: Likewise.
9269 * a-exetim-mingw.ads: Likewise.
9270 * a-exexda.adb: Likewise.
9271 * a-exexpr-gcc.adb: Likewise.
9272 * a-exexpr.adb: Likewise.
9273 * a-exextr.adb: Likewise.
9274 * a-exstat.adb: Likewise.
9275 * a-filico.adb: Likewise.
9276 * a-filico.ads: Likewise.
9277 * a-finali.adb: Likewise.
9278 * a-finali.ads: Likewise.
9279 * a-interr.ads: Likewise.
9280 * a-intnam-aix.ads: Likewise.
9281 * a-intnam-darwin.ads: Likewise.
9282 * a-intnam-dummy.ads: Likewise.
9283 * a-intnam-freebsd.ads: Likewise.
9284 * a-intnam-hpux.ads: Likewise.
9285 * a-intnam-irix.ads: Likewise.
9286 * a-intnam-linux.ads: Likewise.
9287 * a-intnam-lynxos.ads: Likewise.
9288 * a-intnam-mingw.ads: Likewise.
9289 * a-intnam-rtems.ads: Likewise.
9290 * a-intnam-solaris.ads: Likewise.
9291 * a-intnam-tru64.ads: Likewise.
9292 * a-intnam-vms.ads: Likewise.
9293 * a-intnam-vxworks.ads: Likewise.
9294 * a-intsig.adb: Likewise.
9295 * a-intsig.ads: Likewise.
9296 * a-ngcefu.adb: Likewise.
9297 * a-ngcoar.adb: Likewise.
9298 * a-ngcoty.adb: Likewise.
9299 * a-ngcoty.ads: Likewise.
9300 * a-ngelfu.adb: Likewise.
9301 * a-ngrear.adb: Likewise.
9302 * a-ngrear.ads: Likewise.
9303 * a-nudira.adb: Likewise.
9304 * a-nudira.ads: Likewise.
9305 * a-nuflra.adb: Likewise.
9306 * a-nuflra.ads: Likewise.
9307 * a-numaux-darwin.adb: Likewise.
9308 * a-numaux-darwin.ads: Likewise.
9309 * a-numaux-libc-x86.ads: Likewise.
9310 * a-numaux-vxworks.ads: Likewise.
9311 * a-numaux-x86.adb: Likewise.
9312 * a-numaux-x86.ads: Likewise.
9313 * a-numaux.ads: Likewise.
9314 * a-rbtgso.adb: Likewise.
9315 * a-rbtgso.ads: Likewise.
9316 * a-reatim.ads: Likewise.
9317 * a-retide.adb: Likewise.
9318 * a-retide.ads: Likewise.
9319 * a-rttiev.adb: Likewise.
9320 * a-rttiev.ads: Likewise.
9321 * a-secain.adb: Likewise.
9322 * a-secain.ads: Likewise.
9323 * a-sequio.adb: Likewise.
9324 * a-sequio.ads: Likewise.
9325 * a-shcain.adb: Likewise.
9326 * a-shcain.ads: Likewise.
9327 * a-siocst.adb: Likewise.
9328 * a-siocst.ads: Likewise.
9329 * a-slcain.adb: Likewise.
9330 * a-slcain.ads: Likewise.
9331 * a-ssicst.adb: Likewise.
9332 * a-ssicst.ads: Likewise.
9333 * a-stboha.adb: Likewise.
9334 * a-stmaco.ads: Likewise.
9335 * a-storio.adb: Likewise.
9336 * a-strbou.adb: Likewise.
9337 * a-strbou.ads: Likewise.
9338 * a-stream.ads: Likewise.
9339 * a-strfix.adb: Likewise.
9340 * a-strhas.adb: Likewise.
9341 * a-strmap.adb: Likewise.
9342 * a-strmap.ads: Likewise.
9343 * a-strsea.adb: Likewise.
9344 * a-strsea.ads: Likewise.
9345 * a-strsup.adb: Likewise.
9346 * a-strsup.ads: Likewise.
9347 * a-strunb.adb: Likewise.
9348 * a-strunb.ads: Likewise.
9349 * a-ststio.adb: Likewise.
9350 * a-ststio.ads: Likewise.
9351 * a-stunau.adb: Likewise.
9352 * a-stunau.ads: Likewise.
9353 * a-stunha.adb: Likewise.
9354 * a-stwibo.adb: Likewise.
9355 * a-stwibo.ads: Likewise.
9356 * a-stwifi.adb: Likewise.
9357 * a-stwiha.adb: Likewise.
9358 * a-stwima.adb: Likewise.
9359 * a-stwima.ads: Likewise.
9360 * a-stwise.adb: Likewise.
9361 * a-stwise.ads: Likewise.
9362 * a-stwisu.adb: Likewise.
9363 * a-stwisu.ads: Likewise.
9364 * a-stwiun.adb: Likewise.
9365 * a-stwiun.ads: Likewise.
9366 * a-stzbou.adb: Likewise.
9367 * a-stzbou.ads: Likewise.
9368 * a-stzfix.adb: Likewise.
9369 * a-stzhas.adb: Likewise.
9370 * a-stzmap.adb: Likewise.
9371 * a-stzmap.ads: Likewise.
9372 * a-stzsea.adb: Likewise.
9373 * a-stzsea.ads: Likewise.
9374 * a-stzsup.adb: Likewise.
9375 * a-stzsup.ads: Likewise.
9376 * a-stzunb.adb: Likewise.
9377 * a-stzunb.ads: Likewise.
9378 * a-suteio.adb: Likewise.
9379 * a-suteio.ads: Likewise.
9380 * a-swbwha.adb: Likewise.
9381 * a-swmwco.ads: Likewise.
9382 * a-swunau.adb: Likewise.
9383 * a-swunau.ads: Likewise.
9384 * a-swuwha.adb: Likewise.
9385 * a-swuwti.adb: Likewise.
9386 * a-swuwti.ads: Likewise.
9387 * a-sytaco.adb: Likewise.
9388 * a-sytaco.ads: Likewise.
9389 * a-szbzha.adb: Likewise.
9390 * a-szmzco.ads: Likewise.
9391 * a-szunau.adb: Likewise.
9392 * a-szunau.ads: Likewise.
9393 * a-szuzha.adb: Likewise.
9394 * a-szuzti.adb: Likewise.
9395 * a-szuzti.ads: Likewise.
9396 * a-tags.adb: Likewise.
9397 * a-tags.ads: Likewise.
9398 * a-tasatt.ads: Likewise.
9399 * a-taside.adb: Likewise.
9400 * a-taside.ads: Likewise.
9401 * a-taster.adb: Likewise.
9402 * a-teioed.adb: Likewise.
9403 * a-teioed.ads: Likewise.
9404 * a-textio.adb: Likewise.
9405 * a-textio.ads: Likewise.
9406 * a-tiboio.adb: Likewise.
9407 * a-ticoau.adb: Likewise.
9408 * a-ticoau.ads: Likewise.
9409 * a-ticoio.adb: Likewise.
9410 * a-ticoio.ads: Likewise.
9411 * a-tideau.adb: Likewise.
9412 * a-tideau.ads: Likewise.
9413 * a-tideio.adb: Likewise.
9414 * a-tideio.ads: Likewise.
9415 * a-tienau.adb: Likewise.
9416 * a-tienau.ads: Likewise.
9417 * a-tienio.adb: Likewise.
9418 * a-tienio.ads: Likewise.
9419 * a-tifiio.adb: Likewise.
9420 * a-tifiio.ads: Likewise.
9421 * a-tiflau.adb: Likewise.
9422 * a-tiflau.ads: Likewise.
9423 * a-tiflio.adb: Likewise.
9424 * a-tiflio.ads: Likewise.
9425 * a-tigeau.adb: Likewise.
9426 * a-tigeau.ads: Likewise.
9427 * a-tiinau.adb: Likewise.
9428 * a-tiinau.ads: Likewise.
9429 * a-tiinio.adb: Likewise.
9430 * a-tiinio.ads: Likewise.
9431 * a-timoau.adb: Likewise.
9432 * a-timoau.ads: Likewise.
9433 * a-timoio.adb: Likewise.
9434 * a-timoio.ads: Likewise.
9435 * a-tiocst.adb: Likewise.
9436 * a-tiocst.ads: Likewise.
9437 * a-titest.adb: Likewise.
9438 * a-wichun.adb: Likewise.
9439 * a-wichun.ads: Likewise.
9440 * a-witeio.adb: Likewise.
9441 * a-witeio.ads: Likewise.
9442 * a-wtcoau.adb: Likewise.
9443 * a-wtcoau.ads: Likewise.
9444 * a-wtcoio.adb: Likewise.
9445 * a-wtcstr.adb: Likewise.
9446 * a-wtcstr.ads: Likewise.
9447 * a-wtdeau.adb: Likewise.
9448 * a-wtdeau.ads: Likewise.
9449 * a-wtdeio.adb: Likewise.
9450 * a-wtdeio.ads: Likewise.
9451 * a-wtedit.adb: Likewise.
9452 * a-wtedit.ads: Likewise.
9453 * a-wtenau.adb: Likewise.
9454 * a-wtenau.ads: Likewise.
9455 * a-wtenio.adb: Likewise.
9456 * a-wtenio.ads: Likewise.
9457 * a-wtfiio.adb: Likewise.
9458 * a-wtfiio.ads: Likewise.
9459 * a-wtflau.adb: Likewise.
9460 * a-wtflau.ads: Likewise.
9461 * a-wtflio.adb: Likewise.
9462 * a-wtflio.ads: Likewise.
9463 * a-wtgeau.adb: Likewise.
9464 * a-wtgeau.ads: Likewise.
9465 * a-wtinau.adb: Likewise.
9466 * a-wtinau.ads: Likewise.
9467 * a-wtinio.adb: Likewise.
9468 * a-wtmoau.adb: Likewise.
9469 * a-wtmoau.ads: Likewise.
9470 * a-wtmoio.adb: Likewise.
9471 * a-wtmoio.ads: Likewise.
9472 * a-wttest.adb: Likewise.
9473 * a-wwboio.adb: Likewise.
9474 * a-zchuni.adb: Likewise.
9475 * a-zchuni.ads: Likewise.
9476 * a-ztcoau.adb: Likewise.
9477 * a-ztcoau.ads: Likewise.
9478 * a-ztcoio.adb: Likewise.
9479 * a-ztcstr.adb: Likewise.
9480 * a-ztcstr.ads: Likewise.
9481 * a-ztdeau.adb: Likewise.
9482 * a-ztdeau.ads: Likewise.
9483 * a-ztdeio.adb: Likewise.
9484 * a-ztdeio.ads: Likewise.
9485 * a-ztedit.adb: Likewise.
9486 * a-ztedit.ads: Likewise.
9487 * a-ztenau.adb: Likewise.
9488 * a-ztenau.ads: Likewise.
9489 * a-ztenio.adb: Likewise.
9490 * a-ztenio.ads: Likewise.
9491 * a-ztexio.adb: Likewise.
9492 * a-ztexio.ads: Likewise.
9493 * a-ztfiio.adb: Likewise.
9494 * a-ztfiio.ads: Likewise.
9495 * a-ztflau.adb: Likewise.
9496 * a-ztflau.ads: Likewise.
9497 * a-ztflio.adb: Likewise.
9498 * a-ztflio.ads: Likewise.
9499 * a-ztgeau.adb: Likewise.
9500 * a-ztgeau.ads: Likewise.
9501 * a-ztinau.adb: Likewise.
9502 * a-ztinau.ads: Likewise.
9503 * a-ztinio.adb: Likewise.
9504 * a-ztmoau.adb: Likewise.
9505 * a-ztmoau.ads: Likewise.
9506 * a-ztmoio.adb: Likewise.
9507 * a-ztmoio.ads: Likewise.
9508 * a-zttest.adb: Likewise.
9509 * a-zzboio.adb: Likewise.
9510 * adadecode.c: Likewise.
9511 * adaint.c: Likewise.
9512 * adaint.h: Likewise.
9513 * alloc.ads: Likewise.
9515 * arit64.c: Likewise.
9516 * atree.adb: Likewise.
9517 * atree.ads: Likewise.
9518 * aux-io.c: Likewise.
9520 * casing.adb: Likewise.
9521 * casing.ads: Likewise.
9523 * csets.adb: Likewise.
9524 * csets.ads: Likewise.
9525 * cstreams.c: Likewise.
9526 * ctrl_c.c: Likewise.
9527 * debug.adb: Likewise.
9528 * debug.ads: Likewise.
9529 * dec.ads: Likewise.
9530 * einfo.adb: Likewise.
9531 * einfo.ads: Likewise.
9532 * elists.adb: Likewise.
9533 * elists.ads: Likewise.
9536 * errno.c: Likewise.
9539 * final.c: Likewise.
9540 * fname.adb: Likewise.
9541 * fname.ads: Likewise.
9542 * g-allein.ads: Likewise.
9543 * g-alleve.adb: Likewise.
9544 * g-alleve.ads: Likewise.
9545 * g-altcon.adb: Likewise.
9546 * g-altcon.ads: Likewise.
9547 * g-altive.ads: Likewise.
9548 * g-alveop.adb: Likewise.
9549 * g-alveop.ads: Likewise.
9550 * g-alvety.ads: Likewise.
9551 * g-alvevi.ads: Likewise.
9552 * g-arrspl.adb: Likewise.
9553 * g-arrspl.ads: Likewise.
9554 * g-calend.ads: Likewise.
9555 * g-comlin.adb: Likewise.
9556 * g-debpoo.adb: Likewise.
9557 * g-debpoo.ads: Likewise.
9558 * g-eacodu-vms.adb: Likewise.
9559 * g-eacodu.adb: Likewise.
9560 * g-excact.adb: Likewise.
9561 * g-excact.ads: Likewise.
9562 * g-locfil.adb: Likewise.
9563 * g-os_lib.ads: Likewise.
9564 * g-rannum.adb: Likewise.
9565 * g-rannum.ads: Likewise.
9566 * g-regist.adb: Likewise.
9567 * g-regist.ads: Likewise.
9568 * g-signal.adb: Likewise.
9569 * g-signal.ads: Likewise.
9570 * g-soccon.ads: Likewise.
9571 * g-string.adb: Likewise.
9572 * g-string.ads: Likewise.
9573 * g-strspl.ads: Likewise.
9574 * g-timsta.adb: Likewise.
9575 * g-timsta.ads: Likewise.
9576 * g-trasym-vms-alpha.adb: Likewise.
9577 * g-trasym-vms-ia64.adb: Likewise.
9578 * g-utf_32.adb: Likewise.
9579 * g-utf_32.ads: Likewise.
9580 * g-wistsp.ads: Likewise.
9581 * g-zstspl.ads: Likewise.
9583 * gnatvsn.adb: Likewise.
9584 * gnatvsn.ads: Likewise.
9585 * gsocket.h: Likewise.
9586 * hostparm.ads: Likewise.
9587 * i-c.adb: Likewise.
9588 * i-cexten.ads: Likewise.
9589 * i-cobol.adb: Likewise.
9590 * i-cobol.ads: Likewise.
9591 * i-cpoint.adb: Likewise.
9592 * i-cpoint.ads: Likewise.
9593 * i-cpp.adb: Likewise.
9594 * i-cpp.ads: Likewise.
9595 * i-cstrea-vms.adb: Likewise.
9596 * i-cstrea.adb: Likewise.
9597 * i-cstrea.ads: Likewise.
9598 * i-cstrin.adb: Likewise.
9599 * i-cstrin.ads: Likewise.
9600 * i-forbla-darwin.adb: Likewise.
9601 * i-forbla-unimplemented.ads: Likewise.
9602 * i-forbla.adb: Likewise.
9603 * i-forbla.ads: Likewise.
9604 * i-forlap.ads: Likewise.
9605 * i-fortra.adb: Likewise.
9606 * i-pacdec.adb: Likewise.
9607 * i-pacdec.ads: Likewise.
9608 * i-vxwoio.adb: Likewise.
9609 * i-vxwoio.ads: Likewise.
9610 * indepsw-aix.adb: Likewise.
9611 * indepsw-gnu.adb: Likewise.
9612 * indepsw-mingw.adb: Likewise.
9613 * indepsw.adb: Likewise.
9614 * indepsw.ads: Likewise.
9616 * initialize.c: Likewise.
9617 * interfac.ads: Likewise.
9618 * krunch.adb: Likewise.
9619 * krunch.ads: Likewise.
9620 * lib-list.adb: Likewise.
9621 * lib-sort.adb: Likewise.
9622 * lib.adb: Likewise.
9623 * lib.ads: Likewise.
9625 * math_lib.adb: Likewise.
9626 * memtrack.adb: Likewise.
9627 * mingw32.h: Likewise.
9628 * mkdir.c: Likewise.
9629 * namet-sp.adb: Likewise.
9630 * namet-sp.ads: Likewise.
9631 * namet.adb: Likewise.
9632 * namet.ads: Likewise.
9633 * nlists.adb: Likewise.
9634 * nlists.ads: Likewise.
9635 * opt.adb: Likewise.
9636 * opt.ads: Likewise.
9637 * output.adb: Likewise.
9638 * output.ads: Likewise.
9639 * raise-gcc.c: Likewise.
9640 * raise.c: Likewise.
9641 * raise.h: Likewise.
9642 * repinfo.adb: Likewise.
9643 * repinfo.ads: Likewise.
9644 * repinfo.h: Likewise.
9645 * rident.ads: Likewise.
9646 * s-addima.adb: Likewise.
9647 * s-addima.ads: Likewise.
9648 * s-addope.adb: Likewise.
9649 * s-addope.ads: Likewise.
9650 * s-arit64.adb: Likewise.
9651 * s-arit64.ads: Likewise.
9652 * s-assert.adb: Likewise.
9653 * s-assert.ads: Likewise.
9654 * s-asthan-vms-alpha.adb: Likewise.
9655 * s-asthan.adb: Likewise.
9656 * s-asthan.ads: Likewise.
9657 * s-atacco.adb: Likewise.
9658 * s-atacco.ads: Likewise.
9659 * s-auxdec-empty.adb: Likewise.
9660 * s-auxdec-empty.ads: Likewise.
9661 * s-auxdec-vms_64.ads: Likewise.
9662 * s-auxdec.adb: Likewise.
9663 * s-auxdec.ads: Likewise.
9664 * s-bitops.adb: Likewise.
9665 * s-bitops.ads: Likewise.
9666 * s-boarop.ads: Likewise.
9667 * s-carsi8.adb: Likewise.
9668 * s-carsi8.ads: Likewise.
9669 * s-carun8.adb: Likewise.
9670 * s-carun8.ads: Likewise.
9671 * s-casi16.adb: Likewise.
9672 * s-casi16.ads: Likewise.
9673 * s-casi32.adb: Likewise.
9674 * s-casi32.ads: Likewise.
9675 * s-casi64.adb: Likewise.
9676 * s-casi64.ads: Likewise.
9677 * s-casuti.ads: Likewise.
9678 * s-caun16.adb: Likewise.
9679 * s-caun16.ads: Likewise.
9680 * s-caun32.adb: Likewise.
9681 * s-caun32.ads: Likewise.
9682 * s-caun64.adb: Likewise.
9683 * s-caun64.ads: Likewise.
9684 * s-chepoo.ads: Likewise.
9685 * s-crc32.adb: Likewise.
9686 * s-crc32.ads: Likewise.
9687 * s-crtl.ads: Likewise.
9688 * s-direio.adb: Likewise.
9689 * s-direio.ads: Likewise.
9690 * s-dsaser.ads: Likewise.
9691 * s-except.adb: Likewise.
9692 * s-except.ads: Likewise.
9693 * s-exctab.adb: Likewise.
9694 * s-exctab.ads: Likewise.
9695 * s-exnint.adb: Likewise.
9696 * s-exnint.ads: Likewise.
9697 * s-exnllf.adb: Likewise.
9698 * s-exnllf.ads: Likewise.
9699 * s-exnlli.adb: Likewise.
9700 * s-exnlli.ads: Likewise.
9701 * s-expint.adb: Likewise.
9702 * s-expint.ads: Likewise.
9703 * s-explli.adb: Likewise.
9704 * s-explli.ads: Likewise.
9705 * s-expllu.adb: Likewise.
9706 * s-expllu.ads: Likewise.
9707 * s-expmod.adb: Likewise.
9708 * s-expmod.ads: Likewise.
9709 * s-expuns.adb: Likewise.
9710 * s-expuns.ads: Likewise.
9711 * s-fatflt.ads: Likewise.
9712 * s-fatgen.adb: Likewise.
9713 * s-fatgen.ads: Likewise.
9714 * s-fatlfl.ads: Likewise.
9715 * s-fatllf.ads: Likewise.
9716 * s-fatsfl.ads: Likewise.
9717 * s-ficobl.ads: Likewise.
9718 * s-fileio.adb: Likewise.
9719 * s-fileio.ads: Likewise.
9720 * s-filofl.ads: Likewise.
9721 * s-finimp.adb: Likewise.
9722 * s-finimp.ads: Likewise.
9723 * s-finroo.adb: Likewise.
9724 * s-finroo.ads: Likewise.
9725 * s-fishfl.ads: Likewise.
9726 * s-fore.adb: Likewise.
9727 * s-fore.ads: Likewise.
9728 * s-fvadfl.ads: Likewise.
9729 * s-fvaffl.ads: Likewise.
9730 * s-fvagfl.ads: Likewise.
9731 * s-gearop.adb: Likewise.
9732 * s-gearop.ads: Likewise.
9733 * s-gecobl.adb: Likewise.
9734 * s-gecobl.ads: Likewise.
9735 * s-gecola.adb: Likewise.
9736 * s-gecola.ads: Likewise.
9737 * s-gerebl.adb: Likewise.
9738 * s-gerebl.ads: Likewise.
9739 * s-gerela.adb: Likewise.
9740 * s-gerela.ads: Likewise.
9741 * s-geveop.adb: Likewise.
9742 * s-geveop.ads: Likewise.
9743 * s-gloloc.adb: Likewise.
9744 * s-gloloc.ads: Likewise.
9745 * s-hibaen.ads: Likewise.
9746 * s-imenne.adb: Likewise.
9747 * s-imenne.ads: Likewise.
9748 * s-imgbiu.adb: Likewise.
9749 * s-imgbiu.ads: Likewise.
9750 * s-imgboo.adb: Likewise.
9751 * s-imgboo.ads: Likewise.
9752 * s-imgcha.adb: Likewise.
9753 * s-imgcha.ads: Likewise.
9754 * s-imgdec.adb: Likewise.
9755 * s-imgdec.ads: Likewise.
9756 * s-imgenu.adb: Likewise.
9757 * s-imgenu.ads: Likewise.
9758 * s-imgint.adb: Likewise.
9759 * s-imgint.ads: Likewise.
9760 * s-imgllb.adb: Likewise.
9761 * s-imgllb.ads: Likewise.
9762 * s-imglld.adb: Likewise.
9763 * s-imglld.ads: Likewise.
9764 * s-imglli.adb: Likewise.
9765 * s-imglli.ads: Likewise.
9766 * s-imgllu.adb: Likewise.
9767 * s-imgllu.ads: Likewise.
9768 * s-imgllw.adb: Likewise.
9769 * s-imgllw.ads: Likewise.
9770 * s-imgrea.adb: Likewise.
9771 * s-imgrea.ads: Likewise.
9772 * s-imguns.adb: Likewise.
9773 * s-imguns.ads: Likewise.
9774 * s-imgwch.adb: Likewise.
9775 * s-imgwch.ads: Likewise.
9776 * s-imgwiu.adb: Likewise.
9777 * s-imgwiu.ads: Likewise.
9778 * s-inmaop-dummy.adb: Likewise.
9779 * s-inmaop-vms.adb: Likewise.
9780 * s-inmaop.ads: Likewise.
9781 * s-interr-hwint.adb: Likewise.
9782 * s-interr-sigaction.adb: Likewise.
9783 * s-interr-vms.adb: Likewise.
9784 * s-interr.adb: Likewise.
9785 * s-interr.ads: Likewise.
9786 * s-intman-dummy.adb: Likewise.
9787 * s-intman-mingw.adb: Likewise.
9788 * s-intman-posix.adb: Likewise.
9789 * s-intman-solaris.adb: Likewise.
9790 * s-intman-vms.adb: Likewise.
9791 * s-intman-vms.ads: Likewise.
9792 * s-intman-vxworks.adb: Likewise.
9793 * s-intman-vxworks.ads: Likewise.
9794 * s-intman.ads: Likewise.
9795 * s-io.adb: Likewise.
9796 * s-io.ads: Likewise.
9797 * s-linux-alpha.ads: Likewise.
9798 * s-linux-hppa.ads: Likewise.
9799 * s-linux.ads: Likewise.
9800 * s-maccod.ads: Likewise.
9801 * s-mantis.adb: Likewise.
9802 * s-mantis.ads: Likewise.
9803 * s-mastop-irix.adb: Likewise.
9804 * s-mastop.adb: Likewise.
9805 * s-mastop.ads: Likewise.
9806 * s-memcop.ads: Likewise.
9807 * s-memory-mingw.adb: Likewise.
9808 * s-memory.adb: Likewise.
9809 * s-memory.ads: Likewise.
9810 * s-os_lib.ads: Likewise.
9811 * s-oscons-tmplt.c: Likewise.
9812 * s-osinte-aix.adb: Likewise.
9813 * s-osinte-darwin.adb: Likewise.
9814 * s-osinte-freebsd.adb: Likewise.
9815 * s-osinte-irix.adb: Likewise.
9816 * s-osinte-lynxos-3.adb: Likewise.
9817 * s-osinte-rtems.ads: Likewise.
9818 * s-osinte-tru64.adb: Likewise.
9819 * s-osinte-vxworks-kernel.adb: Likewise.
9820 * s-osinte-vxworks.adb: Likewise.
9821 * s-osprim-mingw.adb: Likewise.
9822 * s-osprim-posix.adb: Likewise.
9823 * s-osprim-solaris.adb: Likewise.
9824 * s-osprim-unix.adb: Likewise.
9825 * s-osprim-vms.adb: Likewise.
9826 * s-osprim-vms.ads: Likewise.
9827 * s-osprim-vxworks.adb: Likewise.
9828 * s-osprim.ads: Likewise.
9829 * s-pack03.adb: Likewise.
9830 * s-pack03.ads: Likewise.
9831 * s-pack05.adb: Likewise.
9832 * s-pack05.ads: Likewise.
9833 * s-pack06.adb: Likewise.
9834 * s-pack06.ads: Likewise.
9835 * s-pack07.adb: Likewise.
9836 * s-pack07.ads: Likewise.
9837 * s-pack09.adb: Likewise.
9838 * s-pack09.ads: Likewise.
9839 * s-pack10.adb: Likewise.
9840 * s-pack10.ads: Likewise.
9841 * s-pack11.adb: Likewise.
9842 * s-pack11.ads: Likewise.
9843 * s-pack12.adb: Likewise.
9844 * s-pack12.ads: Likewise.
9845 * s-pack13.adb: Likewise.
9846 * s-pack13.ads: Likewise.
9847 * s-pack14.adb: Likewise.
9848 * s-pack14.ads: Likewise.
9849 * s-pack15.adb: Likewise.
9850 * s-pack15.ads: Likewise.
9851 * s-pack17.adb: Likewise.
9852 * s-pack17.ads: Likewise.
9853 * s-pack18.adb: Likewise.
9854 * s-pack18.ads: Likewise.
9855 * s-pack19.adb: Likewise.
9856 * s-pack19.ads: Likewise.
9857 * s-pack20.adb: Likewise.
9858 * s-pack20.ads: Likewise.
9859 * s-pack21.adb: Likewise.
9860 * s-pack21.ads: Likewise.
9861 * s-pack22.adb: Likewise.
9862 * s-pack22.ads: Likewise.
9863 * s-pack23.adb: Likewise.
9864 * s-pack23.ads: Likewise.
9865 * s-pack24.adb: Likewise.
9866 * s-pack24.ads: Likewise.
9867 * s-pack25.adb: Likewise.
9868 * s-pack25.ads: Likewise.
9869 * s-pack26.adb: Likewise.
9870 * s-pack26.ads: Likewise.
9871 * s-pack27.adb: Likewise.
9872 * s-pack27.ads: Likewise.
9873 * s-pack28.adb: Likewise.
9874 * s-pack28.ads: Likewise.
9875 * s-pack29.adb: Likewise.
9876 * s-pack29.ads: Likewise.
9877 * s-pack30.adb: Likewise.
9878 * s-pack30.ads: Likewise.
9879 * s-pack31.adb: Likewise.
9880 * s-pack31.ads: Likewise.
9881 * s-pack33.adb: Likewise.
9882 * s-pack33.ads: Likewise.
9883 * s-pack34.adb: Likewise.
9884 * s-pack34.ads: Likewise.
9885 * s-pack35.adb: Likewise.
9886 * s-pack35.ads: Likewise.
9887 * s-pack36.adb: Likewise.
9888 * s-pack36.ads: Likewise.
9889 * s-pack37.adb: Likewise.
9890 * s-pack37.ads: Likewise.
9891 * s-pack38.adb: Likewise.
9892 * s-pack38.ads: Likewise.
9893 * s-pack39.adb: Likewise.
9894 * s-pack39.ads: Likewise.
9895 * s-pack40.adb: Likewise.
9896 * s-pack40.ads: Likewise.
9897 * s-pack41.adb: Likewise.
9898 * s-pack41.ads: Likewise.
9899 * s-pack42.adb: Likewise.
9900 * s-pack42.ads: Likewise.
9901 * s-pack43.adb: Likewise.
9902 * s-pack43.ads: Likewise.
9903 * s-pack44.adb: Likewise.
9904 * s-pack44.ads: Likewise.
9905 * s-pack45.adb: Likewise.
9906 * s-pack45.ads: Likewise.
9907 * s-pack46.adb: Likewise.
9908 * s-pack46.ads: Likewise.
9909 * s-pack47.adb: Likewise.
9910 * s-pack47.ads: Likewise.
9911 * s-pack48.adb: Likewise.
9912 * s-pack48.ads: Likewise.
9913 * s-pack49.adb: Likewise.
9914 * s-pack49.ads: Likewise.
9915 * s-pack50.adb: Likewise.
9916 * s-pack50.ads: Likewise.
9917 * s-pack51.adb: Likewise.
9918 * s-pack51.ads: Likewise.
9919 * s-pack52.adb: Likewise.
9920 * s-pack52.ads: Likewise.
9921 * s-pack53.adb: Likewise.
9922 * s-pack53.ads: Likewise.
9923 * s-pack54.adb: Likewise.
9924 * s-pack54.ads: Likewise.
9925 * s-pack55.adb: Likewise.
9926 * s-pack55.ads: Likewise.
9927 * s-pack56.adb: Likewise.
9928 * s-pack56.ads: Likewise.
9929 * s-pack57.adb: Likewise.
9930 * s-pack57.ads: Likewise.
9931 * s-pack58.adb: Likewise.
9932 * s-pack58.ads: Likewise.
9933 * s-pack59.adb: Likewise.
9934 * s-pack59.ads: Likewise.
9935 * s-pack60.adb: Likewise.
9936 * s-pack60.ads: Likewise.
9937 * s-pack61.adb: Likewise.
9938 * s-pack61.ads: Likewise.
9939 * s-pack62.adb: Likewise.
9940 * s-pack62.ads: Likewise.
9941 * s-pack63.adb: Likewise.
9942 * s-pack63.ads: Likewise.
9943 * s-parame-ae653.ads: Likewise.
9944 * s-parame-hpux.ads: Likewise.
9945 * s-parame-rtems.adb: Likewise.
9946 * s-parame-vms-alpha.ads: Likewise.
9947 * s-parame-vms-ia64.ads: Likewise.
9948 * s-parame-vms-restrict.ads: Likewise.
9949 * s-parame-vxworks.adb: Likewise.
9950 * s-parame-vxworks.ads: Likewise.
9951 * s-parame.adb: Likewise.
9952 * s-parame.ads: Likewise.
9953 * s-parint.adb: Likewise.
9954 * s-parint.ads: Likewise.
9955 * s-pooglo.adb: Likewise.
9956 * s-pooglo.ads: Likewise.
9957 * s-pooloc.adb: Likewise.
9958 * s-pooloc.ads: Likewise.
9959 * s-poosiz.adb: Likewise.
9960 * s-poosiz.ads: Likewise.
9961 * s-powtab.ads: Likewise.
9962 * s-proinf-irix-athread.adb: Likewise.
9963 * s-proinf-irix-athread.ads: Likewise.
9964 * s-proinf.adb: Likewise.
9965 * s-proinf.ads: Likewise.
9966 * s-purexc.ads: Likewise.
9967 * s-rannum.adb: Likewise.
9968 * s-rannum.ads: Likewise.
9969 * s-restri.adb: Likewise.
9970 * s-restri.ads: Likewise.
9971 * s-rident.ads: Likewise.
9972 * s-rpc.adb: Likewise.
9973 * s-rpc.ads: Likewise.
9974 * s-scaval.adb: Likewise.
9975 * s-scaval.ads: Likewise.
9976 * s-secsta.adb: Likewise.
9977 * s-secsta.ads: Likewise.
9978 * s-sequio.adb: Likewise.
9979 * s-sequio.ads: Likewise.
9980 * s-shasto.adb: Likewise.
9981 * s-shasto.ads: Likewise.
9982 * s-soflin.adb: Likewise.
9983 * s-soflin.ads: Likewise.
9984 * s-solita.adb: Likewise.
9985 * s-solita.ads: Likewise.
9986 * s-sopco3.adb: Likewise.
9987 * s-sopco3.ads: Likewise.
9988 * s-sopco4.adb: Likewise.
9989 * s-sopco4.ads: Likewise.
9990 * s-sopco5.adb: Likewise.
9991 * s-sopco5.ads: Likewise.
9992 * s-stache.adb: Likewise.
9993 * s-stache.ads: Likewise.
9994 * s-stalib.adb: Likewise.
9995 * s-stalib.ads: Likewise.
9996 * s-stausa.adb: Likewise.
9997 * s-stausa.ads: Likewise.
9998 * s-stchop-limit.ads: Likewise.
9999 * s-stchop-rtems.adb: Likewise.
10000 * s-stchop-vxworks.adb: Likewise.
10001 * s-stchop.adb: Likewise.
10002 * s-stchop.ads: Likewise.
10003 * s-stoele.adb: Likewise.
10004 * s-stoele.ads: Likewise.
10005 * s-stopoo.adb: Likewise.
10006 * s-stopoo.ads: Likewise.
10007 * s-stratt.adb: Likewise.
10008 * s-stratt.ads: Likewise.
10009 * s-strcom.adb: Likewise.
10010 * s-strcom.ads: Likewise.
10011 * s-string.adb: Likewise.
10012 * s-string.ads: Likewise.
10013 * s-strops.adb: Likewise.
10014 * s-strops.ads: Likewise.
10015 * s-strxdr.adb: Likewise.
10016 * s-ststop.adb: Likewise.
10017 * s-ststop.ads: Likewise.
10018 * s-taasde.adb: Likewise.
10019 * s-taasde.ads: Likewise.
10020 * s-tadeca.adb: Likewise.
10021 * s-tadeca.ads: Likewise.
10022 * s-tadert.adb: Likewise.
10023 * s-tadert.ads: Likewise.
10024 * s-taenca.adb: Likewise.
10025 * s-taenca.ads: Likewise.
10026 * s-taprob.ads: Likewise.
10027 * s-taprop-dummy.adb: Likewise.
10028 * s-taprop-hpux-dce.adb: Likewise.
10029 * s-taprop-irix.adb: Likewise.
10030 * s-taprop-linux.adb: Likewise.
10031 * s-taprop-lynxos.adb: Likewise.
10032 * s-taprop-mingw.adb: Likewise.
10033 * s-taprop-posix.adb: Likewise.
10034 * s-taprop-solaris.adb: Likewise.
10035 * s-taprop-tru64.adb: Likewise.
10036 * s-taprop-vms.adb: Likewise.
10037 * s-taprop-vxworks.adb: Likewise.
10038 * s-taprop.ads: Likewise.
10039 * s-tarest.adb: Likewise.
10040 * s-tarest.ads: Likewise.
10041 * s-tasdeb.adb: Likewise.
10042 * s-tasdeb.ads: Likewise.
10043 * s-tasinf-irix.ads: Likewise.
10044 * s-tasinf-linux.adb: Likewise.
10045 * s-tasinf-linux.ads: Likewise.
10046 * s-tasinf-mingw.adb: Likewise.
10047 * s-tasinf-mingw.ads: Likewise.
10048 * s-tasinf-solaris.adb: Likewise.
10049 * s-tasinf-solaris.ads: Likewise.
10050 * s-tasinf-tru64.ads: Likewise.
10051 * s-tasinf.adb: Likewise.
10052 * s-tasinf.ads: Likewise.
10053 * s-tasini.adb: Likewise.
10054 * s-tasini.ads: Likewise.
10055 * s-taskin.adb: Likewise.
10056 * s-taskin.ads: Likewise.
10057 * s-taspri-dummy.ads: Likewise.
10058 * s-taspri-hpux-dce.ads: Likewise.
10059 * s-taspri-mingw.ads: Likewise.
10060 * s-taspri-solaris.ads: Likewise.
10061 * s-taspri-tru64.ads: Likewise.
10062 * s-taspri-vms.ads: Likewise.
10063 * s-taspri-vxworks.ads: Likewise.
10064 * s-tasque.adb: Likewise.
10065 * s-tasque.ads: Likewise.
10066 * s-tasren.adb: Likewise.
10067 * s-tasren.ads: Likewise.
10068 * s-tasres.ads: Likewise.
10069 * s-tassta.adb: Likewise.
10070 * s-tassta.ads: Likewise.
10071 * s-tasuti.adb: Likewise.
10072 * s-tasuti.ads: Likewise.
10073 * s-tfsetr-default.adb: Likewise.
10074 * s-tfsetr-vxworks.adb: Likewise.
10075 * s-tpinop.adb: Likewise.
10076 * s-tpinop.ads: Likewise.
10077 * s-tpoben.adb: Likewise.
10078 * s-tpoben.ads: Likewise.
10079 * s-tpobop.adb: Likewise.
10080 * s-tpobop.ads: Likewise.
10081 * s-tpopde-vms.adb: Likewise.
10082 * s-tpopde-vms.ads: Likewise.
10083 * s-tpopsp-lynxos.adb: Likewise.
10084 * s-tpopsp-posix-foreign.adb: Likewise.
10085 * s-tpopsp-posix.adb: Likewise.
10086 * s-tpopsp-solaris.adb: Likewise.
10087 * s-tpopsp-vxworks.adb: Likewise.
10088 * s-tporft.adb: Likewise.
10089 * s-tposen.adb: Likewise.
10090 * s-tposen.ads: Likewise.
10091 * s-traceb.adb: Likewise.
10092 * s-traceb.ads: Likewise.
10093 * s-traces-default.adb: Likewise.
10094 * s-traces.adb: Likewise.
10095 * s-traces.ads: Likewise.
10096 * s-traent-vms.adb: Likewise.
10097 * s-traent-vms.ads: Likewise.
10098 * s-traent.adb: Likewise.
10099 * s-traent.ads: Likewise.
10100 * s-trafor-default.adb: Likewise.
10101 * s-trafor-default.ads: Likewise.
10102 * s-tratas-default.adb: Likewise.
10103 * s-tratas.adb: Likewise.
10104 * s-tratas.ads: Likewise.
10105 * s-unstyp.ads: Likewise.
10106 * s-utf_32.adb: Likewise.
10107 * s-utf_32.ads: Likewise.
10108 * s-vaflop-vms-alpha.adb: Likewise.
10109 * s-vaflop.adb: Likewise.
10110 * s-vaflop.ads: Likewise.
10111 * s-valboo.adb: Likewise.
10112 * s-valboo.ads: Likewise.
10113 * s-valcha.adb: Likewise.
10114 * s-valcha.ads: Likewise.
10115 * s-valdec.adb: Likewise.
10116 * s-valdec.ads: Likewise.
10117 * s-valenu.adb: Likewise.
10118 * s-valenu.ads: Likewise.
10119 * s-valint.adb: Likewise.
10120 * s-valint.ads: Likewise.
10121 * s-vallld.adb: Likewise.
10122 * s-vallld.ads: Likewise.
10123 * s-vallli.adb: Likewise.
10124 * s-vallli.ads: Likewise.
10125 * s-valllu.adb: Likewise.
10126 * s-valllu.ads: Likewise.
10127 * s-valrea.adb: Likewise.
10128 * s-valrea.ads: Likewise.
10129 * s-valuns.adb: Likewise.
10130 * s-valuns.ads: Likewise.
10131 * s-valuti.adb: Likewise.
10132 * s-valuti.ads: Likewise.
10133 * s-valwch.adb: Likewise.
10134 * s-valwch.ads: Likewise.
10135 * s-veboop.adb: Likewise.
10136 * s-veboop.ads: Likewise.
10137 * s-vector.ads: Likewise.
10138 * s-vercon.adb: Likewise.
10139 * s-vercon.ads: Likewise.
10140 * s-vmexta.adb: Likewise.
10141 * s-vmexta.ads: Likewise.
10142 * s-vxwext-kernel.ads: Likewise.
10143 * s-vxwext-rtp.adb: Likewise.
10144 * s-vxwext-rtp.ads: Likewise.
10145 * s-vxwext.ads: Likewise.
10146 * s-vxwork-arm.ads: Likewise.
10147 * s-vxwork-m68k.ads: Likewise.
10148 * s-vxwork-mips.ads: Likewise.
10149 * s-vxwork-ppc.ads: Likewise.
10150 * s-vxwork-sparcv9.ads: Likewise.
10151 * s-vxwork-x86.ads: Likewise.
10152 * s-wchcnv.adb: Likewise.
10153 * s-wchcnv.ads: Likewise.
10154 * s-wchcon.adb: Likewise.
10155 * s-wchcon.ads: Likewise.
10156 * s-wchjis.adb: Likewise.
10157 * s-wchjis.ads: Likewise.
10158 * s-wchstw.adb: Likewise.
10159 * s-wchstw.ads: Likewise.
10160 * s-wchwts.adb: Likewise.
10161 * s-wchwts.ads: Likewise.
10162 * s-widboo.adb: Likewise.
10163 * s-widboo.ads: Likewise.
10164 * s-widcha.adb: Likewise.
10165 * s-widcha.ads: Likewise.
10166 * s-widenu.adb: Likewise.
10167 * s-widenu.ads: Likewise.
10168 * s-widlli.adb: Likewise.
10169 * s-widlli.ads: Likewise.
10170 * s-widllu.adb: Likewise.
10171 * s-widllu.ads: Likewise.
10172 * s-widwch.adb: Likewise.
10173 * s-widwch.ads: Likewise.
10174 * s-win32.ads: Likewise.
10175 * s-winext.ads: Likewise.
10176 * s-wwdcha.adb: Likewise.
10177 * s-wwdcha.ads: Likewise.
10178 * s-wwdenu.adb: Likewise.
10179 * s-wwdenu.ads: Likewise.
10180 * s-wwdwch.adb: Likewise.
10181 * s-wwdwch.ads: Likewise.
10182 * scans.adb: Likewise.
10183 * scans.ads: Likewise.
10184 * seh_init.c: Likewise.
10185 * sfn_scan.adb: Likewise.
10186 * sinfo.adb: Likewise.
10187 * sinfo.ads: Likewise.
10188 * sinput.adb: Likewise.
10189 * sinput.ads: Likewise.
10190 * snames.adb: Likewise.
10191 * snames.ads: Likewise.
10192 * socket.c: Likewise.
10193 * stand.adb: Likewise.
10194 * stand.ads: Likewise.
10195 * stringt.adb: Likewise.
10196 * stringt.ads: Likewise.
10197 * sysdep.c: Likewise.
10198 * system-aix.ads: Likewise.
10199 * system-darwin-ppc.ads: Likewise.
10200 * system-darwin-x86.ads: Likewise.
10201 * system-darwin-x86_64.ads: Likewise.
10202 * system-freebsd-x86.ads: Likewise.
10203 * system-hpux-ia64.ads: Likewise.
10204 * system-hpux.ads: Likewise.
10205 * system-irix-n32.ads: Likewise.
10206 * system-irix-n64.ads: Likewise.
10207 * system-irix-o32.ads: Likewise.
10208 * system-linux-alpha.ads: Likewise.
10209 * system-linux-hppa.ads: Likewise.
10210 * system-linux-ia64.ads: Likewise.
10211 * system-linux-mips.ads: Likewise.
10212 * system-linux-mipsel.ads: Likewise.
10213 * system-linux-ppc.ads: Likewise.
10214 * system-linux-ppc64.ads: Likewise.
10215 * system-linux-s390.ads: Likewise.
10216 * system-linux-s390x.ads: Likewise.
10217 * system-linux-sh4.ads: Likewise.
10218 * system-linux-sparc.ads: Likewise.
10219 * system-linux-sparcv9.ads: Likewise.
10220 * system-linux-x86.ads: Likewise.
10221 * system-linux-x86_64.ads: Likewise.
10222 * system-lynxos-ppc.ads: Likewise.
10223 * system-lynxos-x86.ads: Likewise.
10224 * system-mingw-x86_64.ads: Likewise.
10225 * system-mingw.ads: Likewise.
10226 * system-rtems.ads: Likewise.
10227 * system-solaris-sparc.ads: Likewise.
10228 * system-solaris-sparcv9.ads: Likewise.
10229 * system-solaris-x86.ads: Likewise.
10230 * system-solaris-x86_64.ads: Likewise.
10231 * system-tru64.ads: Likewise.
10232 * system-vms-ia64.ads: Likewise.
10233 * system-vms-zcx.ads: Likewise.
10234 * system-vms.ads: Likewise.
10235 * system-vms_64.ads: Likewise.
10236 * system-vxworks-arm.ads: Likewise.
10237 * system-vxworks-m68k.ads: Likewise.
10238 * system-vxworks-mips.ads: Likewise.
10239 * system-vxworks-ppc.ads: Likewise.
10240 * system-vxworks-sparcv9.ads: Likewise.
10241 * system-vxworks-x86.ads: Likewise.
10242 * system.ads: Likewise.
10243 * table.adb: Likewise.
10244 * table.ads: Likewise.
10245 * targext.c: Likewise.
10246 * targparm.ads: Likewise.
10247 * tree_in.adb: Likewise.
10248 * tree_in.ads: Likewise.
10249 * tree_io.adb: Likewise.
10250 * tree_io.ads: Likewise.
10251 * types.adb: Likewise.
10252 * types.ads: Likewise.
10253 * uintp.adb: Likewise.
10254 * uintp.ads: Likewise.
10255 * uname.adb: Likewise.
10256 * uname.ads: Likewise.
10257 * urealp.adb: Likewise.
10258 * urealp.ads: Likewise.
10259 * vx_stack_info.c: Likewise.
10260 * widechar.adb: Likewise.
10261 * widechar.ads: Likewise.
10262 * exp_attr.adb: Change copyright header to refer to version
10263 3 of the GNU General Public License and to point readers at the
10264 COPYING3 file and the FSF's license web page.
10265 * sem.adb: Likewise.
10266 * sem_attr.ads: Likewise.
10267 * freeze.adb: Likewise.
10268 * freeze.ads: Likewise.
10269 * errout.ads: Likewise.
10270 * erroutc.adb: Likewise.
10271 * exp_ch11.ads: Likewise.
10273 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10275 * config-lang.in: Change copyright header to refer to version
10276 3 of the GNU General Public License and to point readers at the
10277 COPYING3 file and the FSF's license web page.
10278 * gcc-interface/trans.c: Likewise.
10279 * gnathtml.pl: Likewise.
10280 * gcc-interface/ada.h: Likewise. Remove runtime exception.
10281 * gcc-interface/gigi.h: Likewise.
10282 * gcc-interface/misc.c: Likewise.
10283 * gcc-interface/targtyps.c: Likewise.
10285 2009-04-09 Nicolas Setton <setton@adacore.com>
10287 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
10289 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
10292 2009-04-09 Bob Duff <duff@adacore.com>
10294 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
10295 internally-generated nodes related to select statements to avoid
10296 confusing the debugger.
10298 2009-04-09 Pascal Obry <obry@adacore.com>
10300 * make.adb: Ensure that all linker arguments are duplicated.
10302 2009-04-09 Robert Dewar <dewar@adacore.com>
10304 * sem_ch5.adb: Minor reformatting
10306 2009-04-09 Vincent Celier <celier@adacore.com>
10309 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
10310 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
10311 New qualifier /LXDEBUG=nnn for -gnatDnnn
10315 Update documentation for VMS qualifiers equivalent to -gnatGnn and
10318 2009-04-09 Nicolas Setton <setton@adacore.com>
10320 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
10321 to match layout of siginfo_t in sys/signal.h.
10323 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
10325 2009-04-09 Thomas Quinot <quinot@adacore.com>
10327 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
10329 2009-04-09 Nicolas Setton <setton@adacore.com>
10331 * s-oscons-tmplt.c: Allow long lines in the generated spec.
10332 Add generation of Darwin-specific constants needed when binding to the
10335 2009-04-09 Robert Dewar <dewar@adacore.com>
10338 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
10339 when no invalid values exist, Avoid duplicate read of atomic variable.
10341 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
10342 (Standard_Unsigned): Set Is_Known_Valid
10344 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
10345 subtype declaration if no constraint.
10346 (Set_Modular_Size): Set Is_Known_Valid if appropriate
10347 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
10349 2009-04-09 Robert Dewar <dewar@adacore.com>
10351 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
10352 switch.ads: for numeric switches, an optional equal sign is always
10355 2009-04-09 Vincent Celier <celier@adacore.com>
10357 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
10358 the case of file names is not significant.
10360 2009-04-09 Vincent Celier <celier@adacore.com>
10362 * errout.adb: Remove dependency on package Style
10364 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
10367 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
10370 * errutil.adb, par.adb: Import Stylesw
10372 2009-04-09 Arnaud Charlet <charlet@adacore.com>
10374 * opt.ads: Fix typos.
10376 2009-04-09 Robert Dewar <dewar@adacore.com>
10378 * einfo.adb: Minor reformatting
10380 2009-04-09 Robert Dewar <dewar@adacore.com>
10382 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
10385 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
10387 2009-04-09 Robert Dewar <dewar@adacore.com>
10389 * g-comver.adb: Minor reformatting.
10391 2009-04-09 Thomas Quinot <quinot@adacore.com>
10393 * lib-load.ads (Load_Unit): Update documentation.
10395 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10397 * lib-load.adb (Load_Unit): When loading the parent of a child unit
10398 named in a with_clause, retain the with_clause to preserve a
10399 limited_with indication.
10401 2009-04-09 Robert Dewar <dewar@adacore.com>
10403 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
10404 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
10405 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
10406 possible to replace an OR of two separate tests.
10408 2009-04-09 Robert Dewar <dewar@adacore.com>
10410 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
10413 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
10414 warning status as well.
10416 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
10418 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
10421 * bindusg.adb, usage.adb: Update line for -gnatm switch
10423 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
10424 -mnn binder switch.
10426 2009-04-09 Robert Dewar <dewar@adacore.com>
10428 * sem_ch10.adb: Minor reformatting.
10430 2009-04-09 Bob Duff <duff@adacore.com>
10432 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
10433 Set Sloc of generated nodes for calls to Undefer_Aborts and
10434 Save_Occurrence to No_Location, so the debugger ignores them and
10435 therefore does not jump back and forth when single stepping.
10437 2009-04-09 Robert Dewar <dewar@adacore.com>
10439 * switch-b.adb: Minor reformatting.
10441 2009-04-09 Robert Dewar <dewar@adacore.com>
10443 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
10444 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
10445 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
10446 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
10447 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
10448 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
10449 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
10450 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
10451 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
10452 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
10453 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
10455 2009-04-09 Robert Dewar <dewar@adacore.com>
10457 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
10459 * atree.h: Add Elist26
10461 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
10464 2009-04-09 Javier Miranda <miranda@adacore.com>
10466 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
10467 retrieve from the Dispatch_Table_Wrappers list the external name.
10468 Addition of documentation.
10469 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
10470 used to export secondary dispatch tables (in the previous version of
10471 the frontend only primary dispatch tables were exported). Addition of
10473 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
10474 dispatch table of a given tagged type.
10475 (Make_Tags): Modified to import secondary dispatch tables.
10477 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
10478 (Constant_Redeclaration): Code cleanup.
10480 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
10481 Dispatch_Table_Wrappers. Update documentation.
10483 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
10484 Renamed to Dispatch_Table_Wrappers.
10486 * sem_util.adb (Collect_Interface_Components): Improve handling of
10489 * atree.ads (Elist26, Set_Elist26): New subprograms
10491 * atree.adb (Elist26, Set_Elist26): New subprograms
10493 2009-04-09 Javier Miranda <miranda@adacore.com>
10495 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
10496 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
10499 2009-04-09 Robert Dewar <dewar@adacore.com>
10501 * s-direio.adb: Minor reformatting
10503 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
10505 2009-04-09 Robert Dewar <dewar@adacore.com>
10507 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
10509 2009-04-09 Pascal Obry <obry@adacore.com>
10511 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
10512 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
10513 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
10514 a-filico.ads: Add some missing overriding keywords.
10516 2009-04-09 Pascal Obry <obry@adacore.com>
10518 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
10519 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
10520 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
10523 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10525 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
10526 missing overriding indicator if the new declaration is not seen as
10529 2009-04-09 Thomas Quinot <quinot@adacore.com>
10531 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
10532 overflows in computation of bounds.
10534 2009-04-09 Pascal Obry <obry@adacore.com>
10536 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
10539 2009-04-09 Robert Dewar <dewar@adacore.com>
10541 * sem_attr.adb (Check_Stream_Attribute): Check violation of
10542 restriction No_Streams
10544 * gnat_rm.texi: Clarify No_Streams restriction
10546 * g-socket.adb: Minor reformatting.
10548 2009-04-09 Thomas Quinot <quinot@adacore.com>
10550 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
10552 2009-04-09 Geert Bosch <bosch@adacore.com>
10554 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
10555 (Set_Result): Likewise.
10556 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
10557 conversion, as required by RM 4.6(31).
10559 2009-04-08 Robert Dewar <dewar@adacore.com>
10561 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
10564 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
10567 2009-04-08 Robert Dewar <dewar@adacore.com>
10569 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
10570 No_Local_Allocators restriction preventing local instantiation.
10572 2009-04-08 Thomas Quinot <quinot@adacore.com>
10574 * sem_eval.adb: Minor comment fix
10576 2009-04-08 Thomas Quinot <quinot@adacore.com>
10578 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
10579 New limited controlled type used to automate the initialization and
10580 finalization of the sockets implementation.
10581 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
10583 2009-04-08 Vincent Celier <celier@adacore.com>
10585 * prj-attr.adb: New read-only project-level attribute Project_Dir
10587 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
10588 read-only attribute of the same name.
10589 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
10590 (Recursive_Process): Ditto
10592 * snames.adb: Add new standard name Project_Dir
10594 * snames.ads: Add new standard name Project_Dir
10596 2009-04-08 Thomas Quinot <quinot@adacore.com>
10598 * checks.adb: Minor reformatting
10600 2009-04-08 Vincent Celier <celier@adacore.com>
10602 * vms_data.ads: Add documentation for new style keyword
10603 OVERRIDING_INDICATORS
10605 2009-04-08 Robert Dewar <dewar@adacore.com>
10607 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
10608 spec is in the current unit.
10610 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10612 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
10613 presence of entity.
10615 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
10617 2009-04-08 Vincent Celier <celier@adacore.com>
10619 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
10621 2009-04-08 Thomas Quinot <quinot@adacore.com>
10623 * checks.ads: Minor reformatting
10625 2009-04-08 Robert Dewar <dewar@adacore.com>
10627 * gnat_rm.texi: Update documentation of pragma Obsolescent
10629 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
10630 be omitted, and allow Entity parameter to be omitted.
10632 2009-04-08 Thomas Quinot <quinot@adacore.com>
10634 * exp_util.adb: Minor comment fix
10636 2009-04-08 Robert Dewar <dewar@adacore.com>
10638 * g-socket.ads: Fix bad syntax in pragma Obsolescent
10640 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
10641 argument with no identifier following one that has an identifier. Was
10642 missed in some cases.
10644 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
10646 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
10648 * snames.adb: Add Name_Policy
10650 * snames.ads: Add Name_Policy
10652 2009-04-08 Robert Dewar <dewar@adacore.com>
10654 * gnat_rm.texi: Minor reformatting
10656 * par-ch2.adb: Minor reformatting
10658 2009-04-08 Robert Dewar <dewar@adacore.com>
10660 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
10662 2009-04-08 Robert Dewar <dewar@adacore.com>
10664 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
10665 properly in the presence of Remote_Types or Remote_Call_Interface.
10667 * sem_util.adb: Add comment.
10669 2009-04-08 Robert Dewar <dewar@adacore.com>
10671 * ug_words: Add /ASSUME_VALID for -gnatB
10673 * vms_data.ads: Add /ASSUME_VALID for -gnatB
10675 * sem_cat.adb: Add clarifying commment
10677 * a-direio.ads (Bytes): Make sure value is non-zero
10679 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10681 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
10682 that does not come from source, check for a rewritten function call in
10683 prefixed notation before other forms of rewriting.
10685 2009-04-08 Robert Dewar <dewar@adacore.com>
10687 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
10688 these are now obsolescent units used only for bootrapping with an
10691 2009-04-08 Robert Dewar <dewar@adacore.com>
10693 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
10695 * sem_ch3.adb: Minor comment updates
10697 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10699 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
10700 that come from source.
10702 2009-04-08 Tristan Gingold <gingold@adacore.com>
10704 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
10705 * gcc-interface/decl.c (prepend_attributes): New case
10706 Pragma_Thread_Local_Storage.
10707 * gcc-interface/utils.c (process_attributes): New case
10708 ATTR_THREAD_LOCAL_STORAGE.
10710 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10712 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
10713 by the back-end if it contains a call to a subprogram without a
10714 previous spec that is declared in the same unit.
10716 * errout.ads: Update comments on uses of dirs
10718 2009-04-08 Robert Dewar <dewar@adacore.com>
10720 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
10722 2009-04-08 Tristan Gingold <gingold@adacore.com>
10724 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
10726 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
10728 2009-04-08 Vincent Celier <celier@adacore.com>
10731 (Add_Source): Add the mapping of the unit name to source file name in
10732 the Unit_Sources_HT hash table, if the unit name is not null.
10734 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
10736 * prj.ads (Unit_Sources_Htable): New hash table instantiation
10737 (Project_Tree_Data): New component Unit_Sources_HT
10739 2009-04-08 Thomas Quinot <quinot@adacore.com>
10741 * sem_ch8.adb: Minor reformatting.
10742 Minor code reorganization.
10744 2009-04-08 Robert Dewar <dewar@adacore.com>
10746 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
10747 snames.ads, freeze.adb, par-prag.adb: Add implementation of
10748 pragma Thread_Local_Storage, setting new flag
10749 Has_Pragma_Thread_Local_Storage in corresponding entities.
10751 2009-04-08 Emmanuel Briot <briot@adacore.com>
10753 * prj.ads: Update comment on switches file
10755 * prj-nmsc.adb: Code clean up. Use renaming clauses.
10757 2009-04-08 Robert Dewar <dewar@adacore.com>
10759 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
10761 2009-04-08 Thomas Quinot <quinot@adacore.com>
10763 * ali-util.adb: Minor comment fix
10765 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10767 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
10768 appears in a context clause, and the enclosing package is mentioned in
10769 a limited_with_clause.
10770 (Use_One_Type): Reject clause if type is still incomplete.
10772 2009-04-08 Emmanuel Briot <briot@adacore.com>
10774 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
10775 avoid copies of Source_Data variables when possible, since these
10776 involve calls to memcpy() which are done too many times.
10778 2009-04-08 Robert Dewar <dewar@adacore.com>
10780 * exp_ch4.adb (Expand_Concatenate): Clean up code
10782 2009-04-07 Thomas Quinot <quinot@adacore.com>
10784 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
10785 type for the case of concatenating a constrained array indexed by an
10788 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10790 * sem_ch6.adb (Check_Conformance): when checking conformance of an
10791 operation that overrides an abstract operation inherited from an
10792 interface, return False if only one of the controlling formals is an
10795 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10797 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
10798 mandated by AI05-105.
10800 2009-04-07 Vincent Celier <celier@adacore.com>
10802 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
10804 2009-04-07 Thomas Quinot <quinot@adacore.com>
10806 * usage.adb: Minor fix in usage message.
10808 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
10809 match declaration; the correct subtype is Node_Id, not Entity_Id,
10810 because the expected node kind is an identifier, not a defining
10813 * switch-c.adb: Minor reformatting.
10815 * uintp.adb: Minor reformatting.
10817 2009-04-07 Robert Dewar <dewar@adacore.com>
10819 * exp_ch13.adb: Minor reformatting
10821 2009-04-07 Robert Dewar <dewar@adacore.com>
10823 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
10824 against missing parent.
10826 2009-04-07 Thomas Quinot <quinot@adacore.com>
10828 * xoscons.adb: Minor reformatting
10830 2009-04-07 Robert Dewar <dewar@adacore.com>
10832 * rtsfind.ads: Remove obsolete string concatenation entries
10834 2009-04-07 Robert Dewar <dewar@adacore.com>
10836 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
10838 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10840 * sem_ch10.adb (Check_Body_Required): Handle properly imported
10843 2009-04-07 Gary Dismukes <dismukes@adacore.com>
10845 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
10846 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
10847 is of a scalar or string type then suppress the setting of the
10848 expression to Empty.
10850 * freeze.adb (Warn_Overlay): Also emit the warnings about default
10851 initialization for the cases of scalar and string objects when
10852 Init_Or_Norm_Scalars is True.
10854 2009-04-07 Bob Duff <duff@adacore.com>
10856 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
10858 2009-04-07 Bob Duff <duff@adacore.com>
10860 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
10861 Form parameter of Text_Translation=No allows binary mode for Text_IO
10864 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
10866 2009-04-07 Javier Miranda <miranda@adacore.com>
10868 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
10869 processing the bounds for bit packed arrays or VM target machines.
10871 2009-04-07 Thomas Quinot <quinot@adacore.com>
10873 * g-sothco.ads (Int_Access): Remove extraneous access type (use
10874 anonymous access instead).
10875 (Get_Socket_From_Set): Fix incorrectly reverted formals
10876 Last and Socket to match the underlying C routine.
10878 * g-socket.adb, g-socket.ads
10879 (Get): Use named parameter associations instead of positional ones in
10880 call go Get_Socket_From_Set, since this routine has two formals of the
10882 (Image): New procedure.
10884 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10885 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
10886 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
10887 for type of Arg formal.
10889 * sem_warn.adb: Minor reformatting
10891 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10893 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
10894 over record components.
10896 2009-04-07 Nicolas Roche <roche@adacore.com>
10899 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
10900 has disappeared between VxWorks 6.4 and VxWorks 6.5
10901 In RTP mode use time.h instead of times.h
10903 2009-04-07 Robert Dewar <dewar@adacore.com>
10905 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
10907 2009-04-07 Kevin Pouget <pouget@adacore.com>
10909 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
10910 expanded code for constrained types.
10912 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10914 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
10915 AI05-105: in an object renaming declaration, anonymousness is a name
10918 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
10920 2009-04-07 Arnaud Charlet <charlet@adacore.com>
10922 * g-comlin.adb (Expansion): Fix old regression: also return directory
10923 names when matching.
10925 2009-04-07 Robert Dewar <dewar@adacore.com>
10928 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
10929 (Expand_Concatenate): New name for Expand_Concatenate_String which has
10930 been rewritten to handle all types.
10931 (Expand_Concatenate_Other): Remove
10933 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10935 * lib-xref.adb (Generate_Reference): A default subprogram in an
10936 instance appears within the tree for the instance, but generates an
10937 implicit reference in the ALI.
10939 2009-04-07 Javier Miranda <miranda@adacore.com>
10941 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
10942 derived type that has discriminants, propagate the list of interfaces
10943 to the corresponding new base type. In addition, propagate also
10944 attribute Limited_Present (found working in this patch).
10946 2009-04-07 Robert Dewar <dewar@adacore.com>
10948 * exp_ch4.adb: Rewrite concatenation expansion.
10950 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10952 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
10953 relevant to packages.
10955 2009-04-07 Robert Dewar <dewar@adacore.com>
10957 * sem_attr.adb: Minor reformatting
10959 * sem_ch6.adb: Minor reformatting
10961 2009-04-07 Tristan Gingold <gingold@adacore.com>
10963 * socket.c: Add more protections against S_resolvLib_ macros.
10965 2009-04-07 Thomas Quinot <quinot@adacore.com>
10967 * sem_attr.adb: Minor reformatting
10969 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10971 * sem_ch6.adb (New_Overloaded_Entity): New predicate
10972 Is_Overriding_Alias to handle properly types that inherit two homonym
10973 operations that have distinct dispatch table entries.
10975 2009-04-07 Emmanuel Briot <briot@adacore.com>
10977 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
10978 looking for the end of a parenthesis group
10980 2009-04-07 Tristan Gingold <gingold@adacore.com>
10982 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
10984 * socket.c Don't use resolvLib_ macros if not defined.
10986 2009-04-07 Robert Dewar <dewar@adacore.com>
10988 * g-socket.adb: Minor reformatting.
10990 * g-socthi-mingw.adb: Minor reformatting
10992 * g-sothco.ads: Minor reformatting
10995 (Expand_Concatenate_String): Complete rewrite to generate efficient code
10996 inline instead of relying on external library routines.
10998 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
10999 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
11002 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11005 (Eval_Attribute): for attributes of array objects that are not strings,
11006 attributes are not static if nominal subtype of object is unconstrained.
11008 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11010 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
11011 operations for a type T in an instance do not override each other,
11012 when T is derived from a formal private type, the corresponding
11013 operations inherited by a type derived from T outside
11014 of the instance do not override each other either.
11016 2009-04-07 Robert Dewar <dewar@adacore.com>
11018 (Osint.Fail): Change calling sequence to have one string arg
11019 (Make.Make_Failed): Same change
11020 All callers are adjusted to use concatenation
11022 2009-04-07 Robert Dewar <dewar@adacore.com>
11024 * exp_ch4.adb: Fix documentation typo
11026 2009-04-07 Robert Dewar <dewar@adacore.com>
11028 * tbuild.ads: Minor reformatting
11030 2009-04-07 Javier Miranda <miranda@adacore.com>
11032 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
11033 when compiling under ZFP runtime.
11035 2009-04-07 Robert Dewar <dewar@adacore.com>
11037 * g-comlin.adb: Minor reformatting
11039 2009-04-07 Thomas Quinot <quinot@adacore.com>
11041 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11042 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
11043 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
11044 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
11046 2009-04-07 Robert Dewar <dewar@adacore.com>
11048 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
11050 * opt.ads (Sprint_Line_Limit): New parameter
11052 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
11054 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
11056 * usage.adb: Output information for -gnatGnn -gnatDnn
11058 2009-04-07 Robert Dewar <dewar@adacore.com>
11060 * make.adb: Minor reformatting
11062 2009-04-07 Robert Dewar <dewar@adacore.com>
11064 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
11066 2009-04-07 Robert Dewar <dewar@adacore.com>
11068 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
11070 2009-04-07 Robert Dewar <dewar@adacore.com>
11073 Remove Assume_Valid parameter from In_Subrange_Of calls
11076 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11077 (Is_In_Range): Remove incorrect use of Assume_Valid
11078 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
11081 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11082 (Is_In_Range): Documentation cleanup
11083 (Is_Out_Of_Range): Documentation cleanup
11086 Add documentation for Assume_No_Invalid_Values pragma
11088 * sem_ch12.adb: Minor reformatting
11090 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
11092 * sem_prag.adb: Improve error message.
11094 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
11095 LF/CR no longer recognized as line terminator
11097 * switch.ads: Minor documentation improvement
11099 * vms_data.ads: Minor reformatting
11101 2009-04-07 Robert Dewar <dewar@adacore.com>
11103 * checks.adb (Determine_Range): Add Assume_Valid parameter
11105 * checks.ads (Determine_Range): Add Assume_Valid parameter
11107 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
11108 Is_Null_Loop to suppress warnings in a loop body.
11111 (Rewrite_Comparison): Major rewrite to accomodate invalid values
11114 (Expand_N_Loop_Statement): Delete loop known not to execute
11117 (Assume_No_Invalid_Values): Now set to False, and as documented, this
11118 fully enables the proper handling of invalid values.
11121 New calling sequence for Is_In_Range
11124 (Analyze_Iteration_Scheme): Accomodate possible invalid values
11125 in determining if a loop range is null.
11128 (Is_In_Range): Add Assume_Valid parameter
11129 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11130 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
11131 also to do more accurate and complete range analysis, catching more
11135 (Is_In_Range): Add Assume_Valid parameter
11136 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11139 New calling sequence for Is_In_Range
11142 (Suppress_Loop_Warnings): New flag
11145 (Is_Null_Loop): Update documentation
11146 (Suppress_Loop_Warnings): New flag
11148 * gnat_ugn.texi: Document -gnatB switch
11150 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11152 * gnatvsn.ads: Bump version number.
11154 2009-04-07 Thomas Quinot <quinot@adacore.com>
11156 * exp_ch3.adb: Minor rewording (comments)
11158 2009-04-07 Robert Dewar <dewar@adacore.com>
11160 * exp_disp.adb: Minor reformatting
11162 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11164 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
11166 * gcc-interface/trans.c (lvalue_required_p): Likewise.
11168 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11170 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
11171 Do not convert the result. Remove obsolete comment.
11173 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11175 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
11177 (Subprogram_Body_to_gnu): Fix pasto.
11179 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11181 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
11182 (void_type_decl_node): Remove.
11183 (init_gigi_decls): Likewise.
11184 (gnat_install_builtins): Declare.
11185 (record_builtin_type): Likewise.
11186 (create_type_stub_decl): Likewise.
11187 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
11188 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
11190 <E_Array_Subtype>: Use the index types, not only their name, in the
11191 record giving the names of the bounds, if any.
11192 For a packed array type, make it artificial only if the base type
11193 was artificial as well. Remove redundant statement.
11194 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
11196 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
11197 (rest_of_type_decl_compilation_no_defer): Likewise.
11198 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
11199 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
11200 and use create_type_stub_decl to build it.
11201 (gnat_pushdecl): Rewrite condition.
11202 (gnat_install_builtins): Remove bogus declaration.
11203 (record_builtin_type): New function.
11204 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
11206 (create_type_stub_decl): New function.
11207 (create_type_decl): Assert that the type is not dummy. If the type
11208 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
11209 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
11210 (build_vms_descriptor): Likewise.
11211 (init_gigi_decls): Delete and move bulk of code to...
11212 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
11213 (emit_range_check): Add gnat_node parameter.
11214 (emit_index_check): Likewise.
11215 (emit_check): Likewise.
11216 (build_unary_op_trapv): Likewise.
11217 (build_binary_op_trapv): Likewise.
11218 (convert_with_check): Likewise.
11219 (Attribute_to_gnu): Adjust calls for above changes.
11220 (call_to_gnu): Likewise.
11221 (gnat_to_gnu): Likewise.
11222 (assoc_to_constructor): Likewise.
11223 (pos_to_constructor): Likewise.
11224 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
11225 (process_type): Do not create TYPE_DECL for dummy types.
11227 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11229 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
11230 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
11231 * gcc-interface/utils.c: Fix comments.
11233 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11235 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
11237 (gnat_to_gnu_type): Move around.
11238 (get_unpadded_type): Likewise.
11239 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
11242 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11244 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
11245 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
11246 (call_to_gnu): Invoke it instead of manually checking.
11248 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
11250 * gcc-interface/utils.c (finish_record_type): Force structural equality
11251 checks if the record type is discriminated.
11253 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
11255 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
11256 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
11257 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
11258 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
11259 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
11260 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
11261 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
11263 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
11265 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
11266 of TREE_CONSTANT_OVERFLOW.
11268 2009-03-30 Joseph Myers <joseph@codesourcery.com>
11270 PR rtl-optimization/323
11271 * gcc-interface/misc.c (gnat_post_options): Set
11272 flag_excess_precision_cmdline. Give an error for
11273 -fexcess-precision=standard for processors where the option is
11276 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11279 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
11282 2009-03-11 Olivier Hainque <hainque@adacore.com>
11284 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
11285 checks processing, remove unintended TREE_TYPE walk on index type.
11287 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
11290 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
11291 call make_packable_type on fat pointer types.
11292 <E_Array_Subtype>: Likewise.
11293 <E_Record_Subtype>: Call make_packable_type on all record types
11294 except for fat pointer types.
11295 (make_packable_type): Likewise.
11296 (gnat_to_gnu_field): Likewise.
11298 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
11300 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
11301 EH_MECHANISM change made on 2007-12-06.
11303 2009-02-26 Andreas Schwab <schwab@suse.de>
11306 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
11307 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
11308 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
11310 (target_cpu_default): Substitute.
11312 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11315 * a-teioed.adb (Expand): Fix Result overflow.
11317 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11319 * gcc-interface/Makefile.in: Fix multilib handling for
11322 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11324 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
11326 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
11328 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
11330 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
11332 * gcc-interface/deftarg.c: Remove.
11334 2009-02-10 Olivier Hainque <hainque@adacore.com>
11335 Eric Botcazou <ebotcazou@adacore.com>
11337 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
11338 (copy_alias_set): Rename into...
11339 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
11340 underlying array of unconstrained arrays for the new type as well.
11341 If the old and new alias sets don't conflict, make one a subset of
11342 the other as per the OP parameter.
11343 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
11344 <E_Record_Type>: Do not copy the alias set for derived types.
11345 For all types, make the alias set of derived types a superset of
11346 that of their parent type.
11347 (make_aligning_type): Adjust calls to copy_alias_set.
11348 (make_packable_type): Likewise.
11349 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
11350 Check for alias set conflict instead of strict equality to issue the
11353 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
11355 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11356 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
11357 (copy_alias_set): Assert that arrays have the same aliasing settings.
11358 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
11360 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
11362 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11363 Set TYPE_NONALIASED_COMPONENT on the array type.
11365 2009-01-31 Laurent GUERBY <laurent@guerby.net>
11367 * gcc-interface/Makefile.in: Fix mipsel linux handling.
11369 2009-01-16 Jakub Jelinek <jakub@redhat.com>
11371 * gcc-interface/Makefile.in: Fix multilib handling for
11374 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
11376 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
11377 only useless conversions around renamed objects.
11379 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
11381 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
11382 the _Tag field before any discriminants in the field list.
11383 (components_to_record): Remove obsolete comment.
11387 Copyright (C) 2009 Free Software Foundation, Inc.
11389 Copying and distribution of this file, with or without modification,
11390 are permitted in any medium without royalty provided the copyright
11391 notice and this notice are preserved.