1 2009-11-30 Arnaud Charlet <charlet@adacore.com>
3 * s-tassta.adb: Update comment.
5 2009-11-30 Robert Dewar <dewar@adacore.com>
7 * a-ngelfu.adb: Minor code reorganization.
9 2009-11-30 Robert Dewar <dewar@adacore.com>
11 * osint.ads, prj.adb, prj.ads: Minor reformatting
12 * s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
13 s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
14 s-strxdr.adb, s-taprop-irix.adb, s-osinte-hpux-dce.adb,
15 s-osinte-tru64.adb, s-taenca.adb, s-taprop-hpux-dce.adb, s-stausa.adb,
16 s-taprop-posix.adb: Minor code reorganization (use conditional
19 2009-11-30 Bob Duff <duff@adacore.com>
21 * g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change.
23 2009-11-30 Bob Duff <duff@adacore.com>
25 * socket.c: Add more accessor functions for struct servent (need
26 setters as well as getters).
27 * g-sothco.ads (Servent): Declare interfaces to C setter functions for
29 * g-sttsne-locking.adb (Copy_Service_Entry): Use setter functions for
32 2009-11-30 Robert Dewar <dewar@adacore.com>
34 * s-stchop-vxworks.adb: Add comment.
36 2009-11-30 Emmanuel Briot <briot@adacore.com>
38 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Now acts
39 on the whole tree, to better share code with gprbuild.
40 (Length): New subprogram, to share code in gprbuild.
41 (Project_Data): Remove fields that are only needed when compiling a
42 project in gprbuild (where we use local variables instead)
43 * osint.adb, osint.ads: Added minor comment on memory management
45 2009-11-30 Sergey Rybin <rybin@adacore.com>
47 * gnat_ugn.texi: Update gnatcheck doc.
49 2009-11-30 Robert Dewar <dewar@adacore.com>
51 make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting
52 * s-taprop-dummy.adb: Minor code reorganization (raise with msgs start
54 * i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb,
55 g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb,
56 s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb,
57 g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb,
58 g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code
59 reorganization (use conditional expressions).
61 2009-11-30 Vincent Celier <celier@adacore.com>
63 * prj-makr.adb (Source_Files): New hash table to keep track of source
65 (Finalize): Avoid putting several times the same source file name
66 in the source list file.
67 * prj-pp.adb (Print): Fix a bug in the placement of "at nn" for
68 associative array indexes.
70 2009-11-30 Robert Dewar <dewar@adacore.com>
72 * g-dyntab.ads: Add missing pragma Compiler_Unit
74 2009-11-30 Thomas Quinot <quinot@adacore.com>
76 * s-crtrun.ads, s-crtl.ads, g-stseme.adb, Makefile.rtl, s-fileio.adb
77 (System.CRTL.Runtime): New unit, to contain parts of s-crtl that are
78 used in the Ada runtime but can't be used in the compiler because of
80 * socket.c, s-oscons-tmplt.c, g-sothco.ads
81 (System.OS_Constants.SIZEOF_struct_servent): New constant.
82 Use s-oscons constant instead of external variable to get size of
85 2009-11-30 Thomas Quinot <quinot@adacore.com>
87 * s-crtl.ads, g-stseme.adb, s-fileio.adb (System.CRTL.strerror): Change
88 return type to Interfaces.C.Strings.chars_ptr to eliminate need for
89 dubious unchecked conversion at call sites.
90 * s-errrep.adb, s-errrep.ads, Makefile.rtl (System.Error_Reporting):
91 Remove obsolete, unused runtime unit.
92 * gcc-interface/Make-lang.in: Update dependencies.
93 * gcc-interface/Makefile.in: Remove VMS specialization of s-crtl, not
96 2009-11-30 Vincent Celier <celier@adacore.com>
98 * gnatlink.adb: Delete an eventual existing executable file, in case it
99 is a symbolic link, to avoid modifying the target of the symbolic link.
101 2009-11-30 Bob Duff <duff@adacore.com>
103 * socket.c: Add accessor functions for struct servent.
104 * g-sothco.ads (Servent): Declare interfaces to C accessor functions
106 * g-socket.adb (To_Service_Entry): Use accessor functions for struct
109 2009-11-30 Robert Dewar <dewar@adacore.com>
111 * g-arrspl.adb: Minor reformatting
112 * g-dyntab.adb: Add missing pragma Compiler_Unit
114 2009-11-30 Thomas Quinot <quinot@adacore.com>
116 * s-crtl.ads, s-oscons-tmplt.c: Fix support for VMS
117 * make.adb, g-comlin.ads, exp_ch6.adb: Minor reformatting
119 2009-11-30 Robert Dewar <dewar@adacore.com>
121 * bcheck.adb, gnatlink.adb, make.adb, makeutl.adb, osint.adb,
122 osint.ads, prj-ext.adb, sem_case.adb: Minor reformatting
123 * g-alleve.adb: Minor code reorganization (use conditional expressions)
125 2009-11-30 Matthew Heaney <heaney@adacore.com>
127 * a-crbtgo.adb (Delete_Fixup): Changed always-true predicates to
130 2009-11-30 Thomas Quinot <quinot@adacore.com>
132 * a-tasatt.adb, s-crtl.ads, s-taprop-dummy.adb (System.CRTL.malloc32,
133 System.CRTL.realloc32): Remove VMS-specific routines.
134 (Ada.Task_Attributes.Reference): Remove unreachable code.
135 (System.Task_Primitives.Operations.Initialize, dummy version):
136 Use plain Program_Error rather than call to
137 System.Error_Reporting.Shutdown.
139 2009-11-30 Thomas Quinot <quinot@adacore.com>
141 * s-oscons-tmplt.c, xoscons.adb: Add new constants in preparation for
142 sharing s-crtl across all platforms.
144 2009-11-30 Thomas Quinot <quinot@adacore.com>
146 * s-commun.adb, s-commun.ads: New internal support unit,
147 allowing code sharing between GNAT.Sockets and
148 GNAT.Serial_Communication.
149 * g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb,
150 g-socket.adb (GNAT.Sockets.Last_Index): Move to System.Communication.
151 (GNAT.Serial_Communication.Read): Handle correctly the case where no
152 data was read, and Buffer'First = Stream_Element_Offset'First.
153 * Makefile.rtl: Add entry for s-commun
154 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
155 g-socthi-vxworks.ads, g-stseme.adb, g-socthi-mingw.ads,
156 g-socthi.adb, g-socthi.ads (GNAT.Sockets.Thin.Socket_Error_Message):
157 Reimplement in terms of System.CRTL.strerror.
159 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
161 * gcc-interface/utils.c (copy_type): Unshare the language-specific data
162 and the contents of the language-specific slot if needed.
164 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
166 * gcc-interface/trans.c (gnat_to_gnu) <N_In>: Set the source location
167 of the operator on both branches of the test in the generic case.
169 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
171 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): Rename into...
172 (unchecked_conversion_nop): ...this. Handle actual parameters.
173 (gnat_to_gnu): Adjust for above renaming.
175 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
177 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
178 Translate regular boolean types into BOOLEAN_TYPEs.
180 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
182 * sem_util.adb (Set_Debug_Info_Needed): For an E_Class_Wide_Subtype,
183 also set the flag on the Equivalent_Type.
184 * gcc-interface/utils.c (finish_record_type): Replace DO_NOT_FINALIZE
185 parameter with DEBUG_INFO_P. Rename FIELDLIST into FIELD_LIST.
186 (rest_of_record_type_compilation): Rename FIELDLIST into FIELD_LIST.
187 (build_vms_descriptor32): Adjust call to finish_record_type.
188 (build_vms_descriptor): Likewise.
189 (build_unc_object_type): Likewise.
190 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust calls to
191 finish_record_type and components_to_record.
192 (make_packable_type): Adjust call to finish_record_type.
193 (maybe_pad_type): Likewise. Tweak condition.
194 (components_to_record): Likewise. Replace DO_NOT_FINALIZE parameter
195 with MAYBE_UNUSED. Adjust recursive call.
196 (create_variant_part_from): Adjust call to finish_record_type. Do not
197 call rest_of_record_type_compilation on the new record types.
198 * gcc-interface/trans.c (gigi): Adjust call to finish_record_type.
199 * gcc-interface/gigi.h (finish_record_type): Adjust prototype and
201 (rest_of_record_type_compilation): Adjust comment.
203 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
205 * exp_util.adb (Make_CW_Equivalent_Type): Do not mark the type as
206 frozen for targets that do not require front-end layout.
207 (New_Class_Wide_Subtype): Always reset the freezing status to False.
208 * exp_ch8.adb: Do not 'with' Targparm.
209 (Expand_N_Object_Renaming_Declaration): Always freeze a class-wide
210 subtype that has been built from the expression.
211 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
212 class wide, freeze the implicit type that has been built from the
213 expression at the dereference point.
214 * freeze.adb (Freeze_Entity): Adjust comment.
215 * gcc-interface/decl.c (Gigi_Equivalent_Type) <E_Class_Wide_Type>:
217 * gcc-interface/trans.c (process_freeze_entity): Do not special-case
220 * s-osinte-aix.adb (clock_gettime): Fix comment.
221 * s-osinte-darwin.adb (clock_gettime): Likewise.
223 2009-11-23 Eric Botcazou <ebotcazou@adacore.com>
225 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Pass the list
226 of attributes when building the corresponding variable of a constant.
227 * gcc-interface/utils.c (create_var_decl_1): Do not process attributes
230 2009-11-23 Laurent GUERBY <laurent@guerby.net>
231 Eric Botcazou <ebotcazou@adacore.com>
234 * s-osinte-linux.ads (struct_timeval): Delete.
235 * s-osinte-hpux.ads (struct_timeval, To_Duration, To_Timeval): Delete.
236 * s-osinte-kfreebsd-gnu.ads: Likewise.
237 * s-osinte-rtems.ads: Likewise.
238 * s-osinte-aix.ads: Likewise.
239 * s-osinte-hpux-dce.ads: Likewise.
240 * s-osinte-darwin.ads: Likewise.
241 * s-osinte-solaris-posix.ads: Likewise.
242 * s-osinte-irix.ads: Likewise.
243 * s-osinte-solaris.ads: Likewise.
244 * s-osinte-hpux-dce.adb (To_Duration, To_Timeval): Delete.
245 * s-osinte-irix.adb: Likewise.
246 * s-osinte-solaris.adb: Likewise.
247 * s-osinte-rtems.adb: Likewise. Minor reformatting.
248 * s-osinte-aix.adb (To_Duration, To_Timeval): Delete.
249 (clock_gettime): Use cal.c's timeval_to_duration.
250 * s-osinte-darwin.adb: Likewise.
252 2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
254 * adaint.h: Assume large file support on IRIX only if _LFAPI.
256 2009-11-21 Laurent GUERBY <laurent@guerby.net>
257 Eric Botcazou <ebotcazou@adacore.com>
259 * s-osinte-linux.ads (struct_timeval, To_Duration, To_Timeval,
260 gettimeofday): Delete.
261 * s-osinte-posix.adb (To_Duration, To_Timeval): Delete.
262 * s-osprim-posix.adb (struct_timezone, struct_timeval, gettimeofday):
264 (Clock): Use cal.c's timeval_to_duration.
265 * s-taprop-linux.adb (Monotonic_Clock): Likewise.
267 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
268 Laurent GUERBY <laurent@guerby.net>
270 * init.c (GNU/Linux Section): Enable for all architectures.
272 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
275 * system-linux-alpha.ads (Stack_Check_Probes): Set to true.
276 * system-linux-hppa.ads (Stack_Check_Probes): Likewise.
277 * system-linux-sparc.ads (Stack_Check_Probes): Likewise.
278 * system-linux-sparcv9.ads (Stack_Check_Probes): Likewise.
280 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
282 * system-linux-alpha.ads (AAMP, Compiler_System_Version, OpenVMS,
283 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
285 (Stack_Check_Limits, Always_Compatible_Rep): New.
286 * system-linux-mips.ads (AAMP, Compiler_System_Version, OpenVMS,
287 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
289 (Stack_Check_Limits, Always_Compatible_Rep): New.
290 * system-linux-mips64el.ads (AAMP, Compiler_System_Version, OpenVMS,
291 Functions_Return_By_DSP, Front_End_ZCX_Support, High_Integrity_Mode,
292 Long_Shifts_Inlined): Delete.
293 (Stack_Check_Limits, Always_Compatible_Rep): New.
294 * system-linux-mipsel.ads (AAMP, Compiler_System_Version, OpenVMS,
295 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
297 (Stack_Check_Limits, Always_Compatible_Rep): New.
298 * system-linux-s390.ads (AAMP, Compiler_System_Version, OpenVMS,
299 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
301 (Stack_Check_Limits, Always_Compatible_Rep): New.
302 * system-linux-s390x.ads (AAMP, Compiler_System_Version, OpenVMS,
303 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
305 (Stack_Check_Limits, Always_Compatible_Rep): New.
306 * system-linux-sh4.ads (Stack_Check_Limits, Always_Compatible_Rep):
308 * system-linux-sparc.ads (AAMP, Compiler_System_Version, OpenVMS,
309 Front_End_ZCX_Support): Delete.
310 (Stack_Check_Limits, Always_Compatible_Rep): New.
311 * system-linux-sparcv9.ads (AAMP, Compiler_System_Version, OpenVMS,
312 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
314 (Stack_Check_Limits, Always_Compatible_Rep): New.
315 * system-rtems.ads (OpenVMS): Delete.
316 (Stack_Check_Limits, Always_Compatible_Rep): New.
318 2009-11-08 Eric Botcazou <ebotcazou@adacore.com>
320 * gcc-interface/decl.c (make_packable_type): Fix oversight.
321 (gnat_to_gnu_field): Do not attempt to change the form of the type
322 if the field requires strict alignment. Always change the form of
323 the type if the specified size is smaller than its size.
325 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
327 * gcc-interface/utils.c (gnat_type_for_mode): Handle vector modes.
329 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
331 * gcc-interface/trans.c (lvalue_required_p) <N_Unchecked_Conversion>:
334 2009-10-30 Eric Botcazou <ebotcazou@adacore.com>
336 * gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete.
337 (create_field_decl): Update description. In a packed record, round
338 the size up to a byte boundary only if the field's type has BLKmode.
339 * gcc-interface/gigi.h (create_field_decl): Update description.
341 2009-10-30 Emmanuel Briot <briot@adacore.com>
343 * make.adb (Start_Compile_If_Possible): Compute location of resulting
344 ALI file in this procedure instead of after the compilation itself,
345 since the current directory might have changed in between when using
348 * osint.ads: Addded missing alignment clause.
350 * adaint.c, adaint.h, osint.adb (__gnat_reset_attributes,
351 __gnat_size_of_file_attributes): Rename reset_attributes and
352 size_of_file_attributes.
354 2009-10-30 Javier Miranda <miranda@adacore.com>
356 * sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences
357 of statements when searching for SCIL nodes.
359 2009-10-30 Tristan Gingold <gingold@adacore.com>
361 * gnatlink.adb, link.c: By default use shared libgcc on darwin.
363 2009-10-30 Emmanuel Briot <briot@adacore.com>
365 * make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is
367 This saves system calls when looking for ALI files
368 (Scan_Make_Args): The parameter to gnatmake's -D is now converted to an
369 absolute PATH (so that the above improvement properly occurs if both
370 -D<dir> and -aO<dir> are specified).
372 2009-10-30 Thomas Quinot <quinot@adacore.com>
374 * a-direct.adb: Minor reformatting
376 2009-10-30 Emmanuel Briot <briot@adacore.com>
378 * make.adb, adaint.c, adaint.h, osint.adb, osint.ads, bcheck.adb
379 (*_attr): new subprograms.
380 (File_Length, File_Time_Stamp, Is_Writable_File): new subprograms
381 (Read_Library_Info_From_Full, Full_Library_Info_Name,
382 Full_Source_Name): Now benefit from a previous cache of the file
383 attributes, to further save on system calls.
384 (Smart_Find_File): now also cache the file attributes. This makes the
385 package File_Stamp_Hash_Table useless, and it was removed.
386 (Compile_Sources): create subprograms for the various steps of the main
387 loop, for readibility and to avoid sharing variables between the
390 2009-10-30 Emmanuel Briot <briot@adacore.com>
392 * make.adb, osint.adb, osint.ads (Library_File_Stamp): Removed, since
394 (Read_Library_Info_From_Full): New subprogram.
396 2009-10-30 Robert Dewar <dewar@adacore.com>
398 * a-tideio.adb: Minor reformatting
399 * a-wtdeio.adb, a-ztdeio.adb: Update comments, code clean up.
401 * a-reatim.adb, a-tideau.adb, a-ngelfu.adb, a-ztdeau.adb, a-ngrear.adb,
402 a-wtedit.adb, a-ststio.adb, a-ztedit.adb: Minor code reorganization
403 (use conditional expressions).
405 2009-10-30 Ed Schonberg <schonberg@adacore.com>
407 * gnat_ugn.texi: Additional info on gnatw.i and gnatw.I
409 * sem_case.adb: Improved error message.
411 2009-10-30 Emmanuel Briot <briot@adacore.com>
413 * a-direct.adb, gnatcmd.adb, gnatname.adb, makeutl.adb, opt.ads,
414 osint.adb, prj-ext.adb, switch-m.adb (Follow_Links_For_Dirs): Now
415 defaults to False, and controlled by -eL.
416 * a-direct.adb: Add comments.
417 * osint.adb (File_Stamp): Avoid unneeded duplicate system call
419 2009-10-30 Robert Dewar <dewar@adacore.com>
421 * sem_res.adb (Resolve_Type_Conversion): Avoid false positive when
422 converting non-static subtype to "identical" static subtype.
424 2009-10-30 Ed Schonberg <schonberg@adacore.com>
426 * usage.adb: Add -gnatw.i switch.
428 2009-10-30 Vincent Celier <celier@adacore.com>
430 * xsnamest.adb: Update comments with regards to the template files
433 2009-10-30 Bob Duff <duff@adacore.com>
435 * s-fileio.adb (Errno_Message): Suppress VMS-specific warning.
437 2009-10-30 Ed Schonberg <schonberg@adacore.com>
439 * sem_case.adb (Check_Choices): Add explanatory message when there are
440 missing alternatives when the required range of alternatives is given
441 by the base type of the case expression or discriminant in a variant
444 * opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially
445 dangerous overlap between actuals in a call, activated by -gnatw.i
446 * sem_warn.adb (Set_Dot_Warning_Switch): set flag.
447 (Warn_On_Overlapping_Actuals): use new flag.
449 * gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals
451 2009-10-30 Robert Dewar <dewar@adacore.com>
453 * exp_aggr.adb, exp_ch9.adb: Minor reformatting
455 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
457 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
458 create integer types with precision 0.
460 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
463 * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
464 parameters and rewrite comments. For a derived type, return the
465 setting of its parent type.
466 (gnat_to_gnu_entity): Do an alias set copy for derived types if they
467 are composite. Adjust calls to above function.
469 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
471 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not
472 return the RM size for padded types.
474 2009-10-28 Robert Dewar <dewar@adacore.com>
476 * sem_type.adb: Minor reformatting
478 2009-10-28 Arnaud Charlet <charlet@adacore.com>
480 * exp_ch9.adb (Build_Task_Proc_Specification): Generate a different
481 suffix for task type bodies.
483 2009-10-28 Ed Schonberg <schonberg@adacore.com>
485 * exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a
486 finalization list if the designated type requires no control actions,
487 to prevent a useless semantic dependence on ada.tags.
489 2009-10-28 Bob Duff <duff@adacore.com>
491 * s-fileio.adb: Give more information in exception messages.
493 2009-10-28 Robert Dewar <dewar@adacore.com>
495 * gnat_ugn.texi: Document new -gnatyt requirement for space after right
496 paren if next token starts with digit or letter.
497 * styleg.adb (Check_Right_Paren): New rule for space after if next
498 character is a letter or digit.
500 2009-10-28 Thomas Quinot <quinot@adacore.com>
502 * s-crtl.ads (System.CRTL.strerror): New function.
504 2009-10-28 Ed Schonberg <schonberg@adacore.com>
506 * sem_type.adb: Add guard to recover some type errors.
508 2009-10-28 Vincent Celier <celier@adacore.com>
510 * prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
511 Add_If_Not_In_List to account to the fact that a directory may be
512 removed from the list. Only remove directory if Removed is True.
514 2009-10-28 Gary Dismukes <dismukes@adacore.com>
516 * a-textio.ads, a-textio.ads: Put back function EOF_Char in private
517 part. Put back body of function EOF_Char.
518 * a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
521 2009-10-28 Emmanuel Briot <briot@adacore.com>
523 * prj-tree.adb (Free): Fix memory leak.
525 2009-10-28 Thomas Quinot <quinot@adacore.com>
527 * s-fileio.adb: Minor reformatting
529 2009-10-28 Arnaud Charlet <charlet@adacore.com>
531 * gcc-interface/Make-lang.in: Update dependencies.
533 2009-10-28 Robert Dewar <dewar@adacore.com>
535 * exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
536 types.ads: Minor reformatting
538 2009-10-28 Tristan Gingold <gingold@adacore.com>
540 * init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
542 2009-10-28 Thomas Quinot <quinot@adacore.com>
544 * exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
545 the operand of the unary minus and ABS operators.
547 * sem_type.adb (Covers): A concurrent type and its corresponding record
549 * exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
550 attribute reference for the current instance of a protected type while
551 analyzing an access discriminant constraint in a component definition.
552 Such a reference is handled in the corresponding record's init proc,
553 while initializing the constrained component.
554 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
555 corresponding record type, propagate components'
556 Has_Per_Object_Constraint flag.
557 * exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
558 For a concurrent type, set up concurrent aspects before initializing
559 components with a per object constrain, because they may be controlled,
560 and their initialization may call entries or protected subprograms of
561 the enclosing concurrent object.
563 2009-10-28 Emmanuel Briot <briot@adacore.com>
565 * prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
567 (Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
568 processing the directories specified explicitly in the project file.
570 2009-10-28 Robert Dewar <dewar@adacore.com>
572 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
573 a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
575 (Initialize_Standard_Files): New procedure.
576 * a-tienau.adb: Minor change to make EOF directly visible
577 * a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
578 a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
579 * gnat_rm.texi: Add documentation for
580 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
581 * Makefile.rtl: Add entries for
582 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
584 2009-10-28 Thomas Quinot <quinot@adacore.com>
586 * exp_ch9.ads: Minor reformatting
587 * sem_ch3.adb: Minor reformatting
588 * sem_aggr.adb: Minor reformatting.
589 * sem_attr.adb: Minor reformatting
590 * tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
592 Minor code reorganization/factoring.
594 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
596 * gcc-interface/decl.c (purpose_member_field): New static function.
597 (annotate_rep): Use it instead of purpose_member.
599 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
601 * raise-gcc (db_region_for): Use _Unwind_GetIPInfo instead of
602 _Unwind_GetIP if HAVE_GETIPINFO is defined.
603 (db_action_for): Likewise.
605 2009-10-27 Robert Dewar <dewar@adacore.com>
607 * s-fileio.adb, s-fileio.ads, sem_util.adb, sem_warn.adb,
608 sem_warn.ads: Minor reformatting
610 2009-10-27 Robert Dewar <dewar@adacore.com>
612 * sem_warn.adb, sem_util.adb, sem_util.ads: Minor reformatting. Add
615 2009-10-27 Robert Dewar <dewar@adacore.com>
617 * s-os_lib.ads, s-os_lib.adb, prj-err.adb, makeutl.adb: Minor
620 2009-10-27 Ed Schonberg <schonberg@adacore.com>
622 * sem.util.ads, sem_util.adb (Denotes_Same_Object,
623 Denotes_Same_Prefix): New functions to detect overlap between actuals
624 that are not by-copy in a call, when one of them is in-out.
625 * sem_warn.ads, sem_warn.adb (Warn_On_Overlapping_Actuals): New
626 procedure, called on a subprogram call to warn when an in-out actual
627 that is not by-copy overlaps with another actual, thus leadind to
628 potentially dangerous aliasing in the body of the called subprogram.
629 Currently the warning is under control of the -gnatX switch.
630 * sem_res.adb (resolve_call): call Warn_On_Overlapping_Actuals.
632 2009-10-27 Thomas Quinot <quinot@adacore.com>
634 * sem_ch12.adb (Install_Formal_Packages): Do not omit installation of
635 visible entities when the formal package doesn't have a box.
637 * checks.adb: Minor reformatting.
639 2009-10-27 Vincent Celier <celier@adacore.com>
641 * prj-part.adb (Parse): Catch exception Types.Unrecoverable_Error and
642 set Project to Empty_Node.
644 2009-10-27 Robert Dewar <dewar@adacore.com>
646 * gnatbind.adb: Minor reformatting
648 2009-10-27 Arnaud Charlet <charlet@adacore.com>
650 * exp_aggr.adb: Fix comment.
652 2009-10-27 Emmanuel Briot <briot@adacore.com>
654 * prj-err.adb (Error_Msg): take into account continuation lines when
655 computing whether we have a warning.
657 2009-10-27 Vasiliy Fofanov <fofanov@adacore.com>
659 * make.adb, s-os_lib.adb, s-os_lib.ads (Create_Temp_Output_File): New
660 routine that is designed to create temp file descriptor specifically
661 for redirecting an output stream.
663 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
665 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
666 processing the parent type, build the COMPONENT_REF for a discriminant
667 with the proper type.
669 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
671 * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo.
672 * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO.
673 Pass GNATLIBCFLAGS_FOR_C to recursive invocations.
675 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
677 * gcc-interfaces/decl.c (build_subst_list): Convert the expression of
678 the constraint to the type of the discriminant.
680 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
682 * gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
683 TYPE_DECL when a type is padded if there is already one and reset
684 TYPE_STUB_DECL in this case.
686 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
688 * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
689 main_identifier_node.
691 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
693 * gcc-interface/utils.c (convert): When converting to a padded type
694 with an inner type of self-referential size, pad the expression before
695 doing the unchecked conversion.
697 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
699 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
700 sure the element type is consistent.
702 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
704 * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
706 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
708 * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
709 (TYPE_IS_FAT_POINTER_P): ...this.
710 (TYPE_THIN_POINTER_P): Rename into...
711 (TYPE_IS_THIN_POINTER_P): ...this.
712 (TYPE_FAT_OR_THIN_POINTER_P): Rename into...
713 (TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
714 (TYPE_IS_PADDING_P): Change definition, move old one to...
715 (TYPE_PADDING_P): ...this.
716 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
717 (get_unpadded_type): Likewise.
718 (gnat_to_gnu_component_type): Likewise.
719 (gnat_to_gnu_param): Likewise.
720 (relate_alias_sets): Likewise.
721 (make_packable_type): Likewise.
722 (maybe_pad_type): Likewise.
723 (gnat_to_gnu_field): Likewise.
724 (is_variable_size): Likewise.
725 (annotate_object): Likewise.
726 (validate_size): Likewise.
727 (set_rm_size): Likewise.
728 (make_type_from_size): Likewise.
730 * gcc-interface/misc.c (gnat_print_type): Likewise.
731 (gnat_get_alias_set): Likewise.
732 * gcc-interface/trans.c (Identifier_to_gnu): Likewise.
733 (Attribute_to_gnu): Likewise.
734 (call_to_gnu): Likewise.
735 (gnat_to_gnu): Likewise.
736 (add_decl_expr): Likewise.
737 (convert_with_check): Likewise.
738 (addressable_p): Likewise.
739 (maybe_implicit_deref): Likewise.
740 (protect_multiple_eval): Likewise.
741 (gnat_stabilize_reference_1): Likewise.
742 * gcc-interface/utils.c (gnat_pushdecl): Likewise.
743 (finish_record_type): Likewise.
744 (rest_of_record_type_compilation): Likewise.
745 (create_type_decl): Likewise.
746 (gnat_types_compatible_p): Likewise.
747 (build_template): Likewise.
748 (convert_vms_descriptor64): Likewise.
749 (convert_vms_descriptor32): Likewise.
750 (build_unc_object_type_from_ptr): Likewise.
751 (update_pointer_to): Likewise.
752 (convert_to_fat_pointer): Likewise.
753 (convert_to_fat_pointer): Likewise.
755 (remove_conversions): Likewise.
756 (maybe_unconstrained_array): Likewise.
757 (unchecked_convert): Likewise.
758 (handle_vector_type_attribute): Likewise.
759 * gcc-interface/utils2.c (build_binary_op): Likewise.
760 (build_unary_op): Likewise.
761 (build_allocator): Likewise.
763 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
765 * exp_dbug.ads: Adjust type names in comments.
766 * gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
767 add new IS_COMPONENT_TYPE parameter. Adjust. Remove dead code.
768 (gnat_to_gnu_entity): Adjust for above change.
769 (gnat_to_gnu_component_type): Likewise.
770 (gnat_to_gnu_field): Likewise.
771 * gcc-interface/trans.c (call_to_gnu): Likewise. Do not unnecessarily
773 * gcc-interface/utils.c (finish_record_type): Remove obsolete code.
774 * gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.
776 2009-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
778 * s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
779 * s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.
781 2009-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
783 * env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
785 2009-10-10 Samuel Tardieu <sam@rfc1149.net>
787 * sem_eval.adb: Give a more precise error message.
789 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
792 * a-rttiev.adb (Time_Of_Event): Return Time_First for unset event.
794 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
797 * sem_prag.adb (Process_Import_Or_Interface): Forbid an abstract
798 subprogram to be completed with a "pragma Import".
800 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
802 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>:
803 Generate an XVZ variable alongside the XVS type if the size is
805 (maybe_pad_type): Minor tweak.
807 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
809 * gcc-interface/decl.c (check_ok_for_atomic): Do nothing if the type
810 doesn't come from source.
812 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
814 * gcc-interface/decl.c (gnat_to_gnu_component_type): Force at least
815 unit size for the component size of an array with aliased components.
816 (maybe_pad_type): Do not warn for MAX_EXPR.
818 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
820 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
821 common code processing the component type into...
822 <E_Array_Subtype>: Likewise.
823 (gnat_to_gnu_component_type): ...this new static function.
824 (maybe_pad_type): Minor cleanup.
826 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
828 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
829 the handling of constrained discriminated record subtypes.
830 (components_to_record): Declare the type of the variants and of the
832 (build_subst_list): Move around.
833 (compute_field_positions): Rename into...
834 (build_position_list): ...this. Return a TREE_VEC.
835 (annotate_rep): Adjust for above renaming.
836 (build_variant_list): New static function.
837 (create_field_decl_from): Likewise.
838 (get_rep_part): Likewise.
839 (get_variant_part): Likewise.
840 (create_variant_part_from): Likewise.
841 (copy_and_substitute_in_size): Likewise.
843 2009-09-28 Olivier Hainque <hainque@adacore.com>
846 * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
847 Account for observable alignments out of default allocators.
849 2009-09-28 Richard Henderson <rth@redhat.com>
851 * gcc-interface/utils.c (gnat_install_builtins): Update call to
852 build_common_builtin_nodes.
854 2009-09-26 Eric Botcazou <ebotcazou@adacore.com>
856 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
857 negative size for the array dimensions like in the constrained case.
858 <E_Array_Subtype>: Do not create an artificially non-constant high
859 bound if the low bound is non-constant. Minor tweaks.
861 * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
862 and turn ALIASED into a boolean parameter. Adjust calls to self.
863 <N_Attribute_Reference>: Return 1 for more attributes.
864 <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
865 <N_Assignment_Statement>: Return 1 for the LHS.
866 (Identifier_to_gnu): Adjust calls to lvalue_required_p.
867 (call_to_gnu): Be prepared for wrapped boolean rvalues.
869 2009-09-25 Olivier Hainquqe <hainque@adacore.com>
870 Eric Botcazou <ebotcazou@adacore.com>
872 * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
873 specific node. Representative array type for VECTOR_TYPE entities.
874 * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
875 Turn an ARRAY_TYPE entity into a VECTOR_TYPE.
876 (gnat_types_compatible_p): Handle VECTOR_TYPEs.
877 (convert): Likewise. Arrange to produce VECTOR_CST out of constant
878 array aggregates for VECTOR_TYPE entities.
879 (unchecked_convert): Likewise.
880 (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
881 converted to the associated TYPE_REPRESENTATIVE_ARRAY.
882 (handle_pure_attribute, handle_sentinel_attribute,
883 handle_noreturn_attribute, handle_malloc_attribute,
884 handle_vector_size_attribute): Replace uses of qE format by qs.
885 Remove GCC_DIAG_STYLE definition.
886 * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
887 vector input to representative array type on entry.
888 <N_Op_Eq, etc>: Likewise.
889 * gcc-interface/gigi.h (maybe_vector_array): Declare.
890 (VECTOR_TYPE_P): New predicate.
891 * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
893 2009-09-24 Eric Botcazou <ebotcazou@adacore.com>
895 * gcc-interface/ada.h: Fix outdated comment.
896 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
897 lieu of mark_visited.
898 * gcc-interface/gigi.h (mark_visited): Change type of parameter.
899 (MARK_VISITED): New macro.
900 (gnat_truthvalue_conversion): Delete.
901 * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
903 (annotate_rep): Fix formatting and tidy.
904 (compute_field_positions): Get rid of useless variable.
905 * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
906 node only once. Use IN operator for the Nkind in more cases.
907 Remove calls to gnat_truthvalue_conversion.
908 (mark_visited): Change type of parameter and adjust.
909 (mark_visited_r): Dereference TP only once.
910 (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
911 * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
912 (build_binary_op): Remove calls to gnat_truthvalue_conversion.
913 (build_unary_op): Likewise.
915 2009-09-24 Dave Korn <dave.korn.cygwin@gmail.com>
917 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
918 a-except% in target pairs list; don't (implicitly) compare whitespace.
920 2009-09-24 Jakub Jelinek <jakub@redhat.com>
922 * gcc-interface/utils.c (gnat_pushdecl): Don't set
923 DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
926 2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
928 * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
929 Bind to getpagesize() in RTEMS 4.10 and newer.
931 2009-09-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
933 * env.c [__alpha__ && __osf__] (_BSD): Define.
934 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
937 2009-09-18 Pascal Obry <obry@adacore.com>
939 * mingw32.h: Activate Unicode support for x86-64 Windows platform.
941 2009-09-18 Vadim Godunko <godunko@adacore.com>
943 * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
945 2009-09-18 Javier Miranda <miranda@adacore.com>
947 * exp_aggr.adb (Backend_Processing_Possible): Disable backend
948 processing for array aggregates in the VM backend if the array has
951 2009-09-18 Ed Schonberg <schonberg@adacore.com>
953 * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
954 the prefix indicates a previous semantic error, and this is the first
955 error in the program.
957 2009-09-18 Bob Duff <duff@adacore.com>
959 * gnat_ugn.texi: Minor editing.
961 2009-09-18 Vincent Celier <celier@adacore.com>
963 * prj.ads, prj.adb (Project_Data): New component
964 Imported_Directories_Switches.
966 2009-09-18 Pascal Obry <obry@adacore.com>
968 * mingw32.h: Include standard _mingw.h file.
969 Define _WIN32_WINNT only if not already defined.
971 2009-09-18 Thomas Quinot <quinot@adacore.com>
973 * g-socket.adb (Is_Open): New function indicating whether a
974 Selector_Type object is open.
976 2009-09-18 Vincent Celier <celier@adacore.com>
978 * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
979 is deleted before creating it.
981 2009-09-18 Robert Dewar <dewar@adacore.com>
983 * bindgen.adb: Minor reformatting
985 2009-09-18 Arnaud Charlet <charlet@adacore.com>
987 * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
988 s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
989 signal handler is installed.
990 * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
991 tasks if Abort_Task_Interrupt cannot be used.
993 2009-09-18 Vincent Celier <celier@adacore.com>
995 * prj-tree.ads: Minor comment update
997 2009-09-17 Bob Duff <duff@adacore.com>
999 * g-socket.ads: Document the fact that Close_Selector has no effect on
1001 * g-socket.adb: Raise an exception when a Selector that should be open
1003 (Check_Selector): Declare RSig as a constant rather than a renames,
1006 2009-09-17 Robert Dewar <dewar@adacore.com>
1008 * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
1009 prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
1010 prj-tree.ads: Minor reformatting
1012 2009-09-17 Emmanuel Briot <briot@adacore.com>
1014 * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
1016 (Do_Autoconf): If the object directory does not exists, create auto.cgpr
1017 in a temporary directory instead
1019 2009-09-17 Bob Duff <duff@adacore.com>
1021 * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
1023 (Get_Priority): Correct message for "terminated" case -- it said "null".
1025 2009-09-17 Robert Dewar <dewar@adacore.com>
1027 * exp_ch6.adb: Minor reformatting
1029 2009-09-17 Emmanuel Briot <briot@adacore.com>
1031 * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
1032 switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
1033 (Project_Node_Tree_Data.Project_Path): New field.
1035 * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
1037 2009-09-17 Emmanuel Briot <briot@adacore.com>
1039 * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
1040 Remove duplicate code.
1041 (Prj.Ext): Fix memory leak
1042 (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
1043 variable. This was previously allowed in the code in
1044 Is_External_Assignment, and some tests rely on it
1046 2009-09-17 Bob Duff <duff@adacore.com>
1048 * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
1050 2009-09-17 Emmanuel Briot <briot@adacore.com>
1052 * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
1053 makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
1054 prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
1055 prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
1056 Scenario variables are now specific to each project tree loaded in
1060 2009-09-17 Javier Miranda <miranda@adacore.com>
1062 * exp_disp.adb (Make_DT): Remove wrong line of code that was
1063 undocumented and probably added by mistake.
1065 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1067 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
1068 conversions between original and packable version of types from
1071 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1073 * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
1074 If a padding type was made for the field, declare it.
1075 (components_to_record): Add DEBUG_INFO_P parameter. Adjust call
1076 to gnat_to_gnu_field and call to self.
1077 (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
1078 <E_Array_Subtype>: Likewise.
1079 Adjust calls to gnat_to_gnu_field and components_to_record.
1081 2009-09-16 Robert Dewar <dewar@adacore.com>
1083 * prj-nmsc.adb: Minor reformatting
1085 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1087 * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
1088 expression is a by-reference type (tagged or inherently limited)
1089 introduce an access type to capture references to the values of each
1090 branch of the conditional.
1092 2009-09-16 Emmanuel Briot <briot@adacore.com>
1094 * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
1095 (Project_Name_And_Node.Display_Name): new field
1096 The display name of a project (as written in the .gpr file) is now
1097 computed when the project file itself is parsed, not when it is
1100 2009-09-16 Thomas Quinot <quinot@adacore.com>
1102 * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
1103 intrinsics untouched (to be expanded later on by gigi) if an external
1104 name has been specified.
1105 (Freeze_Entity): Do not generate a default external name for
1106 imported subprograms with convention Intrinsic (so that the above code
1107 can identify the case where an external name has been explicitly
1110 * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
1111 replaced by something else due to an existing #define clause.
1113 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1115 * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
1116 Parameter_Association node, created for the extra actual generated for
1117 an access parameter of a function that dispatches on result, to prevent
1118 double generation of such actuals when the call is rewritten is a
1120 * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
1121 * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
1122 that carry this flag when rewriting the original call as a dispatching
1123 call, after propagating the controlling tag.
1125 2009-09-16 Vincent Celier <celier@adacore.com>
1127 * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
1129 (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
1131 (Find_Source_Dirs): New parameter Rank to be recorded with the source
1133 (Search_Directories): Call Check_File with the rank of the directory
1134 * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
1135 (Free): Free also Number_Lists
1136 (Reset): Init also Number_Lists
1137 * prj.ads (Number_List_Table): New dynamic table for lists of numbers
1138 (Source_Data): New component Source_Dir_Rank. Remove component
1139 Known_Order_Of_Source_Dirs, no longer needed.
1140 (Project_Data): New component Source_Dir_Ranks
1141 (Project_Tree_Data): New components Number_Lists
1143 2009-09-16 Vincent Celier <celier@adacore.com>
1145 * gprep.adb (Yes_No): New global constant
1146 Unix_Line_Terminators: New global Boolean variable
1147 (Process_One_File): Create the out file with a "Text_Translation=" form
1148 that depends on the use of option -T.
1149 (Scan_Command_Line): Add option -T
1150 (Usage): Add line for option -T
1152 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1154 * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
1155 predicate that describes a proper subset of
1156 Is_Predefined_Dispatching_Operation and excludes stream operations,
1157 which can be overridden by the user.
1158 * sem_ch6.adb (Create_Extra_Formals): use
1159 Is_Predefined_Internal_Operation, so that stream operations get extra
1161 * exp_ch6.adb (Prevent double generation of extra actuals in calls to
1162 'Input, which may be expanded twice, first as a function call and then
1163 as a dispatching call.
1165 2009-09-16 Thomas Quinot <quinot@adacore.com>
1167 * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
1168 * g-expect.adb (Set_Up_Child_Communications): Use
1169 System.OS_Constants.Target_OS to determine whether running on Windows.
1171 2009-09-14 Richard Henderson <rth@redhat.com>
1173 * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
1175 2009-09-14 Eric Botcazou <ebotcazou@adacore.com>
1177 * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
1178 the unconstrained case.
1179 * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
1180 the encoding. Do not give a name to the pointer type to the XUT type.
1181 * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
1182 for fat pointer types, if any. Make sure DECL_ARTIFICIAL is cleared
1183 on nodes with DECL_ORIGINAL_TYPE set.
1184 (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
1185 for fat pointer types. Make sure DECL_ARTIFICIAL is cleared.
1187 2009-09-14 Richard Henderson <rth@redhat.com>
1189 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
1190 default_init_unwind_resume_libfunc.
1191 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
1192 __builtin_eh_pointer.
1193 * gcc-interface/utils.c (gnat_install_builtins): Update call
1194 to build_common_builtin_nodes.
1196 2009-09-13 Richard Guenther <rguenther@suse.de>
1197 Rafael Avila de Espindola <espindola@google.com>
1199 * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
1200 eh_personality_libfunc and lang_eh_runtime_type.
1201 (LANG_HOOKS_EH_PERSONALITY): Define.
1202 (gnat_eh_personality_decl): New static variable.
1203 (gnat_eh_personality): New static function.
1204 Include gt-ada-misc.h.
1205 * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
1206 * gcc-interface/config-lang.in (gtfiles): Add misc.c.
1208 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1211 * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
1213 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1215 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
1217 Avoid useless work when processing the Treat_As_Volatile flag.
1219 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1221 * gcc-interface/targtyps.c: Reorder include directives.
1223 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1225 * gcc-interface/targtyps.c: Add missing include for tm_p.h.
1226 * gcc-interface/Make-lang.in: Update dependencies.
1228 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1230 * make.adb: Add missing documentation for multilib handling.
1232 2009-09-03 Diego Novillo <dnovillo@google.com>
1234 * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
1236 2009-09-02 Richard Henderson <rth@redhat.com>
1238 * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
1240 2009-09-02 Olivier Hainque <hainque@adacore.com>
1242 * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
1245 2009-09-02 Olivier Hainque <hainque@adacore.com>
1247 * gcc-interface/decl.c (cannot_be_superflat_p): Handle
1248 Signed_Integer_Type_Definition Scalar_Ranges.
1250 2009-09-02 Eric Botcazou <ebotcazou@adacore.com>
1252 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
1253 SAVE_EXPR built for misaligned arguments. Remove redundant stuff.
1254 (addressable_p): Return true for more rvalues.
1256 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1258 * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
1259 POINTER_SIZE to HOST_WIDE_INT.
1261 2009-09-01 Richard Guenther <rguenther@suse.de>
1263 * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1265 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
1267 * gcc-interface/trans.c (call_to_gnu): Tidy.
1268 (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
1269 non-constant size but the array itself has constant size.
1270 * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
1272 (convert_vms_descriptor32): Likewise.
1274 2009-08-22 Aurelien Jarno <aurelien@aurel32.net>
1276 * gcc-interface/Makefile.in: Add Ada support for
1277 GNU/kFreeBSD x86_64.
1278 * system-freebsd-x86_64.ads: New file based on
1279 system-freebsd-x86.ads.
1281 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1283 * gcc-interface/utils.c (convert): In the padded case, do the final
1284 conversion as an unchecked conversion if the underlying types are
1285 array types with variable size.
1287 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1289 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
1291 * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
1293 * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
1295 (gnat_gimplify_expr) <DECL_EXPR>: New case.
1297 2009-08-17 Aurelien Jarno <aurelien@aurel32.net>
1299 * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
1300 (stack_t): New record type.
1301 (sigaltstack): New imported function.
1302 (Alternate_Stack): New imported variable.
1303 (Alternate_Stack_Size): New constant.
1305 2009-08-17 Vasiliy Fofanov <fofanov@adacore.com>
1307 * a-calend-vms.adb: Fix typo.
1309 2009-08-17 Tristan Gingold <gingold@adacore.com>
1311 * s-taprop-posix.adb: Round up the stack size to avoid failure on
1314 2009-08-17 Gary Dismukes <dismukes@adacore.com>
1316 * sem_cat.adb (Validate_Static_Object_Name): Update comment.
1318 2009-08-17 Vincent Celier <celier@adacore.com>
1320 * make.adb (Arguments_Collected): Unneeded, removed
1321 (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
1322 ensure caller does not pass in No_Project.
1323 (Compile): Add new parameter Project. Let procedure
1324 Collect_Arguments_And_Compile provide the proper value.
1326 * switch-c.adb: Add documentation for -gnatea and -gnatez
1328 2009-08-17 Ben Brosgol <brosgol@adacore.com>
1330 * gnat_ugn.texi: Changed name of package in SAL example, to avoid
1331 clash with Ada 2005 reserved word (interface).
1333 2009-08-17 Robert Dewar <dewar@adacore.com>
1335 * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
1336 a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
1337 a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
1338 (use conditional expressions).
1340 2009-08-17 Robert Dewar <dewar@adacore.com>
1342 * make.adb: Add ??? comment
1343 * tbuild.adb: Minor reformatting
1345 2009-08-17 Thomas Quinot <quinot@adacore.com>
1347 * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
1348 Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
1349 Use Tbuild.Make_Temporary to create entity for the temporary.
1351 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1353 * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
1354 and ignore -mieee switch to avoid spawning an extra gcc in this case.
1356 2009-08-17 Thomas Quinot <quinot@adacore.com>
1358 * tbuild.adb: Minor reformatting
1360 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1362 * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
1363 exist, as is the case for synchronized types, use the type of the
1364 discriminal in the parameter specification, to prevent a spurious
1365 subtype mismatch in gigi.
1367 2009-08-17 Robert Dewar <dewar@adacore.com>
1369 * prj-env.adb: Minor reformatting
1370 * make.adb: Minor reformatting
1373 2009-08-17 Javier Miranda <miranda@adacore.com>
1375 * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
1377 2009-08-17 Emmanuel Briot <briot@adacore.com>
1379 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
1380 (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
1381 object directories must be present. In the case of gprclean at least,
1382 these are optional (if they do not exist there is nothing to clean)
1384 2009-08-17 Robert Dewar <dewar@adacore.com>
1386 * prj-env.adb: Minor reformatting
1387 * sem_ch3.adb: Minor reformatting
1389 2009-08-17 Hristian Kirtchev <kirtchev@adacore.com>
1391 * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
1392 the time zone since VxWorks chose positive values to represent west
1393 time zones and negative for east zones.
1395 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1397 * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
1398 an anonymous access type whose designated type is generic.
1400 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1402 * comperr.adb (Compiler_Abort): Do not generate a bug box when in
1403 codepeer mode, friendlier.
1405 2009-08-10 Laurent GUERBY <laurent@guerby.net>
1407 * make.adb: Handle multilib
1409 2009-08-10 Vincent Celier <celier@adacore.com>
1411 * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
1412 the temporary file name in the error message when the temporary file
1415 2009-08-10 Yannick Moy <moy@adacore.com>
1417 * gnat_ugn.texi: Fix typo
1419 2009-08-10 Robert Dewar <dewar@adacore.com>
1421 * exp_ch7.adb: Add ??? comment for last change
1423 2009-08-10 Vincent Celier <celier@adacore.com>
1425 * prj-env.adb (Add_To_Buffer): New procedure
1426 (Create_Config_Pragmas_File): Write to temporary file in one shot
1427 (Create_Mapping_File): Ditto
1428 (Set_Ada_Paths): Ditto
1430 2009-08-10 Vincent Celier <celier@adacore.com>
1433 * xref_lib.adb (Print_Xref): Make sure that there is at least one space
1434 between a declaration name and its type.
1436 2009-08-07 Javier Miranda <miranda@adacore.com>
1438 * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
1441 2009-08-07 Robert Dewar <dewar@adacore.com>
1443 * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
1445 2009-08-07 Vincent Celier <celier@adacore.com>
1447 * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
1448 specified on the command line and there are switches in the Compiler
1449 package of the project file, use these compilation switches to invoke
1452 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1454 * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
1456 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1458 * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
1459 even if not in main unit, to simplify debugging.
1461 2009-08-07 Arnaud Charlet <charlet@adacore.com>
1463 * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
1464 * gcc-interface/Make-lang.in: Update dependencies.
1466 2009-08-07 Robert Dewar <dewar@adacore.com>
1468 * types.ads: Minor reformatting
1469 * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
1470 * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
1471 Output_Non_Modified_In_Out_Warnings.
1472 * sem_ch13.adb: Remove ??? comment.
1474 2009-08-07 Vincent Celier <celier@adacore.com>
1476 * mlib-prj.adb (Build_Library): Include binder generate object file
1477 for SAL when library name is only one character.
1479 2009-08-07 Thomas Quinot <quinot@adacore.com>
1481 * targparm.adb: Minor reformatting
1482 * sem.adb: Minor reformatting
1483 * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
1485 2009-08-07 Emmanuel Briot <briot@adacore.com>
1487 * prj-conf.adb: Remove duplicate directory separator in the output when
1488 an object directory does not exist.
1490 2009-08-07 Robert Dewar <dewar@adacore.com>
1492 * exp_util.adb: Minor reformatting
1494 2009-08-07 Vincent Celier <celier@adacore.com>
1496 * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
1499 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1501 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
1502 detect non-static private components that will violate restriction
1503 No_Implicit_Heap_Allocation.
1505 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1507 * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
1509 2009-08-02 Eric Botcazou <ebotcazou@adacore.com>
1511 * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
1512 * gcc-interface/utils.c (end_subprog_body): Likewise.
1513 * gcc-interface/trans.c (gigi): Likewise.
1514 (gnat_to_gnu): Likewise.
1516 2009-07-30 Ben Brosgol <brosgol@adacore.com>
1518 * gnat_ugn.texi: Correct minor texi glitch.
1520 2009-07-30 Ed Schonberg <schonberg@adacore.com>
1522 * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
1523 expression has an underlying representation that is an unchecked union,
1524 there is no subtype to build.
1526 2009-07-30 Robert Dewar <dewar@adacore.com>
1528 * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
1529 s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
1530 sem_ch7.adb, adaint.c: Minor reformatting
1532 2009-07-29 Javier Miranda <miranda@adacore.com>
1534 * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
1535 moved from the expander to the semantic analyzer to allow the
1536 generation of these internal entities when compiling with no code
1537 generation. Required by ASIS.
1538 * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
1539 * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
1540 * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
1541 (Expand_Freeze_Record_Type): Remove call to
1542 Add_Internal_Interface_Entities because this routine is now called at
1543 early stage --when the freezing node is analyzed.
1545 2009-07-29 Robert Dewar <dewar@adacore.com>
1547 * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
1548 exp_disp.adb, g-socket.adb: Minor reformatting
1550 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1552 * sem_ch7.adb (New_Private_Type): Create class-wide type after other
1553 attributes have been established, so that they are all inherited by the
1555 * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
1556 properly named subtypes of class-wide types.
1558 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1560 * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
1561 indicators on user-defined operators.
1563 2009-07-29 Vadim Godunko <godunko@adacore.com>
1565 * g-socket.adb (Receive_Vector): Add comment.
1567 2009-07-29 Javier Miranda <miranda@adacore.com>
1569 * frontend.adb (Frontend): Code cleanup.
1570 * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
1571 Rewriten as a procedure because it a new out-mode parameters to
1572 keep up-to-date the controlling tag node in the caller.
1573 (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
1574 new out-mode parameter to keep up-to-date the controlling tag node in
1576 * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
1577 exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
1579 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
1580 available in new package Sem_SCIL.
1581 (Next_Non_SCIL_Node): Ditto.
1582 * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
1584 (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
1585 plus complete decoration of SCIL dispatching node.
1586 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1587 * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
1589 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1590 * exp_ch3.adb (Build_Init_Procedure): Fix comment.
1591 * sem_scil.ads, sem_scil.adb: New files.
1592 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
1593 Update dependencies.
1595 2009-07-28 Robert Dewar <dewar@adacore.com>
1597 * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
1598 makeutl.adb: Minor reformatting & code reorganization
1599 * sem_ch3.adb: Minor reformatting.
1600 Fix spelling error (constraint for constrain) in error msg.
1602 2009-07-28 Emmanuel Briot <briot@adacore.com>
1604 * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
1605 global variable that also exists in makeutl.ads, and that some routines
1606 in that package use already.
1607 (Check): Moved part of the code to makeutl.adb for better sharing with
1610 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1612 * gcc-interface/Make-lang.in: Update dependencies.
1614 2009-07-28 Emmanuel Briot <briot@adacore.com>
1616 * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
1617 importing project does not end up in the list, in the case of extending
1619 * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
1620 makeutl.ads, for better sharing with gprbuild.
1622 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1624 * gnat_ugn.texi: Fix typo.
1626 2009-07-28 Ed Schonberg <schonberg@adacore.com>
1628 * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
1629 derivation that renames some discriminants and constrain others.
1630 * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
1631 prefix is a derived untagged type, convert to the root type to conform
1632 to the signature of the protected operations.
1634 2009-07-28 Robert Dewar <dewar@adacore.com>
1636 * sinfo.ads: Update comments.
1637 * exp_attr.adb: Minor reformatting
1639 2009-07-28 Ed Schonberg <schonberg@adacore.com>
1641 * sem_aggr.adb (Get_Value): A named association in a record aggregate
1642 should be treated as a modification of the named component, not as a
1645 2009-07-28 Quentin Ochem <ochem@adacore.com>
1647 * prj-tree.ads, prj-tree.adb (Free): Minor editing.
1648 * prj.ads, prj.adb (Image): Ditto.
1650 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1652 * frontend.adb: Minor reformatting.
1653 (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
1656 2009-07-28 Bob Duff <duff@adacore.com>
1658 * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
1659 'Address to get a pointer to the protected body wrapper.
1661 2009-07-28 Javier Miranda <miranda@adacore.com>
1663 * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
1664 nodes if we are not generating code.
1665 * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
1666 attribute SCIL_Related_Node of SCIL dispatching nodes.
1667 (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
1668 * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1669 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1670 (SCIL_Entity): Update documentation.
1671 (SCIL_Related_Node): Update documentation.
1672 (SCIL_Controlling_Tag): New attribute.
1673 (SCIL_Target_Prim): Update documentation.
1674 (N_Null_Statement): Remove attributes associated with SCIL nodes.
1675 (N_SCIL_Dispatch_Table_Object_Init): New node.
1676 (N_SCIL_Dispatch_Table_Tag_Init): New node.
1677 (N_SCIL_Dispatching_Call): New node.
1678 (N_SCIL_Tag_Init): New node.
1679 * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1680 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1681 (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
1682 (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
1683 (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
1684 (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
1685 N_SCIL_Dispatching_Call nodes.
1686 * sem.adb (Analyze): No need to analyze SCIL nodes.
1687 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
1688 (Next_Non_SCIL_Node): New subprogram
1689 * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
1691 * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
1693 * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
1695 * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
1696 null statement nodes.
1697 (Build_Init_Procedure): Generate new SCIL node.
1698 * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
1700 * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
1701 they are currently implemented as special N_Null_Statement nodes.
1702 * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
1703 procedure call then check if some SCIL node references it and needs
1705 * exp_disp.ads (SCIL_Node_Kind): Removed.
1706 (Adjust_SCIL_Node): New subprogram.
1707 (Find_SCIL_Node): New subprogram.
1708 (Get_SCIL_Node_Kind): Removed.
1709 (New_SCIL_Node): Removed.
1710 * exp_disp.adb (Adjust_SCIL_Node): New subprogram
1711 (Expand_Dispatching_Call): Generate new SCIL dispatching node including
1712 decoration of its new controlling_tag attribute.
1713 (Get_SCIL_Node_Kind): Removed.
1714 (Find_SCIL_Node): New subprogram.
1715 (Make_Secondary_DT): Generate new SCIL nodes.
1716 (Make_Tags): Generate new SCIL nodes.
1717 (New_SCIL_Node): Removed.
1718 * exp_util.adb (Insert_Actions): Handle SCIL nodes.
1719 (Remove_Side_Effects): Check if relocated nodes require readjustment
1720 of some SCIL dispatching node.
1721 * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
1723 2009-07-28 Robert Dewar <dewar@adacore.com>
1725 * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
1727 2009-07-28 Sergey Rybin <rybin@adacore.com>
1729 * gnat_ugn.texi: Add section about gnatcheck rule exemption.
1731 2009-07-28 Vadim Godunko <godunko@adacore.com>
1733 * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
1734 not defined by limits.h.
1736 * g-socket.adb (Receive_Vector): Use minimum length from user's vector
1737 length and maximum supported length of data vector.
1739 2009-07-28 Gary Dismukes <dismukes@adacore.com>
1741 * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
1742 * make.adb: Call Get_Target_Parameters before calling Usage so that
1743 VM_Target and AAMP_On_Target will be set.
1745 2009-07-28 Olivier Hainque <hainque@adacore.com>
1747 * g-ssinty.ads: Remove, pointless and just confusing at this stage.
1748 * gnat_rm.texi: Remove documentation.
1749 * g-sse.ads: Minor reorg along the way.
1750 * gcc-interface/Makefile.in: Remove processing for g-ssinty.
1751 * g-ssvety.ads: Minor comment updates.
1753 2009-07-28 Sergey Rybin <rybin@adacore.com>
1755 * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
1756 for the new format of the report file.
1758 2009-07-28 Sergey Rybin <rybin@adacore.com>
1760 * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
1762 2009-07-28 Pascal Obry <obry@adacore.com>
1764 * g-expect.adb: Record standard handles only on Windows.
1766 2009-07-27 Emmanuel Briot <briot@adacore.com>
1768 * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
1771 2009-07-27 Sergey Rybin <rybin@adacore.com>
1773 * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
1774 rule definition the paragraph that explains that generic functions and
1775 functions from generic packages are not checked.
1777 2009-07-27 Gary Dismukes <dismukes@adacore.com>
1779 * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
1780 procedure when determining whether to set the Overridden_Operation
1781 field of a subprogram overriding an inherited subprogram.
1783 2009-07-27 Robert Dewar <dewar@adacore.com>
1785 * a-except.adb, a-except-2005.ads: Minor reformatting
1787 2009-07-27 Robert Dewar <dewar@adacore.com>
1789 * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
1791 2009-07-27 Javier Miranda <miranda@adacore.com>
1793 * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
1794 add some documentation explaining why the SCIL nodes must be generated
1797 2009-07-27 Olivier Hainque <hainque@adacore.com>
1799 * a-except.adb: Bind to __builtin_longjmp directly.
1800 * a-except-2005.ads: Provide direct binding to __builtin_longjmp
1802 * a-exexpr.adb: Use it.
1803 * a-except-xi.adb: Likewise.
1804 * raise.c (_gnat_builtin_longjmp): Remove and update comments.
1805 * raise.h (_gnat_builtin_longjmp): Remove declaration.
1807 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1809 * sem_eval.adb (Compile_Time_Compare): More precise handling of
1810 Known_Valid flag, to prevent spurious range deductions when scalar
1811 variables may be uninitialized. New predicate Is_Known_Valid_Operand.
1813 2009-07-27 Robert Dewar <dewar@adacore.com>
1815 * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
1818 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1820 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
1821 Ravenscar mode. Error has already been posted on specification.
1823 * sem.adb: Further code clean ups.
1825 2009-07-27 Robert Dewar <dewar@adacore.com>
1827 * g-sse.ads: Minor reformatting
1829 2009-07-27 Arnaud Charlet <charlet@adacore.com>
1831 * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
1832 alternate ali extension.
1833 * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
1834 account Osint.ALI_Suffix.
1835 * osint.ads (ALI_Suffix): Make visible.
1836 * gnatfind.adb (Gnatfind): Add support for --ext= switch.
1837 * gnat_ugn.texi: Document new gnatfind --ext= switch.
1839 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1841 * sem.adb (Walk_Library_Items): If main unit is an instance body, do
1844 2009-07-27 Javier Miranda <miranda@adacore.com>
1846 * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
1847 the dispatching call has is expanded.
1849 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1851 * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
1852 Is_Known_Valid flag on the temporary created for the value whose
1853 validity is being checked.
1855 * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
1856 handle properly main units that are package specifications.
1858 2009-07-27 Geert Bosch <bosch@adacore.com>
1860 * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
1861 * sem_aux.ads: Fix typo in comment
1862 * sem_util.ads (Is_LHS): Adjust comment to match body
1864 2009-07-27 Sergey Rybin <rybin@adacore.com>
1866 * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
1869 2009-07-27 Olivier Hainque <hainque@adacore.com>
1871 * g-sse.ads, g-ssvety.ads: Update comments.
1873 2009-07-27 Sergey Rybin <rybin@adacore.com>
1875 * gnat_ugn.texi: Update gnatcheck doc.
1877 2009-07-27 Arnaud Charlet <charlet@adacore.com>
1879 * lib-xref.ads: Allocate/document 'o' char for use by references to
1880 spark 'own' variables.
1882 2009-07-27 Gary Dismukes <dismukes@adacore.com>
1884 * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
1885 objects, since these are implicitly referenced by the return statement.
1886 * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
1887 Is_Return_Object in this procedure, as return objects will never make
1888 it here since they're now marked as Referenced.
1890 2009-07-27 Robert Dewar <dewar@adacore.com>
1892 * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
1894 2009-07-27 Robert Dewar <dewar@adacore.com>
1896 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
1898 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
1900 2009-07-27 Geert Bosch <bosch@adacore.com>
1902 * checks.adb (Find_Check): Minor streamlining of logic.
1903 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
1904 * debug.adb: Document -gnatdX debug flag
1905 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
1906 list information about reads from scalar entities.
1907 Also slightly simplify condition for Expand_Current_Value.
1908 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
1911 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
1914 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
1915 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
1917 (__gnat_stat): Adjust reference to STAT in prototype.
1918 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
1919 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
1920 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
1921 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
1922 __gnat_is_writable_file, __gnat_is_executable_file,
1923 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
1924 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
1925 __gnat_copy_attribs): Adjust all references to the above.
1926 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
1928 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1930 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
1931 done at the same time, guard against listing a body more than once.
1933 2009-07-23 Robert Dewar <dewar@adacore.com>
1935 * exp_ch6.adb: Minor reformatting
1937 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1939 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
1940 static expression is known valid.
1941 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
1942 operands of a subtype with a single value.
1944 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1946 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
1947 are in the context of the main unit body.
1949 2009-07-23 Sergey Rybin <rybin@adacore.com>
1951 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
1952 misprint in rule description.
1954 2009-07-23 Gary Dismukes <dismukes@adacore.com>
1956 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
1957 test that the object declaration is within an extended return statement
1958 with direct test of whether the declared object associated with the
1959 build-in-place call is a return object, since the enclosing function
1960 might not even be a build-in-place function.
1962 2009-07-23 Robert Dewar <dewar@adacore.com>
1964 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
1965 Minor code reorganization
1967 2009-07-23 Arnaud Charlet <charlet@adacore.com>
1969 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
1970 for static analysis, only packed arrays are causing troubles.
1972 2009-07-23 Gary Dismukes <dismukes@adacore.com>
1974 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
1975 ancestor part is a call to a limited function with an unconstrained
1976 result subtype unless the aggregate has a null extension type.
1977 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
1978 the parent type declaration to avoid blowups on subtype cases.
1980 2009-07-23 Robert Dewar <dewar@adacore.com>
1982 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
1985 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
1987 * s-regexp.adb: Minor reformatting
1988 * scos.ads: Minor reformatting.
1990 2009-07-23 Arnaud Charlet <charlet@adacore.com>
1992 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
1993 other similar messages.
1994 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
1995 messages/implicit packing in CodePeer mode.
1996 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
1997 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
2000 2009-07-23 Pascal Obry <obry@adacore.com>
2002 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
2005 2009-07-23 Robert Dewar <dewar@adacore.com>
2007 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
2010 2009-07-23 Yannick Moy <moy@adacore.com>
2012 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
2014 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
2016 (Raise_Exception): Ditto.
2018 2009-07-23 Olivier Hainque <hainque@adacore.com>
2020 * g-sse.ads: Simplify comment.
2022 2009-07-23 Olivier Hainque <hainque@adacore.com>
2024 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
2025 low level internal type definitions for distinct higher level
2026 binding development activities (user type definitions and
2028 * gnat_rm.texi: Document it.
2029 * g-ssvety.ads: Use it.
2030 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
2031 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
2032 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
2033 for the "may_alias" attribute.
2035 2009-07-23 Thomas Quinot <quinot@adacore.com>
2037 * scos.ads: Minor typo fix
2039 * gcc-interface/decl.c (validate_alignment): For the case of an
2040 implicit array base type, look for alignment clause on first subtype.
2042 2009-07-23 Robert Dewar <dewar@adacore.com>
2044 * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
2045 with tagged parent if tagged parent is fully repped.
2047 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2049 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
2050 in the context depends on the spec of the main unit, by delaying
2051 processing of the main unit body until all other units have been
2054 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2056 * a-convec.adb: Add comments about suspicious/subtle code.
2058 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2060 * einfo.ads: Document use of Alias in private overriding
2062 2009-07-23 Thomas Quinot <quinot@adacore.com>
2064 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
2065 an array type, propagate alignment from first subtype to implicit base
2066 type so that other subtypes (such as the itypes for aggregates of the
2067 type) also receive the expected alignment.
2069 * g-comlin.ads: Minor documentation clarification/rewording.
2070 * scos.ads: Minor comments update.
2071 * lib-writ.ads: Minor reformatting
2073 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2075 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
2076 of a class-wide interface type that is a return object of a
2077 build-in-place function, bypass the interface-related expansions into
2078 renamings with displacement conversions, etc.
2079 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
2080 for the case where a renaming occurs in a build-in-place context, to
2081 assert that the bypassing of the build-in-place treatment only occurs
2082 in the case of a renaming that is an expansion of a return expression
2083 that is itself a build-in-place function call.
2085 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2087 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
2088 valid candidate interpretation in a prefixed view if it is hidden, but
2089 overrides an inherited operation declared in the visible part.
2091 2009-07-23 Robert Dewar <dewar@adacore.com>
2093 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2094 division operands to 64-bit at all in any circumstances.
2096 2009-07-23 Robert Dewar <dewar@adacore.com>
2098 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
2099 checking ranges for mod/rem to see if conditional jump will be
2101 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
2102 generating special -1 test for rem, generate it whenever both
2103 operands can be negative (match circuit in Sem_Res).
2104 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
2105 destroys memory of positive range.
2106 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
2107 checking ranges for mod/rem to see if conditional jump will be generated
2109 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2111 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
2112 scalar components has non-static bounds, the equivalent aggregate
2113 cannot be built, even if the expression is static, because range checks
2116 2009-07-23 Robert Dewar <dewar@adacore.com>
2118 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2119 division operands to 64-bit inside a conversion if 64-bit division not
2122 2009-07-23 Sergey Rybin <rybin@adacore.com>
2124 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
2126 2009-07-23 Javier Miranda <miranda@adacore.com>
2128 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
2129 (Entity/Set_Entity): not available in N_Null_Statement nodes
2130 (Is_Scil_Node): renamed as Is_SCIL_Node
2131 (Scil_Nkind): renamed as SCIL_Nkind
2132 (Scil_Related_Node): renamed as SCIL_Related_Node
2133 (Scil_Target_Prim): renamed as SCIL_Target_Prim
2134 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
2135 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
2136 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
2137 Update documentation
2138 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
2139 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2140 (New_Scil_Node): Renamed as New_SCIL_Node
2141 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
2142 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2143 (New_Scil_Node): Renamed as New_SCIL_Node
2144 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
2146 2009-07-23 Robert Dewar <dewar@adacore.com>
2148 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
2149 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
2150 * einfo.adb: Minor reformatting
2152 2009-07-23 Robert Dewar <dewar@adacore.com>
2154 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
2155 cross-referencing the new related code in
2156 Exp_Ch4.Expand_N_Type_Conversion.
2157 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
2159 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
2162 2009-07-23 Javier Miranda <miranda@adacore.com>
2164 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
2165 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
2166 * exp_disp.ads (Scil_Node_Kind): Ditto.
2167 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
2168 * exp_ch3.adb (Build_Init_Procedure): Ditto.
2170 2009-07-23 Javier Miranda <miranda@adacore.com>
2172 * einfo.adb (Component_Type): Add missing assertion.
2173 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
2174 reading attribute Component_Size.
2175 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
2176 before reading attributes Component_Size and Component_Type.
2177 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
2178 before reading attribute Component_Type.
2180 2009-07-23 Olivier Hainque <hainque@adacore.com>
2182 * gnat_rm.texi: Document the GNAT.SSE units.
2184 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2186 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
2187 not null return if it appears on a subunit.
2189 2009-07-23 Robert Dewar <dewar@adacore.com>
2191 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
2192 check right away so it does not get skipped for early returns, e.g.
2194 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
2195 left-side unless we really know the value is valid.
2197 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
2198 reformatting. Minor code reorganization. Add comments.
2200 2009-07-23 Robert Dewar <dewar@adacore.com>
2202 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
2205 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2207 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
2208 with test of coverage, to allow specific type objects in extended
2209 returns of class-wide functions. Remove now-unnecessary special-case
2210 tests that allowed this in certain cases of expanded extended returns.
2212 2009-07-23 Javier Miranda <miranda@adacore.com>
2214 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
2215 N_Null_Statements (for SCIL nodes).
2216 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
2217 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
2218 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
2220 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
2221 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
2222 associated with dispatching call.
2223 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
2224 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
2225 initialization of dispatch tables and initialization of tags.
2226 (New_Scil_Node): New function that creates a new SCIL node.
2227 (Build_Init_Procedure): Add generation of SCIL node associated with the
2228 initialization of tags done in the IP subprogram.
2230 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2232 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
2233 Warnings_Off, do not emit continuation messages.
2235 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
2238 2009-07-23 Emmanuel Briot <briot@adacore.com>
2240 * ali.adb: Minor comment update
2242 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
2244 * s-win32.ads (HANDLE): Define to be the same size as address type.
2247 2009-07-23 Olivier Hainque <hainque@adacore.com>
2249 * g-sse.ads: New file. Root of the SSE facilities trees, with
2250 general description and common declarations.
2251 * g-ssvety.ads: New file. Expose user level SSE vector types.
2252 * impunit.adb (Non_Imp_File_Names_95): Register new units.
2253 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
2254 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
2256 2009-07-23 Ben Brosgol <brosgol@adacore.com>
2258 * gnat_ugn.texi: Wordsmithing.
2260 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2262 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
2264 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
2266 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
2267 they are already of the base type of the index.
2269 2009-07-22 Brett Porter <porter@adacore.com>
2271 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
2273 2009-07-22 Robert Dewar <dewar@adacore.com>
2275 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
2276 * gnat_ugn.texi: Add documentation for -gnateS switch
2277 * ug_words: Add entry for -gnateS /SCO_OUTPUT
2278 * gcc-interface/Make-lang.in: Update dependencies.
2280 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
2281 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
2282 complete information for SCO input/output.
2284 2009-07-22 Sergey Rybin <rybin@adacore.com>
2286 * gnat_ugn.texi: Update doc for some gnatcheck rules.
2288 2009-07-22 Robert Dewar <dewar@adacore.com>
2290 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
2291 contents of SCO tables.
2292 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
2293 scos.adb, scos.ads: New files.
2294 * gcc-interface/Make-lang.in: Update dependencies.
2296 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
2297 fixes and reformatting.
2299 2009-07-22 Robert Dewar <dewar@adacore.com>
2301 * g-socket.ads: Minor reformatting
2303 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2305 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
2306 include the entity kind for following cases of unreferenced entities:
2307 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
2309 2009-07-22 Ed Falis <falis@adacore.com>
2311 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
2314 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2316 * adadecode.c: Make this file compilable outside of GCC.
2318 2009-07-22 Thomas Quinot <quinot@adacore.com>
2320 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
2321 (partially) default-initialized socket sets are handled properly by
2322 clearing their Set component.
2324 2009-07-22 Bob Duff <duff@adacore.com>
2326 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
2328 2009-07-22 Robert Dewar <dewar@adacore.com>
2330 * gnat_ugn.texi: Minor reformatting
2332 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2334 * errout.adb (Error_Msg): A style message within an instantiation
2335 should not be labelled as an error.
2337 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2339 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
2340 in initialization expression if function does not have convention Ada.
2342 2009-07-22 Sergey Rybin <rybin@adacore.com>
2344 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
2345 '--separate-label' to control label layout.
2347 2009-07-22 Robert Dewar <dewar@adacore.com>
2349 * exp_tss.ads, sem_eval.adb: Minor reformatting
2351 2009-07-22 Bob Duff <duff@adacore.com>
2353 * exp_dist.adb, exp_dist.ads: Update comments.
2355 2009-07-22 Brett Porter <porter@adacore.com>
2357 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
2359 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
2361 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2363 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
2364 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
2366 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
2367 used poor terminology.
2369 2009-07-22 Robert Dewar <dewar@adacore.com>
2371 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
2372 * sem_eval.adb, exp_tss.adb: Minor comment update.
2373 * stylesw.adb: Code clean up.
2375 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2377 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
2378 component size is an exact number of bytes, an array type can have a
2379 size clause that forces packing even though the array type itself is
2382 2009-07-22 Thomas Quinot <quinot@adacore.com>
2384 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
2385 if there is a previous entity with the same name in the scope, ignore
2386 it if it is the renaming declaration for a generic package introduced
2389 2009-07-22 Nicolas Roche <roche@adacore.com>
2391 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
2392 handler on x86_64 windows.
2394 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2396 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
2397 false positives in CodePeer, so ignore this pragma in this mode.
2399 2009-07-22 Thomas Quinot <quinot@adacore.com>
2401 * sem_util.adb, sem_ch10.adb: Minor reformatting
2403 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
2404 special handling for the case of no data received and Item'First =
2405 Stream_Element_Offset'First.
2406 (Last_Index): New subprogram factoring the above special handling
2407 over the various locations where it is required.
2409 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2411 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
2412 checks in CodePeer_Mode.
2413 * gcc-interface/Make-lang.in: Update dependencies.
2415 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2417 * sem_aggr.adb: Improve error message.
2419 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
2420 of an address representation clause.
2421 * freeze.adb (Freeze_Static_Object): An local imported object is legal
2422 if it has an address clause.
2424 2009-07-22 Thomas Quinot <quinot@adacore.com>
2426 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
2427 expression to insert an elab check using a conditional expression, be
2428 sure to carry the original list of interpretations to the new location.
2430 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2432 * gnat1drv.adb: Fix spelling error.
2434 2009-07-22 Javier Miranda <miranda@adacore.com>
2436 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
2437 at the library level and fix a hidden bug in its implementation: its
2438 functionality for renaming objects was broken because
2439 N_Object_Renaming_Declarations nodes are not a subclass of
2440 N_Declaration nodes (as documented in sinfo.ads).
2441 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
2442 check nodes that are actuals of generic instantiations.
2444 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2446 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
2447 context of a compilation unit is being analyzed. Used to detect
2448 circularities created by with_clauses that are not detected by the
2450 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
2451 analyzing the context of the current compilation unit, to detect
2452 possible circularities created by with_clauses.
2454 2009-07-22 Thomas Quinot <quinot@adacore.com>
2456 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
2458 2009-07-22 Robert Dewar <dewar@adacore.com>
2460 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
2461 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
2463 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
2464 * gnat_ugn.texi: Add documentation of -gnatyB
2465 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
2467 2009-07-22 Robert Dewar <dewar@adacore.com>
2469 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
2470 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
2471 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
2472 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
2473 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
2474 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
2475 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
2476 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
2477 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
2478 obey short-circuit style rule.
2480 2009-07-20 Bob Duff <duff@adacore.com>
2482 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
2483 instead of "and", because otherwise Parent_Last_Bit is read
2484 uninitialized in the case where it's not a tagged type, or the tagged
2485 parent does not have a complete rep clause.
2487 2009-07-20 Robert Dewar <dewar@adacore.com>
2489 * stylesw.ads: Minor documentation change.
2491 * types.ads: Minor reformatting
2493 2009-07-20 Javier Miranda <miranda@adacore.com>
2495 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
2496 generating the tag checks associated with dispatching calls.
2497 * exp_disp.adb (Apply_Access_Checks): New subprogram.
2498 (New_Value): This routine was previously local to expand dispatching
2499 calls but it is now used also by Apply_Access_Checks.
2500 (Expand_Dispatching_Calls): Cleanup code because the functionality of
2501 tag checks is now provided by Apply_Access_Checks.
2502 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
2503 case of dispatching calls.
2505 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2507 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
2510 2009-07-20 Gary Dismukes <dismukes@adacore.com>
2512 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
2513 for VMS, only rewrite the first component of the associated exception's
2514 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
2515 and third components that were being replaced with 'M' and 'S'.
2517 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2519 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
2520 Also do not generate error when parsing a spec in CodePeer mode.
2522 2009-07-20 Javier Miranda <miranda@adacore.com>
2524 * checks.adb (Apply_Access_Check): Avoid checks on availability of
2525 runtime function Offset_To_Top_Ptr when compiling with no tagged
2527 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
2528 adding code to the init proc when compiling for VM backends.
2530 2009-07-20 Vincent Celier <celier@adacore.com>
2532 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
2533 account switches -gnatw.?
2535 2009-07-20 Thomas Quinot <quinot@adacore.com>
2537 * sem_dist.adb, exp_dist.adb: Minor reformatting
2539 * Make-generated.in: New file.
2541 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
2543 2009-07-20 Javier Miranda <miranda@adacore.com>
2545 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
2547 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
2548 dynamically tagged expression.
2549 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
2551 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
2552 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2554 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2556 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
2557 CodePeer_Mode is set, to benefit from full front-end expansion
2560 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2562 * sem_res.adb: Add guard.
2564 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
2565 for possible attribute definition of External_Tag, in case clause
2566 appears in the private part of a package.
2568 2009-07-20 Jerome Guitton <guitton@adacore.com>
2570 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
2572 2009-07-20 Vadim Godunko <godunko@adacore.com>
2574 * a-coorma.adb: Minor reformatting.
2576 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2578 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
2579 access return types.
2580 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
2581 provide an itype reference to gigi to force elaboration of the subtype
2582 at the proper point.
2584 2009-07-20 Tristan Gingold <gingold@adacore.com>
2586 * g-expect.adb: Avoid closeing already closed handle.
2588 2009-07-20 Robert Dewar <dewar@adacore.com>
2590 * sprint.adb (Write_Subprogram_Name): New procedure to output
2591 subprogram name with possible preceding $ (replaces
2592 Note_Implicit_Run_Time_Call).
2594 2009-07-20 Robert Dewar <dewar@adacore.com>
2596 * vms_data.ads: Minor reformatting
2598 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
2599 applies to base type.
2600 (Parent_Subtype): Now allowed on record subtype, applies to base type
2601 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
2602 for case of fully repped tagged type.
2603 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
2604 tag save/restore for fully repped tagged type case.
2605 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
2606 * fe.h (Is_Fully_Repped_Tagged_Type): New function
2607 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
2608 overlap of tagged type components with parent type if parent type is
2610 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
2612 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
2614 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
2615 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
2617 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
2618 logical operators (AND/OR/XOR), not comparison operators.
2620 * sprint.ads: Minor reformatting
2622 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2624 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
2625 intrinsics, check that argument is a string literal, rather than
2626 checking for staticness.
2628 2009-07-20 Robert Dewar <dewar@adacore.com>
2630 * sem_ch13.adb: Minor reformatting
2632 * einfo.ads: Minor reformatting
2633 Component_Bit_Offset is no longer considered obsolescent
2635 2009-07-20 Nicolas Roche <roche@adacore.com>
2637 * a-calend.adb: Redefine time_t as signed integer with same size as
2639 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
2641 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
2644 2009-07-20 Javier Miranda <miranda@adacore.com>
2646 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
2647 constructors that have anonymous access type formals.
2649 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
2650 class-wide arguments in case of imported C++ subprograms.
2652 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
2654 2009-07-20 Sergey Rybin <rybin@adacore.com>
2656 * vms_data.ads: Update qualifiers.
2658 2009-07-20 Robert Dewar <dewar@adacore.com>
2660 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
2663 2009-07-17 Richard Guenther <rguenther@suse.de>
2666 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
2667 state. Remove unused parameter.
2668 (gnat_gimplify_function): Do not gimplify here.
2669 Fold into its only caller and remove.
2670 (gnat_builtin_function): Adjust for end_subprog_body signature change.
2671 (gnat_write_global_declarations): Also finalize the CU.
2672 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
2673 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
2674 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
2676 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
2678 2009-07-15 Arnaud Charlet <charlet@adacore.com>
2680 * gcc-interface/Make-lang.in: Update dependencies
2682 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
2684 2009-07-15 Robert Dewar <dewar@adacore.com>
2686 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
2687 N_Label. Remove SCO table entry for entry point (not used).
2689 * par_sco.ads: Remove SCO entry point type (not used)
2691 * switch.adb: Minor code clean up.
2693 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
2695 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
2697 2009-07-15 Thomas Quinot <quinot@adacore.com>
2699 * gnatls.adb: Minor reformatting
2701 * gnatcmd.adb: Minor code reorganization
2703 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2705 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
2706 determine whether a component of a private type has a composite type.
2708 2009-07-15 Robert Dewar <dewar@adacore.com>
2710 * sem_ch10.adb: Minor reformatting throughout
2711 Minor code reorganization (put nested subprograms in alpha order)
2713 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2715 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
2716 when compiling a call to a protected function that returns a controlled
2719 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
2721 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
2722 one. Add task locking and unlocking around the critical region which
2723 mentions localtime_r and global variable timezone for various targets.
2724 Comment reformatting.
2726 2009-07-15 Robert Dewar <dewar@adacore.com>
2728 * gnat_rm.texi: Document s-ststop.ads
2730 * impunit.ad: (Map_Array): New table of alternative names
2731 (Get_Kind_Of_Unit): Return possible suggested alternative name
2733 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
2736 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
2737 alternative unit if an implementation unit is with'ed.
2739 2009-07-15 Robert Dewar <dewar@adacore.com>
2741 * gnat_ugn.texi: Minor updates.
2743 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
2745 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2747 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
2748 conditions of a derived boolean type.
2751 2009-07-15 Robert Dewar <dewar@adacore.com>
2753 * gnat1drv.adb: Initialize SCO tables
2755 * par-load.adb: Call SCO_Record for main unit spec
2757 * par.adb: Make call to SCO_Record for main unit
2759 * par_sco.adb (Unit_Table): Change format to facilitate sort
2760 (Process_Decisions): New procedure with list argument
2761 (Traverse_Generic_Package_Declaration): New procedure
2762 (Initialize): New procedure, replaces Init
2763 (SCO_Output): Sort unit table before output
2764 (SCO_Record): Avoid duplications
2765 (SCO_Record): Handle remaining cases of units
2766 (Traverse_Declarations_Or_Statements): Handle generics
2768 * par_sco.ads (Initialize): New peocedure (replaces Init)
2770 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
2773 2009-07-15 Arnaud Charlet <charlet@adacore.com>
2775 * debug.adb: Add -gnatd.J switch for now to support scil generation in
2776 parallel. Add missing doc for -gnatd.I and -gnatd.O
2778 2009-07-15 Robert Dewar <dewar@adacore.com>
2780 * lib-load.adb: Minor reformatting
2782 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
2784 2009-07-15 Robert Dewar <dewar@adacore.com>
2786 * par.adb: Minor reformatting
2787 Add ??? comment for possible bad comment
2789 * par-ch10.adb: Minor reformatting
2791 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2793 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
2794 is a literal of a derived boolean type, it appears as an unchecked
2795 conversion. Retrieve actual value from expression of conversion.
2797 2009-07-15 Robert Dewar <dewar@adacore.com>
2799 * sem_ch3.adb: Minor reformatting
2801 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
2802 lib-writ.ads, lib-writ.adb: Minor reformatting.
2803 Fix problem with SCO format in ALI files
2805 2009-07-15 Robert Dewar <dewar@adacore.com>
2807 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2808 exp_aggr.adb: Minor code reorganization (better calling sequence for
2811 2009-07-15 Thomas Quinot <quinot@adacore.com>
2813 * opt.ads: Minor comment edits
2815 2009-07-15 Tristan Gingold <gingold@adacore.com>
2817 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
2820 2009-07-15 Robert Dewar <dewar@adacore.com>
2822 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
2825 * lib-writ.ads: Document addition of SCO lines to ALI file
2827 * par_sco.ads, par_sco.adb: New files.
2829 * opt.ads (Generate_SCO): New switch
2831 * par.adb (Par): Call SCO_Record to record SCO information
2833 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
2835 * switch-c.adb: Recognize -gnateS to generate SCO information
2837 * usage.adb: Add line for -gnateS
2839 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
2841 2009-07-15 Robert Dewar <dewar@adacore.com>
2843 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
2846 2009-07-15 Thomas Quinot <quinot@adacore.com>
2848 * g-socthi-mingw.adb: Minor comment addition
2850 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
2852 2009-07-15 Robert Dewar <dewar@adacore.com>
2854 * g-htable.ads, s-htable.ads: Minor reformatting
2856 2009-07-15 Robert Dewar <dewar@adacore.com>
2858 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
2859 new switch -gnatw.g.
2860 (Set_GNAT_Mode_Warnings): New procedure.
2862 * lib-xref.adb: Minor reformatting
2864 2009-07-15 Robert Dewar <dewar@adacore.com>
2866 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
2867 Minor code reorganization
2869 2009-07-14 Taras Glek <tglek@mozilla.com>
2870 Rafael Espindola <espindola@google.com>
2872 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
2873 installing plugin headers.
2875 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2877 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2878 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
2879 and link it to the expression whose value it captures.
2881 2009-07-13 Robert Dewar <dewar@adacore.com>
2883 * output.adb: Minor comment addition for last change
2885 * sinfo.ads: Minor reformatting
2887 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
2889 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
2890 spawn failed like on all other targets.
2892 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2894 * exp_ch7.adb: Indicate origin of temporary for transient expression.
2896 2009-07-13 Thomas Quinot <quinot@adacore.com>
2898 * s-oscons-tmplt.c: Add comment.
2900 2009-07-13 Robert Dewar <dewar@adacore.com>
2902 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
2903 reformatting. Minor code reorganization (add 9 argument version of
2906 * impunit.adb: Remove s-os_lib from list of system extensions.
2908 * sem_util.ads: Minor reformatting
2910 * output.adb: Add warnings off/on around System.OS_Lib.
2912 2009-07-13 Bob Duff <duff@adacore.com>
2914 * exp_dist.adb: Minor comment updates.
2916 2009-07-13 Gary Dismukes <dismukes@adacore.com>
2918 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
2919 several references to CodePeer.
2921 2009-07-13 Bob Duff <duff@adacore.com>
2923 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
2924 Build_TypeCode_Function_All): Do not recurse if the type is the base
2927 2009-07-13 Robert Dewar <dewar@adacore.com>
2929 * exp_ch4.adb: Minor comment change
2931 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2933 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
2934 type of iteration, to prevent spurious warnings.
2936 2009-07-13 Nicolas Roche <roche@adacore.com>
2938 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
2941 2009-07-13 Arnaud Charlet <charlet@adacore.com>
2943 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
2944 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
2946 (CodePeer_Mode): New -gnatC switch.
2947 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
2950 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
2952 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
2953 integer bound forces the check if it is compared to its subtype range.
2955 2009-07-13 Robert Dewar <dewar@adacore.com>
2957 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
2958 prj-strt.ads: Minor reformatting
2960 2009-07-13 Thomas Quinot <quinot@adacore.com>
2962 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
2963 set the type of the From_Any call to the base type.
2965 2009-07-13 Doug Rupp <rupp@adacore.com>
2967 * symbols-processing-vms-ia64.adb (Process): Add variables and
2968 constants to retrieve and check for symbol visibility.
2970 2009-07-13 Javier Miranda <miranda@adacore.com>
2972 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
2973 the identical type we remove the conversion completely because
2976 2009-07-13 Emmanuel Briot <briot@adacore.com>
2978 * prj-err.adb (Error_Msg): One more case where a message should be
2979 considered as a warning.
2981 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
2983 2009-07-13 Thomas Quinot <quinot@adacore.com>
2985 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
2986 calling stubs in the (library level) scope of the RCI locator, where it
2987 is attached, not in the caller's scope.
2989 2009-07-13 Javier Miranda <miranda@adacore.com>
2991 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
2992 interface object declarations we delay the generation of the equivalent
2993 record type declarations until its expansion because there are cases in
2994 which they are not required.
2996 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
2998 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
2999 addition of assertion.
3001 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
3002 interface types require no equivalent constrained type declarations
3003 because the expanded code only references the tag component associated
3005 (Find_Interface_Tag): Improve management of interfaces that are
3006 ancestors of tagged types.
3008 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
3009 class-wide object declarations to add missing support to statically
3010 displace the pointer to the object to reference the tag component
3011 associated with the interface.
3013 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
3014 auxiliary types associated with user-defined dispatching calls if the
3015 type has no user-defined primitives.
3017 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
3019 * mingw32.h: Make it explicit that we need XP or later.
3021 * initialize.c: Remove useless extern symbol declaration.
3023 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
3024 code reuse in expect.c.
3026 * adaint.c: Changes throughout the Windows section to redesign storage
3027 of the child process list and the process identification.
3029 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
3030 for interfacing, fix errors.
3031 (__gnat_expect_portable_execvp): use function in adaint.c
3033 2009-07-13 Emmanuel Briot <briot@adacore.com>
3035 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
3036 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
3037 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
3038 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
3039 (Prj.Nmsc.Report_Error): Removed, no longer needed.
3040 Always use Prj.Err.Report_Message.
3042 2009-07-13 Robert Dewar <dewar@adacore.com>
3044 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
3047 2009-07-13 Robert Dewar <dewar@adacore.com>
3049 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3050 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
3052 2009-07-13 Emmanuel Briot <briot@adacore.com>
3054 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
3055 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
3056 Ada_Prj_Include_File_Set): Removed, since not needed
3059 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3061 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
3062 Analyze_Membership_Op.
3064 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
3065 Resolve_Membership_Op.
3067 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
3070 2009-07-13 Robert Dewar <dewar@adacore.com>
3072 * clean.adb: Minor reformattting
3074 2009-07-13 Emmanuel Briot <briot@adacore.com>
3076 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
3077 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
3078 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
3079 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
3080 and attributes in a project tree.
3081 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
3082 Remove last remaining mode-specific code (ada_only or
3083 multi_language). This was duplicating code
3084 (Get_Mode, Set_Mode): removed, no longer used.
3085 (Initialize_Project_Path): all tools will now take into account both
3086 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
3087 Remove some global variables and subprograms no longer used
3088 Make temporary files tree-specific, to avoid interferences between
3089 trees loaded in memory at the same time.
3090 (Prj.Delete_Temporary_File): new subprogram
3091 (Object_Paths, Source_Paths): fields no longer stored in the project
3092 tree, since they are only needed locally in Set_Ada_Paths.
3093 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
3095 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
3096 by local variables in the appropriate subprograms
3097 (Has_Foreign_Sources): removed.
3099 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
3101 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3103 * gnat1drv.adb (Adjust_Global_Switches): No longer set
3104 Back_Annotate_Rep_Info in inspector mode.
3105 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
3107 * opt.ads: Update comment.
3109 2009-07-13 Robert Dewar <dewar@adacore.com>
3111 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
3112 prj.ads: Minor reformatting and code reorganization.
3114 * par-ch3.adb (Check_Restricted_Expression): New procedure
3116 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3118 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
3119 attribute into a call of the corresponding suprogram, create extra
3120 formals for the subprogram, because it may be a renaming whose
3121 analysis does not create extra formals.
3123 2009-07-13 Emmanuel Briot <briot@adacore.com>
3125 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3126 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3127 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
3128 prj-tree.ads: Minor reformatting.
3129 (Processing_Flags): new record to encapsulate the set of common
3130 parameters to several subprograms in the project manager.
3131 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
3132 Remove the need for the Current_Dir parameter in subprograms.
3133 (Look_For_Sources): minor refactoring, now that we no longer need to
3134 share subprograms between the two Ada_Only and Multi_Language modes
3135 (Processing_Flags): New field Error_On_Unknown_Language.
3136 Merge tests for library project between gnatmake and gprbuild.
3138 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3140 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
3143 2009-07-13 Emmanuel Briot <briot@adacore.com>
3145 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
3148 2009-07-13 Thomas Quinot <quinot@adacore.com>
3150 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
3151 Write,Input,Output} from private view to full view.
3153 * sem_type.adb, sem_type.ads: Minor reformatting
3155 2009-07-13 Nicolas Setton <setton@adacore.com>
3157 * exp_dbug.ads: Add documentation note on the utility of
3158 DW_AT_GNAT_encoding for IDEs.
3160 2009-07-13 Robert Dewar <dewar@adacore.com>
3162 * g-socthi-vxworks.adb: Minor reformatting
3164 * gnatcmd.adb: Minor reformatting
3166 2009-07-13 Thomas Quinot <quinot@adacore.com>
3168 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
3169 removed, not used anymore.
3170 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
3171 New subprogram, implements copy of an Any value into a limited object.
3172 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
3173 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
3174 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
3175 of parameters of a limited type, use the above new subprogram.
3177 2009-07-13 Emmanuel Briot <briot@adacore.com>
3179 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
3181 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
3183 (Error_Report): Remove global variable, replaced by parameters.
3185 2009-07-13 Thomas Quinot <quinot@adacore.com>
3187 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
3188 standard sendto(2) interface for connected sockets (passing a null
3189 destination address). Use send(2) instead for that case.
3191 2009-07-13 Pascal Obry <obry@adacore.com>
3193 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
3195 2009-07-13 Emmanuel Briot <briot@adacore.com>
3197 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3198 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
3199 variables and tables in prj-nmsc.adb.
3200 (Tree_Processing_Data): Renames Processing_Data, some new fields added
3201 (Project_Processing_Data): New record
3202 Simplify/unify check for missing sources.
3204 2009-07-13 Emmanuel Briot <briot@adacore.com>
3206 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
3207 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3208 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
3209 prj-tree.ads (Immediate_Directory_Of): Removed.
3210 (Prj.Pars): Now parse the project simulating a default config file.
3211 (Add_Default_GNAT_Naming_Scheme): New subprogram
3212 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
3213 Remove gnatmake-specific parsing of source files.
3214 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
3215 the error itself to provide more precise diagnostics.
3216 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
3217 a unit belongs to several projects.
3218 (Copy_Interface_Sources): Search the full path of files to copy in the
3219 list of sources of the application rather than in the list of units.
3220 (Parse_Project_And_Apply_Config): Do not reset the name of the main
3222 (Check_File): Use htables to find out whether a source is duplicated.
3223 (Add_Source): check whether the source or unit were already seen earlier
3225 * gcc-interface/Makefile.in: Update gnatmake dependencies.
3227 2009-07-13 Robert Dewar <dewar@adacore.com>
3229 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
3230 expression if extensions permitted.
3232 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
3234 (P_Relation): Use P_Membership_Test
3236 * par.adb (P_Membership_Test): New procedure (implement membership set
3239 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
3241 * sprint.adb (Sprint_Node): Handle set form for membership tests.
3243 2009-07-13 Thomas Quinot <quinot@adacore.com>
3245 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
3246 Do not attempt to generate stubs for predefined primitives of
3247 synchronized interfaces.
3248 (Add_Stub_Type): Factor some code from the PCS-specific variants of
3251 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3253 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
3254 Controlling_Result flag from the operation they override.
3256 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3258 * gcc-interface/Make-lang.in: Update dependencies
3260 2009-07-13 Robert Dewar <dewar@adacore.com>
3262 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
3263 details on unsupported constructs.
3265 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
3268 * s-trafor-default.adb: Correct some warnings
3270 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
3271 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
3274 * par-ch4.adb (Conditional_Expression): Capture proper location for
3275 conditional expression, should point to IF.
3277 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
3278 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
3279 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
3280 reorganization (use conditional expressions).
3282 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3284 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
3285 build-in-place function that returns an inherently limited type (not
3286 just a task type) create proper object declaration so that extra
3287 build-in-place actuals are properly added to the call.
3289 2009-07-13 Robert Dewar <dewar@adacore.com>
3291 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
3293 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
3295 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
3297 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
3298 Warn_On_Suspicious_Modulus_Value.
3300 * ug_words: Add entries for -gnatw.m/-gnatw.M.
3302 * usage.adb: Add lines for -gnatw.m/.M switches.
3304 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
3306 2009-07-13 Javier Miranda <miranda@adacore.com>
3308 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
3309 reading the Is_Interface attribute of the dispatching type.
3311 2009-07-13 Robert Dewar <dewar@adacore.com>
3313 * a-convec.adb: Minor code reorganization (use conditional expressions)
3315 2009-07-13 Robert Dewar <dewar@adacore.com>
3317 * freeze.adb (Check_Suspicious_Modulus): New procedure.
3319 2009-07-13 Robert Dewar <dewar@adacore.com>
3321 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
3324 * par-ch4.adb: Minor reformatting
3326 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3328 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
3329 => Is_Atomic_Aggregate
3331 2009-07-13 Emmanuel Briot <briot@adacore.com>
3333 * prj-nmsc.adb: Avoid traversing the list of source files if
3334 we have already processed all locally removed files.
3336 2009-07-13 Jose Ruiz <ruiz@adacore.com>
3338 * gnat_ugn.texi: Fix typo.
3340 2009-07-13 Robert Dewar <dewar@adacore.com>
3342 * freeze.adb: Minor reformatting
3343 Minor code reorganization (use Nkind_In)
3345 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
3347 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3349 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
3350 local variable and do not test it in Compile_Time_Bad_Alignment.
3351 Do not issue size or alignment warnings for the X'Address form.
3352 * sem_util.ads (Find_Overlaid_Object): Delete.
3353 (Find_Overlaid_Entity): New procedure.
3354 * sem_util.adb (Find_Overlaid_Object): Rename to...
3355 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
3356 whether the address is offseted within the overlaid entity.
3357 (Has_Compatible_Alignment): Track the offset globally instead of
3358 passing it to Check_Offset. For an indexed component, compute the
3359 full offset when possible. If the resulting offset is zero, only
3361 (Check_Offset): Delete.
3362 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
3363 (Address_Aliased_Entity): Delete.
3364 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
3365 Find_Overlaid_Entity to find the overlaid entity and the offset.
3366 Adjust throughout for above change.
3367 (Validate_Address_Clauses): Always use attributes of entities, not of
3368 their type. Tweak message for warning. Call Has_Compatible_Alignment
3369 if the address is offseted to warn about incompatible alignments.
3370 * gcc-interface/gigi.h (annotate_object): Declare.
3371 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
3372 entity. Call annotate_object instead of annotating manually objects.
3373 (annotate_object): New function.
3374 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
3377 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3379 * gcc-interface/ada-tree.h: Minor reorganization.
3380 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
3381 (gnat_print_type): Likewise.
3383 2009-07-11 Thomas Quinot <quinot@adacore.com>
3385 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
3388 * exp_ch6.adb: Minor reformatting
3390 2009-07-11 Ed Schonberg <schonberg@adacore.com>
3392 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
3393 account possible type qualification to determine whether aggregate
3394 needs a target temporary to respect atomic type or object.
3396 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
3397 Expand_Atomic_Aggregate.
3399 2009-07-11 Emmanuel Briot <briot@adacore.com>
3401 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
3403 (Excluded_Sources_Htable): No longer a global table.
3404 Change error message to indicate which files are illegal in the list
3405 of excluded files, as opposed to only the location in the project
3407 (Find_Source): New subprogram.
3409 2009-07-10 Thomas Quinot <quinot@adacore.com>
3411 * exp_ch7.adb: Update comments.
3413 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3415 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
3416 clause if -gnatI is set instead of crashing.
3418 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3420 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
3421 Additional work to remove redundant successive raise statements, in
3422 this case access checks.
3424 2009-07-10 Vincent Celier <celier@adacore.com>
3426 * make.adb (Compile): Always create a deep copy of the mapping file
3427 argument (-gnatem=...) as it may be deallocate/reallocate by
3428 Normalize_Arguments.
3430 2009-07-10 Javier Miranda <miranda@adacore.com>
3432 * einfo.adb (Directly_Designated_Type): Add assertion.
3434 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
3435 access types before using attribute Directly_Designated_Type.
3437 2009-07-10 Emmanuel Briot <briot@adacore.com>
3439 * prj.ads: Minor typo fix
3441 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3443 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
3446 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
3447 subprogram is a function call, resolve properly, to ensure that extra
3448 actuals are added as needed.
3450 2009-07-10 Thomas Quinot <quinot@adacore.com>
3452 * sem_aggr.adb: Minor comments editing
3454 * exp_tss.adb, exp_ch3.adb: Minor reformatting
3456 2009-07-10 Robert Dewar <dewar@adacore.com>
3458 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
3460 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
3463 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
3464 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
3465 case of conditional expressions that may not be elaborated.
3467 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
3468 conditional expression where we may not execute then then or else
3471 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3473 * i-cexten.ads (bool): New type.
3475 2009-07-10 Robert Dewar <dewar@adacore.com>
3477 * sinfo.ads (N_Short_Circuit): New definition
3479 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
3480 treepr.adb: Minor code reorganization (use N_Short_Circuit)
3482 2009-07-10 Javier Miranda <miranda@adacore.com>
3484 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
3485 non-tagged record types.
3488 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
3489 with non-tagged types. Required to import C++ classes that have no
3491 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
3492 returning non-tagged types. For backward compatibility, if the
3493 constructor returns a class wide type we internally change the
3494 returned type to the corresponding non class-wide type.
3497 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
3498 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
3499 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
3500 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
3503 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
3505 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
3507 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
3509 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
3511 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
3514 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
3517 (pragma CPP_Class): Document that it can be used now with non-tagged
3519 (pragma CPP_Constructor): Document that it can be used now with
3520 functions returning specific types. For backward compatibility
3521 we also support functions returning class-wide types.
3524 (Interfacing with C++ constructors): Update the examples to incorporate
3525 the new syntax in which the functions used to import C++ constructors
3526 return specific types.
3527 (Interfacing with C++ at the Class Level): Update the examples to
3528 incorporate the new syntax in which the functions used to import
3529 C++ constructors return specific types.
3531 2009-07-10 Thomas Quinot <quinot@adacore.com>
3533 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
3534 Make_Disp_Conditional_Select_Body,
3535 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
3536 interface nor a concurrent type, the primitive body is empty. Generate
3537 a null statement so that it remains well formed.
3539 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3541 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
3542 replace references to them in defaulted component expressions with
3543 references to the values of the discriminants of the target object.
3545 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3547 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
3548 pragma, to capture global references if the context is generic.
3550 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
3551 appears within the initialization procedure for the corresponding
3552 record, replace it with the proper discriminal.
3554 2009-07-10 Vincent Celier <celier@adacore.com>
3556 * make.adb: Do not include object directories or library ALI
3557 directories of library projects in the object path.
3559 2009-07-10 Javier Miranda <miranda@adacore.com>
3561 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
3562 Typ argument to ensure proper management of access types.
3564 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3566 * exp_ch7.adb (Build_Final_List): If the list is being built for a
3567 Taft-Amendment type, place the finalization list in the package body,
3568 to ensure that the tree for the spec is identical whenever it is
3571 2009-07-10 Javier Miranda <miranda@adacore.com>
3573 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
3574 inheriting attributes from a private Parent_Base.
3576 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3578 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
3579 statements with the same condition.
3581 2009-07-10 Robert Dewar <dewar@adacore.com>
3583 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
3585 2009-07-09 Tom Tromey <tromey@redhat.com>
3587 * raise-gcc.c: Include dwarf2h (unconditionally).
3589 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3591 * sem_ch10.adb (Install_Context): If the unit is a package body,
3592 install the private with_clauses of the corresponding package
3595 2009-07-09 Robert Dewar <dewar@adacore.com>
3597 * checks.adb: Minor reformatting
3599 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3601 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3604 2009-07-09 Thomas Quinot <quinot@adacore.com>
3606 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3607 Do not warn for a constant overlaying any constant object
3609 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3611 * sem_ch10.adb (Install_Context): If the unit is a package body,
3612 install the private with_clauses of the corresponding package
3615 2009-07-09 Robert Dewar <dewar@adacore.com>
3617 * checks.adb: Minor reformatting
3619 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3621 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3624 2009-07-09 Thomas Quinot <quinot@adacore.com>
3626 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3627 Do not warn for a constant overlaying any constant object
3629 2009-07-09 Arnaud Charlet <charlet@adacore.com>
3631 * gcc-interface/Make-lang.in: Update dependencies
3633 2009-07-09 Thomas Quinot <quinot@adacore.com>
3635 * g-socket.adb (Check_Selector): Do not create local copies of the
3636 socket sets on the stack.
3638 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3640 * gnat_ugn.texi: Add missing VMS translations.
3642 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3644 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
3645 condition, to prevent generation of visible code during expansion,
3646 when Check is not enabled.
3648 2009-07-09 Gary Dismukes <dismukes@adacore.com>
3650 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
3651 the check gets registered for any available local handler
3654 * sem_util.adb: Add with and use of Exp_Ch11.
3655 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
3656 that the check gets registered for any available local handler.
3658 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
3661 2009-07-09 Steve Baird <baird@adacore.com>
3663 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
3665 (Expand_N_Exception_Declaration): Fix handling of exceptions
3666 declared in a subprogram.
3668 2009-07-09 Emmanuel Briot <briot@adacore.com>
3670 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
3673 2009-07-09 Thomas Quinot <quinot@adacore.com>
3675 * freeze.adb: Minor reformatting
3677 * exp_ch3.adb: Minor comment fix.
3679 * sinfo.ads: Minor comment fix
3681 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3683 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
3685 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3687 * freeze.adb (Freeze_Expression): If the expression is the name of a
3688 function in a call, and the function has not been frozen yet, create
3689 extra formals for it to ensure that the proper actuals are created
3690 when expanding the call.
3692 2009-07-09 Emmanuel Briot <briot@adacore.com>
3694 * prj-pp.adb (Print): Fix handling of source index when set on a
3697 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3699 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
3700 a temporary to the source expression whose value it captures.
3702 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
3704 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3706 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
3709 2009-07-07 Gary Dismukes <dismukes@adacore.com>
3711 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
3712 parameters when the subtype of the actual is not known to be a subrange
3713 of the formal's subtype.
3714 (Expand_Call): Generate a range check only in the E_In_parameter case
3715 (in out parameter range checks are now handled in Expand_Actuals).
3717 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
3720 2009-07-07 Robert Dewar <dewar@adacore.com>
3722 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
3724 2009-07-07 Javier Miranda <miranda@adacore.com>
3726 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
3727 designated type comes from a limited views.
3729 2009-07-07 Emmanuel Briot <briot@adacore.com>
3731 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
3732 locally removed files that are later made visible again in an importing
3735 2009-07-07 Robert Dewar <dewar@adacore.com>
3737 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
3739 2009-07-07 Sergey Rybin <rybin@adacore.com>
3741 * gnat_ugn.texi: Add an example to the description of gnatcheck
3742 'Style_Checks' rule option.
3744 2009-07-07 Tristan Gingold <gingold@adacore.com>
3746 * seh_init.c: Fix inline assembly statement in seh_init.c
3748 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3750 * sem_warn.adb (Check_References): Do not emit warnings on formals of
3751 an entry body. Only the formals of the entry declaration are traced.
3753 2009-07-07 Robert Dewar <dewar@adacore.com>
3755 * s-osprim-mingw.adb: Minor code reorganization
3757 2009-07-07 Robert Dewar <dewar@adacore.com>
3759 * prj-nmsc.adb: Minor reformatting
3761 2009-07-07 Pascal Obry <obry@adacore.com>
3763 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
3764 cases where Pattern is longer than Source.
3766 2009-07-07 Pascal Obry <obry@adacore.com>
3768 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
3770 2009-07-07 Emmanuel Briot <briot@adacore.com>
3772 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
3775 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3777 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
3778 primitive operations, in case one of them is called in the
3779 initialization procedure for the type.
3781 2009-07-07 Robert Dewar <dewar@adacore.com>
3783 * a-calend.adb: Minor code reorganization (use conditional expressions)
3785 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
3786 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
3787 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
3788 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
3789 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
3790 g-comlin.adb, exp_ch11.adb: Minor reformatting.
3792 2009-07-07 Gary Dismukes <dismukes@adacore.com>
3794 * checks.adb (Generate_Range_Check): Replace type conversions with
3795 unchecked conversions to support the case of performing range checks
3796 on Enum'Val (permits integer values to be converted to enumeration).
3798 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
3799 Attribute_Succ): Set Do_Range_Check to False before calling
3800 Expand_Pred_Succ, to prevent gigi from generating any range checks.
3801 (Expand_N_Attribute_Reference, case Attribute_Val):
3802 Generate a range check when needed (and set Do_Range_Check to False).
3804 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
3805 scalar object initialization if needed.
3807 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
3808 when needed on scalar allocators.
3809 (Expand_N_Qualified_Expression): Generate range check when needed.
3810 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
3811 Checks on slice ranges handled in Resolve_Slice.
3813 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
3814 when needed, for all scalar assignments, not just discrete.
3815 (Expand_Simple_Function_Return): Resolve the conversion created for a
3816 scalar function return so that the conversion will get expanded to
3817 generate a possible constraint check.
3819 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
3820 in out scalar actuals when subtypes don't match, to ensure generation
3821 of return checks (and set Do_Range_Check to False).
3822 (Expand_Call): Uncomment code to perform range checks, but make it apply
3823 only to in and in out parameters (checks on parameter returns are
3824 handled in Expand_Actuals). If a scalar actual for a call to a derived
3825 subprogram is marked as needing a range check, peform it here (and set
3826 Do_Range_Check to False).
3828 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
3829 range check on scalar component associations when needed.
3831 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
3832 infinities but the second type does not, as these aren't compatible
3833 floating-point types.
3835 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
3836 slice is itself a slice, pick up the Etype of the prefix. This handles
3837 the case where the prefix was an Image attribute expanded to a slice,
3838 and ensures that we get the subtype with the slice constraint rather
3839 than the unconstrained subbtype of the 'Image.
3841 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3843 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
3844 overloaded expressions in a conditional expressions.
3846 * sem_res.adb (Resolve): Handle properly overloaded conditional
3849 2009-07-07 Robert Dewar <dewar@adacore.com>
3851 * scng.adb: Minor reformattting
3853 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
3854 association allows conditional expression without parens.
3856 * par-ch4.adb (P_Name): Attribute arguments can be conditional
3857 expressions without enclosing parentheses, and also as parameters,
3858 indexing expressions etc.
3859 (P_Conditional_Expression): New procedure
3860 (P_Expression_If_OK): New procedure
3862 * par.adb (P_Conditional_Expression): New procedure
3863 (P_Expression_If_OK): New procedure
3865 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
3866 form of conditional expression.
3868 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
3869 missing True argument if ELSE argument missing.
3871 * sinfo.adb (Is_Elsif): New flag
3873 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
3874 part of the language, and the documentation is modified accordingly.
3875 (Is_Elsif): New flag
3877 2009-07-06 Olivier Hainque <hainque@adacore.com>
3879 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
3880 setjmp_longjmp): Attach the exception propagation reraise fallback
3881 to the sequence end label location when we have it.
3883 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3886 * init.c (APPLE): Include <mach/mach_init.h>.
3887 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
3889 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
3891 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
3892 (SET_DECL_LANG_SPECIFIC): Likewise.
3893 (TYPE_RM_VALUE): New macro.
3894 (SET_TYPE_RM_VALUE): Likewise.
3895 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
3896 (TYPE_RM_MIN_VALUE): Likewise.
3897 (TYPE_RM_MAX_VALUE): Likewise.
3898 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
3899 (SET_TYPE_RM_MIN_VALUE): Likewise.
3900 (SET_TYPE_RM_MAX_VALUE): Likewise.
3901 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
3903 2009-07-04 Laurent GUERBY <laurent@guerby.net>
3906 * tracebak.c (__gnat_backtrace): Fix old-style definition.
3908 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3910 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
3912 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3915 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
3918 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
3920 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
3922 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
3924 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
3925 the type of the left operand if it pads a self-referential type when
3926 the right operand is a constructor.
3928 * gcc-interface/lang-specs.h: Fix copyright date.
3930 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
3932 * gcc-interface/decl.c: Include tree-inline.h.
3933 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
3934 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
3935 * gcc-interface/utils2.c: Include tree-inline.
3936 (known_alignment) <CALL_EXPR>: Likewise.
3938 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
3940 * raise-gcc.c: Include dwarf2.h conditionally.
3942 2009-06-29 Tom Tromey <tromey@redhat.com>
3944 * raise-gcc.c: Include elf/dwarf2.h.
3946 2009-06-27 Laurent GUERBY <laurent@guerby.net>
3948 * tb-gcc.c (trace_callback): Add casts to silence warning.
3950 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
3952 * tb-gcc.c: Fix copyright notice.
3954 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
3956 * init.c (__gnat_set_globals): Add prototype.
3957 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
3958 (__gnat_sals_init_using_constructors): Likewise.
3959 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
3960 (get_block_jmpbuf_decl): Likewise.
3961 (gnat_poplevel): Likewise.
3962 (merge_sizes): Rename local variable.
3963 (copy_type): Likewise.
3964 (build_vms_descriptor32): Likewise.
3965 (build_vms_descriptor): Likewise.
3966 (convert_vms_descriptor64): Likewise.
3967 (convert_vms_descriptor32): Likewise.
3968 (convert_to_fat_pointer): Likewise.
3969 (maybe_unconstrained_array): Likewise.
3970 (def_fn_type): Use promoted type with va_arg.
3971 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
3972 (substitute_in_type): Rename local variable.
3973 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
3975 2009-06-26 Laurent GUERBY <laurent@guerby.net>
3977 * tb-gcc.c (trace_callback): Use char* instead of void*.
3978 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
3979 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
3980 (Attribute_to_gnu): Adjust for above change.
3981 (Subprogram_Body_to_gnu): Likewise.
3982 * gcc-interface/utils.c (merge_sizes): Rename local variable.
3983 (copy_type): Likewise.
3984 (build_vms_descriptor32): Likewise.
3985 (build_vms_descriptor): Likewise.
3986 (convert_vms_descriptor64): Likewise.
3987 (convert_vms_descriptor32): Likewise.
3988 (convert_to_fat_pointer): Likewise.
3989 (maybe_unconstrained_array): Likewise.
3990 * gcc-interface/decl.c (substitute_in_type): Likewise.
3992 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
3994 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
3995 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
3996 of the upper bound of the index types.
3998 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4000 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
4001 out common predicate. Use the maximum to compute the upper bound of
4002 the index type only when it is not wider than sizetype. Perform the
4003 comparison in the index type for the generic expression. Use real
4004 precision to decide whether to generate special types for debugging
4007 2009-06-26 Matthew Gingell <gingell@adacore.com>
4009 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
4011 2009-06-26 Vincent Celier <celier@adacore.com>
4013 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
4016 2009-06-26 Robert Dewar <dewar@adacore.com>
4018 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
4020 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4022 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
4023 correct arguments to create_field_decl. Remove redundant iteration.
4024 Rewrite computation of the maximum size.
4025 <E_Array_Subtype>: Reorder and simplify handling of special cases.
4026 Rewrite computation of the maximum size. Use consistent naming.
4027 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
4028 comparison order for consistency. Use generic integer node to
4029 build the operator and fold the result.
4031 2009-06-25 Vincent Celier <celier@adacore.com>
4033 * vms_data.ads: Minor comment change
4035 2009-06-25 Gary Dismukes <dismukes@adacore.com>
4037 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
4038 assignment statement to targeting a caller-provided object when the
4039 result type is an interface type.
4041 * exp_ch6.adb (Expand_Call): Remove redundant test of
4042 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
4043 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
4045 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
4046 to OK_For_Limited_Init.
4048 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
4049 condition so that True is returned for all limited interfaces, not
4050 just synchronized ones. Ignore components of an interface type when
4051 checking for limited components (such a component can be a parent
4054 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
4055 (OK_For_Limited_Init): Add type parameter.
4057 * sem_ch3.adb (Check_Initialization): Add type in call to
4058 OK_For_Limited_Init.
4059 (OK_For_Limited_Init): Add new type param in call to
4060 OK_For_Limited_Init_In_05.
4061 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
4062 nonlimited type when the context type is a limited interface. Add type
4065 * sem_ch4.adb (Analyze_Allocator): Add type in call to
4066 OK_For_Limited_Init.
4068 * sem_ch6.adb (Check_Limited_Return): Add type in call to
4069 OK_For_Limited_Init.
4071 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
4072 OK_For_Limited_Init.
4073 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
4075 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
4076 class-wide interface, get the base type before applying Etype, in order
4077 to account for class-wide subtypes.
4079 2009-06-25 Emmanuel Briot <briot@adacore.com>
4081 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
4082 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
4083 between gnatmake and gprbuild.
4084 (Naming_Data): Removed, no longer used
4085 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
4086 needed locally in one subprogram, no need to store forever in the
4088 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
4090 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
4091 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
4092 Spec_Suffix_Id_Of): removed, no longer used.
4094 2009-06-25 Javier Miranda <miranda@adacore.com>
4096 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
4097 types on qualified expression in calls to imported C++ constructors.
4099 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
4100 imported C++ constructors.
4102 2009-06-25 Sergey Rybin <rybin@adacore.com>
4104 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
4106 2009-06-25 Vincent Celier <celier@adacore.com>
4108 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
4109 provided, on Windows change all '/' to '\'.
4111 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
4112 used. Minor comment changes
4114 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
4115 Remove_Forbidden_File_Name.
4117 2009-06-25 Quentin Ochem <ochem@adacore.com>
4119 * prj.ads (Unit_Index): Now general access type.
4121 2009-06-25 Pascal Obry <obry@adacore.com>
4123 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
4125 2009-06-25 Emmanuel Briot <briot@adacore.com>
4127 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
4128 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
4129 computed efficiently from the other fields.
4130 (Object_To_Global_Archive): New subprogram
4131 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
4132 (Override_Kind): Fix handling of separates in Ada.
4133 (Create_Mapping_File): Remove duplicate code
4134 (Naming_Data.Implementation_Exception, Specification_Exception):
4135 field removed, since never used.
4136 (Naming_Data.Specs, .Bodies): field removed, since this is only
4137 used while processing the project and is not needed once the tree
4138 is in memory. This brings Naming_Data and Lang_Naming_Data
4139 closer (same content now, but different use still).
4141 2009-06-25 Pascal Obry <obry@adacore.com>
4143 * sem_ch4.adb: Minor reformatting.
4145 * a-strsea.adb: Fix confusion between 'Length and 'Last.
4147 2009-06-25 Ed Schonberg <schonberg@adacore.com>
4149 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
4150 Unchecked_Access): If the context is an interface type, and the prefix
4151 is of the corresponding class-wide type, do not insert a conversion
4152 because the pointer displacement has already taken place, and we must
4153 retain the class-wide type in a dispatching context.
4155 2009-06-25 Emmanuel Briot <briot@adacore.com>
4157 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
4158 the previous source file.
4159 (Create_Mapping): Iterate on sources rather than on units.
4161 2009-06-25 Emmanuel Briot <briot@adacore.com>
4163 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
4164 prj-env.adb, prj-env.ads (Slash): removed, no longer used
4165 (Source_Data): no longer use Path.Name to point to a locally removed
4166 file. Instead we use the field Locally_Removed which is clearer
4168 2009-06-25 Arnaud Charlet <charlet@adacore.com>
4170 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
4172 * sem_maps.adb, sem_maps.ads: Removed, not used.
4174 2009-06-25 Ed Falis <falis@adacore.com>
4176 * s-vxwext-rtp.ads: Add missing declaration
4178 2009-06-25 Matthew Gingell <gingell@adacore.com>
4180 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
4181 speed up unmapped case.
4183 2009-06-25 Vincent Celier <celier@adacore.com>
4185 * prj-nmsc.adb (Check): Change error message for illegal abstract
4188 2009-06-25 Robert Dewar <dewar@adacore.com>
4190 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
4192 2009-06-25 Emmanuel Briot <briot@adacore.com>
4194 * fmap.ads: Add documentation on mapping files
4196 2009-06-25 Robert Dewar <dewar@adacore.com>
4198 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
4201 2009-06-24 Robert Dewar <dewar@adacore.com>
4203 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
4205 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
4209 2009-06-24 Ed Schonberg <schonberg@adacore.com>
4211 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
4212 present when checking whether a call may be interpreted as an indexing
4213 of the result of a call.
4215 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
4216 body for a null procedure on the freeze actions for the procedure, so
4217 that it will be analyzed at the proper place without premature freezing
4220 * sem_ch3.adb (Check_Completion): Code cleanup.
4221 Do not diagnose a null procedure without a body, if previous errors
4222 have disabled expansion.
4224 2009-06-24 Doug Rupp <rupp@adacore.com>
4226 * init.c [VMS] Resignal C$_SIGKILL
4228 2009-06-24 Ed Falis <falis@adacore.com>
4230 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
4231 Define ERROR in body for VxWorks 6 kernel
4233 2009-06-24 Pascal Obry <obry@adacore.com>
4235 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
4236 in [Send/Receive]_Socket.
4238 2009-06-24 Emmanuel Briot <briot@adacore.com>
4240 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
4241 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
4242 to several subprograms.
4243 (Source_Data.Other_Part): Removed, since can be computed from the
4245 (Other_Part): New subprogram.
4247 2009-06-24 Emmanuel Briot <briot@adacore.com>
4249 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
4250 the full base name of the file when the suffix doesn't start with a '.'.
4252 2009-06-24 Vincent Celier <celier@adacore.com>
4254 * prj-nmsc.adb (Check): A project declared abstract is legal if no
4255 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
4258 2009-06-24 Robert Dewar <dewar@adacore.com>
4260 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
4261 prj-env.adb: Minor reformatting
4263 2009-06-24 Ed Falis <falis@adacore.com>
4265 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
4266 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
4267 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
4268 support for VxWorks SMP.
4270 * gcc-interface/Make-lang.in: Update dependencies
4272 2009-06-24 Emmanuel Briot <briot@adacore.com>
4274 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4275 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
4277 (Source_Data.Lang_Kind): Removed, since it duplicates information
4278 already available through Language.Config.
4279 (Source_Data.Compile): Removed, since information is already available
4280 through the language.
4281 (Is_Compilable): New subprogram.
4282 (Source_Data.Dependency): Removed, since already available through
4284 (Source_Data.Object_Exist, Object_Linked): Removed since available
4285 through the language already.
4286 (Unit_Data.File_Names): Is now also set in multi_language mode, to
4287 bring the two modes closer in the resulting data structures.
4288 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
4289 just the name that would point into a hash table.
4290 (Get_Language_From_Name): New subprogram.
4292 2009-06-24 Javier Miranda <miranda@adacore.com>
4294 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
4295 visible through limited-with context clauses. In addition, avoid an
4296 extra tag check that is not required when the class-wide
4297 designated types of the operand and target types are
4299 (Tagged_Membership): Handle entities from the limited view.
4301 2009-06-24 Emmanuel Briot <briot@adacore.com>
4303 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
4304 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
4305 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
4306 different vocabularies for similar concepts (Impl/Body_Part and
4307 Spec/Specification).
4308 (Unit_Data): now points directly to a Source_Id, rather than duplicating
4309 some of the information in File_Name_Data. This also saves a bit of
4310 memory. However, since we are now using a pointer we need to test
4311 for null explicitly in several places of the code
4313 2009-06-24 Javier Miranda <miranda@adacore.com>
4315 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
4316 from processing the type conversion when the node is
4317 replaced by an N_Raise_Program_Error node.
4319 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
4321 * sem_ch6.adb (Designates_From_With_Type): New routine.
4322 (Process_Formals): Since anonymous access types are no longer flagged
4323 as from with types, traverse the designated type to determine whether
4324 it is coming from a limited view.
4326 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
4327 (Full_Designated_Type): Use Available_View to extract the non-limited /
4328 full view of a type.
4330 2009-06-24 Robert Dewar <dewar@adacore.com>
4332 * exp_ch6.adb: Minor reformatting
4334 * layout.adb: Minor reformatting
4336 * make.adb: Minor reformatting
4338 2009-06-24 Thomas Quinot <quinot@adacore.com>
4340 * sem_ch10.adb: Minor code reorganization.
4342 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
4344 * ttypes.ads: Minor editing.
4346 2009-06-24 Robert Dewar <dewar@adacore.com>
4348 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
4349 in deciding to do call-by-copy code.
4351 2009-06-24 Vincent Celier <celier@adacore.com>
4353 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
4354 check if an externally built library file is more current than the
4357 2009-06-23 Olivier Hainque <hainque@adacore.com>
4359 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
4360 c-common.c and populate in gnat_internal_attribute_table.
4362 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4364 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
4365 Available_View only when designated type of an anonymous access type
4368 2009-06-23 Robert Dewar <dewar@adacore.com>
4370 * sem_ch10.adb: Minor reformatting
4372 * ali.ads: Mino reformatting.
4374 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
4375 turning off inlining if ASIS mode active).
4377 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
4378 This belongs in gnat1drv.adb after switches are scanned.
4380 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
4382 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
4383 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
4384 when dealing with class-wide types. Detect a legal shadow entity and
4385 retrieve its non-limited view.
4387 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
4388 subprogram to top package level from Intall_Limited_Withed_Unit.
4389 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
4390 Add check which prevents the installation of a limited view if the
4391 non-limited view is already visible through a with clause.
4392 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
4393 legal shadow entity which may occur in subprogram formals of anonymous
4396 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
4398 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
4399 From_With_Type from the designated type to the generated anonymous
4400 access type. Remove associated comment.
4402 * sem_res.adb Add with and use clauses for Sem_Ch10.
4403 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
4404 non-limited view. Since the shadow entity may replace a regular
4405 incomplete type, return the available full view.
4407 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4409 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
4410 incomplete type declarations. Previous code was potentially quadratic
4411 in the number of visible declarations in any package appearing in a
4412 limited_with_clause.
4414 2009-06-23 Robert Dewar <dewar@adacore.com>
4416 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
4417 xref_lib.adb: Minor reformatting
4419 2009-06-23 Robert Dewar <dewar@adacore.com>
4421 * a-stzhas.adb: Provide dummy body to avoid build problems with old
4422 versions which did have a body for this unit.
4424 2009-06-23 Vincent Celier <celier@adacore.com>
4426 * prj-attr.adb: Attribute names Initial_Required_Switches and
4427 Final_Required_Switches changed to Leading_Required_Switches and
4428 Trailing_Required_Switches.
4430 * prj-nmsc.adb (Process_Compiler): Attribute names
4431 Initial_Required_Switches and Final_Required_Switches changed to
4432 Leading_Required_Switches and Trailing_Required_Switches.
4434 * prj.ads (Language_Config): Component Initial_Required_Switches and
4435 Final_Required_Switches changed to Leading_Required_Switches and
4436 Trailing_Required_Switches.
4438 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
4439 Final_Required_Switches; add standard names Leading_Required_Switches
4440 and Trailing_Required_Switches.
4442 2009-06-23 Thomas Quinot <quinot@adacore.com>
4444 * prj-conf.adb: Minor reformatting
4446 * xref_lib.adb: Minor cleanup
4448 2009-06-23 Emmanuel Briot <briot@adacore.com>
4450 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
4451 prj-conf.ads (Check_Configuration): New parameter
4452 Compiler_Driver_Mandatory.
4454 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4456 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
4457 context of the current unit has an inline pragma, the instance is not
4458 rewritten as the declaration of the package wrapper. Handle both
4459 possibilities when retrieving the visible subprogram that renames the
4460 instantiation itself.
4462 2009-06-23 Javier Miranda <miranda@adacore.com>
4464 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
4465 designated types referencing entities from the limited view.
4467 2009-06-23 Robert Dewar <dewar@adacore.com>
4469 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
4471 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
4474 * prj-conf.ads: Minor reformatting
4476 * prj-conf.adb: Minor reformatting
4478 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
4480 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
4481 to correspond to the log format that gnatmem now expects.
4483 2009-06-23 Vincent Celier <celier@adacore.com>
4485 * prj-attr.adb: New attributes Initial_Required_Switches,
4486 Final_Required_Switches and Object_File_Switches
4488 * prj-nmsc.adb (Process_Compiler): Process new attributes
4489 Name_Final_Required_Switches, Name_Initial_Required_Switches and
4490 Name_Object_File_Switches.
4492 * prj.ads (Language_Config): New component
4493 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
4494 Compiler_Final_Required_Switches and Object_File_Switches.
4496 * snames.ads-tmpl: New standard names Initial_Required_Switches,
4497 Final_Required_Switches and Object_File_Switches
4499 2009-06-23 Pascal Obry <obry@adacore.com>
4501 * s-strhas.adb, s-strhas.ads: Minor reformatting.
4503 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4505 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
4506 not indicate that the enclosing unit needs a body.
4508 2009-06-23 Emmanuel Briot <briot@adacore.com>
4510 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
4512 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4514 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
4515 primitive equality include it with its source name even if the
4516 operation is currently invisible, to make sure that the corresponding
4517 slot in the dispatch table is reserved for the internal equality
4518 subsequently generated during expansion.
4520 2009-06-23 Matthew Gingell <gingell@adacore.com>
4522 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
4524 2009-06-22 Jose Ruiz <ruiz@adacore.com>
4526 * sysdep.c (__gnat_localtime_tzoff for RTX):
4527 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
4528 GetTimeZoneInformation instead.
4530 2009-06-22 Robert Dewar <dewar@adacore.com>
4532 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
4534 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4536 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
4537 instantiations declared in a previous generic package body.
4539 2009-06-22 Robert Dewar <dewar@adacore.com>
4541 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
4542 restriction No_Direct_Boolean_Operators.
4544 2009-06-22 Thomas Quinot <quinot@adacore.com>
4546 * bindusg.adb: Minor fixes to gnatbind usage message
4548 * sem_eval.adb: Minor reformatting
4550 2009-06-22 Javier Miranda <miranda@adacore.com>
4552 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
4553 freezing point the check on the use of abstract types in object
4554 declarations. Done to allow the declaration of C++ imported variables
4555 or constants whose type corresponds with an imported C++ classes for
4556 which the constructor is not imported.
4558 2009-06-22 Thomas Quinot <quinot@adacore.com>
4560 * sem_ch6.adb: Minor reformatting
4562 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4564 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
4565 component is constrained with an expression rather than with a
4566 discriminant of the enclosing type, use that expression when building
4567 the call to default-initialize the component, when the call is part of
4568 an aggregate with box initialization.
4570 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4572 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
4573 unconditional rather than a style check, because a formal name out of
4574 order is suspicious.
4576 2009-06-22 Vincent Celier <celier@adacore.com>
4578 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
4579 creating a directory automatically.
4581 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
4583 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
4584 untagged derived type, add a hidden component for every constrained
4585 discriminant of the parent type to keep record layout consistent.
4587 2009-06-22 Thomas Quinot <quinot@adacore.com>
4589 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
4592 2009-06-22 Matthew Gingell <gingell@adacore.com>
4594 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
4595 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
4596 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
4597 a-swuwha.adb: New unit System.String_Hash.
4598 Refactor redundant cut and pasted hash functions with instances of a
4599 new generic hash function.
4600 Implement a new string hashing algorithm which appears in testing to
4601 be move effective than to previous approach.
4603 2009-06-22 Ed Falis <falis@adacore.com>
4605 * sysdep.c: remove include for nfsLib.h and an NFS specific error
4606 message for VxWorks 653 vThreads: not supported by the OS.
4608 * gsocket.h: disable sockets for VxWorks 653 vThreads.
4610 2009-06-22 Robert Dewar <dewar@adacore.com>
4612 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
4614 2009-06-22 Robert Dewar <dewar@adacore.com>
4616 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
4619 * freeze.adb: Minor comment updates
4621 * s-valrea.adb (Bad_Based_Value): New procedure
4622 (Scan_Real): Raise exceptions with messages
4624 2009-06-22 Matthew Gingell <gingell@adacore.com>
4626 * adaint.h: Complete previous change.
4628 2009-06-22 Thomas Quinot <quinot@adacore.com>
4630 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
4632 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4634 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
4635 enabled, emit warning when a non-controlling argument of the overriding
4636 operation appears out of place vis-a-vis of the formal of the
4637 overridden operation.
4639 2009-06-22 Vincent Celier <celier@adacore.com>
4641 * gnatcmd.adb (Check_Files): Close temporary files after all file names
4642 have been written into it.
4644 2009-06-22 Matthew Gingell <gingell@adacore.com>
4646 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
4649 2009-06-22 Thomas Quinot <quinot@adacore.com>
4651 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
4652 view of the root type is visible at the point of the call.
4654 2009-06-22 Pat Rogers <rogers@adacore.com>
4656 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
4658 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
4660 * freeze.adb: Add comments.
4662 2009-06-21 Thomas Quinot <quinot@adacore.com>
4664 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
4665 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
4666 Factor out code to new subprogram...
4667 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
4668 for a default initialized variable.
4669 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
4670 entity that has an associated freeze node.
4671 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
4672 If there is an init call for the object, defer it to the object freeze
4674 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
4675 name clash with new subprogram introduced in Exp_Util.
4677 2009-06-21 Robert Dewar <dewar@adacore.com>
4679 * einfo.ads: Minor reformatting
4681 2009-06-21 Ed Falis <falis@adacore.com>
4683 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
4685 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
4687 * einfo.ads: Update comments.
4689 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
4691 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
4692 where the controlling formal is of private class-wide type whose
4693 completion is a synchronized type can be converted into direct calls.
4695 2009-06-21 Vincent Celier <celier@adacore.com>
4697 * gnatcmd.adb (Check_Files): When all sources of the project are to be
4698 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
4699 of sources using -files=, so that the distinction can be made by the
4700 tool of a call with no source (to display the usage) from a call with
4701 a project file that contains no source.
4703 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
4705 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
4706 case of VM convention arrays.
4708 2009-06-20 Robert Dewar <dewar@adacore.com>
4710 * a-nudira.adb: Minor reformatting
4712 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4714 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
4715 expressions (possibly from a parent type) indicate that the scope of
4716 the new itypes is the initialization procedure being built.
4718 2009-06-20 Robert Dewar <dewar@adacore.com>
4720 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
4721 Needs_64, and now computed without anomolies for some dynamic types.
4723 2009-06-20 Thomas Quinot <quinot@adacore.com>
4725 * sem_prag.adb: Minor reformatting
4727 * exp_disp.ads: Minor reformatting
4729 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4731 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
4732 function call is a legal expression to initialize a limited object.
4734 * exp_ch3.adb: Rename various freeze operations that perform expansion
4735 actions, to prevent confusion with subprograms in the freeze package.
4737 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4739 * sem.adb (Walk_Library_Units): Check instantiations first.
4741 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
4742 private primitive if it is a function with a controlling result that is
4743 a type extension with progenitors.
4745 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
4746 a primitive operation of a synchronized tagged type that has a
4749 2009-06-20 Thomas Quinot <quinot@adacore.com>
4751 * einfo.ads: Fix typo.
4753 2009-06-20 Ed Falis <falis@adacore.com>
4755 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
4757 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4759 * gcc-interface/trans.c (emit_check): Do not wrap up the result
4761 (protect_multiple_eval): Always protect complex expressions.
4763 2009-06-19 Emmanuel Briot <briot@adacore.com>
4765 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
4766 make sure we always return a name ending with a path separator.
4768 2009-06-19 Javier Miranda <miranda@adacore.com>
4770 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
4771 Save and restore the visibility of the parent when installed.
4773 2009-06-19 Jose Ruiz <ruiz@adacore.com>
4775 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
4776 by Common which contains all these fields.
4778 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
4779 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
4780 Remove code duplication in this package by means of calling the
4781 equivalent code in s-taprob.
4783 2009-06-19 Robert Dewar <dewar@adacore.com>
4785 * a-einuoc.ads: Minor reformatting
4787 2009-06-19 Ed Falis <falis@adacore.com>
4789 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
4790 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
4792 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4794 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
4796 2009-06-19 Robert Dewar <dewar@adacore.com>
4798 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
4801 * checks.adb (Determine_Range): Move the test for generic types later.
4803 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
4805 (Eval_Relational_Op): Fold more cases including string compares
4807 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
4810 2009-06-19 Robert Dewar <dewar@adacore.com>
4812 * sem_type.ads, sem_ch12.adb: Minor reformatting
4814 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
4816 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4818 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
4819 primitive operation of a rivate extension whose controlling argument
4820 is an out parameter.
4822 * sem.adb (Walk_Library_Units): exclude generic package declarations
4825 2009-06-19 Thomas Quinot <quinot@adacore.com>
4827 * i-vxwoio.ads: Add comments
4829 2009-06-19 Thomas Quinot <quinot@adacore.com>
4831 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4832 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4833 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
4834 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
4835 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
4836 Thin_Common.Socket_Ioctl.
4837 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
4838 __gnat_socket_ioctl.
4839 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
4840 argument after the file descriptor and request code.
4842 2009-06-19 Robert Dewar <dewar@adacore.com>
4844 * checks.adb: Minor reformatting
4846 2009-06-19 Jose Ruiz <ruiz@adacore.com>
4848 * env.c (__gnat_environ): RTX does not support this functionality.
4850 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4852 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
4853 traverse, to account for front-end inlining and instantiations in a
4854 spec or in the main unit.
4856 2009-06-19 Robert Dewar <dewar@adacore.com>
4858 * checks.adb (Determine_Range): Do not attempt to get range of generic
4861 2009-06-19 Sergey Rybin <rybin@adacore.com>
4863 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
4864 gnatmetric option for generating the schema file for gnatmetric XML
4865 output. Add corresponding VMS qualifier.
4867 2009-06-19 Robert Dewar <dewar@adacore.com>
4869 * g-cgi.adb: Minor reformatting
4871 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4873 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
4874 signal code for SIGFPE and raise Program_Error for SIGILL.
4876 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
4878 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4880 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
4881 generic package if there is a visibility candidate that is declared in
4884 2009-06-18 Olivier Hainque <hainque@adacore.com>
4886 * system-aix64.ads: New file.
4887 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
4888 64bit system.ads for ppc64 multilib variants.
4890 2009-06-16 Robert Dewar <dewar@adacore.com>
4891 Olivier Hainque <hainque@adacore.com>
4893 Relax constraints on Machine_Attribute argument types:
4894 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
4896 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
4897 * gcc-interface/decl.c (prepend_attributes): Accept static
4898 expressions of any type as attribute arguments, not only string
4900 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
4901 the relaxation of the restriction on the Info argument type.
4903 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
4905 * gcc-interface/utils.c (record_builtin_type): Pass location
4906 argument to build_decl.
4907 (create_type_stub_decl): Same.
4908 (create_type_decl): Same.
4909 (create_var_decl_1): Same.
4910 (create_field_decl): Same.
4911 (create_param_decl): Same.
4912 (create_label_decl): Same.
4913 (create_subprog_decl): Same.
4914 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
4915 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
4916 argument to create_artificial_label.
4917 (Loop_Statement_to_gnu): Same.
4918 (Subprogram_Body_to_gnu): Same.
4919 (gnat_gimplify_stmt): Same.
4921 2009-06-11 Richard Henderson <rth@redhat.com>
4923 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
4926 2009-06-11 Ed Schonberg <schonberg@adacore.com>
4928 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
4929 accessibiliy check on access_to_subprogram in the context of an
4930 anonymous access that is not an access parameter.
4932 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
4934 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
4936 2009-06-11 Quentin Ochem <ochem@adacore.com>
4938 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
4939 comments for message handled by GPS.
4941 2009-06-11 Matthew Gingell <gingell@adacore.com>
4943 * adaint.c: Use fopen64 instead of fopen on platforms where we know
4946 2009-06-11 Pascal Obry <obry@adacore.com>
4948 * g-cgi.ads: Fix comment typo.
4950 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
4952 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
4954 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
4955 a reference to the original type for the type of the field of the
4957 (maybe_pad_type): Likewise.
4959 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
4960 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
4961 Pass correctly typed arguments to create_field_decl.
4962 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
4963 case of contrained discriminants as well. Use the padded base type
4964 in the other case as well. Rename temporary variable. Tweak test.
4965 Factor common access pattern. Set GNU_SIZE only once.
4967 2009-06-09 Olivier Hainque <hainque@adacore.com>
4969 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
4970 helper for build_call_alloc_dealloc with arguments to be interpreted
4971 identically. Process the case where a GNAT_PROC to call is provided.
4972 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
4973 and return an allocator for DATA_SIZE bytes aimed at containing a
4974 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
4975 DATA_TYPE alignments greater than what the latter offers.
4976 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
4977 release a DATA_TYPE object designated by DATA_PTR using the
4978 __gnat_free entry point.
4979 (build_call_alloc_dealloc): Expect object data type instead of naked
4980 alignment constraint. Use the new helpers.
4981 (build_allocator): Remove special processing for the super-aligned
4982 case, now handled by build_call_alloc_dealloc. Pass data
4983 type instead of the former alignment argument, as expected by the new
4985 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
4987 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
4988 Remove special processing for the super-aligned case, now handled
4989 by build_call_alloc_dealloc. Pass data type instead of the former
4990 alignment argument, as expected by the new interface.
4992 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
4994 * lib-writ.adb (flag_compare_debug): Import.
4995 (Write_ALI): Skip during -fcompare-debug-second.
4997 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
4999 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
5000 adjusting the discriminant nodes in an extension, use the full view
5001 of the parent subtype if it is of a private kind.
5003 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5005 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
5006 _Parent field, if any, to the record before adding the other fields.
5007 <E_Record_Subtype>: Put the _Controller field before the other fields
5008 except for the _Tag or _Parent fields.
5009 (components_to_record): Likewise. Retrieve the _Parent field from the
5012 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5014 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
5015 remove unused parameter and simplify.
5016 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
5017 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
5018 as context for all discriminants. Fix formatting nits.
5019 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
5020 before Discriminant_Constraint. Adjust for above renaming. Do not
5021 set GNU_TYPE more than once.
5022 (elaborate_entity): Test Has_Discriminants on the entity and use
5023 Implementation_Base_Type.
5024 (components_to_record): Rename component_list to gnat_component_list.
5025 Retrieve the _Parent field from the list. Fix nits in comments.
5026 Clarify logic in loop. Pass correct arguments to create_field_decl.
5028 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
5030 * gcc-interface/Make-lang.in: Fix formatting.
5032 2009-06-01 Olivier Hainque <hainque@adacore.com>
5033 Eric Botcazou <ebotcazou@adacore.com>
5035 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
5036 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
5037 on the result if at least one of the input fields couldn't be output
5038 as a static constant any more.
5040 2009-06-01 Olivier Hainque <hainque@adacore.com>
5041 Eric Botcazou <ebotcazou@adacore.com>
5043 * gcc-interface/utils2.c (gnat_build_constructor): Factor
5044 out code. Use initializer_constant_valid_for_bitfield_p and
5045 CONSTRUCTOR_BITFIELD_P for bit-fields.
5047 2009-05-26 Ian Lance Taylor <iant@google.com>
5049 * gcc-interface/Makefile.in (COMPILER): Define.
5050 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
5051 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
5052 (seh_init.o, tracebak.o): Likewise.
5053 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
5054 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
5055 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
5056 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
5057 (ada/utils2.o): Likewise.
5059 2009-05-24 Olivier Hainque <hainque@adacore.com>
5061 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
5062 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
5063 Add -auxbase variants to the list of recognized internal switches.
5064 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
5066 * lib.ads: Make comment on internal GCC switches more general.
5067 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
5070 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5072 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
5074 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5076 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
5079 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5081 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
5082 original type because of the alignment when there is an address clause.
5084 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
5086 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
5087 discriminants affect the shape of the subtype, retrieve the GCC type
5088 directly from the original field if the GNAT types for the field and
5089 the original field are the same.
5091 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
5093 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
5095 (TYPE_RM_VALUES): Likewise.
5096 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
5097 (SET_TYPE_RM_SIZE): New macro.
5098 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
5099 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
5100 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
5101 * gcc-interface/gigi.h (create_range_type): Declare.
5102 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
5103 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
5104 <E_Signed_Integer_Subtype>: Build a regular integer type first and
5105 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5106 <E_Floating_Point_Subtype>: Build a regular floating-point type first
5107 and then set the RM bounds.
5108 <E_Array_Type>: Use create_range_type instead of build_range_type.
5109 <E_Array_Subtype>: Build a regular integer type first and then set
5110 the RM bounds for the extra subtype.
5111 <E_String_Literal_Subtype>: Use create_range_type instead of
5113 <all>: Set the RM bounds for enumeration types and the GCC bounds for
5114 floating-point types.
5115 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
5116 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
5117 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5118 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
5119 types and with RM bounds for subtypes.
5120 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
5121 (gnat_print_type) <REAL_TYPE>: New case.
5122 <ENUMERAL_TYPE>: Fall through to above case.
5123 (gnat_get_subrange_bounds): New function.
5124 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
5125 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
5126 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
5127 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
5128 (create_range_type): New function.
5129 (create_param_decl): Build a regular integer type first and then set
5130 the RM bounds for the extra subtype.
5131 (unchecked_convert): Remove kludge for 'Valid.
5132 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
5133 the index to sizetype instead of TYPE_DOMAIN.
5135 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
5137 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
5138 parameter and move check for static expression to...
5139 (elaborate_expression): ...here. Adjust call to above function.
5140 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
5141 in calls to elaborate_expression.
5142 (elaborate_entity): Likewise.
5143 (substitution_list): Likewise.
5144 (maybe_variable): Fix formatting.
5145 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
5147 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
5149 2009-05-07 Arnaud Charlet <charlet@adacore.com>
5151 * gcc-interface/Make-lang.in: Update dependencies.
5153 2009-05-06 Laurent GUERBY <laurent@guerby.net>
5155 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
5156 Define sa_handler_pos.
5157 * s-osinte-linux.ads: Use it.
5158 * s-linux-mipsel.ads: New.
5159 * system-linux-mips64el.ads: New.
5160 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
5163 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5165 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
5166 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
5167 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
5168 (Tagged_Type_Expansion): New flag.
5169 Replace use of VM_Target related to tagged types expansion by
5170 Tagged_Type_Expansion, since tagged type expansion is not necessarily
5171 linked to VM targets.
5173 2009-05-06 Robert Dewar <dewar@adacore.com>
5175 * sem_attr.adb: Add processing for Standard'Compiler_Version
5177 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
5179 (Expr_First_Char): Add ??? comment that paren skipping needs work
5180 (Expr_Last_Char): Add ??? comment that paren skipping needs work
5182 * exp_attr.adb: Add processing for Compiler_Version
5184 * sem_attr.adb: New attribute Compiler_Version
5186 * snames.ads-tmpl: Add entries for Compiler_Version attribute
5188 * gnat_rm.texi: Document Compiler_Version attribute
5190 2009-05-06 Robert Dewar <dewar@adacore.com>
5192 * errout.adb: Minor reformatting
5194 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
5195 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
5196 styleg.adb: Add stylized comments to error messages that are included
5197 in the codefix circuitry of IDE's such as GPS.
5199 2009-05-06 Sergey Rybin <rybin@adacore.com>
5201 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
5202 new form of the rule parameter that allows to specify the suffix for
5203 access-to-access type names.
5205 2009-05-06 Robert Dewar <dewar@adacore.com>
5207 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
5208 out parameter assigned when exception handlers are present.
5210 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
5211 assignments on exit.
5213 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
5214 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
5215 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
5216 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
5217 messages that are included in the codefix circuitry of IDE's such as
5220 * sinput.ads, sinput.adb (Expr_First_Char): New function
5221 (Expr_Last_Char): New function
5223 2009-05-06 Sergey Rybin <rybin@adacore.com>
5225 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
5226 Add formal definition for extra exit point metric
5228 2009-05-06 Pascal Obry <obry@adacore.com>
5230 * adaint.c: Support for setting attributes on unicode filename on
5233 2009-05-06 Robert Dewar <dewar@adacore.com>
5235 * sem_warn.adb: Minor reformatting
5237 2009-05-06 Javier Miranda <miranda@adacore.com>
5239 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
5240 not have discriminants or components with default expressions.
5241 (Analyze_Pragma): For pragma CPP_Class check that imported types
5242 have no discriminants and components have no default expression.
5244 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
5245 class-wide types in the expression of a record component association.
5247 2009-05-06 Sergey Rybin <rybin@adacore.com>
5249 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
5251 * gnat_ugn.texi: Add description for the new extra exit points metric
5252 (gnatmetric section).
5254 2009-05-06 Robert Dewar <dewar@adacore.com>
5256 * s-fileio.adb: Minor comment update
5258 * sem_ch8.adb: Minor reformatting
5260 * exp_ch3.adb: Update comments.
5262 2009-05-06 Tristan Gingold <gingold@adacore.com>
5264 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
5266 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5268 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
5269 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
5271 * gcc-interface/Make-lang.in: Update dependencies
5273 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5275 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
5276 change. The context clause of a generic instance declaration must be
5277 preserved until the end of the compilation, because it may have to be
5278 installed/removed repeatedly.
5279 The latest change to sem.adb ensures that the context of both spec and
5280 body of an instance is traversed before the instance itself, making
5281 this patch redundant.
5283 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5285 * sem_aggr.adb: Fix typo.
5287 2009-05-06 Thomas Quinot <quinot@adacore.com>
5289 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
5290 declaration, do not adjust if the declaration is to be rewritten into
5293 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5295 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
5298 2009-05-06 Bob Duff <duff@adacore.com>
5300 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
5301 otherwise the compiler would be allowed to optimize away the cleanup
5304 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5306 * gnat_ugn.texi: Fix typo.
5308 2009-05-06 Thomas Quinot <quinot@adacore.com>
5310 * g-debuti.adb: Minor reformatting
5312 * exp_attr.adb: Minor reformatting
5314 2009-05-06 Robert Dewar <dewar@adacore.com>
5316 * sem_aggr.adb: Minor reformatting.
5318 * g-socthi-vms.adb: Minor reformatting
5320 2009-05-06 Bob Duff <duff@adacore.com>
5322 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
5323 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
5325 2009-05-06 Bob Duff <duff@adacore.com>
5327 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
5330 2009-05-06 Javier Miranda <miranda@adacore.com>
5332 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
5333 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
5334 extension aggregates.
5335 (Resolve_Record_Aggregate): Add support for C++ constructors in
5336 extension aggregates.
5338 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
5339 constructors in extension aggregates.
5341 2009-05-06 Robert Dewar <dewar@adacore.com>
5343 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
5346 2009-05-06 Thomas Quinot <quinot@adacore.com>
5348 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
5349 packed type, since on OpenVMS, struct msghdr is packed.
5351 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5353 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5354 call returning an unconstrained composite value, create the proper
5355 subtype for it, as is done for object dclarations with unconstrained
5356 nominal subtypes. Perform this transformation regarless of whether
5357 call comes from source.
5359 2009-05-06 Robert Dewar <dewar@adacore.com>
5361 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
5365 Add documentation for pragma Implicit_Packing applied to record
5368 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5370 * sem.adb (Walk_Library_Items): Place all with_clauses of an
5371 instantiation on the spec, because late instance bodies may generate
5372 with_clauses for the instance body but are inserted in the instance
5375 2009-05-06 Emmanuel Briot <briot@adacore.com>
5377 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
5378 support for returning the directory even if it doesn't exist. This is
5379 used for the object directory, since we are always setting it to a
5380 non-null value, and we should set it to an absolute name rather than a
5381 relative name for the sake of external tools that might depend on it.
5382 (Check_Library_Attributes): When Project.Library_Dir is known, check
5383 that the directory exists.
5385 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5387 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
5388 reference is an implicit dereference, do not freeze the designated type
5389 if within a default expression or when preanalyzing a pre/postcondtion.
5391 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5393 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5394 call returning an unconstrained composite value, create the proper
5395 subtype for it, as is done for object dclarations with unconstrained
5398 2009-05-06 Robert Dewar <dewar@adacore.com>
5400 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
5403 * freeze.adb: Minor reformatting
5405 2009-05-06 Thomas Quinot <quinot@adacore.com>
5407 * sem_ch3.adb (Access_Type_Declaration): An access type whose
5408 designated type is a limited view from a limited with clause (flagged
5409 From_With_Type) is not itself such a limited view.
5411 2009-05-06 Emmanuel Briot <briot@adacore.com>
5413 * prj-nmsc.adb: Remove unused variable.
5415 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
5416 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
5417 makeutl.ads, since not all users of prj.ads need this.
5419 2009-05-06 Javier Miranda <miranda@adacore.com>
5421 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
5422 constructor in case of aggregates whose type is a CPP_Class type.
5424 2009-05-06 Robert Dewar <dewar@adacore.com>
5426 * sem_ch13.adb: Minor comment additions
5428 * osint.adb: Minor reformatting
5430 2009-05-06 Pascal Obry <obry@adacore.com>
5432 * initialize.c: On Windows, keep full pathname to expanded command
5435 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5437 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
5438 an aggregate with box default is of a discriminated private type, do
5439 not build a subaggregate for it.
5440 A proper call to the initialization procedure is generated for it.
5442 2009-05-06 Thomas Quinot <quinot@adacore.com>
5444 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
5445 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
5446 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
5447 use standard array code for Standard.String.
5448 (Exp_Dist): Bump PolyORB s-parint API version to 3.
5449 (Rtsfind): New entities TA_Std_String, Unbounded_String.
5451 2009-05-06 Robert Dewar <dewar@adacore.com>
5453 * g-comlin.ads: Minor reformatting
5455 * xoscons.adb: Minor reformatting
5457 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5459 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
5460 Underlying_Type before retrieving the type definition for gathering
5461 components, to account for the case where the type is private.
5463 2009-05-06 Tristan Gingold <gingold@adacore.com>
5465 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
5467 2009-05-06 Thomas Quinot <quinot@adacore.com>
5469 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5470 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
5471 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
5472 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
5473 Windows versions): Fix incorrect base
5474 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
5475 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
5476 System.Address for the To parameter instead of a Sockaddr_In_Access, to
5477 achieve independance from AF_INET family, and also to allow this
5478 parameter to be retrieved from a Msghdr for the Windows case where
5479 these routines are used to implement C_Sendmsg and C_Recvmsg.
5481 2009-05-06 Bob Duff <duff@adacore.com>
5483 * g-expect.adb, g-expect.ads: Minor reformatting
5485 * sdefault.ads: Minor comment fix
5487 * g-expect-vms.adb: Minor reformatting
5489 * table.ads, table.adb (Append_All): New convenience procedure for
5490 appending a whole array.
5492 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
5493 box message. Call Osint.Dump_Source_File_Names to print out the file
5494 list, instead of rummaging around in various data structures.
5496 * debug.adb: New switch -gnatd.n, to print source file names as they
5499 * alloc.ads: Add parameters for Osint.File_Name_Chars.
5501 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
5502 out source file names during a "bug box".
5503 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
5504 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
5505 If it's not part of the runtimes, store it for later printing by
5506 Dump_Source_File_Names.
5508 2009-05-06 Javier Miranda <miranda@adacore.com>
5510 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
5511 documentation and add reference to the GNAT user guide for further
5514 2009-05-06 Javier Miranda <miranda@adacore.com>
5516 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
5517 also wrong examples that use extension aggregates.
5519 2009-05-06 Albert Lee <lee@adacore.com>
5521 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
5522 of Msg_Iovlen_T for VMS.
5524 2009-05-04 Laurent GUERBY <laurent@guerby.net>
5527 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
5529 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5531 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
5532 box-defaulted operator in an instantiation, when the type of the
5533 operands is not directly visible.
5535 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5537 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
5538 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
5539 analysis of the ancestor part. Remove prohibition against limited
5540 interpretations of the ancestor expression in the case of Ada 2005.
5541 Revise error message in overloaded case, adding a message to cover
5544 2009-04-29 Thomas Quinot <quinot@adacore.com>
5546 * xoscons.adb: Minor reformatting
5548 2009-04-29 Bob Duff <duff@adacore.com>
5550 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
5551 attribute_definition_clauses for the following attributes when the
5552 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
5553 Storage_Size, Write. Otherwise, we get spurious errors (for example,
5554 missing Read attribute on remote types).
5556 * gnat_ugn.texi: Document the change, and add a stern warning.
5558 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5560 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
5561 disabled not just for the current scope, but for the innermost dynamic
5564 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5566 * gcc-interface/Make-lang.in: Update dependencies
5568 2009-04-29 Vincent Celier <celier@adacore.com>
5570 * prj-part.adb: Minor comment update
5572 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5574 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
5575 box-initialized records with discriminated subcomponents that are
5576 constrained by discriminants of enclosing components. New subsidiary
5577 procedures Add_Discriminant_Values, Propagate_Discriminants.
5579 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5581 * g-socket.adb: Code clean up.
5583 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5585 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
5586 function entity, to cover the case of a parameterless function call
5587 that has not been resolved.
5589 2009-04-29 Robert Dewar <dewar@adacore.com>
5591 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
5592 reformatting and comment updates.
5594 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5596 * gnat_ugn.texi: Update some documentation about interfacing with C++
5597 Mention -fkeep-inline-functions.
5599 * gnat_ugn.texi: Minor edits
5601 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5603 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
5604 for a defaulted component of an enclosing aggregate, inherit the type
5605 from the component declaration of the enclosing type.
5607 2009-04-29 Albert Lee <lee@adacore.com>
5609 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
5610 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
5611 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
5612 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
5613 Relocate the Msghdr record type from GNAT.Sockets.Thin to
5614 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
5615 type for the Msg_Iovlen field.
5617 2009-04-29 Vincent Celier <celier@adacore.com>
5619 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
5620 Source_File_Index_Table entries for the source, to avoid crash when
5623 * gnatcmd.adb (Test_If_Relative_Path): Use
5624 Makeutl.Test_If_Relative_Path.
5626 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
5627 Including_RTS is True.
5629 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
5630 Including_RTS defaulted to False.
5632 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
5635 2009-04-29 Javier Miranda <miranda@adacore.com>
5637 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
5639 2009-04-29 Javier Miranda <miranda@adacore.com>
5641 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
5642 associated with dyamically tagged expressions if the expression
5643 initializing a tagged type corresponds with a non default CPP
5645 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
5646 of limited type objects.
5648 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
5649 when a CPP constructor is called in an assignment. Disable also the
5650 error message associated with dyamically tagged expressions if the
5651 exporession initializing a tagged type corresponds with a non default
5654 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
5655 non-default C++ constructors.
5657 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
5659 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
5660 non-default constructors.
5661 (Init_Proc): Add support for non-default constructors.
5663 * exp_disp.adb (Set_Default_Constructor): Removed.
5664 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
5665 but extending its functionality to handle non-default constructors.
5667 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
5668 constructors. Minor code cleanup removing unrequired label and goto
5671 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
5673 (Build_Init_Statements): Add support for non-default constructors.
5674 (Expand_N_Object_Declaration): Add support for non-default constructors.
5675 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
5676 to Set_CPP_Constructors.
5678 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
5679 non-default constructors.
5680 Required to handle its use in build-in-place statements.
5682 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
5683 pragma for non-default C++ constructors and the new compiler support
5684 that allows the use of these constructors in record components, limited
5685 aggregates, and extended return statements.
5687 2009-04-29 Vincent Celier <celier@adacore.com>
5689 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
5690 project extending an abstract project.
5692 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5694 * targparm.ads: Fix oversight.
5696 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5698 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
5699 derivation when necessary, to find the user-subprogram that is actally
5702 2009-04-29 Robert Dewar <dewar@adacore.com>
5704 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
5707 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5709 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
5710 primitive operation, rather than source line of synchronized type, when
5711 building the wrapper for a primitive operation that overrides an
5712 operation inherited from a progenitor, to improve the error message on
5713 duplicate declarations.
5715 * sem_ch3.adb (Process_Full_View): Use new signature of
5718 2009-04-29 Robert Dewar <dewar@adacore.com>
5720 * prj-nmsc.ads: Minor reformatting
5722 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5724 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
5725 expression on the existing parent If statement.
5727 2009-04-29 Robert Dewar <dewar@adacore.com>
5729 * prj-proc.adb, prj.ads: Minor reformatting
5731 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5733 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
5734 existing parent If statement on the newly created one.
5736 2009-04-29 Emmanuel Briot <briot@adacore.com>
5738 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
5739 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
5740 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
5741 (Set_In_Configuration, In_Configuration): Removed.
5742 Replaced by an extra parameter Is_Config_File in several parameter to
5743 avoid global variables to store the state of the parser.
5745 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5747 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
5748 with_clauses generated for the same unit through rtsfind, and that
5749 appear in the context of different units.
5751 * rtsfind.adb: New attribute First_Implicit_With, component of the
5752 Unit_Record that stores information about a unit loaded through rtsfind.
5754 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5756 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
5757 (other conditions permitting), so that abstract stream subprograms will
5758 be declared for them.
5760 2009-04-29 Bob Duff <duff@adacore.com>
5762 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
5764 * g-expect.ads: Minor comment fixes.
5766 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5768 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
5769 dispatching operation is a body without previous spec, update the list
5770 of primitive operations to ensure that cross-reference information is
5773 2009-04-29 Albert Lee <lee@adacore.com>
5775 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5776 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5777 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
5778 (GNAT.Sockets.Thin.C_Readv,
5779 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
5780 (GNAT.Sockets.Thin.C_Recvmsg,
5781 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
5783 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
5784 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
5786 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5788 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
5789 operation is a body without previous spec, update the list of
5790 primitive operations to ensure that cross-reference information is
5793 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
5794 new compilation unit node for the instance declaration, keep the
5795 context items of the original unit on it, so that the context of the
5796 instance body only holds the context inherited from the generic body.
5798 2009-04-29 Bob Duff <duff@adacore.com>
5800 * sem_res.adb: Minor comment fix.
5802 2009-04-29 Thomas Quinot <quinot@adacore.com>
5804 * sem_elim.adb: Minor reformatting
5806 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5808 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
5809 predefined unit, allow arbitrary number of components in static
5810 aggregate, to ensure that the same level of constant folding applies
5811 for Ada 95 and Ada 05 versions of the file.
5813 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5815 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
5816 information: no need for full scope check.
5817 (Eliminate_Error): Do not emit error in a generic context.
5819 2009-04-29 Ed Falis <falis@adacore.com>
5821 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
5822 VxWorks 653 POS does not support rmdir.
5824 2009-04-29 Matteo Bordin <bordin@adacore.com>
5826 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
5827 results are printed.
5829 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5831 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
5834 2009-04-29 Thomas Quinot <quinot@adacore.com>
5836 * make.adb: Minor reformatting.
5837 Minor code reorganization throughout.
5839 2009-04-29 Matteo Bordin <bordin@adacore.com>
5841 * s-stausa.ads: Changed visibility of type Task_Result: moved to
5842 public part to give application visibility over it.
5843 This is for future improvement and to build a public API on top of it.
5844 Changed record components name of type Task_Result to reflect the new
5847 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
5848 reporting Stack usage.
5850 * gnat_ugn.texi: Update doc of stack usage report.
5852 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
5854 * Makefile.rtl: Add new run-time files.
5856 2009-04-29 Pascal Obry <obry@adacore.com>
5858 * initialize.c: Do not expand quoted arguments.
5860 2009-04-29 Emmanuel Briot <briot@adacore.com>
5862 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
5864 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
5865 Prj.Ultimate_Extending_Project_Of
5867 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5869 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
5870 Amendment type, add the with_clause for Finalization.List_Controller
5871 only if the current context is a package body.
5873 2009-04-29 Thomas Quinot <quinot@adacore.com>
5875 * sem_ch12.adb: Minor reformatting
5877 * sem_aggr.adb: Minor reformatting
5879 * sem_ch6.adb, sem_cat.ads: Minor reformatting
5881 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
5883 2009-04-29 Quentin Ochem <ochem@adacore.com>
5885 * prj.ads (Source_Id): Now general pointer type.
5887 2009-04-29 Thomas Quinot <quinot@adacore.com>
5889 * exp_ch7.adb, rtsfind.adb: Minor reformatting
5891 * sem_res.adb: Minor reformatting
5893 2009-04-29 Thomas Quinot <quinot@adacore.com>
5895 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
5896 operands is static only if it is a predefined concatenation operator.
5898 * sem_util.adb: Minor reformatting
5900 * sem_ch12.adb (Save_References): When propagating semantic information
5901 from generic copy back to generic template, for the case of an
5902 identifier that has been rewritten to an explicit dereference whose
5903 prefix is either an object name or a parameterless funcion call
5904 denoting a global object or function, properly capture the denoted
5905 global entity: perform the corresponding rewriting in the template,
5906 and point the rewritten identifier to the correct global entity (not
5907 to the associated identifier in the generic copy).
5909 2009-04-29 Robert Dewar <dewar@adacore.com>
5911 * rtsfind.adb, prj-env.adb: Minor reformatting
5912 Minor code reorganization
5914 2009-04-29 Emmanuel Briot <briot@adacore.com>
5916 * make.adb: Fix comment
5918 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
5919 is given as argument, as might happen in gnatmake.
5921 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5923 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
5924 an abstract operation of a progenitor is not properly overridden by an
5925 operation of a derived synchronized type.
5927 2009-04-29 Robert Dewar <dewar@adacore.com>
5929 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
5930 prj-proc.adb: Minor reformatting
5931 Minor code reorganization
5933 2009-04-29 Bob Duff <duff@adacore.com>
5935 * exp_ch7.adb (Build_Final_List): For an access type that designates a
5936 Taft Amendment type, if the access type needs finalization, make sure
5937 the implicit with clause for List_Controller occurs on the package spec.
5939 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
5940 with's created for the pseudo-children of Text_IO and friends. In
5941 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
5942 Ada.Text_IO.Integer_IO both with-ing each other.
5944 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
5945 oddball cases when pragma Extend_System is used.
5947 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
5948 the case where a package spec instantiates a generic whose body with's
5949 this package, so Walk_Library_Items won't complain about cyclic with's.
5951 2009-04-29 Emmanuel Briot <briot@adacore.com>
5953 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
5954 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
5955 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
5956 (Project_Id): now a real pointer to Project_Data, instead of an index
5957 into the Projects_Table. This simplifies the API significantly, avoiding
5958 extra lookups in this table and the need to pass the Project_Tree_Ref
5959 parameter in several cases
5961 2009-04-29 Nicolas Setton <setton@adacore.com>
5963 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
5966 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
5968 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
5971 2009-04-24 Robert Dewar <dewar@adacore.com>
5973 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
5974 clean.adb: Minor reformatting.
5975 Minor code reorganization and message improvement.
5977 2009-04-24 Emmanuel Briot <briot@adacore.com>
5979 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
5980 (Alternate_Languages): now implemented as a malloc-ed list rather
5981 than through a table.
5983 2009-04-24 Thomas Quinot <quinot@adacore.com>
5985 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
5986 accurately handle cases such as "lit" & "lit" and
5987 "lit" & static_string_constant
5989 2009-04-24 Emmanuel Briot <briot@adacore.com>
5991 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
5992 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
5993 removed. Lists of projects are now implemented via standard malloc
5994 rather than through the table.
5996 2009-04-24 Thomas Quinot <quinot@adacore.com>
5998 * sem_ch12.adb: Minor reformatting
6000 * g-trasym.adb: Minor reformatting
6002 * exp_ch6.adb: Minor reformatting
6004 2009-04-24 Robert Dewar <dewar@adacore.com>
6006 * layout.adb (Layout_Type): For packed array type, copy unset
6007 size/alignment fields from the referenced Packed_Array_Type.
6009 2009-04-24 Bob Duff <duff@adacore.com>
6011 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
6012 longer needed after sem_ch12 changes.
6014 * sem.adb (Walk_Library_Items): Include with's in some debugging
6017 2009-04-24 Emmanuel Briot <briot@adacore.com>
6019 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
6020 only ever using the Project field.
6022 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6024 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
6025 Body_Required on the generated compilation node. The new node is linked
6026 to its body, but both share the same file, so we do not set this flag
6027 on the new unit so as not to create a spurious dependency on a
6028 non-existent body in the ali file for the instance.
6030 2009-04-24 Robert Dewar <dewar@adacore.com>
6032 * make.adb: Minor reformatting
6034 2009-04-24 Emmanuel Briot <briot@adacore.com>
6036 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
6037 Add_Source): merge some code between those. In particular change where
6038 file normalization is done to avoid a few extra calls to
6039 Canonicalize_File_Name. This also removes the need for passing
6040 Current_Dir in a number of subprograms.
6042 2009-04-24 Bob Duff <duff@adacore.com>
6044 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
6045 False, assign the correct unit to the Cunit field of the new table
6046 entry. We want the spec unit, not the body unit.
6048 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
6049 interface for these.
6050 (Maybe_Add_With): Check whether we're trying to a with on the current
6051 unit, and avoid creating such directly self-referential with clauses.
6052 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
6053 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
6054 and matches existing comments in the spec.
6056 * sem.adb (Walk_Library_Items): Add various special cases to make the
6059 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
6060 instead of Parent (N), for uniformity.
6062 2009-04-24 Robert Dewar <dewar@adacore.com>
6064 * errout.ads: Minor reformatting
6066 2009-04-24 Emmanuel Briot <briot@adacore.com>
6068 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
6069 behavior when the project includes sources from multiple languages
6071 2009-04-24 Vincent Celier <celier@adacore.com>
6073 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
6074 is a language other than Ada declared.
6076 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
6077 Imported_First set to True.
6079 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6081 * sem_res.adb: additional optimization to inhibit creation of
6082 redundant transient scopes.
6084 2009-04-24 Bob Duff <duff@adacore.com>
6086 * rtsfind.ads: Minor comment fix
6088 2009-04-24 Emmanuel Briot <briot@adacore.com>
6090 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
6091 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
6092 basically doing the same work (for explicit or implicit sources).
6093 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
6094 role. Rewritten to share some code (testing that all explicit sources
6095 have been found) between ada_only and multi_language modes.
6097 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
6099 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
6100 for CLI imported types.
6101 (Analyze_Pragma): Allow CIL or Java imported functions returning
6102 access-to-subprogram types.
6104 2009-04-24 Emmanuel Briot <briot@adacore.com>
6106 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
6107 (Project_Data.Dir_Path): field removed, since it can be computed
6108 directly from .Directory, and is needed only once when processing the
6109 project is buildgpr.adb or make.adb
6111 2009-04-24 Robert Dewar <dewar@adacore.com>
6113 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
6114 rtsfind.adb: Minor reformatting.
6115 Minor code reorganization
6117 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6119 * mlib-prj.adb: Use friendlier english identifier.
6121 * gnatcmd.adb, make.adb: Use better english identifiers.
6123 2009-04-24 Robert Dewar <dewar@adacore.com>
6125 * clean.adb: Minor reformatting
6127 2009-04-24 Robert Dewar <dewar@adacore.com>
6129 * einfo.adb (OK_To_Rename): New flag
6131 * einfo.ads (OK_To_Rename): New flag
6133 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
6136 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
6138 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
6141 2009-04-24 Emmanuel Briot <briot@adacore.com>
6143 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
6144 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
6145 field removed. This is not a property of the
6146 project, just a boolean used to traverse the project tree, and storing
6147 it in the structure prevents doing multiple traversal in parallel.
6148 (Project_Data.Checked): also removed, since it was playing the same role
6149 as Seen when we had two nested loops, and this is no longer necessary
6150 (For_All_Imported_Projects): removed, since in fact there was already
6151 the equivalent in For_Every_Project_Imported. The latter was rewritten
6152 to use a local hash table instead of Project_Data.Seen
6153 Various loops were rewritten to use For_Every_Project_Imported, thus
6154 removing the need for Project_Data.Seen. This avoids a lot of code
6157 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6159 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
6160 statements, even though the actual of the call is a concatenation,
6161 because the argument is static, and we want to preserve warning
6162 messages about sequences of code statements that are not marked
6165 * sem_warn.adb: remove obsolete comment about warning being obsolete
6167 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
6168 requeued and the delay has expired while within the accept statement
6169 that executes the requeue, do not perform the requeue and indicate that
6170 the timed call has been aborted.
6172 2009-04-24 Emmanuel Briot <briot@adacore.com>
6174 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6175 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
6176 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
6177 since they can be computed from the above.
6179 2009-04-24 Vincent Celier <celier@adacore.com>
6181 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
6183 * prj-env.adb: Move all global variables to the private part of the
6185 Access these new components instead of the global variables no longer
6187 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
6188 components that were previously global variables.
6190 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
6191 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
6194 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
6195 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
6197 * prj.adb (Initialize): Do not call Prj.Env.Initialize
6198 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
6199 components in the private part of the project tree data.
6201 * prj.ads (Private_Project_Tree_Data): new components moved from
6202 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
6203 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
6204 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
6206 2009-04-24 Vincent Celier <celier@adacore.com>
6208 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
6210 * prj-nmsc.adb (Check_Library): No error for imports by shared library
6211 projects, when --unchecked-shared-lib-imports is used.
6213 2009-04-24 Robert Dewar <dewar@adacore.com>
6215 * sem_ch7.adb: Minor reformatting
6217 2009-04-24 Tristan Gingold <gingold@adacore.com>
6219 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
6222 2009-04-24 Emmanuel Briot <briot@adacore.com>
6224 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
6225 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
6226 (For_All_Imported_Projects): new procedure
6227 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
6228 above rather than duplicating code.
6230 2009-04-24 Emmanuel Briot <briot@adacore.com>
6232 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6233 (Source_Id, Source_Data): use a real list to store sources rather than
6234 using an external table to store the elements. This makes code more
6235 efficient and more readable.
6237 2009-04-24 Emmanuel Briot <briot@adacore.com>
6239 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6240 (Source_Iterator): new type.
6241 This removes the need for having the sources on three different
6242 lists at the project tree, project and language level. They are now
6245 2009-04-24 Emmanuel Briot <briot@adacore.com>
6247 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
6249 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6251 * sem_warn.adb: Add comment on obsolete warning
6253 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6255 * s-tassta.adb (Create_Task): Fix violation of locking rule.
6257 2009-04-24 Emmanuel Briot <briot@adacore.com>
6259 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
6260 to Language_Ptr to better reflect its new implementation.
6261 (Project_Data.First_Languages_Processing): renamed to Languages now
6262 that the field with that name is no longer used
6263 (Project_Data.Languages): removed, no longer used, and duplicates
6264 information already available through First_Language_Processing.
6265 (Prj.Language_Index): now an actual pointer, instead of an index into
6266 a table. This makes the list somewhat more obvious, but more importantly
6267 removes the need to pass a pointer to the project_tree_data in a few
6268 places, and makes accessing the attributes of a languages more
6271 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6272 Thomas Quinot <quinot@adacore.com>
6274 * fe.h (Set_Identifier_Casing): Add const to second parameter.
6275 * gcc-interface/misc.c (internal_error_function): Make copy of return
6276 from pp_formatted_text before assigning BUFFER to it.
6277 (gnat_init): Likewise for main_input_filename and gnat_argv.
6278 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
6280 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6282 * ttypes.ads (Target_Double_Float_Alignment): New variable.
6283 (Target_Double_Scalar_Alignment): Likewise.
6284 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
6285 (Get_Double_Float_Alignment): New imported function.
6286 (Get_Double_Scalar_Alignment): Likewise.
6287 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
6288 the alignment of "double" floating-point types and "double" or larger
6289 scalar types, as parameterized by Target_Double_Float_Alignment and
6290 Target_Double_Scalar_Alignment respectively.
6291 * gcc-interface/gigi.h (double_float_alignment): Declare.
6292 (double_scalar_alignment): Likewise.
6293 (is_double_float_or_array): Likewise.
6294 (is_double_scalar_or_array): Likewise.
6295 (get_target_double_float_alignment): Likewise.
6296 (get_target_double_scalar_alignment): Likewise.
6297 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
6298 (get_target_strict_alignment): ...this.
6299 (get_target_double_float_alignment): New function.
6300 (get_target_double_scalar_alignment): Likewise.
6301 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6302 Test the presence of an alignment clause for under-aligned integer
6303 types. Take into account specific caps for the alignment of "double"
6304 floating-point types and "double" or larger scalar types, as
6305 parameterized by Target_Double_Float_Alignment and
6306 Target_Double_Scalar_Alignment respectively.
6307 (validate_alignment): Likewise.
6308 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
6309 (gigi): Initialize double_float_alignment and double_scalar_alignment.
6310 * gcc-interface/utils.c (double_float_alignment): New global variable.
6311 (double_scalar_alignment): Likewise.
6312 (is_double_float_or_array): New predicate.
6313 (is_double_scalar_or_array): Likewise.
6315 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6317 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
6318 the conditional expression only if it is common to both arms.
6320 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6322 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
6323 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
6324 arguments to build_allocator.
6325 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
6326 Remove code handling special allocator and assert its uselessness.
6328 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6330 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
6331 alignment is specified, do not promote that of the component type
6333 <E_Array_Subtype>: Likewise.
6335 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6337 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
6338 * sinfo.ads (Object Declaration): Likewise.
6339 (Assignment Statement): Likewise.
6340 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
6341 Do not force Is_True_Constant to false on the temporary.
6342 (Freeze_Entity): Do not force Is_True_Constant to false on names on
6343 the RHS of object declarations.
6344 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
6345 New case. Return 1 if the object is atomic.
6346 <N_Assignment_Statement>: Likewise.
6348 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6350 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
6351 For packed array types, make the original array type a parallel type
6352 for the modular type and its JM wrapper if the type is bit-packed.
6353 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
6354 record type for packed array types. Remove kludge.
6356 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6358 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
6359 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6360 Use front-end predicates to compute signedness and precision.
6361 <E_String_Literal_Subtype>: Fold range type.
6362 Make sure to set longest_float_type_node to a scalar type.
6363 (elaborate_entity): Use consistent Constraint_Error spelling.
6364 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
6365 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
6366 output for the modulus, if any.
6367 <ENUMERAL_TYPE>: Likewise for the RM size.
6368 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
6370 * gcc-interface/utils.c (finish_record_type): Really test the alignment
6371 of BLKmode bit-fields to compute their addressability.
6372 (create_index_type): Adjust comments.
6373 (create_param_decl): Create the biased subtype manually.
6374 * gcc-interface/utils2.c (build_component_ref): Use consistent
6375 Constraint_Error spelling.
6377 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6379 * gcc-interface/cuintp.c: Clean up include directives.
6380 * gcc-interface/targtyps.c: Likewise.
6381 * gcc-interface/decl.c: Likewise.
6382 * gcc-interface/misc.c: Likewise.
6383 * gcc-interface/trans.c: Likewise.
6384 * gcc-interface/utils.c: Likewise.
6385 * gcc-interface/utils2.c: Likewise.
6386 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
6388 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6390 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
6391 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
6392 (SET_DECL_LANG_SPECIFIC): Likewise.
6394 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6395 Update comment about use of build_range_type.
6396 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
6397 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
6398 check for other cases of overloading.
6399 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
6400 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
6401 Use size_int in lieu of build_int_cst.
6402 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
6405 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6407 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
6408 type is an enumeral or a boolean type, change it to an integer type
6409 with the same mode and signedness.
6411 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6413 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
6414 for an external constant whose initializer is not absolute.
6416 2009-04-22 Taras Glek <tglek@mozilla.com>
6418 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
6419 * gcc-interface/trans.c: Likewise.
6420 * gcc-interface/utils.c: Likewise.
6422 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6424 * sem_res.adb: Create block around procedure call when actual is a
6427 2009-04-22 Thomas Quinot <quinot@adacore.com>
6429 * s-soflin.ads: Fix typos
6431 2009-04-22 Vincent Celier <celier@adacore.com>
6433 * prj-env.adb: Minor comment change
6435 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
6436 Get_Name_String with No_File.
6438 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
6439 cannot be created even when not in verbose mode.
6441 2009-04-22 Emmanuel Briot <briot@adacore.com>
6443 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
6444 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
6445 Multi_Language modes, to avoid code duplication.
6446 (Project_Data.Include_Language): Removed.
6448 2009-04-22 Vincent Celier <celier@adacore.com>
6450 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
6451 the temporary file cannot be created, indicating the directory when the
6452 creation was attempted.
6454 2009-04-22 Emmanuel Briot <briot@adacore.com>
6456 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
6457 the language names, not their indices.
6459 2009-04-22 Emmanuel Briot <briot@adacore.com>
6461 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
6462 (Source_Data.Language_Name): Field removed.
6464 2009-04-22 Emmanuel Briot <briot@adacore.com>
6466 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
6469 2009-04-22 Emmanuel Briot <briot@adacore.com>
6471 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
6472 separate_suffix to the same value as the body_suffix.
6474 2009-04-22 Robert Dewar <dewar@adacore.com>
6476 * prj.adb: Minor code reorganization
6479 * prj-proc.adb: Minor code reorganization, clean up.
6481 * prj-nmsc.adb: Minor reformatting
6482 Minor code reorganization
6484 * gnat_ugn.texi: Add to doc on strict aliasing
6486 2009-04-22 Pascal Obry <obry@adacore.com>
6488 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
6491 * s-tasini.adb: Minor reformatting.
6493 * s-tassta.adb: Minor reformatting.
6495 2009-04-22 Emmanuel Briot <briot@adacore.com>
6497 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
6498 smaller subprograms.
6499 Renamed to Check_File_Naming_Schemes to avoid confusion with the
6500 other Check_Naming_Schemes functions that plays a totally different
6502 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
6503 extracted from the above. These were partially rewritten to avoid
6504 unnecessary code and temporary variables.
6505 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
6506 and Get_Unit (which for now still exist since they contain mode-specific
6509 2009-04-22 Emmanuel Briot <briot@adacore.com>
6511 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
6512 Remove duplicated code.
6513 (Canonical_Case_File_Name): new subprogram
6514 (Check_And_Normalize_Unit_Names): new subprogram
6515 (Write_Attr): new subprogram
6516 Better sharing of code
6517 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
6518 split Check_Naming and help find duplicated code
6519 (Check_Common): new subprogram, sharing code between ada_only and
6520 multi_language mode.
6521 (Naming_Data.Dot_Repl_Loc): field removed
6523 2009-04-22 Emmanuel Briot <briot@adacore.com>
6525 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
6526 Minor refactoring to reduce the size of
6527 Process_Sources_In_Multi_Language_Mode.
6528 Avoid extra copied of Source_Data, which we found in the past could be
6530 (Mark_Excluded_Sources): new subprogram.
6531 (Remove_Locally_Removed_Files_From_Units): merged into the above
6532 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
6533 and allow better sharing of code between multi_lang and ada_only modes
6534 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
6536 2009-04-22 Emmanuel Briot <briot@adacore.com>
6538 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
6539 Removed, since unused.
6541 2009-04-22 Vincent Celier <celier@adacore.com>
6543 * prj-attr.adb: New single project level attribute
6544 Separate_Run_Path_Options.
6546 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6547 attribute Seperate_Run_Path_Options.
6549 * prj.ads: (Project_Configuration): New Boolean component
6550 Separate_Run_Path_Options, defaulted to False.
6552 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
6554 2009-04-22 Robert Dewar <dewar@adacore.com>
6556 * sem_type.adb: Minor reformatting
6558 * mlib.adb: Minor reformatting
6560 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
6563 2009-04-22 Nicolas Setton <setton@adacore.com>
6565 * link.c: Add flag __gnat_separate_run_path_options.
6567 * mlib.adb (Separate_Run_Path_Options): New subprogram.
6569 * mlib.ads (Separate_Run_Path_Options): Declare.
6571 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
6572 switch per directory, rather than one "rpath" switch listing all
6575 * gnatlink.adb (Process_Binder_File): Likewise.
6577 * make.adb (Gnatmake): Likewise.
6579 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
6581 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
6582 Add a call to Move_Final_List when the target of the assignment is a
6583 return object that needs finalization and the expression is a
6584 controlled build-in-place function.
6586 2009-04-22 Vincent Celier <celier@adacore.com>
6588 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
6589 Including_Libraries set to True.
6591 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6593 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
6594 create a unit table entry for the subprogram declaration created for a
6595 child suprogram body that has no separate specification.
6597 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
6598 subprogram body, call Make_Child_Decl_Unit.
6600 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
6601 table can only be the created specification of a child subprogram body
6602 that is the main unit, which has not been entered in the table yet.
6604 * errout.adb (Output_Messages): Ignore created specification of a
6605 child subprogram body to prevent repeated listing of error messages.
6607 * gnat1drv.adb (gnat1drv): The generated specification for a child
6608 subprogram body does not generate code.
6610 2009-04-22 Arnaud Charlet <charlet@adacore.com>
6612 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
6613 since this unit is now part of bootstrap units, so must use Ada 95
6616 2009-04-22 Thomas Quinot <quinot@adacore.com>
6618 * a-tasatt.adb: Minor reformatting
6620 2009-04-22 Bob Duff <duff@adacore.com>
6622 * s-stalib.ads: Remove "with System;" since we're inside System, so
6625 2009-04-22 Vincent Celier <celier@adacore.com>
6627 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
6628 the source record, as there may be a dependency file even if no object
6631 2009-04-22 Robert Dewar <dewar@adacore.com>
6633 * lib-load.adb: Minor reformatting
6635 * lib-load.ads: Minor reformatting
6637 * sinfo.ads: Minor reformatting
6639 2009-04-22 Bob Duff <duff@adacore.com>
6641 * exp_pakd.adb: Minor comment fixes.
6643 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
6644 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
6645 include units containing instantiations, as well as units that are
6646 generic instantiations.
6648 * sem.adb: Include dependents and corresponding specs/bodies in the
6651 * gcc-interface/Make-lang.in:
6652 sem now depends on s-bitops, because of the packed array of Booleans.
6654 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6656 * gcc-interface/ada-tree.def: Fix formatting nits.
6657 (REGION_STMT): Delete.
6658 (HANDLER_STMT): Likewise.
6659 * gcc-interface/ada-tree.h: Fix formatting nits.
6661 (REGION_STMT_BODY): Likewise.
6662 (REGION_STMT_HANDLE): Likewise.
6663 (REGION_STMT_BLOCK): Likewise.
6664 (HANDLER_STMT_ARG): Likewise.
6665 (HANDLER_STMT_LIST): Likewise.
6666 (HANDLER_STMT_BLOCK): Likewise.
6667 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
6668 (fp_size_to_prec): Likewise.
6669 (largest_move_alignment): Delete.
6670 (gnat_compute_largest_alignment): Likewise.
6672 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6673 Remove redundant code.
6674 <E_Array_Type>: Remove redundant assert.
6675 <E_Array_Subtype>: Exit early from index computation in pathological
6677 Rewrite conditional assignment.
6678 (make_type_from_size): Likewise.
6679 * gcc-interface/misc.c (largest_move_alignment): Delete.
6680 (gnat_finish_incomplete_decl): Likewise.
6681 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
6682 (asm_out_file): Likewise
6683 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
6684 (gnat_dwarf_name): Move around.
6685 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
6686 (gigi): Remove call to gnat_compute_largest_alignment.
6687 * utils.c (create_field_decl): Rewrite conditional assignment.
6690 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6692 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
6693 on entry. Defer common processing for types. Reorder and clean up.
6694 Compute the equivalent GNAT node and the default size for types only.
6695 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
6696 <E_Access_Type>: For an unconstrained designated type, do not pretend
6697 that a dummy type is always made.
6698 <all> Fix nits in comments.
6699 (validate_size): Fix formatting nits and comments.
6700 (set_rm_size): Likewise.
6701 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
6702 passed to TARGET_PROMOTE_PROTOTYPES hook.
6704 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6706 * fe.h (Get_External_Name): Declare.
6707 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
6708 (concat_name): ...this.
6709 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
6710 gnu_entity_name and adjust for above renaming.
6711 <E_Access_Type>: Use create_concat_name to get the name of the various
6712 types associated with unconstrained array types.
6713 (make_aligning_type): Adjust for above renaming.
6714 (maybe_pad_type): Likewise.
6715 (components_to_record): Likewise. Use get_identifier_with_length for
6716 the encoding of the variant.
6717 (get_entity_name): Use get_identifier_with_length.
6718 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
6719 Do not fiddle with Name_Buffer.
6720 (concat_id_with_name): Rename to...
6721 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
6723 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
6726 2009-04-21 Joseph Myers <joseph@codesourcery.com>
6728 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
6731 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6733 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
6735 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6737 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
6738 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
6739 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
6740 Remove useless support code for packed array types and assert its
6742 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
6743 adjust for TYPE_RM_SIZE change.
6744 <all> Fix nits in comments. Use Original_Array_Type accessor instead
6745 of Associated_Node_For_Itype accessor for packed array types.
6746 (make_packable_type): Likewise.
6747 (maybe_pad_type): Likewise.
6748 (set_rm_size): Likewise. Rework conditional statement. Adjust for
6749 TYPE_RM_SIZE change.
6750 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
6751 (rm_size): Fix nits in comments. Rework conditional statements.
6752 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
6754 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
6755 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
6756 appropriate function to initialize the size_type_node. Adjust for
6757 TYPE_RM_SIZE change.
6759 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6761 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
6762 for imported subprograms.
6764 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6766 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
6767 constant objects covered by 13.3(19) volatile.
6769 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6771 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
6772 of dummy fat pointer types to the debug back-end.
6774 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6776 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
6777 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
6778 before wrapping it up in the record type. Do not overwrite the
6779 Ada size of the record type with the Esize.
6781 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6783 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
6784 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
6785 if the conversion is on the LHS of an assignment and a no-op.
6786 <all> Do not convert the result to the result type if the Parent
6787 node is such a conversion.
6789 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6791 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
6792 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
6793 of types with unknown discriminants.
6794 (substitute_in_type): Rewrite and restrict to formal substitutions.
6795 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
6796 (update_pointer_to): Update comment.
6798 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6800 * sem_ch8.adb (Use_One_Package): In an instance, if two
6801 potentially_use_visible and non-overloadable homonyms are available
6802 from the actuals of distinct formal packages, retain the current one,
6803 which was visible in the generic, to prevent spurious visibility
6805 (End_Use_Package): Restore use_visibility when needed.
6807 2009-04-20 Sergey Rybin <rybin@adacore.com>
6809 * gnat_ugn.texi, vms_data.ads: Update doc.
6811 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6813 * gcc-interface/Make-lang.in: Update dependencies
6815 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
6818 2009-04-20 Robert Dewar <dewar@adacore.com>
6820 * checks.ads: Fix documentation of range check handling
6822 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6824 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
6825 a redundant use_type clause.
6827 2009-04-20 Robert Dewar <dewar@adacore.com>
6829 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
6830 this attribute can be evaluated at compile time.
6831 (Eval_Attribute, case Range_Length): Same improvement
6833 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
6835 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6837 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
6838 for better handling of null procedures.
6839 (Check_Overriding_Indicator): Do not emit a warning on a missing
6840 overriding indicator on an operator when the type of which the operator
6841 is a primitive is private.
6843 2009-04-20 Bob Duff <duff@adacore.com>
6845 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
6848 2009-04-20 Robert Dewar <dewar@adacore.com>
6850 * sem_attr.adb: Minor reformatting
6852 * gnatcmd.adb: Minor reformatting
6854 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6856 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
6857 overloaded and one interpretation matches the context, label the
6858 operand with the type of first formal.
6860 2009-04-20 Bob Duff <duff@adacore.com>
6862 * debug.ads: Minor comment fix.
6864 * debug.adb: Minor comment fixes.
6866 2009-04-20 Javier Miranda <miranda@adacore.com>
6868 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
6870 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
6872 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
6873 is expanded into a call to Raise_Exception, avoid passing the
6874 exception-name'identity in runtimes in which this argument
6877 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
6879 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
6880 generated bindings for cil.
6882 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6884 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
6885 discriminants, collect components from the Underlying_Record_View,
6886 which will be used in the expansion of the aggregate into assignments.
6888 * sem_ch3.adb: Do not label derived type with unknown discriminants as
6889 having a private declaration.
6891 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6893 * exp_util.adb (Expand_Subtype_From_Expr): use the
6894 underlying_record_view when available, to create the proper constrained
6895 subtype for an object of a derived type with unknown discriminants.
6897 2009-04-20 Javier Miranda <miranda@adacore.com>
6899 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
6900 formals that have pragma unreferenced.
6902 2009-04-20 Pascal Obry <obry@adacore.com>
6904 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
6905 Remove all calls to To_Lower_If_Case_Insensitive to preserve
6906 the pathname original casing.
6908 2009-04-20 Robert Dewar <dewar@adacore.com>
6910 * g-trasym.adb: Minor reformatting
6912 * s-os_lib.adb: Minor reformatting
6914 * sem.adb: Minor reformatting
6915 Minor code reorganization
6917 * sem_ch3.adb: Minor reformatting
6919 * sem_ch4.adb: Minor reformatting
6921 * sem_ch8.adb: Minor reformatting
6923 * sem_type.adb: Minor reformatting
6925 2009-04-20 Javier Miranda <miranda@adacore.com>
6927 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
6928 generated by derivations of tagged types use the aliased subprogram a
6929 reference to locate their controlling type.
6931 2009-04-20 Tristan Gingold <gingold@adacore.com>
6933 * g-trasym.adb: Set size of result buffer before calling
6936 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6938 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
6939 to a function returning an array can be interpreted as a call with
6940 defaulted parameters whose result is indexed, take into account the
6941 types of all the indices of the array result type.
6943 2009-04-20 Pascal Obry <obry@adacore.com>
6945 * a-direct.adb, s-os_lib.adb: Minor reformatting.
6947 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6949 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
6950 null exclusion qualifiers for object renaming declarations.
6952 2009-04-20 Nicolas Roche <roche@adacore.com>
6954 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
6955 unsigned long long. So compare local_time and utc_time before computing
6958 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6960 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6961 of the Underlying_Record_View before that of the derived type.
6963 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
6964 with unknown discriminants with regard to the parent subtype.
6966 2009-04-20 Bob Duff <duff@adacore.com>
6968 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
6969 that are not included. This is necessary if the main unit is a generic
6972 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
6973 because it doesn't work if -gnatn is used.
6975 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6977 * rtsfind.adb (RTE, RTE_Record_Component): In
6978 Configurable_Run_Time_Mode, do not enable front-end inlining.
6980 2009-04-20 Thomas Quinot <quinot@adacore.com>
6982 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
6983 System.Address_To_Access_Conversions.
6985 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6987 * sem.adb: Guard against ill-formed subunits.
6989 2009-04-20 Bob Duff <duff@adacore.com>
6991 * output.adb (Flush_Buffer): Do not indent blank lines.
6992 (Ignore_Output): New procedure for output suppression.
6994 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
6996 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
6997 when it is positive. This avoids a potential constraint error raised
6998 by the conversion to Natural.
7000 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7002 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
7003 involves a target that has a specified address, don't set Forward_OK
7004 and Backward_OK to False if the rhs is an aggregate, since overlap
7007 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7009 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
7010 in an object renaming declaration when the expected type is an
7011 anonymous access type.
7013 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
7014 ambiguity when one interpretation is an anonymous access type and the
7015 other is a named access type, and the context itself is anonymous
7017 2009-04-20 Thomas Quinot <quinot@adacore.com>
7019 * einfo.ads: Minor comment rewording
7021 * sem_aggr.adb: Minor comment rewording
7023 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
7025 2009-04-20 Pascal Obry <obry@adacore.com>
7027 * adaint.c (__gnat_is_readable_file): Check for file existence
7028 when not using ACL (always the case on remote drives).
7030 2009-04-20 Robert Dewar <dewar@adacore.com>
7032 * sinfo.ads: Minor comment fixes
7034 * exp_disp.adb: Minor reformatting
7036 * gnat1drv.adb: Minor reformatting
7038 * output.adb: Minor reformatting
7040 * s-vxwext-kernel.ads: Minor reformatting
7042 * sem.ads: Minor reformatting
7044 * sem.adb: Minor reformatting
7046 * sem_elim.adb: Minor reformatting
7048 * uname.ads: Minor reformatting
7050 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7052 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
7053 a small dope of 4 words to the adjustment to the stack pointer.
7055 2009-04-20 Thomas Quinot <quinot@adacore.com>
7057 * xoscons.adb: generate C header s-oscons.h in
7058 addition to s-oscons.ads.
7060 * socket.c: On VMS, use s-oscons.h.
7062 * sem_ch3.adb: Minor reformatting
7064 * exp_ch9.adb: Minor reformatting
7066 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7068 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
7069 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
7070 (call_to_gnu): Likewise.
7072 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7074 * gcc-interface/trans.c (gigi): Declare the name of the compilation
7075 unit as the first global name at the very beginning.
7077 2009-04-20 Thomas Quinot <quinot@adacore.com>
7079 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7080 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
7081 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
7082 since HP-UX supports neither inet_aton nor inet_pton (altough the
7083 latter is part of the Single UNIX Specification!).
7084 So reorganize code, and share C implementation based on inet_addr(3)
7085 with VMS (instead of having a VMS specific Ada implementation in
7088 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7090 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
7091 to return the object file name saved by Set_Object_Output_File_Name.
7093 2009-04-20 Emmanuel Briot <briot@adacore.com>
7095 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
7096 for the standard command line, when argc has been modified since the
7097 start of the application.
7099 2009-04-20 Thomas Quinot <quinot@adacore.com>
7101 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
7102 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
7104 2009-04-20 Bob Duff <duff@adacore.com>
7106 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
7109 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7111 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
7112 subprogram as Eliminated when source operation is.
7113 (Expand_N_Protected_Type_Declaration): Generate protected and
7114 unprotected specs for the internal operations, even if the source
7115 operation is eliminated.
7117 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7119 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
7120 Predefined_Primitive_Bodies): Do not create the declarations and bodies
7121 of the primitive subprograms associated with dispatching select
7122 statements when the runtime is in configurable mode.
7124 2009-04-20 Ed Falis <falis@adacore.com>
7126 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
7128 2009-04-20 Thomas Quinot <quinot@adacore.com>
7130 * s-oscons-tmplt.c: Add support for generating a dummy version of
7131 s-oscons.ads providing all possible constants.
7133 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
7135 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
7136 ANSI version (not the UNICODE version) of WSAStringToAddress.
7138 2009-04-20 Pascal Obry <obry@adacore.com>
7140 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
7141 allocated for the security descriptor and make sure all
7142 handles are closed before leaving this procedure.
7144 2009-04-20 Javier Miranda <miranda@adacore.com>
7146 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
7147 (Set_Is_Underlying_Record_View): New subprogram
7149 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
7150 private types with unknown discriminants use the underlying record view
7153 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
7154 underlying record view in the full view of private types whose parent
7155 has unknown discriminants.
7156 (Build_Derived_Record_Type): Avoid generating the class-wide entity
7157 associated with an underlying record view.
7158 (Derived_Type_Declaration): Avoid deriving parent primitives in
7159 underlying record views.
7161 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
7162 records with unknown discriminants.
7164 * sem_type.adb (Covers): Handle underlying record views.
7165 (Is_Ancestor): Add support for underlying record views.
7167 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
7168 dispatching call if the type of the target object is tagged and has
7169 unknown discriminants.
7171 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
7172 unknown discriminants.
7174 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
7175 tables for internally built underlying record views.
7177 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
7178 empty list of component associations.
7180 2009-04-20 Thomas Quinot <quinot@adacore.com>
7182 * sem_ch10.adb: Minor reformatting
7184 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7185 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
7186 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
7187 standard inet_pton API (and emulate it on platforms that do not
7189 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
7190 DECC$INET_ADDR, imported in Ada.
7191 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
7192 implementation provided by GNAT runtime.
7193 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
7196 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7198 * gnat_ugn.texi: Add documentation for -fno-ivopts.
7200 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7202 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
7203 with_clause if it is the main unit.
7205 2009-04-20 Thomas Quinot <quinot@adacore.com>
7207 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
7208 (no behaviour change): Use Append instead of Increment_Last followed
7211 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7213 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
7214 declarations of all primitives associated with dispatching asynchronous,
7215 conditional and timed selects when dispaching calls are forbidden and
7216 select statements are not allowed (such as in Ravenscar).
7217 (Predefined_Primitive_Bodies): Ditto for bodies.
7219 * exp_disp.ad (Make_DT): Do not create and populate the
7220 Select_Specific_Data of the dispatch table when dispatching calls are
7221 forbidden and select statements are not allowed (such as in Ravenscar).
7223 2009-04-20 Robert Dewar <dewar@adacore.com>
7225 * a-tifiio.adb: Minor reformatting
7227 2009-04-20 Thomas Quinot <quinot@adacore.com>
7229 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
7230 other C library functions, report *failure* with a zero status, and
7231 success with a non-zero status.
7233 2009-04-20 Bob Duff <duff@adacore.com>
7235 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
7236 (Semantics): After analyzing each unit, Append it to the
7237 Comp_Unit_List, if appropriate.
7239 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
7241 (Gnat1drv): Correct comment regarding Back_End_Mode.
7243 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7245 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
7247 2009-04-20 Thomas Quinot <quinot@adacore.com>
7249 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7250 output.adb, output.ads, s-taprop-hpux-dce.adb,
7251 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
7254 2009-04-20 Thomas Quinot <quinot@adacore.com>
7256 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
7257 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
7258 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
7259 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
7260 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
7261 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
7263 * debug.adb: Fix typo
7265 * gnat_rm.texi: Minor doc fix.
7267 * sem_ch7.adb, freeze.adb: Minor reformatting
7269 2009-04-20 Thomas Quinot <quinot@adacore.com>
7271 * g-socket.ads: Add new constants:
7273 Unspecified_Group_Inet_Addr
7274 All_Hosts_Group_Inet_Addr
7275 All_Routers_Group_Inet_Addr
7277 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
7278 ERANGE (Result too large).
7279 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
7280 propagation of errno to caller.
7282 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7284 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
7285 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
7288 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7290 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
7291 checking for references to eliminated subprograms that should be
7293 (Eliminate_Error_Message): Update comment to say "references" rather
7294 than "calls" (since attribute cases are handled here as well).
7296 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
7297 checking for references to eliminated subprograms that should be
7298 flagged. Add with and use of Sem and Sem_Util.
7300 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
7301 Add with and use of Sem_Elim.
7303 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
7304 applied to eliminated subprograms.
7305 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
7306 eliminated subprograms.
7307 Add with and use of Sem_Elim.
7309 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
7310 to eliminated subprograms, now handled during Resolve_Call.
7311 Remove with and use of Sem_Elim.
7313 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
7314 testing Is_Eliminated, for proper handling of primitive derived from
7315 eliminated subprograms.
7317 2009-04-20 Vincent Celier <celier@adacore.com>
7319 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
7320 has been declared (Library_GCC or Linker'Driver), for the driver name.
7322 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
7323 Linker'Driver is, use Linker'Driver as the shared library linker.
7324 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
7325 Library_GCC is declared.
7326 (Check_Library_Attributes): Set up the shared linker driver: either
7327 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
7330 2009-04-20 Thomas Quinot <quinot@adacore.com>
7332 * g-socket.ads (Send_Socket): Fix misleading comment.
7334 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7336 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
7339 2009-04-20 Geert Bosch <bosch@adacore.com>
7341 * a-tifiio.adb (Put): Avoid generating too many digits for certain
7342 fixed types with smalls that are neither integer or the reciprocal
7345 2009-04-20 Bob Duff <duff@adacore.com>
7347 * uname.ads: Minor comment fix.
7349 * types.ads: Minor comment fix.
7351 2009-04-20 Pascal Obry <obry@adacore.com>
7353 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
7354 avoid warning. At the same time fix a memory leak.
7356 * osint.adb (Get_Libraries_From_Registry): Properly free memory
7357 returned by the above routine.
7359 2009-04-20 Robert Dewar <dewar@adacore.com>
7361 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
7362 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
7363 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
7364 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
7366 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
7368 2009-04-20 Pascal Obry <obry@adacore.com>
7370 * initialize.c (__gnat_initialize): Add braces to kill warning.
7372 * adaint.c: Minor reformatting, remove trailing spaces.
7374 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7376 * gcc-interface/Make-lang.in: Update dependencies.
7378 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7380 * adaint.h (__gnat_lwp_self): Declare on Linux.
7382 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
7384 2009-04-20 Robert Dewar <dewar@adacore.com>
7386 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
7387 front-end part of -fpreserve-control-flow switch.
7389 2009-04-20 Bob Duff <duff@adacore.com>
7391 * rtsfind.adb: Minor comment fix
7393 2009-04-20 Robert Dewar <dewar@adacore.com>
7395 * exp_aggr.adb: Minor reformatting
7396 Minor code reorganization (use Nkind_In)
7398 * g-socket.adb: Minor reformatting
7400 * g-socket.ads: Minor comment fix
7402 * s-auxdec.ads: Minor comment and organization update.
7404 * s-auxdec-vms_64.ads: Minor comment and organization update.
7406 * sem_ch10.adb: Minor addition of ??? comment
7408 * sem_disp.adb: Minor reformatting
7410 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7412 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
7413 list a caller of an inlined subprogram, if the caller itself is not
7416 2009-04-20 Pascal Obry <obry@adacore.com>
7418 * adaint.c: Disable use of ACL on network drives.
7420 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7422 * gnat_ugn.texi: Add examples.
7424 2009-04-20 Thomas Quinot <quinot@adacore.com>
7426 * g-socket.ads (Abort_Selector): Clarify documentation.
7428 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7430 * opt.ads (Inspector_Mode): Update documentation of this flag.
7432 2009-04-20 Thomas Quinot <quinot@adacore.com>
7434 * g-socket.ads: Minor reformatting
7436 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
7437 consider S_resolvLib error codes since we only use the hostLib wrappers.
7439 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7441 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7442 of the Underlying_Record_View after that of the derived type.
7444 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7446 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
7449 2009-04-20 Javier Miranda <miranda@adacore.com>
7451 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
7453 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
7456 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
7459 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
7460 in internally built overriding subprograms.
7462 2009-04-20 Doug Rupp <rupp@adacore.com>
7464 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
7466 * s-auxdec.ads: Likewise
7468 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7470 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
7471 type by an interface.
7473 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
7474 minimze difference in expanded tree when compiled as spec of the main
7475 unit, or as a spec in the context of another unit.
7477 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7479 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
7480 (localtime_tzoff): This routine no longer accepts an actual of type
7482 (UTC_Time_Offset): Remove local variable Secs_TM.
7484 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
7485 actual of type struct tm*. Add local variable of type struct tm for all
7486 targets that provide localtime_r and need to invoke it.
7488 2009-04-20 Thomas Quinot <quinot@adacore.com>
7490 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
7491 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
7492 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
7494 2009-04-20 Robert Dewar <dewar@adacore.com>
7496 * sem_ch3.adb: Minor reformatting
7498 * lib-load.adb: Minor reformatting
7500 * sem_ch4.adb: Minor reformatting
7502 2009-04-20 Robert Dewar <dewar@adacore.com>
7504 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
7505 (equal values => False).
7507 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7509 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
7510 to null procedures can be inlined unconditionally.
7512 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7514 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
7515 non-addressable parameter passed by reference, do not convert the
7516 actual if its type is already the nominal type, unless it is of
7517 self-referential size.
7519 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7521 * gnat_ugn.texi: Fix typos.
7523 2009-04-20 Robert Dewar <dewar@adacore.com>
7525 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
7526 Validate_Unchecked_Warnings to suppress warnings about size or
7527 alignment or extra bits if either type involved has pragma Warnings
7528 (Off) set for the type entity.
7530 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
7532 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
7533 a builtin type and give it a name.
7535 2009-04-17 Diego Novillo <dnovillo@google.com>
7537 * gcc-interface/misc.c (gnat_expand_expr): Remove.
7538 (LANG_HOOKS_EXPAND_EXPR): Remove.
7540 2009-04-17 Robert Dewar <dewar@adacore.com>
7542 * sem_ch3.adb: Minor reformatting
7544 2009-04-17 Pascal Obry <obry@adacore.com>
7546 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
7548 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7550 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
7551 illegal constraints on type derived from formal discrete types.
7553 2009-04-17 Thomas Quinot <quinot@adacore.com>
7557 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7558 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7559 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
7560 g-socket.ads (GNAT.Sockets.Thin.C_Send,
7561 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
7562 Replace calls to send(2) with equivalent sendto(2) calls.
7563 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
7564 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
7565 report an error in that case. Factor code common to the two versions
7566 (datagram and stream) in common routine Stream_Write.
7568 2009-04-17 Robert Dewar <dewar@adacore.com>
7570 * exp_disp.adb: Minor reformatting
7571 Minor code reorganization (use Nkind_In)
7573 * prepcomp.adb: Minor reformatting
7575 * sem_ch3.adb: Minor reformatting
7577 * sem_res.adb: Minor comment addition
7579 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
7582 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
7583 setting Is_Referenced
7585 * types.ads: Minor reformatting
7587 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7589 * gnat_ugn.texi: Initial documentation on binding generator.
7591 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7593 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
7594 type extensions whose parent is a type with unknown discriminants.
7596 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
7597 aggregate has unknown discriminants, use the Underlying_Record_View to
7598 obtain the discriminants of the ancestor part.
7600 * exp_disp.adb (Build_Dispatch_Tables): Types that are
7601 Underlying_Record_Views share the dispatching information of the
7602 original record extension.
7604 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
7605 discriminants, propagate dispach table information to the
7606 Underlying_Record_View.
7608 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
7609 discriminants and declaration is not a completion, generate
7610 Underlying_Record_View to provide proper discriminant information to
7611 the front-end and to gigi.
7613 2009-04-17 Robert Dewar <dewar@adacore.com>
7615 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
7616 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
7617 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
7618 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
7619 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
7620 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
7621 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
7622 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
7623 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
7624 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
7625 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
7626 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
7627 s-conca3.ads: Remove unneeded pragma Warnings
7629 2009-04-17 Robert Dewar <dewar@adacore.com>
7631 * g-moreex.adb: Add comments.
7633 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
7635 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
7638 * prepcomp.adb: Add ??? comment
7640 * a-tasatt.adb: Minor reformatting
7642 * g-trasym-vms-alpha.adb: Add ??? comment
7644 * g-trasym-vms-ia64.adb: Add ??? comment
7646 * xoscons.adb: Minor reformatting
7648 * s-tassta.adb: Minor reformatting
7650 * s-scaval.adb: Add ??? comment
7652 * stand.ads: Minor code clean up (remove junk with of Namet)
7654 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
7655 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
7656 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
7657 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
7658 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
7659 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
7660 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
7661 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
7662 Warnings off pragmas.
7664 2009-04-17 Pascal Obry <obry@adacore.com>
7666 * initialize.c: Fix test for reallocating the arguments array.
7668 2009-04-17 Geert Bosch <bosch@adacore.com>
7670 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
7671 conversion truncate only for decimal fixed point types.
7673 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
7675 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
7678 2009-04-17 Robert Dewar <dewar@adacore.com>
7680 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
7681 Backwards_OK if either operand has an address clause.
7683 2009-04-17 Pascal Obry <obry@adacore.com>
7685 * initialize.c: Code clean up, use realloc.
7687 2009-04-17 Pascal Obry <obry@adacore.com>
7689 * initialize.c: Do not get Unicode command line if Unicode support not
7691 Add support for wildcard expansion for Unicode parameters on Win32.
7693 * mingw32.h: Add missing macros when Unicode support not activated.
7695 2009-04-17 Javier Miranda <miranda@adacore.com>
7697 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
7698 avoid generating code that references the Current_Master
7699 when compiling without tasks.
7701 2009-04-17 Vincent Celier <celier@adacore.com>
7703 * prj-attr.adb: New project level attribute Target
7705 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
7708 * prj.ads (Project_Configuration): New component Target
7710 2009-04-17 Thomas Quinot <quinot@adacore.com>
7712 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
7713 case for the case of an aggregate component, the attach call for the
7714 result is actually needed.
7716 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
7717 an array aggregate must be disabled if the component type requires
7720 * exp_ch3.adb: Minor reformatting
7722 2009-04-17 Bob Duff <duff@adacore.com>
7724 * output.ads (Indent,Outdent): New procedures for indenting the output.
7725 (Write_Char): Correct comment -- LF _is_ allowed.
7727 * output.adb (Indent,Outdent): New procedures for indenting the output.
7728 Keep track of the indentation level, and make sure it doesn't get too
7730 (Flush_Buffer): Insert spaces at the beginning of each line, if
7731 indentation level is nonzero.
7732 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
7734 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
7735 "Next_Col := 1;". Flush_Buffer does that.
7737 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
7738 controlled by the -gnatdc switch. It now occurs on entry/exit to the
7739 relevant analysis routines, and calls Indent/Outdent to make the
7740 indentation reflect the nesting level. Add "helper" routines, since
7741 otherwise lots of "return;" statements would skip the debugging output.
7743 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7745 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
7746 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
7747 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
7749 2009-04-17 Thomas Quinot <quinot@adacore.com>
7751 * exp_aggr.adb: Minor code reorganization, no behaviour change.
7753 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7755 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
7756 clause in a unit that is a package body or a subunit, when the previous
7757 clause appears in a spec or a parent.
7759 2009-04-17 Thomas Quinot <quinot@adacore.com>
7761 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
7763 * exp_ch7.adb: Minor reformatting
7765 2009-04-17 Bob Duff <duff@adacore.com>
7767 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
7768 allocator, check that the expression of the qualified expression obeys
7769 the constraints of the subtype of the qualified expression.
7771 2009-04-17 Thomas Quinot <quinot@adacore.com>
7773 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
7775 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7777 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
7778 aggregate, using context imposed by subtype mark in allocator.
7780 2009-04-17 Pascal Obry <obry@adacore.com>
7782 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
7784 2009-04-17 Nicolas Roche <roche@adacore.com>
7786 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
7789 2009-04-17 Gary Dismukes <dismukes@adacore.com>
7791 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
7792 cover both calls and attribute references ("call" => "reference").
7794 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7796 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
7797 type for which Storage_Size is set to 0 is legal in a pure unit.
7799 2009-04-17 Thomas Quinot <quinot@adacore.com>
7801 * exp_ch7.adb: Minor reformatting
7803 2009-04-17 Robert Dewar <dewar@adacore.com>
7805 * restrict.adb (Check_Restriction_No_Dependence): Don't check
7806 restriction if outside main extended source unit.
7808 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
7809 for parents of child units as well as the child unit itself.
7811 2009-04-17 Bob Duff <duff@adacore.com>
7813 * checks.ads: Minor comment fix
7815 * exp_aggr.ads: Minor comment fix
7817 2009-04-17 Nicolas Roche <roche@adacore.com>
7819 * adaint.c: Improve cross compiler detection and handling.
7821 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
7823 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
7825 2009-04-17 Pascal Obry <obry@adacore.com>
7827 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
7830 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
7831 value when no encoding form paramter is set on Text_IO services.
7833 * adaint.c: CurrentCodePage new variable on Windows.
7834 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7837 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7840 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
7841 environment variable value. Default is UTF-8.
7843 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
7844 fopen and freopen encoding parameter is now set to Unspecified.
7845 The default value is in this case UTF-8 (as it was before) but
7846 use the new macros that convert to/from the code page set
7847 at runtime (CurrentCodePage).
7849 * s-fileio.adb: When no encoding specified use Unspecified value.
7851 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7853 * atree.adb, atree.ads: Remove dead code.
7855 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7857 * gcc-interface/Make-lang.in: Update dependencies.
7859 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7861 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
7862 illegal uses of incomplete types in formal parts and return types.
7864 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
7865 access to subprograms.
7867 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
7868 Taft-amendment types as the return type of an access_to_function type.
7870 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7871 type for access_to_subprograms. The check is performed on package exit.
7873 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7875 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
7877 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
7879 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
7881 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
7882 semantic units, because the handling of itypes in the copied tree
7883 requires semantic information that does not belong in atree.
7885 2009-04-17 Robert Dewar <dewar@adacore.com>
7887 * par-ch6.adb: Minor reformatting
7889 * prj.adb: Minor reformatting
7891 2009-04-17 Gary Dismukes <dismukes@adacore.com>
7893 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
7894 on protected subprogram bodies, so exclude the case where Pf_Flags is
7895 Pf_Decl_Pbod from the error check.
7897 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
7898 indicators on subprograms in protected bodies, and proceed with parsing
7901 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
7902 subprograms from the check for primitiveness on subprograms with
7903 overriding indicators.
7904 (Check_Overriding_Indicator): Include protected subprograms in the
7905 style check for missing overriding indicators.
7907 2009-04-17 Tristan Gingold <gingold@adacore.com>
7909 * init.c: Fix stack checking for x86 Darwin.
7911 2009-04-17 Vincent Celier <celier@adacore.com>
7913 * prj-attr.adb: New project level attribute Object_File_Suffix
7916 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
7918 (Process_Compiler): Process attribute Object_File_Suffix
7920 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
7921 platform suffix, when specified.
7923 * prj.ads (Language_Config): New component Object_File_Suffix,
7924 defaulted to No_Name.
7925 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
7927 * snames.ads-tmpl: New standard name Object_File_Suffix
7929 2009-04-17 Robert Dewar <dewar@adacore.com>
7931 * gnat_rm.texi: Add documentation about No_Streams restriction
7933 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
7934 attributes when checking No_Streams restriction.
7936 2009-04-17 Thomas Quinot <quinot@adacore.com>
7938 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
7940 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
7941 missing calls to RE_Request_Destroy to deallocate request objects after
7944 2009-04-17 Nicolas Setton <setton@adacore.com>
7946 * link.c: Fix support for passing a response file under Darwin.
7948 2009-04-17 Emmanuel Briot <briot@adacore.com>
7950 * prj.adb (Free): new subprogram.
7952 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7954 * sem_ch3.adb: additional initialization on incomplete subtypes.
7956 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
7957 part and one of the formals is an incomplete tagged type, attach to
7958 list of private dependends of the type for later validation.
7960 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
7961 primitive operations of a Taft-amendmment type.
7963 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7964 type. The check is performed on package exit, possibly after the
7965 subprogram is frozen.
7967 2009-04-17 Vincent Celier <celier@adacore.com>
7969 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
7970 before looking for source directories, but make sure that there are nil
7971 if they are not explicitely declared and there is explicitely no
7972 sources in the project.
7974 2009-04-17 Pascal Obry <obry@adacore.com>
7976 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
7978 * init.c: Fix minor typo and style fix.
7980 2009-04-17 Robert Dewar <dewar@adacore.com>
7982 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
7984 * sem_attr.adb (Analyze_Attribute, case Address): Use
7985 PE_Address_Of_Intrinsic.
7987 * types.ads: Add PE_Address_Of_Intrinsic
7989 * types.h: Add PE_Address_Of_Intrinsic
7991 2009-04-17 Nicolas Setton <setton@adacore.com>
7993 * gcc-interface/Makefile.in: Under darwin, build shared libraries
7994 with install_name starting with "@rpath/".
7996 2009-04-17 Nicolas Setton <setton@adacore.com>
7998 * link.c: Add darwin section
8000 2009-04-16 Robert Dewar <dewar@adacore.com>
8002 * g-pehage.adb: Minor reformatting
8004 * sem_ch12.adb: Minor reformatting
8006 * exp_dist.adb: Minor reformatting
8008 * bindgen.adb: Minor style fixes.
8010 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8012 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
8013 indexed components to the case where the prefix is a static string
8016 2009-04-16 Javier Miranda <miranda@adacore.com>
8018 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
8019 objects avoid any further expansion of the expression initializing the
8022 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8024 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
8025 that hides an outer homograph, make that homograph invisible when
8026 analyzing the actuals, to to prevent illegal direct visibility on it.
8028 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8030 * g-pehage.adb (Initialize): Fix off-by-one error.
8032 2009-04-16 Tristan Gingold <gingold@adacore.com>
8034 * init.c: Detect real stack overflow on Darwin.
8036 * system-darwin-x86.ads: Use stack probing on darwin x86.
8038 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8040 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
8041 take the address of an intrinsic subprogram.
8043 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8045 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
8046 for the targets where GNAT.Traceback.Symbolic is not supported.
8048 2009-04-16 Vincent Celier <celier@adacore.com>
8050 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
8052 * g-trasym.ads: Update comments.
8054 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8056 * tracebak.c (STOP_FRAME): Verify validity of the current address
8057 before dereferencing.
8059 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8061 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
8062 the original location of the index expressions and the index subtypes,
8063 to prevent spurious out-of-scope references in gigi.
8065 2009-04-16 Tristan Gingold <gingold@adacore.com>
8067 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
8068 Add support for stack checking on darwin.
8070 2009-04-16 Vincent Celier <celier@adacore.com>
8072 * prj-attr.adb: New attribute Runtime_Source_Dir
8074 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
8075 attribute Runtime_Source_Dir.
8076 (Check_Naming_Schemes): Give default values to out parameters to avoid
8079 * prj.ads (Language_Config): New component Runtime_Source_Dir
8081 * snames.ads-tmpl: New standard name Runtime_Source_Dir
8083 2009-04-16 Pascal Obry <obry@adacore.com>
8085 * adaint.h, adaint.c (__gnat_rmdir): New routine.
8086 Simple wrapper routines used to convert to proper encoding on
8089 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
8091 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
8094 2009-04-16 Pascal Obry <obry@adacore.com>
8096 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
8098 2009-04-16 Thomas Quinot <quinot@adacore.com>
8100 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
8101 integrated preprocessor.
8103 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
8104 (Initialize): Split into two subprograms, Initialize (to be called
8105 prior to compiler command line processing) and Setup_Hooks (to be called
8106 later on when the first source file is loaded).
8108 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
8109 Add call to Prep.Initialize.
8111 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
8112 to Prep.Setup_Hooks.
8114 2009-04-16 Pascal Obry <obry@adacore.com>
8116 * adaint.h, adaint.c (__gnat_chdir): New routine.
8117 Simple wrapper routines used to convert to proper encoding on
8120 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
8122 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
8124 2009-04-16 Quentin Ochem <ochem@adacore.com>
8126 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
8129 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8131 * a-convec.ads (Is_Empty): Mark inline.
8133 2009-04-16 Nicolas Roche <roche@adacore.com>
8135 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
8137 2009-04-16 Thomas Quinot <quinot@adacore.com>
8139 * prepcomp.adb: Minor reformatting
8141 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8143 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
8144 Access_Subprogram types can also be imported.
8145 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
8148 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8150 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8151 preserve homonym chain when the declaration is rewritten into a
8152 renaming declaration, in order to preserve visibility structure.
8154 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8156 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
8157 taken into account for VM targets.
8159 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8161 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
8163 (Year_Week_In_Year): New routine which contains the original code from
8164 Week_In_Year. Add the missing special case for January 1st falling on
8167 2009-04-16 Thomas Quinot <quinot@adacore.com>
8169 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
8170 actual type, use the base type to build the To_Any function.
8171 (Build_From_Any_Function): Remove junk, useless subtype conversion.
8173 2009-04-16 Thomas Quinot <quinot@adacore.com>
8175 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
8176 restrict.adb: Minor code reorganization (use
8177 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
8179 2009-04-16 Bob Duff <duff@adacore.com>
8181 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
8184 2009-04-16 Thomas Quinot <quinot@adacore.com>
8186 * sem_ch4.adb: Minor reformatting
8188 * adaint.c: Remove junk duplicated code.
8190 * sem_ch3.adb: Minor reformatting
8192 * exp_dist.adb: Minor comment rewording
8194 2009-04-16 Robert Dewar <dewar@adacore.com>
8196 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
8199 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8201 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
8202 usable before calling Add_One_Interp, to resolve spurious ambiguities.
8204 2009-04-16 Robert Dewar <dewar@adacore.com>
8206 * Make-lang.in: Add entries for s-conca?.o
8208 * Makefile.rtl: Add entries for s-conca?
8210 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
8211 of concatenation expansion
8213 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
8214 string cases instead of expanding assignments inline.
8216 * opt.ads (Optimize_Size): New flag
8218 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
8219 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
8220 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
8221 s-conca9.adb, s-conca9.ads: New file.
8223 2009-04-16 Robert Dewar <dewar@adacore.com>
8225 * exp_ch6.adb: Add comments
8227 * rtsfind.ads: Add entries for s-conca? routines
8229 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8231 * gcc-interface/Make-lang.in: Update dependencies.
8233 * gcc-interface/Makefile.in: Update translation for vms.
8235 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8237 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
8238 and made global, to be used when installing parents of a child
8239 instance, to provide mappings for entities declared in formal packages
8240 of ancestor units. Now called from Install_Formal_Packages.
8242 2009-04-16 Doug Rupp <rupp@adacore.com>
8244 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
8245 notation for clarity.
8247 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8248 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
8249 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
8250 (Initialize): Initialize Known_Tasks with Environment task.
8252 * s-taskin.ads (Task_States): Move new states to end for the sake of
8255 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
8257 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8259 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
8260 operation has an inline pragma, propagate the flag to the internal
8261 unprotected subprogram.
8263 2009-04-16 Doug Rupp <rupp@adacore.com>
8265 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
8266 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
8267 s-taprop-hpux-dce.adb, s-taprop-posix.adb
8268 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
8270 * s-taprop-vms.adb (Enter_Task): Likewise.
8271 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
8273 * s-tassta.adb (Activate_Tasks): After task creation set state to
8274 Activating, vice Runnable. Initialize Known_Tasks, moved here from
8275 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
8276 Set state to Runnable after above.
8277 (Task_Wrapper): Set Debug_Event_Run. In exception block set
8278 Debug_Event_Terminated.
8280 * s-taskin.ads (Task_States): Add new states Activiting and
8281 Activator_Delay_Sleep.
8282 (Bit_Array, Debug_Event_Array): New types.
8283 (Global_Task_Debug_Event_Set: New flag.
8284 (Common_ATCB): New field Debug_Events.
8286 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
8288 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
8291 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
8292 Activating and when Acceptor_Delay_Sleep.
8294 * s-tasdeb.ads: Add constants for Debug_Events.
8295 (Debug_Event_Kind_Type): New subtype.
8296 (Signal_Debug_Event): New subprogram.
8298 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
8300 2009-04-16 Thomas Quinot <quinot@adacore.com>
8302 * sem_elim.adb: Minor reformatting
8304 * freeze.adb: Minor reformatting
8306 * exp_ch4.adb: Minor reformatting
8308 2009-04-16 Emmanuel Briot <briot@adacore.com>
8310 * prj-nmsc.adb (Path_Name_Of): fix memory leak
8312 2009-04-16 Robert Dewar <dewar@adacore.com>
8314 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
8316 2009-04-16 Vincent Celier <celier@adacore.com>
8318 * fmap.adb (Initialize): Show the current line when the mapping file
8319 is detected as "incorrectly formatted".
8321 2009-04-16 Robert Dewar <dewar@adacore.com>
8323 * sem_ch12.adb: Minor reformatting
8325 * sem_ch5.adb: Minor comment addition
8327 * sem_util.adb: Minor reformatting
8329 * sinput-p.adb: Minor reformatting
8330 Add missing pragma Warnings (On)
8332 2009-04-16 Ed Falis <falis@adacore.com>
8334 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
8336 2009-04-16 Vincent Celier <celier@adacore.com>
8338 * ali-util.adb: Minor comment spelling error fix
8340 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8342 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
8343 generate an assignment loop in case of overlap.
8345 2009-04-16 Olivier Hainque <hainque@adacore.com>
8347 * gnat_ugn.texi (gnatmem description): Make it explicit that
8348 gnatmem is designed to work in association with static runtime
8351 2009-04-16 Thomas Quinot <quinot@adacore.com>
8353 * sem_type.adb: Minor reformatting
8355 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8357 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
8358 concerning return codes of gettimeofday and return value check.
8360 2009-04-16 Ed Falis <falis@adacore.com>
8362 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
8363 body can be renaming of imported routines.
8365 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8367 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
8370 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8372 * exp_ch9.adb: Comment improvements.
8373 (Build_Entry_Family_Name): Add parentheses around the index of a entry
8376 2009-04-15 Bob Duff <duff@adacore.com>
8378 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
8379 "while X /= null loop" where X is unchanged inside the loop. We were
8380 not warning in this case, because of the pointers -- we feared that the
8381 loop variable could be updated via a pointer, if there are any pointers
8382 around the place. But that is impossible in this case.
8384 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
8385 the case of dereferences. In X.all, X cannot be an l-value. We now
8386 catch that case (and implicit dereferences, too).
8388 2009-04-15 Vincent Celier <celier@adacore.com>
8390 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
8392 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8394 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
8396 (Analyze_Package_Instantiation): If generic unit in child instance is
8397 the same as generic unit in parent instance, look for an outer homonym
8398 to locate the desired generic.
8400 2009-04-15 Bob Duff <duff@adacore.com>
8402 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
8403 warnings unless the loop comes from source, because checking generated
8404 loops is a waste of time, and makes it harder to debug
8405 Check_Infinite_Loop_Warning.
8407 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
8408 tested in the while loop is a renaming, do not warn. Otherwise, we get
8409 false alarms, because it's usually renaming something that we can't
8410 deal with (an indexed component, a global variable, ...).
8412 * gnat_rm.texi: Fix typo
8414 2009-04-15 Thomas Quinot <quinot@adacore.com>
8416 * sem_ch6.adb: Minor reformatting
8418 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8420 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
8421 immediate parent of the controlled function call is a component
8424 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8426 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
8427 corresponding class-wide type is also in use.
8429 2009-04-15 Thomas Quinot <quinot@adacore.com>
8431 * frontend.adb: Minor comment fix
8433 2009-04-15 Robert Dewar <dewar@adacore.com>
8435 * gnatchop.adb (BOM_Length): New global variable
8436 (Write_Unit): Add new parameter Write_BOM
8437 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
8440 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
8442 2009-04-15 Geert Bosch <bosch@adacore.com>
8444 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
8445 (Backend_Overflow_Checks): Set to True.
8447 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8449 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
8450 keyword is given in a record extension.
8452 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8454 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
8455 of a controlled function call in the context of a record aggregate.
8456 This does not apply to array aggregates since the call will be expanded
8459 2009-04-15 Ed Falis <falis@adacore.com>
8461 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
8462 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
8463 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
8464 s-osinte-vxworks* and s-vxwext*.
8466 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8468 * gcc-interface/Make-lang.in: Update dependencies.
8470 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
8473 2009-04-15 Robert Dewar <dewar@adacore.com>
8475 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
8476 of node for location for warning messages.
8478 * gnatchop.adb: Minor reformatting
8480 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8482 * exp_ch6.adb: additional guard for renaming declarations for in
8483 parameters of an array type.
8485 2009-04-15 Robert Dewar <dewar@adacore.com>
8487 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
8488 in case they were rewritten by expander (Force_Evaluation).
8490 * targparm.adb (Get_Target_Parameters): Correct check for
8491 Suppress_Exception_Locations.
8493 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8495 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
8496 inlined is of an array type that is not bit-packed, use a renaming
8497 declaration to capture its value, rather than a constant declaration.
8499 2009-04-15 Robert Dewar <dewar@adacore.com>
8501 * rtsfind.adb: Minor reformatting.
8503 2009-04-15 Emmanuel Briot <briot@adacore.com>
8505 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
8506 Restore, and free the saved context.
8508 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8510 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
8511 for illegal private extension from a synchronized interface parent in
8512 front of check for illegal limited extension so that limited extension
8513 from a synchronized interface will be rejected.
8514 (Check_Ifaces): Check that a private extension that has a synchronized
8515 interface as a progenitor must be explicitly declared synchronized.
8516 Also check that a record extension cannot derive from a synchronized
8519 2009-04-15 Pascal Obry <obry@adacore.com>
8521 * adaint.h (__gnat_unlink): Add spec.
8522 (__gnat_rename): Likewise.
8524 2009-04-15 Vincent Celier <celier@adacore.com>
8526 * prj-nmsc.adb: Minor spelling error corrections in error messages
8528 2009-04-15 Robert Dewar <dewar@adacore.com>
8530 * sinfo.ads: Minor comment update
8532 * opt.ads: Minor comment updates
8534 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
8537 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8539 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
8540 that generates the code needed to update a dispatch table when a
8541 primitive operation is declared with a subprogram body without previous
8542 spec. Insertion of the generated code is responsibility of the caller.
8543 (Make_DT): When building static tables, append the code created by
8544 Register_Primitive to update a secondary table after it has been
8547 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
8549 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
8550 on an overriding operation that implements an interface operation only
8551 if not building static dispatch tables.
8553 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8555 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
8556 does not cause overflow when converted to Duration. Use the safe value
8557 as the maximum allowable time delay..
8559 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
8561 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
8562 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
8563 translated to "-j 2".
8565 2009-04-15 Bob Duff <duff@adacore.com>
8567 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
8568 with_clauses, to avoid code duplication. Change this processing so we
8569 always add a with_clause on the main unit if needed.
8571 2009-04-15 Pascal Obry <obry@adacore.com>
8573 Add support for Win32 native encoding for delete/rename routines.
8575 * adaint.c (__gnat_unlink): New routine.
8576 (__gnat_rename): New routine.
8577 Simple wrapper routines used to convert to proper encoding on
8580 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
8581 call to the C library.
8583 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
8585 2009-04-15 Robert Dewar <dewar@adacore.com>
8587 * s-tassta.adb: Minor reformatting
8589 2009-04-15 Robert Dewar <dewar@adacore.com>
8591 * frontend.adb (Frontend): Set proper default for
8592 Warn_On_Non_Local_Exception.
8594 * opt.ads (Exception_Handler_Encountered): New flag
8595 (No_Warn_On_Non_Local_Exception): New flag
8597 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
8599 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8600 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8602 2009-04-15 Cyrille Comar <comar@adacore.com>
8604 * s-tassta.adb, a-exextr.adb, a-elchha.adb
8605 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
8606 message when exception traces are active since it would generate
8607 redundant information.
8608 (Exception_Traces.Notify_Exception): put message output by a critical
8609 section to avoid unsynchronized output.
8610 (Trace_Unhandled_Exception_In_Task): put message output by a critical
8611 section to avoid unsynchronized output.
8613 2009-04-15 Emmanuel Briot <briot@adacore.com>
8615 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
8616 (Free): New subprogram.
8618 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8620 * a-calend.adb: Add new constant Nanos_In_Four_Years.
8621 (Formatting_Operations.Time_Of): Change the way four year chunks of
8622 nanoseconds are added to the intermediate result.
8624 2009-04-15 Nicolas Setton <setton@adacore.com>
8626 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
8627 does not need to wait for a carriage return.
8629 2009-04-15 Tristan Gingold <gingold@adacore.com>
8631 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
8634 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8636 * freeze.adb (Freeze_Entity): improve error message for improper use of
8638 Diagnose additional illegal uses of incomplete types in formal parts.
8639 appearing in formal parts.
8641 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
8643 2009-04-15 Robert Dewar <dewar@adacore.com>
8645 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
8647 2009-04-15 Nicolas Roche <roche@adacore.com>
8649 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
8652 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
8654 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
8656 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8658 * sem_ch4.adb: improve error message on exponentiation.
8660 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8662 * a-calend.adb: Move constant Epoch_Offset from package
8663 Conversion_Operations to top level.
8664 (Delay_Operations.To_Duration): Define a constant which represents
8665 "end of time" and use it as a guard against very distant delay dates.
8666 Protect the code against overflow when performing the origin shift to
8669 2009-04-15 Robert Dewar <dewar@adacore.com>
8671 * sem_prag.adb: Minor reformatting.
8673 * sem_type.adb: Minor reformatting
8675 2009-04-15 Javier Miranda <miranda@adacore.com>
8677 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
8678 support to check eliminated subprograms.
8680 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
8682 * sem_elim.adb (Set_Eliminated): Add support for elimination of
8683 dispatching subprograms.
8685 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
8686 operations. Initialize with "null" the slots of eliminated dispaching
8688 (Write_DT): Add output for eliminated primitives.
8690 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
8692 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8694 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
8695 the second is redundant, regardless of scopes.
8697 2009-04-15 Vincent Celier <celier@adacore.com>
8699 * prj-nmsc.adb (Get_Directories): Check for sources before checking
8700 the object directory as when there are no sources, they may not be any
8703 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
8704 directory, when there are no exec directory.
8706 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8708 * sem_type.adb (Remove_Conversions): In order to resolve spurious
8709 ambiguities, refine removal of universal interpretations from complex
8710 expressions with literal arguments, when some numeric operators have
8711 been declared abstract.
8713 2009-04-15 Ed Falis <falis@adacore.com>
8715 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
8716 and backward compatibility for targets using probing for stack overflow
8718 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8720 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
8721 after any declaration, including renaming declarations.
8723 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8725 * gcc-interface/Make-lang.in: Update dependencies.
8727 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
8728 Update xenomai target pairs.
8730 2009-04-15 Javier Miranda <miranda@adacore.com>
8732 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
8734 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
8735 functions returning anonymous access to class-wide limited types. Mark
8736 also the containing scope as a task master.
8738 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
8739 limited-withed packages. Required to restore their visibility after
8740 processing packages associated with implicit with-clauses.
8742 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
8743 associated with return statements because this work is now done by
8744 Check_Anonymous_Return.
8745 (Build_Master): Code cleanup.
8747 2009-04-15 Thomas Quinot <quinot@adacore.com>
8749 * sem_warn.ads: Minor reformatting
8751 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8753 * sem_ch3.adb: better error message for illegal interfaces
8755 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
8756 formal is an incomplete type from a limited_with clause.
8758 2009-04-15 Vincent Celier <celier@adacore.com>
8760 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
8761 Externally_Built indicating if the project is externally built. If it
8762 is, and --subdirs is specified, but the subdir does not exist, look
8763 for the specified directory, without the subdir.
8765 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8767 * a-tasatt.adb: Fix typo, plus minor reformatting
8769 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
8771 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
8773 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8775 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
8776 private extension whose parent is a synchronized interface carries an
8777 explicit synchronized keyword.
8779 2009-04-15 Thomas Quinot <quinot@adacore.com>
8781 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
8782 instantiate generic shared object package with the corresponding
8785 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8787 * system-linux-sparc.ads: Remove obsolete entries.
8789 2009-04-15 Thomas Quinot <quinot@adacore.com>
8791 * s-tasuti.ads: Add ??? comment
8793 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8795 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
8796 type even if the designated type comes from a limited_with clause, to
8797 ensure that the symbol for the finalization list of the access type is
8800 2009-04-10 Robert Dewar <dewar@adacore.com>
8802 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
8803 for warning suppression.
8805 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8807 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
8808 identical, there is no redudancy to check.
8810 2009-04-10 Gary Dismukes <dismukes@adacore.com>
8812 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
8813 calls initializing SS_Allocator (which is initialized in following
8815 (Expand_Simple_Function_Return): Add comment about False value for
8816 Comes_From_Source on secondary-stack allocator.
8818 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
8819 (Build_Entry_Name): Add comment.
8821 2009-04-10 Robert Dewar <dewar@adacore.com>
8823 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
8825 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
8826 bound tested, since this is now done more generally in Sem_Res.
8828 * sem_res.adb (Resolve_Comparison_Op): Add call to
8829 Check_Lower_Bound_Tested.
8830 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
8832 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
8833 (Low_Bound_Tested): New name for Low_Bound_Known flag
8835 * exp_ch5.adb: Minor reformatting
8838 Add comments on copying the Comes_From_Source flag for allocators
8841 Add comments on copying the Comes_From_Source flag for allocators
8843 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
8844 Comes_From_Source flag from old allocator to new one.
8846 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8848 * sem_ch6.ads: Address missing documentation query
8850 2009-04-10 Vincent Celier <celier@adacore.com>
8853 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
8854 and Response_File_Switches.
8856 * prj-nmsc.adb (Process_Linker): Process new attributes
8857 Max_Command_Line_Length, Response_File_Format and
8858 Response_File_Switches.
8860 * prj.ads (Response_File_Format): New enumeration type
8861 (Project_Configuration): New componants Max_Command_Line_Length,
8862 Resp_File_Format and Resp_File_Options.
8864 * snames.ads-tmpl: Add new standard names for linking response files
8865 for gprbuild: GNU, None, Object_List, Option_List,
8866 Max_Command_Line_Length, Response_File_Format and
8867 Response_File_Switches.
8869 2009-04-10 Geert Bosch <bosch@adacore.com>
8871 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
8872 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
8873 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
8874 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
8875 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
8876 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
8877 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
8878 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
8879 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
8880 system-vxworks-arm.ads, system-vxworks-m68k.ads,
8881 system-vxworks-mips.ads, system-vxworks-ppc.ads,
8882 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
8883 (Backend_Overflow_Checks): Set to True.
8885 2009-04-10 Thomas Quinot <quinot@adacore.com>
8887 * exp_attr.adb: Minor reformatting
8889 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8891 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
8892 analyze the expression for a postcondition, even if the compiler mode
8895 2009-04-10 Robert Dewar <dewar@adacore.com>
8897 * sem_aux.adb: Minor reformatting
8899 2009-04-10 Ed Falis <falis@adacore.com>
8901 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
8903 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
8905 2009-04-10 Thomas Quinot <quinot@adacore.com>
8907 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
8908 undocumented formal.
8911 * a-direio.ads: Fix typo in comment
8913 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
8914 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
8915 Use uniform phrasing for comment at start of subprogram body.
8917 * xsnamest.adb: Add note to explain why we use specific names for the
8918 newly generated files instead of generating snames.{ads,adb,h} directly
8920 2009-04-10 Sergey Rybin <rybin@adacore.com>
8923 Add qualifier for new gnatstub option '--no-exception'
8926 Add the description of the new gnatstub option '--no-exception'
8928 2009-04-10 Robert Dewar <dewar@adacore.com>
8930 * rtsfind.adb: Minor reformatting
8932 2009-04-10 Thomas Quinot <quinot@adacore.com>
8934 * sem_disp.adb: Minor reformatting.
8935 Add comment pointing to RM clause for the case of warning against a
8936 (failed) attempt at declaring a primitive operation elsewhere than in a
8939 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8941 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
8942 an actual for a previous formal package of the current instance.
8944 2009-04-10 Bob Duff <duff@adacore.com>
8946 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
8947 them first, rather than on the extended main unit.
8949 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8951 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
8952 specification of full view carries a null exclusion indicator, create
8953 an itype for it, to check for conformance with partial view.
8955 2009-04-10 Bob Duff <duff@adacore.com>
8957 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
8959 * rtsfind.adb: Minor comment changes, and remove useless code.
8961 * sinfo.ads: Add ??? comment.
8963 2009-04-10 Vincent Celier <celier@adacore.com>
8965 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
8967 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8969 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
8970 type is a synchronized type, retrieve tag information from the
8971 corresponding record, which has the dispatch table link.
8973 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
8975 * g-comlin.adb (Group_Analysis): Take care of switches that might be
8976 decomposed afterwards, but are present as-is in the command line
8977 configuration, and thus should be kept as-is.
8979 2009-04-10 Robert Dewar <dewar@adacore.com>
8981 * gnat_rm.texi: Document that postconditions are tested on implicit
8984 * sem_aux.adb: Minor reformatting
8986 2009-04-10 Gary Dismukes <dismukes@adacore.com>
8988 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
8991 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
8992 Null_Exclusion_In_Return_Present when an access-to-function type has a
8993 result type with an explicit not null.
8995 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
8996 given on the result type, then create a null-excluding itype for the
8999 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
9000 the case where a null exclusion is imposed on a named access type.
9001 (Analyze_Subprogram_Specification): Push and pop the scope of the
9002 function around the call to Analyze_Return_Type in the case of no
9003 formals, for consistency with handling when formals are present
9004 (Process_Formals does this). Ensures that any itype created for the
9005 return type will be associated with the proper scope.
9007 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
9008 exclusion is given on a generic function's result type, then create a
9009 null-excluding itype for the generic function.
9010 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
9011 for an actual for a formal in object according to the setting on the
9012 formal. Ensures null exclusion checks are done when the association is
9015 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
9016 N_Access_Function_Definition.
9018 * sinfo.adb: Add Get_ and Set_ operations for
9019 Null_Exclusion_In_Return_Present.
9021 2009-04-10 Bob Duff <duff@adacore.com>
9023 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
9024 call to the _Postconditions procedure in the case of implicit returns
9025 from analysis to expansion. This eliminates some duplicated code. Use
9026 the Postcondition_Proc to find the identity of this procedure during
9029 2009-04-10 Robert Dewar <dewar@adacore.com>
9031 * sem_ch6.adb: Minor code clean up.
9033 * einfo.ads, sem_attr.adb: Minor comment fixes.
9035 2009-04-10 Robert Dewar <dewar@adacore.com>
9037 * sem_ch8.adb: Minor reformatting
9039 2009-04-10 Robert Dewar <dewar@adacore.com>
9041 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
9044 * sem_ch6.adb: Minor code clean up.
9046 2009-04-10 Robert Dewar <dewar@adacore.com>
9048 * mlib-tgt-specific-xi.adb: Minor reformatting
9050 2009-04-10 Bob Duff <duff@adacore.com>
9052 * einfo.ads: Minor comment fixes
9054 2009-04-10 Vincent Celier <celier@adacore.com>
9056 * snames.ads-tmpl: Remove names that are no longer used in the
9058 Mark specifically those that are used only in gprbuild
9060 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
9062 * init.c: Adjust EH support code on Alpha/Tru64.
9064 2009-04-10 Bob Duff <duff@adacore.com>
9066 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
9067 procedure on every path that could return implicitly (not via a return
9068 statement) from a procedure.
9070 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9072 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
9073 valid scope for a task declarations and therefore for a master id.
9075 2009-04-10 Robert Dewar <dewar@adacore.com>
9077 * sem_aux.adb: Minor reformatting
9079 2009-04-10 Vincent Celier <celier@adacore.com>
9081 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
9083 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
9084 (Set_Obsolescent_Check): New procedure to change the value of
9085 Obsolescent_Check_Flag.
9087 * scn.ads (Set_Obsolescent_Check): New procedure to control
9090 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
9091 obsolescent features while preprocessing.
9093 2009-04-10 Thomas Quinot <quinot@adacore.com>
9095 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
9096 generated files on all platforms.
9098 2009-04-10 Robert Dewar <dewar@adacore.com>
9100 * sem_aux.adb: Minor reformatting
9102 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9104 * sem_ch3.adb (Access_Definition): Handle properly the case of a
9105 protected function with formals that returns an anonymous access type.
9107 2009-04-10 Thomas Quinot <quinot@adacore.com>
9109 * sem_disp.adb: Minor reformatting
9111 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
9113 * seh_init.c: Do not use the 32-bit specific implementation of
9114 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
9117 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9119 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
9120 a '/' at the end so we better use the complete target name to determine
9121 whether it is a PowerPC 55xx target.
9123 2009-04-10 Thomas Quinot <quinot@adacore.com>
9125 * sem_eval.adb: Minor reformatting
9127 2009-04-10 Thomas Quinot <quinot@adacore.com>
9129 * snames.h, snames.ads, snames.adb: Remove files, now generated from
9132 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
9135 * xsnamest.adb: New file.
9137 * gcc-interface/Make-lang.in: New target for automated generation of
9138 snames.ads, snames.adb and snames.h
9140 2009-04-10 Tristan Gingold <gingold@adacore.com>
9142 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
9143 avoid compile time warnings.
9144 Do not add gcc/config in include search list while compiling the RTS.
9145 Pragma Thread_Local_Storage is available on any target.
9147 2009-04-10 Bob Duff <duff@adacore.com>
9149 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
9151 2009-04-10 Tristan Gingold <gingold@adacore.com>
9153 * init.c: Install signal handler on Darwin.
9155 2009-04-10 Robert Dewar <dewar@adacore.com>
9157 * sem_prag.adb: Minor reformatting
9159 * exp_util.adb (Make_Non_Empty_Check): New function
9160 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
9161 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
9163 2009-04-10 Arnaud Charlet <charlet@adacore.com>
9165 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
9167 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9169 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
9170 tool prefix for AVR and PowerPC 55xx targets.
9172 2009-04-10 Robert Dewar <dewar@adacore.com>
9174 * sem_warn.adb (Within_Postcondition): New function
9175 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
9177 2009-04-10 Robert Dewar <dewar@adacore.com>
9179 * sem_warn.adb: Minor reformatting
9181 * make.adb: Minor reformatting.
9183 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9185 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
9186 entity and the scope is a subprogram, retrieve the Sloc of the
9187 subprogram's body rather than using the sloc of the spec, for better
9188 line-stepping behavior in gdb.
9189 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
9190 controller, use the Sloc of the first declaration of the containing list
9191 rather than that of the node that triggered creation of the list
9194 2009-04-10 Vincent Celier <celier@adacore.com>
9196 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
9197 to avoid gcc warning.
9199 2009-04-10 Robert Dewar <dewar@adacore.com>
9201 * g-comlin.adb: Add ??? comment
9203 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9205 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
9206 unreferenced entities for a package with no visible declarations.
9208 2009-04-10 Robert Dewar <dewar@adacore.com>
9210 * exp_ch9.adb: Minor reformatting
9212 2009-04-10 Thomas Quinot <quinot@adacore.com>
9214 * sem_prag.adb: Minor reformatting
9216 2009-04-10 Vincent Celier <celier@adacore.com>
9219 (Check_Library_Attributes): For a project qualified as a library project
9220 that is not a library project, indicate in the error message which
9221 attributes are missing (Library_Dir and/or Library_Name).
9223 2009-04-10 Bob Duff <duff@adacore.com>
9225 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
9226 generated nodes, because it might confuse various circuits in the FE.
9228 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9230 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
9231 of pragma. It will be recopied and analyzed when used in call to
9234 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
9235 initialization operations and recognize use of it in procedure calls
9238 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
9239 argument, because it may have side-effects.
9241 * exp_ch2.adb: Remove obsolete comments on default functions
9243 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9245 * adaint.c (RTX section): Do for RTX the same thing as we do for
9246 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
9248 2009-04-10 Robert Dewar <dewar@adacore.com>
9250 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
9252 * sem_res.adb (Resolve_Call): Fix test for
9253 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
9254 a non-dynamic scope).
9256 2009-04-10 Robert Dewar <dewar@adacore.com>
9258 * make.adb: Add comment.
9261 2009-04-10 Nicolas Setton <setton@adacore.com>
9263 * s-osprim-darwin.adb: New file.
9265 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
9267 2009-04-10 Thomas Quinot <quinot@adacore.com>
9269 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
9271 2009-04-09 Nick Clifton <nickc@redhat.com>
9273 * adadecode.h: Change copyright header to refer to version
9274 3 of the GNU General Public License with version 3.1 of the
9275 GCC Runtime Library Exception and to point readers at the
9276 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
9278 * 9drpc.adb: Likewise.
9279 * a-assert.adb: Likewise.
9280 * a-astaco.adb: Likewise.
9281 * a-calari.adb: Likewise.
9282 * a-calcon.adb: Likewise.
9283 * a-calcon.ads: Likewise.
9284 * a-caldel.ads: Likewise.
9285 * a-calend-vms.adb: Likewise.
9286 * a-calend-vms.ads: Likewise.
9287 * a-calend.adb: Likewise.
9288 * a-calend.ads: Likewise.
9289 * a-calfor.adb: Likewise.
9290 * a-catizo.adb: Likewise.
9291 * a-cdlili.adb: Likewise.
9292 * a-cdlili.ads: Likewise.
9293 * a-cgaaso.adb: Likewise.
9294 * a-cgaaso.ads: Likewise.
9295 * a-cgarso.adb: Likewise.
9296 * a-cgcaso.adb: Likewise.
9297 * a-chacon.adb: Likewise.
9298 * a-chacon.ads: Likewise.
9299 * a-chahan.adb: Likewise.
9300 * a-chahan.ads: Likewise.
9301 * a-chlat9.ads: Likewise.
9302 * a-chtgke.adb: Likewise.
9303 * a-chtgke.ads: Likewise.
9304 * a-chtgop.adb: Likewise.
9305 * a-chtgop.ads: Likewise.
9306 * a-chzla1.ads: Likewise.
9307 * a-chzla9.ads: Likewise.
9308 * a-cidlli.adb: Likewise.
9309 * a-cidlli.ads: Likewise.
9310 * a-cihama.adb: Likewise.
9311 * a-cihama.ads: Likewise.
9312 * a-cihase.adb: Likewise.
9313 * a-cihase.ads: Likewise.
9314 * a-ciorma.adb: Likewise.
9315 * a-ciorma.ads: Likewise.
9316 * a-ciormu.adb: Likewise.
9317 * a-ciormu.ads: Likewise.
9318 * a-ciorse.adb: Likewise.
9319 * a-ciorse.ads: Likewise.
9320 * a-clrefi.adb: Likewise.
9321 * a-clrefi.ads: Likewise.
9322 * a-cohama.adb: Likewise.
9323 * a-cohama.ads: Likewise.
9324 * a-cohase.adb: Likewise.
9325 * a-cohase.ads: Likewise.
9326 * a-cohata.ads: Likewise.
9327 * a-coinve.adb: Likewise.
9328 * a-coinve.ads: Likewise.
9329 * a-colien.adb: Likewise.
9330 * a-colien.ads: Likewise.
9331 * a-colire.adb: Likewise.
9332 * a-colire.ads: Likewise.
9333 * a-comlin.adb: Likewise.
9334 * a-comlin.ads: Likewise.
9335 * a-convec.adb: Likewise.
9336 * a-convec.ads: Likewise.
9337 * a-coorma.adb: Likewise.
9338 * a-coorma.ads: Likewise.
9339 * a-coormu.adb: Likewise.
9340 * a-coormu.ads: Likewise.
9341 * a-coorse.adb: Likewise.
9342 * a-coorse.ads: Likewise.
9343 * a-coprnu.adb: Likewise.
9344 * a-coprnu.ads: Likewise.
9345 * a-crbltr.ads: Likewise.
9346 * a-crbtgk.adb: Likewise.
9347 * a-crbtgk.ads: Likewise.
9348 * a-crbtgo.adb: Likewise.
9349 * a-crbtgo.ads: Likewise.
9350 * a-crdlli.adb: Likewise.
9351 * a-crdlli.ads: Likewise.
9352 * a-cwila1.ads: Likewise.
9353 * a-cwila9.ads: Likewise.
9354 * a-decima.adb: Likewise.
9355 * a-decima.ads: Likewise.
9356 * a-diocst.adb: Likewise.
9357 * a-diocst.ads: Likewise.
9358 * a-direct.adb: Likewise.
9359 * a-direct.ads: Likewise.
9360 * a-direio.adb: Likewise.
9361 * a-direio.ads: Likewise.
9362 * a-dirval-mingw.adb: Likewise.
9363 * a-dirval-vms.adb: Likewise.
9364 * a-dirval.adb: Likewise.
9365 * a-dirval.ads: Likewise.
9366 * a-dynpri.adb: Likewise.
9367 * a-einuoc.adb: Likewise.
9368 * a-einuoc.ads: Likewise.
9369 * a-elchha.adb: Likewise.
9370 * a-elchha.ads: Likewise.
9371 * a-envvar.adb: Likewise.
9372 * a-excach.adb: Likewise.
9373 * a-except-2005.adb: Likewise.
9374 * a-except-2005.ads: Likewise.
9375 * a-except.adb: Likewise.
9376 * a-except.ads: Likewise.
9377 * a-excpol-abort.adb: Likewise.
9378 * a-excpol.adb: Likewise.
9379 * a-exctra.adb: Likewise.
9380 * a-exctra.ads: Likewise.
9381 * a-exetim-mingw.adb: Likewise.
9382 * a-exetim-mingw.ads: Likewise.
9383 * a-exexda.adb: Likewise.
9384 * a-exexpr-gcc.adb: Likewise.
9385 * a-exexpr.adb: Likewise.
9386 * a-exextr.adb: Likewise.
9387 * a-exstat.adb: Likewise.
9388 * a-filico.adb: Likewise.
9389 * a-filico.ads: Likewise.
9390 * a-finali.adb: Likewise.
9391 * a-finali.ads: Likewise.
9392 * a-interr.ads: Likewise.
9393 * a-intnam-aix.ads: Likewise.
9394 * a-intnam-darwin.ads: Likewise.
9395 * a-intnam-dummy.ads: Likewise.
9396 * a-intnam-freebsd.ads: Likewise.
9397 * a-intnam-hpux.ads: Likewise.
9398 * a-intnam-irix.ads: Likewise.
9399 * a-intnam-linux.ads: Likewise.
9400 * a-intnam-lynxos.ads: Likewise.
9401 * a-intnam-mingw.ads: Likewise.
9402 * a-intnam-rtems.ads: Likewise.
9403 * a-intnam-solaris.ads: Likewise.
9404 * a-intnam-tru64.ads: Likewise.
9405 * a-intnam-vms.ads: Likewise.
9406 * a-intnam-vxworks.ads: Likewise.
9407 * a-intsig.adb: Likewise.
9408 * a-intsig.ads: Likewise.
9409 * a-ngcefu.adb: Likewise.
9410 * a-ngcoar.adb: Likewise.
9411 * a-ngcoty.adb: Likewise.
9412 * a-ngcoty.ads: Likewise.
9413 * a-ngelfu.adb: Likewise.
9414 * a-ngrear.adb: Likewise.
9415 * a-ngrear.ads: Likewise.
9416 * a-nudira.adb: Likewise.
9417 * a-nudira.ads: Likewise.
9418 * a-nuflra.adb: Likewise.
9419 * a-nuflra.ads: Likewise.
9420 * a-numaux-darwin.adb: Likewise.
9421 * a-numaux-darwin.ads: Likewise.
9422 * a-numaux-libc-x86.ads: Likewise.
9423 * a-numaux-vxworks.ads: Likewise.
9424 * a-numaux-x86.adb: Likewise.
9425 * a-numaux-x86.ads: Likewise.
9426 * a-numaux.ads: Likewise.
9427 * a-rbtgso.adb: Likewise.
9428 * a-rbtgso.ads: Likewise.
9429 * a-reatim.ads: Likewise.
9430 * a-retide.adb: Likewise.
9431 * a-retide.ads: Likewise.
9432 * a-rttiev.adb: Likewise.
9433 * a-rttiev.ads: Likewise.
9434 * a-secain.adb: Likewise.
9435 * a-secain.ads: Likewise.
9436 * a-sequio.adb: Likewise.
9437 * a-sequio.ads: Likewise.
9438 * a-shcain.adb: Likewise.
9439 * a-shcain.ads: Likewise.
9440 * a-siocst.adb: Likewise.
9441 * a-siocst.ads: Likewise.
9442 * a-slcain.adb: Likewise.
9443 * a-slcain.ads: Likewise.
9444 * a-ssicst.adb: Likewise.
9445 * a-ssicst.ads: Likewise.
9446 * a-stboha.adb: Likewise.
9447 * a-stmaco.ads: Likewise.
9448 * a-storio.adb: Likewise.
9449 * a-strbou.adb: Likewise.
9450 * a-strbou.ads: Likewise.
9451 * a-stream.ads: Likewise.
9452 * a-strfix.adb: Likewise.
9453 * a-strhas.adb: Likewise.
9454 * a-strmap.adb: Likewise.
9455 * a-strmap.ads: Likewise.
9456 * a-strsea.adb: Likewise.
9457 * a-strsea.ads: Likewise.
9458 * a-strsup.adb: Likewise.
9459 * a-strsup.ads: Likewise.
9460 * a-strunb.adb: Likewise.
9461 * a-strunb.ads: Likewise.
9462 * a-ststio.adb: Likewise.
9463 * a-ststio.ads: Likewise.
9464 * a-stunau.adb: Likewise.
9465 * a-stunau.ads: Likewise.
9466 * a-stunha.adb: Likewise.
9467 * a-stwibo.adb: Likewise.
9468 * a-stwibo.ads: Likewise.
9469 * a-stwifi.adb: Likewise.
9470 * a-stwiha.adb: Likewise.
9471 * a-stwima.adb: Likewise.
9472 * a-stwima.ads: Likewise.
9473 * a-stwise.adb: Likewise.
9474 * a-stwise.ads: Likewise.
9475 * a-stwisu.adb: Likewise.
9476 * a-stwisu.ads: Likewise.
9477 * a-stwiun.adb: Likewise.
9478 * a-stwiun.ads: Likewise.
9479 * a-stzbou.adb: Likewise.
9480 * a-stzbou.ads: Likewise.
9481 * a-stzfix.adb: Likewise.
9482 * a-stzhas.adb: Likewise.
9483 * a-stzmap.adb: Likewise.
9484 * a-stzmap.ads: Likewise.
9485 * a-stzsea.adb: Likewise.
9486 * a-stzsea.ads: Likewise.
9487 * a-stzsup.adb: Likewise.
9488 * a-stzsup.ads: Likewise.
9489 * a-stzunb.adb: Likewise.
9490 * a-stzunb.ads: Likewise.
9491 * a-suteio.adb: Likewise.
9492 * a-suteio.ads: Likewise.
9493 * a-swbwha.adb: Likewise.
9494 * a-swmwco.ads: Likewise.
9495 * a-swunau.adb: Likewise.
9496 * a-swunau.ads: Likewise.
9497 * a-swuwha.adb: Likewise.
9498 * a-swuwti.adb: Likewise.
9499 * a-swuwti.ads: Likewise.
9500 * a-sytaco.adb: Likewise.
9501 * a-sytaco.ads: Likewise.
9502 * a-szbzha.adb: Likewise.
9503 * a-szmzco.ads: Likewise.
9504 * a-szunau.adb: Likewise.
9505 * a-szunau.ads: Likewise.
9506 * a-szuzha.adb: Likewise.
9507 * a-szuzti.adb: Likewise.
9508 * a-szuzti.ads: Likewise.
9509 * a-tags.adb: Likewise.
9510 * a-tags.ads: Likewise.
9511 * a-tasatt.ads: Likewise.
9512 * a-taside.adb: Likewise.
9513 * a-taside.ads: Likewise.
9514 * a-taster.adb: Likewise.
9515 * a-teioed.adb: Likewise.
9516 * a-teioed.ads: Likewise.
9517 * a-textio.adb: Likewise.
9518 * a-textio.ads: Likewise.
9519 * a-tiboio.adb: Likewise.
9520 * a-ticoau.adb: Likewise.
9521 * a-ticoau.ads: Likewise.
9522 * a-ticoio.adb: Likewise.
9523 * a-ticoio.ads: Likewise.
9524 * a-tideau.adb: Likewise.
9525 * a-tideau.ads: Likewise.
9526 * a-tideio.adb: Likewise.
9527 * a-tideio.ads: Likewise.
9528 * a-tienau.adb: Likewise.
9529 * a-tienau.ads: Likewise.
9530 * a-tienio.adb: Likewise.
9531 * a-tienio.ads: Likewise.
9532 * a-tifiio.adb: Likewise.
9533 * a-tifiio.ads: Likewise.
9534 * a-tiflau.adb: Likewise.
9535 * a-tiflau.ads: Likewise.
9536 * a-tiflio.adb: Likewise.
9537 * a-tiflio.ads: Likewise.
9538 * a-tigeau.adb: Likewise.
9539 * a-tigeau.ads: Likewise.
9540 * a-tiinau.adb: Likewise.
9541 * a-tiinau.ads: Likewise.
9542 * a-tiinio.adb: Likewise.
9543 * a-tiinio.ads: Likewise.
9544 * a-timoau.adb: Likewise.
9545 * a-timoau.ads: Likewise.
9546 * a-timoio.adb: Likewise.
9547 * a-timoio.ads: Likewise.
9548 * a-tiocst.adb: Likewise.
9549 * a-tiocst.ads: Likewise.
9550 * a-titest.adb: Likewise.
9551 * a-wichun.adb: Likewise.
9552 * a-wichun.ads: Likewise.
9553 * a-witeio.adb: Likewise.
9554 * a-witeio.ads: Likewise.
9555 * a-wtcoau.adb: Likewise.
9556 * a-wtcoau.ads: Likewise.
9557 * a-wtcoio.adb: Likewise.
9558 * a-wtcstr.adb: Likewise.
9559 * a-wtcstr.ads: Likewise.
9560 * a-wtdeau.adb: Likewise.
9561 * a-wtdeau.ads: Likewise.
9562 * a-wtdeio.adb: Likewise.
9563 * a-wtdeio.ads: Likewise.
9564 * a-wtedit.adb: Likewise.
9565 * a-wtedit.ads: Likewise.
9566 * a-wtenau.adb: Likewise.
9567 * a-wtenau.ads: Likewise.
9568 * a-wtenio.adb: Likewise.
9569 * a-wtenio.ads: Likewise.
9570 * a-wtfiio.adb: Likewise.
9571 * a-wtfiio.ads: Likewise.
9572 * a-wtflau.adb: Likewise.
9573 * a-wtflau.ads: Likewise.
9574 * a-wtflio.adb: Likewise.
9575 * a-wtflio.ads: Likewise.
9576 * a-wtgeau.adb: Likewise.
9577 * a-wtgeau.ads: Likewise.
9578 * a-wtinau.adb: Likewise.
9579 * a-wtinau.ads: Likewise.
9580 * a-wtinio.adb: Likewise.
9581 * a-wtmoau.adb: Likewise.
9582 * a-wtmoau.ads: Likewise.
9583 * a-wtmoio.adb: Likewise.
9584 * a-wtmoio.ads: Likewise.
9585 * a-wttest.adb: Likewise.
9586 * a-wwboio.adb: Likewise.
9587 * a-zchuni.adb: Likewise.
9588 * a-zchuni.ads: Likewise.
9589 * a-ztcoau.adb: Likewise.
9590 * a-ztcoau.ads: Likewise.
9591 * a-ztcoio.adb: Likewise.
9592 * a-ztcstr.adb: Likewise.
9593 * a-ztcstr.ads: Likewise.
9594 * a-ztdeau.adb: Likewise.
9595 * a-ztdeau.ads: Likewise.
9596 * a-ztdeio.adb: Likewise.
9597 * a-ztdeio.ads: Likewise.
9598 * a-ztedit.adb: Likewise.
9599 * a-ztedit.ads: Likewise.
9600 * a-ztenau.adb: Likewise.
9601 * a-ztenau.ads: Likewise.
9602 * a-ztenio.adb: Likewise.
9603 * a-ztenio.ads: Likewise.
9604 * a-ztexio.adb: Likewise.
9605 * a-ztexio.ads: Likewise.
9606 * a-ztfiio.adb: Likewise.
9607 * a-ztfiio.ads: Likewise.
9608 * a-ztflau.adb: Likewise.
9609 * a-ztflau.ads: Likewise.
9610 * a-ztflio.adb: Likewise.
9611 * a-ztflio.ads: Likewise.
9612 * a-ztgeau.adb: Likewise.
9613 * a-ztgeau.ads: Likewise.
9614 * a-ztinau.adb: Likewise.
9615 * a-ztinau.ads: Likewise.
9616 * a-ztinio.adb: Likewise.
9617 * a-ztmoau.adb: Likewise.
9618 * a-ztmoau.ads: Likewise.
9619 * a-ztmoio.adb: Likewise.
9620 * a-ztmoio.ads: Likewise.
9621 * a-zttest.adb: Likewise.
9622 * a-zzboio.adb: Likewise.
9623 * adadecode.c: Likewise.
9624 * adaint.c: Likewise.
9625 * adaint.h: Likewise.
9626 * alloc.ads: Likewise.
9628 * arit64.c: Likewise.
9629 * atree.adb: Likewise.
9630 * atree.ads: Likewise.
9631 * aux-io.c: Likewise.
9633 * casing.adb: Likewise.
9634 * casing.ads: Likewise.
9636 * csets.adb: Likewise.
9637 * csets.ads: Likewise.
9638 * cstreams.c: Likewise.
9639 * ctrl_c.c: Likewise.
9640 * debug.adb: Likewise.
9641 * debug.ads: Likewise.
9642 * dec.ads: Likewise.
9643 * einfo.adb: Likewise.
9644 * einfo.ads: Likewise.
9645 * elists.adb: Likewise.
9646 * elists.ads: Likewise.
9649 * errno.c: Likewise.
9652 * final.c: Likewise.
9653 * fname.adb: Likewise.
9654 * fname.ads: Likewise.
9655 * g-allein.ads: Likewise.
9656 * g-alleve.adb: Likewise.
9657 * g-alleve.ads: Likewise.
9658 * g-altcon.adb: Likewise.
9659 * g-altcon.ads: Likewise.
9660 * g-altive.ads: Likewise.
9661 * g-alveop.adb: Likewise.
9662 * g-alveop.ads: Likewise.
9663 * g-alvety.ads: Likewise.
9664 * g-alvevi.ads: Likewise.
9665 * g-arrspl.adb: Likewise.
9666 * g-arrspl.ads: Likewise.
9667 * g-calend.ads: Likewise.
9668 * g-comlin.adb: Likewise.
9669 * g-debpoo.adb: Likewise.
9670 * g-debpoo.ads: Likewise.
9671 * g-eacodu-vms.adb: Likewise.
9672 * g-eacodu.adb: Likewise.
9673 * g-excact.adb: Likewise.
9674 * g-excact.ads: Likewise.
9675 * g-locfil.adb: Likewise.
9676 * g-os_lib.ads: Likewise.
9677 * g-rannum.adb: Likewise.
9678 * g-rannum.ads: Likewise.
9679 * g-regist.adb: Likewise.
9680 * g-regist.ads: Likewise.
9681 * g-signal.adb: Likewise.
9682 * g-signal.ads: Likewise.
9683 * g-soccon.ads: Likewise.
9684 * g-string.adb: Likewise.
9685 * g-string.ads: Likewise.
9686 * g-strspl.ads: Likewise.
9687 * g-timsta.adb: Likewise.
9688 * g-timsta.ads: Likewise.
9689 * g-trasym-vms-alpha.adb: Likewise.
9690 * g-trasym-vms-ia64.adb: Likewise.
9691 * g-utf_32.adb: Likewise.
9692 * g-utf_32.ads: Likewise.
9693 * g-wistsp.ads: Likewise.
9694 * g-zstspl.ads: Likewise.
9696 * gnatvsn.adb: Likewise.
9697 * gnatvsn.ads: Likewise.
9698 * gsocket.h: Likewise.
9699 * hostparm.ads: Likewise.
9700 * i-c.adb: Likewise.
9701 * i-cexten.ads: Likewise.
9702 * i-cobol.adb: Likewise.
9703 * i-cobol.ads: Likewise.
9704 * i-cpoint.adb: Likewise.
9705 * i-cpoint.ads: Likewise.
9706 * i-cpp.adb: Likewise.
9707 * i-cpp.ads: Likewise.
9708 * i-cstrea-vms.adb: Likewise.
9709 * i-cstrea.adb: Likewise.
9710 * i-cstrea.ads: Likewise.
9711 * i-cstrin.adb: Likewise.
9712 * i-cstrin.ads: Likewise.
9713 * i-forbla-darwin.adb: Likewise.
9714 * i-forbla-unimplemented.ads: Likewise.
9715 * i-forbla.adb: Likewise.
9716 * i-forbla.ads: Likewise.
9717 * i-forlap.ads: Likewise.
9718 * i-fortra.adb: Likewise.
9719 * i-pacdec.adb: Likewise.
9720 * i-pacdec.ads: Likewise.
9721 * i-vxwoio.adb: Likewise.
9722 * i-vxwoio.ads: Likewise.
9723 * indepsw-aix.adb: Likewise.
9724 * indepsw-gnu.adb: Likewise.
9725 * indepsw-mingw.adb: Likewise.
9726 * indepsw.adb: Likewise.
9727 * indepsw.ads: Likewise.
9729 * initialize.c: Likewise.
9730 * interfac.ads: Likewise.
9731 * krunch.adb: Likewise.
9732 * krunch.ads: Likewise.
9733 * lib-list.adb: Likewise.
9734 * lib-sort.adb: Likewise.
9735 * lib.adb: Likewise.
9736 * lib.ads: Likewise.
9738 * math_lib.adb: Likewise.
9739 * memtrack.adb: Likewise.
9740 * mingw32.h: Likewise.
9741 * mkdir.c: Likewise.
9742 * namet-sp.adb: Likewise.
9743 * namet-sp.ads: Likewise.
9744 * namet.adb: Likewise.
9745 * namet.ads: Likewise.
9746 * nlists.adb: Likewise.
9747 * nlists.ads: Likewise.
9748 * opt.adb: Likewise.
9749 * opt.ads: Likewise.
9750 * output.adb: Likewise.
9751 * output.ads: Likewise.
9752 * raise-gcc.c: Likewise.
9753 * raise.c: Likewise.
9754 * raise.h: Likewise.
9755 * repinfo.adb: Likewise.
9756 * repinfo.ads: Likewise.
9757 * repinfo.h: Likewise.
9758 * rident.ads: Likewise.
9759 * s-addima.adb: Likewise.
9760 * s-addima.ads: Likewise.
9761 * s-addope.adb: Likewise.
9762 * s-addope.ads: Likewise.
9763 * s-arit64.adb: Likewise.
9764 * s-arit64.ads: Likewise.
9765 * s-assert.adb: Likewise.
9766 * s-assert.ads: Likewise.
9767 * s-asthan-vms-alpha.adb: Likewise.
9768 * s-asthan.adb: Likewise.
9769 * s-asthan.ads: Likewise.
9770 * s-atacco.adb: Likewise.
9771 * s-atacco.ads: Likewise.
9772 * s-auxdec-empty.adb: Likewise.
9773 * s-auxdec-empty.ads: Likewise.
9774 * s-auxdec-vms_64.ads: Likewise.
9775 * s-auxdec.adb: Likewise.
9776 * s-auxdec.ads: Likewise.
9777 * s-bitops.adb: Likewise.
9778 * s-bitops.ads: Likewise.
9779 * s-boarop.ads: Likewise.
9780 * s-carsi8.adb: Likewise.
9781 * s-carsi8.ads: Likewise.
9782 * s-carun8.adb: Likewise.
9783 * s-carun8.ads: Likewise.
9784 * s-casi16.adb: Likewise.
9785 * s-casi16.ads: Likewise.
9786 * s-casi32.adb: Likewise.
9787 * s-casi32.ads: Likewise.
9788 * s-casi64.adb: Likewise.
9789 * s-casi64.ads: Likewise.
9790 * s-casuti.ads: Likewise.
9791 * s-caun16.adb: Likewise.
9792 * s-caun16.ads: Likewise.
9793 * s-caun32.adb: Likewise.
9794 * s-caun32.ads: Likewise.
9795 * s-caun64.adb: Likewise.
9796 * s-caun64.ads: Likewise.
9797 * s-chepoo.ads: Likewise.
9798 * s-crc32.adb: Likewise.
9799 * s-crc32.ads: Likewise.
9800 * s-crtl.ads: Likewise.
9801 * s-direio.adb: Likewise.
9802 * s-direio.ads: Likewise.
9803 * s-dsaser.ads: Likewise.
9804 * s-except.adb: Likewise.
9805 * s-except.ads: Likewise.
9806 * s-exctab.adb: Likewise.
9807 * s-exctab.ads: Likewise.
9808 * s-exnint.adb: Likewise.
9809 * s-exnint.ads: Likewise.
9810 * s-exnllf.adb: Likewise.
9811 * s-exnllf.ads: Likewise.
9812 * s-exnlli.adb: Likewise.
9813 * s-exnlli.ads: Likewise.
9814 * s-expint.adb: Likewise.
9815 * s-expint.ads: Likewise.
9816 * s-explli.adb: Likewise.
9817 * s-explli.ads: Likewise.
9818 * s-expllu.adb: Likewise.
9819 * s-expllu.ads: Likewise.
9820 * s-expmod.adb: Likewise.
9821 * s-expmod.ads: Likewise.
9822 * s-expuns.adb: Likewise.
9823 * s-expuns.ads: Likewise.
9824 * s-fatflt.ads: Likewise.
9825 * s-fatgen.adb: Likewise.
9826 * s-fatgen.ads: Likewise.
9827 * s-fatlfl.ads: Likewise.
9828 * s-fatllf.ads: Likewise.
9829 * s-fatsfl.ads: Likewise.
9830 * s-ficobl.ads: Likewise.
9831 * s-fileio.adb: Likewise.
9832 * s-fileio.ads: Likewise.
9833 * s-filofl.ads: Likewise.
9834 * s-finimp.adb: Likewise.
9835 * s-finimp.ads: Likewise.
9836 * s-finroo.adb: Likewise.
9837 * s-finroo.ads: Likewise.
9838 * s-fishfl.ads: Likewise.
9839 * s-fore.adb: Likewise.
9840 * s-fore.ads: Likewise.
9841 * s-fvadfl.ads: Likewise.
9842 * s-fvaffl.ads: Likewise.
9843 * s-fvagfl.ads: Likewise.
9844 * s-gearop.adb: Likewise.
9845 * s-gearop.ads: Likewise.
9846 * s-gecobl.adb: Likewise.
9847 * s-gecobl.ads: Likewise.
9848 * s-gecola.adb: Likewise.
9849 * s-gecola.ads: Likewise.
9850 * s-gerebl.adb: Likewise.
9851 * s-gerebl.ads: Likewise.
9852 * s-gerela.adb: Likewise.
9853 * s-gerela.ads: Likewise.
9854 * s-geveop.adb: Likewise.
9855 * s-geveop.ads: Likewise.
9856 * s-gloloc.adb: Likewise.
9857 * s-gloloc.ads: Likewise.
9858 * s-hibaen.ads: Likewise.
9859 * s-imenne.adb: Likewise.
9860 * s-imenne.ads: Likewise.
9861 * s-imgbiu.adb: Likewise.
9862 * s-imgbiu.ads: Likewise.
9863 * s-imgboo.adb: Likewise.
9864 * s-imgboo.ads: Likewise.
9865 * s-imgcha.adb: Likewise.
9866 * s-imgcha.ads: Likewise.
9867 * s-imgdec.adb: Likewise.
9868 * s-imgdec.ads: Likewise.
9869 * s-imgenu.adb: Likewise.
9870 * s-imgenu.ads: Likewise.
9871 * s-imgint.adb: Likewise.
9872 * s-imgint.ads: Likewise.
9873 * s-imgllb.adb: Likewise.
9874 * s-imgllb.ads: Likewise.
9875 * s-imglld.adb: Likewise.
9876 * s-imglld.ads: Likewise.
9877 * s-imglli.adb: Likewise.
9878 * s-imglli.ads: Likewise.
9879 * s-imgllu.adb: Likewise.
9880 * s-imgllu.ads: Likewise.
9881 * s-imgllw.adb: Likewise.
9882 * s-imgllw.ads: Likewise.
9883 * s-imgrea.adb: Likewise.
9884 * s-imgrea.ads: Likewise.
9885 * s-imguns.adb: Likewise.
9886 * s-imguns.ads: Likewise.
9887 * s-imgwch.adb: Likewise.
9888 * s-imgwch.ads: Likewise.
9889 * s-imgwiu.adb: Likewise.
9890 * s-imgwiu.ads: Likewise.
9891 * s-inmaop-dummy.adb: Likewise.
9892 * s-inmaop-vms.adb: Likewise.
9893 * s-inmaop.ads: Likewise.
9894 * s-interr-hwint.adb: Likewise.
9895 * s-interr-sigaction.adb: Likewise.
9896 * s-interr-vms.adb: Likewise.
9897 * s-interr.adb: Likewise.
9898 * s-interr.ads: Likewise.
9899 * s-intman-dummy.adb: Likewise.
9900 * s-intman-mingw.adb: Likewise.
9901 * s-intman-posix.adb: Likewise.
9902 * s-intman-solaris.adb: Likewise.
9903 * s-intman-vms.adb: Likewise.
9904 * s-intman-vms.ads: Likewise.
9905 * s-intman-vxworks.adb: Likewise.
9906 * s-intman-vxworks.ads: Likewise.
9907 * s-intman.ads: Likewise.
9908 * s-io.adb: Likewise.
9909 * s-io.ads: Likewise.
9910 * s-linux-alpha.ads: Likewise.
9911 * s-linux-hppa.ads: Likewise.
9912 * s-linux.ads: Likewise.
9913 * s-maccod.ads: Likewise.
9914 * s-mantis.adb: Likewise.
9915 * s-mantis.ads: Likewise.
9916 * s-mastop-irix.adb: Likewise.
9917 * s-mastop.adb: Likewise.
9918 * s-mastop.ads: Likewise.
9919 * s-memcop.ads: Likewise.
9920 * s-memory-mingw.adb: Likewise.
9921 * s-memory.adb: Likewise.
9922 * s-memory.ads: Likewise.
9923 * s-os_lib.ads: Likewise.
9924 * s-oscons-tmplt.c: Likewise.
9925 * s-osinte-aix.adb: Likewise.
9926 * s-osinte-darwin.adb: Likewise.
9927 * s-osinte-freebsd.adb: Likewise.
9928 * s-osinte-irix.adb: Likewise.
9929 * s-osinte-lynxos-3.adb: Likewise.
9930 * s-osinte-rtems.ads: Likewise.
9931 * s-osinte-tru64.adb: Likewise.
9932 * s-osinte-vxworks-kernel.adb: Likewise.
9933 * s-osinte-vxworks.adb: Likewise.
9934 * s-osprim-mingw.adb: Likewise.
9935 * s-osprim-posix.adb: Likewise.
9936 * s-osprim-solaris.adb: Likewise.
9937 * s-osprim-unix.adb: Likewise.
9938 * s-osprim-vms.adb: Likewise.
9939 * s-osprim-vms.ads: Likewise.
9940 * s-osprim-vxworks.adb: Likewise.
9941 * s-osprim.ads: Likewise.
9942 * s-pack03.adb: Likewise.
9943 * s-pack03.ads: Likewise.
9944 * s-pack05.adb: Likewise.
9945 * s-pack05.ads: Likewise.
9946 * s-pack06.adb: Likewise.
9947 * s-pack06.ads: Likewise.
9948 * s-pack07.adb: Likewise.
9949 * s-pack07.ads: Likewise.
9950 * s-pack09.adb: Likewise.
9951 * s-pack09.ads: Likewise.
9952 * s-pack10.adb: Likewise.
9953 * s-pack10.ads: Likewise.
9954 * s-pack11.adb: Likewise.
9955 * s-pack11.ads: Likewise.
9956 * s-pack12.adb: Likewise.
9957 * s-pack12.ads: Likewise.
9958 * s-pack13.adb: Likewise.
9959 * s-pack13.ads: Likewise.
9960 * s-pack14.adb: Likewise.
9961 * s-pack14.ads: Likewise.
9962 * s-pack15.adb: Likewise.
9963 * s-pack15.ads: Likewise.
9964 * s-pack17.adb: Likewise.
9965 * s-pack17.ads: Likewise.
9966 * s-pack18.adb: Likewise.
9967 * s-pack18.ads: Likewise.
9968 * s-pack19.adb: Likewise.
9969 * s-pack19.ads: Likewise.
9970 * s-pack20.adb: Likewise.
9971 * s-pack20.ads: Likewise.
9972 * s-pack21.adb: Likewise.
9973 * s-pack21.ads: Likewise.
9974 * s-pack22.adb: Likewise.
9975 * s-pack22.ads: Likewise.
9976 * s-pack23.adb: Likewise.
9977 * s-pack23.ads: Likewise.
9978 * s-pack24.adb: Likewise.
9979 * s-pack24.ads: Likewise.
9980 * s-pack25.adb: Likewise.
9981 * s-pack25.ads: Likewise.
9982 * s-pack26.adb: Likewise.
9983 * s-pack26.ads: Likewise.
9984 * s-pack27.adb: Likewise.
9985 * s-pack27.ads: Likewise.
9986 * s-pack28.adb: Likewise.
9987 * s-pack28.ads: Likewise.
9988 * s-pack29.adb: Likewise.
9989 * s-pack29.ads: Likewise.
9990 * s-pack30.adb: Likewise.
9991 * s-pack30.ads: Likewise.
9992 * s-pack31.adb: Likewise.
9993 * s-pack31.ads: Likewise.
9994 * s-pack33.adb: Likewise.
9995 * s-pack33.ads: Likewise.
9996 * s-pack34.adb: Likewise.
9997 * s-pack34.ads: Likewise.
9998 * s-pack35.adb: Likewise.
9999 * s-pack35.ads: Likewise.
10000 * s-pack36.adb: Likewise.
10001 * s-pack36.ads: Likewise.
10002 * s-pack37.adb: Likewise.
10003 * s-pack37.ads: Likewise.
10004 * s-pack38.adb: Likewise.
10005 * s-pack38.ads: Likewise.
10006 * s-pack39.adb: Likewise.
10007 * s-pack39.ads: Likewise.
10008 * s-pack40.adb: Likewise.
10009 * s-pack40.ads: Likewise.
10010 * s-pack41.adb: Likewise.
10011 * s-pack41.ads: Likewise.
10012 * s-pack42.adb: Likewise.
10013 * s-pack42.ads: Likewise.
10014 * s-pack43.adb: Likewise.
10015 * s-pack43.ads: Likewise.
10016 * s-pack44.adb: Likewise.
10017 * s-pack44.ads: Likewise.
10018 * s-pack45.adb: Likewise.
10019 * s-pack45.ads: Likewise.
10020 * s-pack46.adb: Likewise.
10021 * s-pack46.ads: Likewise.
10022 * s-pack47.adb: Likewise.
10023 * s-pack47.ads: Likewise.
10024 * s-pack48.adb: Likewise.
10025 * s-pack48.ads: Likewise.
10026 * s-pack49.adb: Likewise.
10027 * s-pack49.ads: Likewise.
10028 * s-pack50.adb: Likewise.
10029 * s-pack50.ads: Likewise.
10030 * s-pack51.adb: Likewise.
10031 * s-pack51.ads: Likewise.
10032 * s-pack52.adb: Likewise.
10033 * s-pack52.ads: Likewise.
10034 * s-pack53.adb: Likewise.
10035 * s-pack53.ads: Likewise.
10036 * s-pack54.adb: Likewise.
10037 * s-pack54.ads: Likewise.
10038 * s-pack55.adb: Likewise.
10039 * s-pack55.ads: Likewise.
10040 * s-pack56.adb: Likewise.
10041 * s-pack56.ads: Likewise.
10042 * s-pack57.adb: Likewise.
10043 * s-pack57.ads: Likewise.
10044 * s-pack58.adb: Likewise.
10045 * s-pack58.ads: Likewise.
10046 * s-pack59.adb: Likewise.
10047 * s-pack59.ads: Likewise.
10048 * s-pack60.adb: Likewise.
10049 * s-pack60.ads: Likewise.
10050 * s-pack61.adb: Likewise.
10051 * s-pack61.ads: Likewise.
10052 * s-pack62.adb: Likewise.
10053 * s-pack62.ads: Likewise.
10054 * s-pack63.adb: Likewise.
10055 * s-pack63.ads: Likewise.
10056 * s-parame-ae653.ads: Likewise.
10057 * s-parame-hpux.ads: Likewise.
10058 * s-parame-rtems.adb: Likewise.
10059 * s-parame-vms-alpha.ads: Likewise.
10060 * s-parame-vms-ia64.ads: Likewise.
10061 * s-parame-vms-restrict.ads: Likewise.
10062 * s-parame-vxworks.adb: Likewise.
10063 * s-parame-vxworks.ads: Likewise.
10064 * s-parame.adb: Likewise.
10065 * s-parame.ads: Likewise.
10066 * s-parint.adb: Likewise.
10067 * s-parint.ads: Likewise.
10068 * s-pooglo.adb: Likewise.
10069 * s-pooglo.ads: Likewise.
10070 * s-pooloc.adb: Likewise.
10071 * s-pooloc.ads: Likewise.
10072 * s-poosiz.adb: Likewise.
10073 * s-poosiz.ads: Likewise.
10074 * s-powtab.ads: Likewise.
10075 * s-proinf-irix-athread.adb: Likewise.
10076 * s-proinf-irix-athread.ads: Likewise.
10077 * s-proinf.adb: Likewise.
10078 * s-proinf.ads: Likewise.
10079 * s-purexc.ads: Likewise.
10080 * s-rannum.adb: Likewise.
10081 * s-rannum.ads: Likewise.
10082 * s-restri.adb: Likewise.
10083 * s-restri.ads: Likewise.
10084 * s-rident.ads: Likewise.
10085 * s-rpc.adb: Likewise.
10086 * s-rpc.ads: Likewise.
10087 * s-scaval.adb: Likewise.
10088 * s-scaval.ads: Likewise.
10089 * s-secsta.adb: Likewise.
10090 * s-secsta.ads: Likewise.
10091 * s-sequio.adb: Likewise.
10092 * s-sequio.ads: Likewise.
10093 * s-shasto.adb: Likewise.
10094 * s-shasto.ads: Likewise.
10095 * s-soflin.adb: Likewise.
10096 * s-soflin.ads: Likewise.
10097 * s-solita.adb: Likewise.
10098 * s-solita.ads: Likewise.
10099 * s-sopco3.adb: Likewise.
10100 * s-sopco3.ads: Likewise.
10101 * s-sopco4.adb: Likewise.
10102 * s-sopco4.ads: Likewise.
10103 * s-sopco5.adb: Likewise.
10104 * s-sopco5.ads: Likewise.
10105 * s-stache.adb: Likewise.
10106 * s-stache.ads: Likewise.
10107 * s-stalib.adb: Likewise.
10108 * s-stalib.ads: Likewise.
10109 * s-stausa.adb: Likewise.
10110 * s-stausa.ads: Likewise.
10111 * s-stchop-limit.ads: Likewise.
10112 * s-stchop-rtems.adb: Likewise.
10113 * s-stchop-vxworks.adb: Likewise.
10114 * s-stchop.adb: Likewise.
10115 * s-stchop.ads: Likewise.
10116 * s-stoele.adb: Likewise.
10117 * s-stoele.ads: Likewise.
10118 * s-stopoo.adb: Likewise.
10119 * s-stopoo.ads: Likewise.
10120 * s-stratt.adb: Likewise.
10121 * s-stratt.ads: Likewise.
10122 * s-strcom.adb: Likewise.
10123 * s-strcom.ads: Likewise.
10124 * s-string.adb: Likewise.
10125 * s-string.ads: Likewise.
10126 * s-strops.adb: Likewise.
10127 * s-strops.ads: Likewise.
10128 * s-strxdr.adb: Likewise.
10129 * s-ststop.adb: Likewise.
10130 * s-ststop.ads: Likewise.
10131 * s-taasde.adb: Likewise.
10132 * s-taasde.ads: Likewise.
10133 * s-tadeca.adb: Likewise.
10134 * s-tadeca.ads: Likewise.
10135 * s-tadert.adb: Likewise.
10136 * s-tadert.ads: Likewise.
10137 * s-taenca.adb: Likewise.
10138 * s-taenca.ads: Likewise.
10139 * s-taprob.ads: Likewise.
10140 * s-taprop-dummy.adb: Likewise.
10141 * s-taprop-hpux-dce.adb: Likewise.
10142 * s-taprop-irix.adb: Likewise.
10143 * s-taprop-linux.adb: Likewise.
10144 * s-taprop-lynxos.adb: Likewise.
10145 * s-taprop-mingw.adb: Likewise.
10146 * s-taprop-posix.adb: Likewise.
10147 * s-taprop-solaris.adb: Likewise.
10148 * s-taprop-tru64.adb: Likewise.
10149 * s-taprop-vms.adb: Likewise.
10150 * s-taprop-vxworks.adb: Likewise.
10151 * s-taprop.ads: Likewise.
10152 * s-tarest.adb: Likewise.
10153 * s-tarest.ads: Likewise.
10154 * s-tasdeb.adb: Likewise.
10155 * s-tasdeb.ads: Likewise.
10156 * s-tasinf-irix.ads: Likewise.
10157 * s-tasinf-linux.adb: Likewise.
10158 * s-tasinf-linux.ads: Likewise.
10159 * s-tasinf-mingw.adb: Likewise.
10160 * s-tasinf-mingw.ads: Likewise.
10161 * s-tasinf-solaris.adb: Likewise.
10162 * s-tasinf-solaris.ads: Likewise.
10163 * s-tasinf-tru64.ads: Likewise.
10164 * s-tasinf.adb: Likewise.
10165 * s-tasinf.ads: Likewise.
10166 * s-tasini.adb: Likewise.
10167 * s-tasini.ads: Likewise.
10168 * s-taskin.adb: Likewise.
10169 * s-taskin.ads: Likewise.
10170 * s-taspri-dummy.ads: Likewise.
10171 * s-taspri-hpux-dce.ads: Likewise.
10172 * s-taspri-mingw.ads: Likewise.
10173 * s-taspri-solaris.ads: Likewise.
10174 * s-taspri-tru64.ads: Likewise.
10175 * s-taspri-vms.ads: Likewise.
10176 * s-taspri-vxworks.ads: Likewise.
10177 * s-tasque.adb: Likewise.
10178 * s-tasque.ads: Likewise.
10179 * s-tasren.adb: Likewise.
10180 * s-tasren.ads: Likewise.
10181 * s-tasres.ads: Likewise.
10182 * s-tassta.adb: Likewise.
10183 * s-tassta.ads: Likewise.
10184 * s-tasuti.adb: Likewise.
10185 * s-tasuti.ads: Likewise.
10186 * s-tfsetr-default.adb: Likewise.
10187 * s-tfsetr-vxworks.adb: Likewise.
10188 * s-tpinop.adb: Likewise.
10189 * s-tpinop.ads: Likewise.
10190 * s-tpoben.adb: Likewise.
10191 * s-tpoben.ads: Likewise.
10192 * s-tpobop.adb: Likewise.
10193 * s-tpobop.ads: Likewise.
10194 * s-tpopde-vms.adb: Likewise.
10195 * s-tpopde-vms.ads: Likewise.
10196 * s-tpopsp-lynxos.adb: Likewise.
10197 * s-tpopsp-posix-foreign.adb: Likewise.
10198 * s-tpopsp-posix.adb: Likewise.
10199 * s-tpopsp-solaris.adb: Likewise.
10200 * s-tpopsp-vxworks.adb: Likewise.
10201 * s-tporft.adb: Likewise.
10202 * s-tposen.adb: Likewise.
10203 * s-tposen.ads: Likewise.
10204 * s-traceb.adb: Likewise.
10205 * s-traceb.ads: Likewise.
10206 * s-traces-default.adb: Likewise.
10207 * s-traces.adb: Likewise.
10208 * s-traces.ads: Likewise.
10209 * s-traent-vms.adb: Likewise.
10210 * s-traent-vms.ads: Likewise.
10211 * s-traent.adb: Likewise.
10212 * s-traent.ads: Likewise.
10213 * s-trafor-default.adb: Likewise.
10214 * s-trafor-default.ads: Likewise.
10215 * s-tratas-default.adb: Likewise.
10216 * s-tratas.adb: Likewise.
10217 * s-tratas.ads: Likewise.
10218 * s-unstyp.ads: Likewise.
10219 * s-utf_32.adb: Likewise.
10220 * s-utf_32.ads: Likewise.
10221 * s-vaflop-vms-alpha.adb: Likewise.
10222 * s-vaflop.adb: Likewise.
10223 * s-vaflop.ads: Likewise.
10224 * s-valboo.adb: Likewise.
10225 * s-valboo.ads: Likewise.
10226 * s-valcha.adb: Likewise.
10227 * s-valcha.ads: Likewise.
10228 * s-valdec.adb: Likewise.
10229 * s-valdec.ads: Likewise.
10230 * s-valenu.adb: Likewise.
10231 * s-valenu.ads: Likewise.
10232 * s-valint.adb: Likewise.
10233 * s-valint.ads: Likewise.
10234 * s-vallld.adb: Likewise.
10235 * s-vallld.ads: Likewise.
10236 * s-vallli.adb: Likewise.
10237 * s-vallli.ads: Likewise.
10238 * s-valllu.adb: Likewise.
10239 * s-valllu.ads: Likewise.
10240 * s-valrea.adb: Likewise.
10241 * s-valrea.ads: Likewise.
10242 * s-valuns.adb: Likewise.
10243 * s-valuns.ads: Likewise.
10244 * s-valuti.adb: Likewise.
10245 * s-valuti.ads: Likewise.
10246 * s-valwch.adb: Likewise.
10247 * s-valwch.ads: Likewise.
10248 * s-veboop.adb: Likewise.
10249 * s-veboop.ads: Likewise.
10250 * s-vector.ads: Likewise.
10251 * s-vercon.adb: Likewise.
10252 * s-vercon.ads: Likewise.
10253 * s-vmexta.adb: Likewise.
10254 * s-vmexta.ads: Likewise.
10255 * s-vxwext-kernel.ads: Likewise.
10256 * s-vxwext-rtp.adb: Likewise.
10257 * s-vxwext-rtp.ads: Likewise.
10258 * s-vxwext.ads: Likewise.
10259 * s-vxwork-arm.ads: Likewise.
10260 * s-vxwork-m68k.ads: Likewise.
10261 * s-vxwork-mips.ads: Likewise.
10262 * s-vxwork-ppc.ads: Likewise.
10263 * s-vxwork-sparcv9.ads: Likewise.
10264 * s-vxwork-x86.ads: Likewise.
10265 * s-wchcnv.adb: Likewise.
10266 * s-wchcnv.ads: Likewise.
10267 * s-wchcon.adb: Likewise.
10268 * s-wchcon.ads: Likewise.
10269 * s-wchjis.adb: Likewise.
10270 * s-wchjis.ads: Likewise.
10271 * s-wchstw.adb: Likewise.
10272 * s-wchstw.ads: Likewise.
10273 * s-wchwts.adb: Likewise.
10274 * s-wchwts.ads: Likewise.
10275 * s-widboo.adb: Likewise.
10276 * s-widboo.ads: Likewise.
10277 * s-widcha.adb: Likewise.
10278 * s-widcha.ads: Likewise.
10279 * s-widenu.adb: Likewise.
10280 * s-widenu.ads: Likewise.
10281 * s-widlli.adb: Likewise.
10282 * s-widlli.ads: Likewise.
10283 * s-widllu.adb: Likewise.
10284 * s-widllu.ads: Likewise.
10285 * s-widwch.adb: Likewise.
10286 * s-widwch.ads: Likewise.
10287 * s-win32.ads: Likewise.
10288 * s-winext.ads: Likewise.
10289 * s-wwdcha.adb: Likewise.
10290 * s-wwdcha.ads: Likewise.
10291 * s-wwdenu.adb: Likewise.
10292 * s-wwdenu.ads: Likewise.
10293 * s-wwdwch.adb: Likewise.
10294 * s-wwdwch.ads: Likewise.
10295 * scans.adb: Likewise.
10296 * scans.ads: Likewise.
10297 * seh_init.c: Likewise.
10298 * sfn_scan.adb: Likewise.
10299 * sinfo.adb: Likewise.
10300 * sinfo.ads: Likewise.
10301 * sinput.adb: Likewise.
10302 * sinput.ads: Likewise.
10303 * snames.adb: Likewise.
10304 * snames.ads: Likewise.
10305 * socket.c: Likewise.
10306 * stand.adb: Likewise.
10307 * stand.ads: Likewise.
10308 * stringt.adb: Likewise.
10309 * stringt.ads: Likewise.
10310 * sysdep.c: Likewise.
10311 * system-aix.ads: Likewise.
10312 * system-darwin-ppc.ads: Likewise.
10313 * system-darwin-x86.ads: Likewise.
10314 * system-darwin-x86_64.ads: Likewise.
10315 * system-freebsd-x86.ads: Likewise.
10316 * system-hpux-ia64.ads: Likewise.
10317 * system-hpux.ads: Likewise.
10318 * system-irix-n32.ads: Likewise.
10319 * system-irix-n64.ads: Likewise.
10320 * system-irix-o32.ads: Likewise.
10321 * system-linux-alpha.ads: Likewise.
10322 * system-linux-hppa.ads: Likewise.
10323 * system-linux-ia64.ads: Likewise.
10324 * system-linux-mips.ads: Likewise.
10325 * system-linux-mipsel.ads: Likewise.
10326 * system-linux-ppc.ads: Likewise.
10327 * system-linux-ppc64.ads: Likewise.
10328 * system-linux-s390.ads: Likewise.
10329 * system-linux-s390x.ads: Likewise.
10330 * system-linux-sh4.ads: Likewise.
10331 * system-linux-sparc.ads: Likewise.
10332 * system-linux-sparcv9.ads: Likewise.
10333 * system-linux-x86.ads: Likewise.
10334 * system-linux-x86_64.ads: Likewise.
10335 * system-lynxos-ppc.ads: Likewise.
10336 * system-lynxos-x86.ads: Likewise.
10337 * system-mingw-x86_64.ads: Likewise.
10338 * system-mingw.ads: Likewise.
10339 * system-rtems.ads: Likewise.
10340 * system-solaris-sparc.ads: Likewise.
10341 * system-solaris-sparcv9.ads: Likewise.
10342 * system-solaris-x86.ads: Likewise.
10343 * system-solaris-x86_64.ads: Likewise.
10344 * system-tru64.ads: Likewise.
10345 * system-vms-ia64.ads: Likewise.
10346 * system-vms-zcx.ads: Likewise.
10347 * system-vms.ads: Likewise.
10348 * system-vms_64.ads: Likewise.
10349 * system-vxworks-arm.ads: Likewise.
10350 * system-vxworks-m68k.ads: Likewise.
10351 * system-vxworks-mips.ads: Likewise.
10352 * system-vxworks-ppc.ads: Likewise.
10353 * system-vxworks-sparcv9.ads: Likewise.
10354 * system-vxworks-x86.ads: Likewise.
10355 * system.ads: Likewise.
10356 * table.adb: Likewise.
10357 * table.ads: Likewise.
10358 * targext.c: Likewise.
10359 * targparm.ads: Likewise.
10360 * tree_in.adb: Likewise.
10361 * tree_in.ads: Likewise.
10362 * tree_io.adb: Likewise.
10363 * tree_io.ads: Likewise.
10364 * types.adb: Likewise.
10365 * types.ads: Likewise.
10366 * uintp.adb: Likewise.
10367 * uintp.ads: Likewise.
10368 * uname.adb: Likewise.
10369 * uname.ads: Likewise.
10370 * urealp.adb: Likewise.
10371 * urealp.ads: Likewise.
10372 * vx_stack_info.c: Likewise.
10373 * widechar.adb: Likewise.
10374 * widechar.ads: Likewise.
10375 * exp_attr.adb: Change copyright header to refer to version
10376 3 of the GNU General Public License and to point readers at the
10377 COPYING3 file and the FSF's license web page.
10378 * sem.adb: Likewise.
10379 * sem_attr.ads: Likewise.
10380 * freeze.adb: Likewise.
10381 * freeze.ads: Likewise.
10382 * errout.ads: Likewise.
10383 * erroutc.adb: Likewise.
10384 * exp_ch11.ads: Likewise.
10386 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10388 * config-lang.in: Change copyright header to refer to version
10389 3 of the GNU General Public License and to point readers at the
10390 COPYING3 file and the FSF's license web page.
10391 * gcc-interface/trans.c: Likewise.
10392 * gnathtml.pl: Likewise.
10393 * gcc-interface/ada.h: Likewise. Remove runtime exception.
10394 * gcc-interface/gigi.h: Likewise.
10395 * gcc-interface/misc.c: Likewise.
10396 * gcc-interface/targtyps.c: Likewise.
10398 2009-04-09 Nicolas Setton <setton@adacore.com>
10400 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
10402 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
10405 2009-04-09 Bob Duff <duff@adacore.com>
10407 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
10408 internally-generated nodes related to select statements to avoid
10409 confusing the debugger.
10411 2009-04-09 Pascal Obry <obry@adacore.com>
10413 * make.adb: Ensure that all linker arguments are duplicated.
10415 2009-04-09 Robert Dewar <dewar@adacore.com>
10417 * sem_ch5.adb: Minor reformatting
10419 2009-04-09 Vincent Celier <celier@adacore.com>
10422 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
10423 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
10424 New qualifier /LXDEBUG=nnn for -gnatDnnn
10428 Update documentation for VMS qualifiers equivalent to -gnatGnn and
10431 2009-04-09 Nicolas Setton <setton@adacore.com>
10433 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
10434 to match layout of siginfo_t in sys/signal.h.
10436 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
10438 2009-04-09 Thomas Quinot <quinot@adacore.com>
10440 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
10442 2009-04-09 Nicolas Setton <setton@adacore.com>
10444 * s-oscons-tmplt.c: Allow long lines in the generated spec.
10445 Add generation of Darwin-specific constants needed when binding to the
10448 2009-04-09 Robert Dewar <dewar@adacore.com>
10451 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
10452 when no invalid values exist, Avoid duplicate read of atomic variable.
10454 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
10455 (Standard_Unsigned): Set Is_Known_Valid
10457 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
10458 subtype declaration if no constraint.
10459 (Set_Modular_Size): Set Is_Known_Valid if appropriate
10460 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
10462 2009-04-09 Robert Dewar <dewar@adacore.com>
10464 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
10465 switch.ads: for numeric switches, an optional equal sign is always
10468 2009-04-09 Vincent Celier <celier@adacore.com>
10470 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
10471 the case of file names is not significant.
10473 2009-04-09 Vincent Celier <celier@adacore.com>
10475 * errout.adb: Remove dependency on package Style
10477 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
10480 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
10483 * errutil.adb, par.adb: Import Stylesw
10485 2009-04-09 Arnaud Charlet <charlet@adacore.com>
10487 * opt.ads: Fix typos.
10489 2009-04-09 Robert Dewar <dewar@adacore.com>
10491 * einfo.adb: Minor reformatting
10493 2009-04-09 Robert Dewar <dewar@adacore.com>
10495 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
10498 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
10500 2009-04-09 Robert Dewar <dewar@adacore.com>
10502 * g-comver.adb: Minor reformatting.
10504 2009-04-09 Thomas Quinot <quinot@adacore.com>
10506 * lib-load.ads (Load_Unit): Update documentation.
10508 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10510 * lib-load.adb (Load_Unit): When loading the parent of a child unit
10511 named in a with_clause, retain the with_clause to preserve a
10512 limited_with indication.
10514 2009-04-09 Robert Dewar <dewar@adacore.com>
10516 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
10517 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
10518 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
10519 possible to replace an OR of two separate tests.
10521 2009-04-09 Robert Dewar <dewar@adacore.com>
10523 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
10526 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
10527 warning status as well.
10529 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
10531 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
10534 * bindusg.adb, usage.adb: Update line for -gnatm switch
10536 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
10537 -mnn binder switch.
10539 2009-04-09 Robert Dewar <dewar@adacore.com>
10541 * sem_ch10.adb: Minor reformatting.
10543 2009-04-09 Bob Duff <duff@adacore.com>
10545 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
10546 Set Sloc of generated nodes for calls to Undefer_Aborts and
10547 Save_Occurrence to No_Location, so the debugger ignores them and
10548 therefore does not jump back and forth when single stepping.
10550 2009-04-09 Robert Dewar <dewar@adacore.com>
10552 * switch-b.adb: Minor reformatting.
10554 2009-04-09 Robert Dewar <dewar@adacore.com>
10556 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
10557 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
10558 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
10559 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
10560 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
10561 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
10562 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
10563 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
10564 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
10565 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
10566 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
10568 2009-04-09 Robert Dewar <dewar@adacore.com>
10570 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
10572 * atree.h: Add Elist26
10574 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
10577 2009-04-09 Javier Miranda <miranda@adacore.com>
10579 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
10580 retrieve from the Dispatch_Table_Wrappers list the external name.
10581 Addition of documentation.
10582 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
10583 used to export secondary dispatch tables (in the previous version of
10584 the frontend only primary dispatch tables were exported). Addition of
10586 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
10587 dispatch table of a given tagged type.
10588 (Make_Tags): Modified to import secondary dispatch tables.
10590 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
10591 (Constant_Redeclaration): Code cleanup.
10593 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
10594 Dispatch_Table_Wrappers. Update documentation.
10596 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
10597 Renamed to Dispatch_Table_Wrappers.
10599 * sem_util.adb (Collect_Interface_Components): Improve handling of
10602 * atree.ads (Elist26, Set_Elist26): New subprograms
10604 * atree.adb (Elist26, Set_Elist26): New subprograms
10606 2009-04-09 Javier Miranda <miranda@adacore.com>
10608 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
10609 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
10612 2009-04-09 Robert Dewar <dewar@adacore.com>
10614 * s-direio.adb: Minor reformatting
10616 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
10618 2009-04-09 Robert Dewar <dewar@adacore.com>
10620 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
10622 2009-04-09 Pascal Obry <obry@adacore.com>
10624 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
10625 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
10626 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
10627 a-filico.ads: Add some missing overriding keywords.
10629 2009-04-09 Pascal Obry <obry@adacore.com>
10631 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
10632 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
10633 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
10636 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10638 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
10639 missing overriding indicator if the new declaration is not seen as
10642 2009-04-09 Thomas Quinot <quinot@adacore.com>
10644 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
10645 overflows in computation of bounds.
10647 2009-04-09 Pascal Obry <obry@adacore.com>
10649 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
10652 2009-04-09 Robert Dewar <dewar@adacore.com>
10654 * sem_attr.adb (Check_Stream_Attribute): Check violation of
10655 restriction No_Streams
10657 * gnat_rm.texi: Clarify No_Streams restriction
10659 * g-socket.adb: Minor reformatting.
10661 2009-04-09 Thomas Quinot <quinot@adacore.com>
10663 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
10665 2009-04-09 Geert Bosch <bosch@adacore.com>
10667 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
10668 (Set_Result): Likewise.
10669 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
10670 conversion, as required by RM 4.6(31).
10672 2009-04-08 Robert Dewar <dewar@adacore.com>
10674 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
10677 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
10680 2009-04-08 Robert Dewar <dewar@adacore.com>
10682 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
10683 No_Local_Allocators restriction preventing local instantiation.
10685 2009-04-08 Thomas Quinot <quinot@adacore.com>
10687 * sem_eval.adb: Minor comment fix
10689 2009-04-08 Thomas Quinot <quinot@adacore.com>
10691 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
10692 New limited controlled type used to automate the initialization and
10693 finalization of the sockets implementation.
10694 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
10696 2009-04-08 Vincent Celier <celier@adacore.com>
10698 * prj-attr.adb: New read-only project-level attribute Project_Dir
10700 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
10701 read-only attribute of the same name.
10702 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
10703 (Recursive_Process): Ditto
10705 * snames.adb: Add new standard name Project_Dir
10707 * snames.ads: Add new standard name Project_Dir
10709 2009-04-08 Thomas Quinot <quinot@adacore.com>
10711 * checks.adb: Minor reformatting
10713 2009-04-08 Vincent Celier <celier@adacore.com>
10715 * vms_data.ads: Add documentation for new style keyword
10716 OVERRIDING_INDICATORS
10718 2009-04-08 Robert Dewar <dewar@adacore.com>
10720 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
10721 spec is in the current unit.
10723 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10725 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
10726 presence of entity.
10728 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
10730 2009-04-08 Vincent Celier <celier@adacore.com>
10732 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
10734 2009-04-08 Thomas Quinot <quinot@adacore.com>
10736 * checks.ads: Minor reformatting
10738 2009-04-08 Robert Dewar <dewar@adacore.com>
10740 * gnat_rm.texi: Update documentation of pragma Obsolescent
10742 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
10743 be omitted, and allow Entity parameter to be omitted.
10745 2009-04-08 Thomas Quinot <quinot@adacore.com>
10747 * exp_util.adb: Minor comment fix
10749 2009-04-08 Robert Dewar <dewar@adacore.com>
10751 * g-socket.ads: Fix bad syntax in pragma Obsolescent
10753 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
10754 argument with no identifier following one that has an identifier. Was
10755 missed in some cases.
10757 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
10759 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
10761 * snames.adb: Add Name_Policy
10763 * snames.ads: Add Name_Policy
10765 2009-04-08 Robert Dewar <dewar@adacore.com>
10767 * gnat_rm.texi: Minor reformatting
10769 * par-ch2.adb: Minor reformatting
10771 2009-04-08 Robert Dewar <dewar@adacore.com>
10773 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
10775 2009-04-08 Robert Dewar <dewar@adacore.com>
10777 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
10778 properly in the presence of Remote_Types or Remote_Call_Interface.
10780 * sem_util.adb: Add comment.
10782 2009-04-08 Robert Dewar <dewar@adacore.com>
10784 * ug_words: Add /ASSUME_VALID for -gnatB
10786 * vms_data.ads: Add /ASSUME_VALID for -gnatB
10788 * sem_cat.adb: Add clarifying commment
10790 * a-direio.ads (Bytes): Make sure value is non-zero
10792 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10794 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
10795 that does not come from source, check for a rewritten function call in
10796 prefixed notation before other forms of rewriting.
10798 2009-04-08 Robert Dewar <dewar@adacore.com>
10800 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
10801 these are now obsolescent units used only for bootrapping with an
10804 2009-04-08 Robert Dewar <dewar@adacore.com>
10806 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
10808 * sem_ch3.adb: Minor comment updates
10810 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10812 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
10813 that come from source.
10815 2009-04-08 Tristan Gingold <gingold@adacore.com>
10817 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
10818 * gcc-interface/decl.c (prepend_attributes): New case
10819 Pragma_Thread_Local_Storage.
10820 * gcc-interface/utils.c (process_attributes): New case
10821 ATTR_THREAD_LOCAL_STORAGE.
10823 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10825 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
10826 by the back-end if it contains a call to a subprogram without a
10827 previous spec that is declared in the same unit.
10829 * errout.ads: Update comments on uses of dirs
10831 2009-04-08 Robert Dewar <dewar@adacore.com>
10833 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
10835 2009-04-08 Tristan Gingold <gingold@adacore.com>
10837 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
10839 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
10841 2009-04-08 Vincent Celier <celier@adacore.com>
10844 (Add_Source): Add the mapping of the unit name to source file name in
10845 the Unit_Sources_HT hash table, if the unit name is not null.
10847 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
10849 * prj.ads (Unit_Sources_Htable): New hash table instantiation
10850 (Project_Tree_Data): New component Unit_Sources_HT
10852 2009-04-08 Thomas Quinot <quinot@adacore.com>
10854 * sem_ch8.adb: Minor reformatting.
10855 Minor code reorganization.
10857 2009-04-08 Robert Dewar <dewar@adacore.com>
10859 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
10860 snames.ads, freeze.adb, par-prag.adb: Add implementation of
10861 pragma Thread_Local_Storage, setting new flag
10862 Has_Pragma_Thread_Local_Storage in corresponding entities.
10864 2009-04-08 Emmanuel Briot <briot@adacore.com>
10866 * prj.ads: Update comment on switches file
10868 * prj-nmsc.adb: Code clean up. Use renaming clauses.
10870 2009-04-08 Robert Dewar <dewar@adacore.com>
10872 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
10874 2009-04-08 Thomas Quinot <quinot@adacore.com>
10876 * ali-util.adb: Minor comment fix
10878 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10880 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
10881 appears in a context clause, and the enclosing package is mentioned in
10882 a limited_with_clause.
10883 (Use_One_Type): Reject clause if type is still incomplete.
10885 2009-04-08 Emmanuel Briot <briot@adacore.com>
10887 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
10888 avoid copies of Source_Data variables when possible, since these
10889 involve calls to memcpy() which are done too many times.
10891 2009-04-08 Robert Dewar <dewar@adacore.com>
10893 * exp_ch4.adb (Expand_Concatenate): Clean up code
10895 2009-04-07 Thomas Quinot <quinot@adacore.com>
10897 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
10898 type for the case of concatenating a constrained array indexed by an
10901 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10903 * sem_ch6.adb (Check_Conformance): when checking conformance of an
10904 operation that overrides an abstract operation inherited from an
10905 interface, return False if only one of the controlling formals is an
10908 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10910 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
10911 mandated by AI05-105.
10913 2009-04-07 Vincent Celier <celier@adacore.com>
10915 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
10917 2009-04-07 Thomas Quinot <quinot@adacore.com>
10919 * usage.adb: Minor fix in usage message.
10921 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
10922 match declaration; the correct subtype is Node_Id, not Entity_Id,
10923 because the expected node kind is an identifier, not a defining
10926 * switch-c.adb: Minor reformatting.
10928 * uintp.adb: Minor reformatting.
10930 2009-04-07 Robert Dewar <dewar@adacore.com>
10932 * exp_ch13.adb: Minor reformatting
10934 2009-04-07 Robert Dewar <dewar@adacore.com>
10936 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
10937 against missing parent.
10939 2009-04-07 Thomas Quinot <quinot@adacore.com>
10941 * xoscons.adb: Minor reformatting
10943 2009-04-07 Robert Dewar <dewar@adacore.com>
10945 * rtsfind.ads: Remove obsolete string concatenation entries
10947 2009-04-07 Robert Dewar <dewar@adacore.com>
10949 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
10951 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10953 * sem_ch10.adb (Check_Body_Required): Handle properly imported
10956 2009-04-07 Gary Dismukes <dismukes@adacore.com>
10958 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
10959 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
10960 is of a scalar or string type then suppress the setting of the
10961 expression to Empty.
10963 * freeze.adb (Warn_Overlay): Also emit the warnings about default
10964 initialization for the cases of scalar and string objects when
10965 Init_Or_Norm_Scalars is True.
10967 2009-04-07 Bob Duff <duff@adacore.com>
10969 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
10971 2009-04-07 Bob Duff <duff@adacore.com>
10973 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
10974 Form parameter of Text_Translation=No allows binary mode for Text_IO
10977 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
10979 2009-04-07 Javier Miranda <miranda@adacore.com>
10981 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
10982 processing the bounds for bit packed arrays or VM target machines.
10984 2009-04-07 Thomas Quinot <quinot@adacore.com>
10986 * g-sothco.ads (Int_Access): Remove extraneous access type (use
10987 anonymous access instead).
10988 (Get_Socket_From_Set): Fix incorrectly reverted formals
10989 Last and Socket to match the underlying C routine.
10991 * g-socket.adb, g-socket.ads
10992 (Get): Use named parameter associations instead of positional ones in
10993 call go Get_Socket_From_Set, since this routine has two formals of the
10995 (Image): New procedure.
10997 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10998 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
10999 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
11000 for type of Arg formal.
11002 * sem_warn.adb: Minor reformatting
11004 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11006 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
11007 over record components.
11009 2009-04-07 Nicolas Roche <roche@adacore.com>
11012 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
11013 has disappeared between VxWorks 6.4 and VxWorks 6.5
11014 In RTP mode use time.h instead of times.h
11016 2009-04-07 Robert Dewar <dewar@adacore.com>
11018 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
11020 2009-04-07 Kevin Pouget <pouget@adacore.com>
11022 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
11023 expanded code for constrained types.
11025 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11027 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
11028 AI05-105: in an object renaming declaration, anonymousness is a name
11031 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
11033 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11035 * g-comlin.adb (Expansion): Fix old regression: also return directory
11036 names when matching.
11038 2009-04-07 Robert Dewar <dewar@adacore.com>
11041 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
11042 (Expand_Concatenate): New name for Expand_Concatenate_String which has
11043 been rewritten to handle all types.
11044 (Expand_Concatenate_Other): Remove
11046 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11048 * lib-xref.adb (Generate_Reference): A default subprogram in an
11049 instance appears within the tree for the instance, but generates an
11050 implicit reference in the ALI.
11052 2009-04-07 Javier Miranda <miranda@adacore.com>
11054 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
11055 derived type that has discriminants, propagate the list of interfaces
11056 to the corresponding new base type. In addition, propagate also
11057 attribute Limited_Present (found working in this patch).
11059 2009-04-07 Robert Dewar <dewar@adacore.com>
11061 * exp_ch4.adb: Rewrite concatenation expansion.
11063 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11065 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
11066 relevant to packages.
11068 2009-04-07 Robert Dewar <dewar@adacore.com>
11070 * sem_attr.adb: Minor reformatting
11072 * sem_ch6.adb: Minor reformatting
11074 2009-04-07 Tristan Gingold <gingold@adacore.com>
11076 * socket.c: Add more protections against S_resolvLib_ macros.
11078 2009-04-07 Thomas Quinot <quinot@adacore.com>
11080 * sem_attr.adb: Minor reformatting
11082 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11084 * sem_ch6.adb (New_Overloaded_Entity): New predicate
11085 Is_Overriding_Alias to handle properly types that inherit two homonym
11086 operations that have distinct dispatch table entries.
11088 2009-04-07 Emmanuel Briot <briot@adacore.com>
11090 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
11091 looking for the end of a parenthesis group
11093 2009-04-07 Tristan Gingold <gingold@adacore.com>
11095 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
11097 * socket.c Don't use resolvLib_ macros if not defined.
11099 2009-04-07 Robert Dewar <dewar@adacore.com>
11101 * g-socket.adb: Minor reformatting.
11103 * g-socthi-mingw.adb: Minor reformatting
11105 * g-sothco.ads: Minor reformatting
11108 (Expand_Concatenate_String): Complete rewrite to generate efficient code
11109 inline instead of relying on external library routines.
11111 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
11112 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
11115 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11118 (Eval_Attribute): for attributes of array objects that are not strings,
11119 attributes are not static if nominal subtype of object is unconstrained.
11121 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11123 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
11124 operations for a type T in an instance do not override each other,
11125 when T is derived from a formal private type, the corresponding
11126 operations inherited by a type derived from T outside
11127 of the instance do not override each other either.
11129 2009-04-07 Robert Dewar <dewar@adacore.com>
11131 (Osint.Fail): Change calling sequence to have one string arg
11132 (Make.Make_Failed): Same change
11133 All callers are adjusted to use concatenation
11135 2009-04-07 Robert Dewar <dewar@adacore.com>
11137 * exp_ch4.adb: Fix documentation typo
11139 2009-04-07 Robert Dewar <dewar@adacore.com>
11141 * tbuild.ads: Minor reformatting
11143 2009-04-07 Javier Miranda <miranda@adacore.com>
11145 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
11146 when compiling under ZFP runtime.
11148 2009-04-07 Robert Dewar <dewar@adacore.com>
11150 * g-comlin.adb: Minor reformatting
11152 2009-04-07 Thomas Quinot <quinot@adacore.com>
11154 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11155 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
11156 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
11157 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
11159 2009-04-07 Robert Dewar <dewar@adacore.com>
11161 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
11163 * opt.ads (Sprint_Line_Limit): New parameter
11165 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
11167 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
11169 * usage.adb: Output information for -gnatGnn -gnatDnn
11171 2009-04-07 Robert Dewar <dewar@adacore.com>
11173 * make.adb: Minor reformatting
11175 2009-04-07 Robert Dewar <dewar@adacore.com>
11177 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
11179 2009-04-07 Robert Dewar <dewar@adacore.com>
11181 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
11183 2009-04-07 Robert Dewar <dewar@adacore.com>
11186 Remove Assume_Valid parameter from In_Subrange_Of calls
11189 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11190 (Is_In_Range): Remove incorrect use of Assume_Valid
11191 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
11194 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11195 (Is_In_Range): Documentation cleanup
11196 (Is_Out_Of_Range): Documentation cleanup
11199 Add documentation for Assume_No_Invalid_Values pragma
11201 * sem_ch12.adb: Minor reformatting
11203 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
11205 * sem_prag.adb: Improve error message.
11207 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
11208 LF/CR no longer recognized as line terminator
11210 * switch.ads: Minor documentation improvement
11212 * vms_data.ads: Minor reformatting
11214 2009-04-07 Robert Dewar <dewar@adacore.com>
11216 * checks.adb (Determine_Range): Add Assume_Valid parameter
11218 * checks.ads (Determine_Range): Add Assume_Valid parameter
11220 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
11221 Is_Null_Loop to suppress warnings in a loop body.
11224 (Rewrite_Comparison): Major rewrite to accomodate invalid values
11227 (Expand_N_Loop_Statement): Delete loop known not to execute
11230 (Assume_No_Invalid_Values): Now set to False, and as documented, this
11231 fully enables the proper handling of invalid values.
11234 New calling sequence for Is_In_Range
11237 (Analyze_Iteration_Scheme): Accomodate possible invalid values
11238 in determining if a loop range is null.
11241 (Is_In_Range): Add Assume_Valid parameter
11242 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11243 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
11244 also to do more accurate and complete range analysis, catching more
11248 (Is_In_Range): Add Assume_Valid parameter
11249 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11252 New calling sequence for Is_In_Range
11255 (Suppress_Loop_Warnings): New flag
11258 (Is_Null_Loop): Update documentation
11259 (Suppress_Loop_Warnings): New flag
11261 * gnat_ugn.texi: Document -gnatB switch
11263 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11265 * gnatvsn.ads: Bump version number.
11267 2009-04-07 Thomas Quinot <quinot@adacore.com>
11269 * exp_ch3.adb: Minor rewording (comments)
11271 2009-04-07 Robert Dewar <dewar@adacore.com>
11273 * exp_disp.adb: Minor reformatting
11275 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11277 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
11279 * gcc-interface/trans.c (lvalue_required_p): Likewise.
11281 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11283 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
11284 Do not convert the result. Remove obsolete comment.
11286 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11288 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
11290 (Subprogram_Body_to_gnu): Fix pasto.
11292 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11294 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
11295 (void_type_decl_node): Remove.
11296 (init_gigi_decls): Likewise.
11297 (gnat_install_builtins): Declare.
11298 (record_builtin_type): Likewise.
11299 (create_type_stub_decl): Likewise.
11300 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
11301 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
11303 <E_Array_Subtype>: Use the index types, not only their name, in the
11304 record giving the names of the bounds, if any.
11305 For a packed array type, make it artificial only if the base type
11306 was artificial as well. Remove redundant statement.
11307 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
11309 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
11310 (rest_of_type_decl_compilation_no_defer): Likewise.
11311 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
11312 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
11313 and use create_type_stub_decl to build it.
11314 (gnat_pushdecl): Rewrite condition.
11315 (gnat_install_builtins): Remove bogus declaration.
11316 (record_builtin_type): New function.
11317 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
11319 (create_type_stub_decl): New function.
11320 (create_type_decl): Assert that the type is not dummy. If the type
11321 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
11322 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
11323 (build_vms_descriptor): Likewise.
11324 (init_gigi_decls): Delete and move bulk of code to...
11325 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
11326 (emit_range_check): Add gnat_node parameter.
11327 (emit_index_check): Likewise.
11328 (emit_check): Likewise.
11329 (build_unary_op_trapv): Likewise.
11330 (build_binary_op_trapv): Likewise.
11331 (convert_with_check): Likewise.
11332 (Attribute_to_gnu): Adjust calls for above changes.
11333 (call_to_gnu): Likewise.
11334 (gnat_to_gnu): Likewise.
11335 (assoc_to_constructor): Likewise.
11336 (pos_to_constructor): Likewise.
11337 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
11338 (process_type): Do not create TYPE_DECL for dummy types.
11340 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11342 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
11343 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
11344 * gcc-interface/utils.c: Fix comments.
11346 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11348 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
11350 (gnat_to_gnu_type): Move around.
11351 (get_unpadded_type): Likewise.
11352 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
11355 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11357 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
11358 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
11359 (call_to_gnu): Invoke it instead of manually checking.
11361 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
11363 * gcc-interface/utils.c (finish_record_type): Force structural equality
11364 checks if the record type is discriminated.
11366 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
11368 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
11369 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
11370 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
11371 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
11372 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
11373 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
11374 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
11376 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
11378 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
11379 of TREE_CONSTANT_OVERFLOW.
11381 2009-03-30 Joseph Myers <joseph@codesourcery.com>
11383 PR rtl-optimization/323
11384 * gcc-interface/misc.c (gnat_post_options): Set
11385 flag_excess_precision_cmdline. Give an error for
11386 -fexcess-precision=standard for processors where the option is
11389 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11392 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
11395 2009-03-11 Olivier Hainque <hainque@adacore.com>
11397 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
11398 checks processing, remove unintended TREE_TYPE walk on index type.
11400 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
11403 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
11404 call make_packable_type on fat pointer types.
11405 <E_Array_Subtype>: Likewise.
11406 <E_Record_Subtype>: Call make_packable_type on all record types
11407 except for fat pointer types.
11408 (make_packable_type): Likewise.
11409 (gnat_to_gnu_field): Likewise.
11411 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
11413 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
11414 EH_MECHANISM change made on 2007-12-06.
11416 2009-02-26 Andreas Schwab <schwab@suse.de>
11419 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
11420 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
11421 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
11423 (target_cpu_default): Substitute.
11425 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11428 * a-teioed.adb (Expand): Fix Result overflow.
11430 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11432 * gcc-interface/Makefile.in: Fix multilib handling for
11435 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11437 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
11439 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
11441 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
11443 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
11445 * gcc-interface/deftarg.c: Remove.
11447 2009-02-10 Olivier Hainque <hainque@adacore.com>
11448 Eric Botcazou <ebotcazou@adacore.com>
11450 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
11451 (copy_alias_set): Rename into...
11452 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
11453 underlying array of unconstrained arrays for the new type as well.
11454 If the old and new alias sets don't conflict, make one a subset of
11455 the other as per the OP parameter.
11456 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
11457 <E_Record_Type>: Do not copy the alias set for derived types.
11458 For all types, make the alias set of derived types a superset of
11459 that of their parent type.
11460 (make_aligning_type): Adjust calls to copy_alias_set.
11461 (make_packable_type): Likewise.
11462 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
11463 Check for alias set conflict instead of strict equality to issue the
11466 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
11468 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11469 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
11470 (copy_alias_set): Assert that arrays have the same aliasing settings.
11471 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
11473 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
11475 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11476 Set TYPE_NONALIASED_COMPONENT on the array type.
11478 2009-01-31 Laurent GUERBY <laurent@guerby.net>
11480 * gcc-interface/Makefile.in: Fix mipsel linux handling.
11482 2009-01-16 Jakub Jelinek <jakub@redhat.com>
11484 * gcc-interface/Makefile.in: Fix multilib handling for
11487 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
11489 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
11490 only useless conversions around renamed objects.
11492 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
11494 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
11495 the _Tag field before any discriminants in the field list.
11496 (components_to_record): Remove obsolete comment.
11500 Copyright (C) 2009 Free Software Foundation, Inc.
11502 Copying and distribution of this file, with or without modification,
11503 are permitted in any medium without royalty provided the copyright
11504 notice and this notice are preserved.