1 2009-11-30 Robert Dewar <dewar@adacore.com>
3 * gnat_rm.texi: Document pragma Short_Circuit
5 2009-11-30 Emmanuel Briot <briot@adacore.com>
7 * prj-conf.adb, prj-tree.adb, prj-tree.ads (Create_Attribute): Now set
8 the index either on the attribute or on its value, depending on the
9 kind of the attribute. Done to match recent changes in Prj.PP that were
10 not synchronized with this function.
12 2009-11-30 Arnaud Charlet <charlet@adacore.com>
14 * gcc-interface/Make-lang.in: Fix typo.
17 2009-11-30 Robert Dewar <dewar@adacore.com>
19 * gnat_rm.texi: Add documentation for attribute Result.
21 2009-11-30 Arnaud Charlet <charlet@adacore.com>
23 * s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
24 s-osinte-tru64.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads
25 (Get_Page_Size): Update comment since Get_Page_Size is now required.
27 2009-11-30 Jerome Lambourg <lambourg@adacore.com>
29 * freeze.adb: Disable Warning on VM targets concerning C Imports, not
32 2009-11-30 Bob Duff <duff@adacore.com>
34 * sprint.adb (Source_Dump): Minor comment fix.
35 (Write_Itype): When writing a string literal subtype, use Expr_Value
36 instead of Intval to get the low bound.
38 2009-11-30 Vincent Celier <celier@adacore.com>
40 * gnatlink.adb (Process_Args): Do not call Executable_Name on arguments
43 2009-11-30 Robert Dewar <dewar@adacore.com>
45 * exp_ch4.adb (Expand_N_Op_And): Implement pragma Short_Circuit_And_Or
46 (Expand_N_Op_Or): Implement pragma Short_Circuit_And_Or
47 * opt.ads (Short_Circuit_And_Or): New flag
48 * par-prag.adb: Add dummy entry for pragma Short_Circuit_And_Or
49 * sem_prag.adb: Implement pragma Short_Circuit_And_Or
50 * snames.ads-tmpl: Add entries for pragma Short_Circuit_And_Or
52 2009-11-30 Arnaud Charlet <charlet@adacore.com>
54 * s-taprop-posix.adb: Fix casing.
55 * s-osinte-tru64.adb: Complete previous check-in.
57 2009-11-30 Robert Dewar <dewar@adacore.com>
59 * gnat_rm.texi: Document pragma Compiler_Unit
60 * s-bitops.adb, s-restri.adb, g-htable.adb, s-restri.ads,
61 a-comlin.ads, a-strhas.ads, s-strhas.adb, s-parame.adb,
62 s-parame.ads, a-clrefi.adb, a-clrefi.ads, a-ioexce.ads: Supply missing
63 Compiler_Unit pragmas.
64 * freeze.adb (Freeze_Entity): Improve message for 8-bit boolean passed
67 2009-11-30 Robert Dewar <dewar@adacore.com>
69 * makeutl.adb, makeutl.ads, prj-proc.adb, prj.adb, prj.ads: Minor
72 2009-11-30 Thomas Quinot <quinot@adacore.com>
74 * osint.adb: Minor reformatting
76 2009-11-30 Vincent Celier <celier@adacore.com>
78 * makeutl.ads, makeutl.adb (Base_Name_Index_For): New function to get
79 the base name of a main without the extension, with an eventual source
81 (Mains.Get_Index): New procedure to set the source index of a main
82 (Mains.Get_Index): New function to get the source index of a main
83 * prj-attr.adb: New attributes Config_Body_File_Name_Index,
84 Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
86 * prj-nmsc.adb (Process_Compiler): Takle into account new attributes
87 Config_Body_File_Name_Index, Config_Spec_File_Name_Index,
88 Multi_Unit_Object_Separator and Multi_Unit_Switches.
89 Allow only one character for Multi_Unit_Object_Separator.
90 * prj-proc.adb (Process_Declarative_Items): Take into account the
91 source indexes in indexes of associative array attribute declarations.
92 * prj.adb (Object_Name): New function to get the object file name for
93 units in multi-unit sources.
94 * prj.ads (Language_Config): New components Multi_Unit_Switches,
95 Multi_Unit_Object_Separator Config_Body_Index and Config_Spec_Index.
96 (Object_Name): New function to get the object file name for units in
98 * snames.ads-tmpl: New standard names Config_Body_File_Name_Index,
99 Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
102 2009-11-30 Arnaud Charlet <charlet@adacore.com>
104 * s-tassta.adb: Update comment.
106 2009-11-30 Robert Dewar <dewar@adacore.com>
108 * a-ngelfu.adb: Minor code reorganization.
110 2009-11-30 Robert Dewar <dewar@adacore.com>
112 * osint.ads, prj.adb, prj.ads: Minor reformatting
113 * s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
114 s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
115 s-strxdr.adb, s-taprop-irix.adb, s-osinte-hpux-dce.adb,
116 s-osinte-tru64.adb, s-taenca.adb, s-taprop-hpux-dce.adb, s-stausa.adb,
117 s-taprop-posix.adb: Minor code reorganization (use conditional
120 2009-11-30 Bob Duff <duff@adacore.com>
122 * g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change.
124 2009-11-30 Bob Duff <duff@adacore.com>
126 * socket.c: Add more accessor functions for struct servent (need
127 setters as well as getters).
128 * g-sothco.ads (Servent): Declare interfaces to C setter functions for
130 * g-sttsne-locking.adb (Copy_Service_Entry): Use setter functions for
133 2009-11-30 Robert Dewar <dewar@adacore.com>
135 * s-stchop-vxworks.adb: Add comment.
137 2009-11-30 Emmanuel Briot <briot@adacore.com>
139 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Now acts
140 on the whole tree, to better share code with gprbuild.
141 (Length): New subprogram, to share code in gprbuild.
142 (Project_Data): Remove fields that are only needed when compiling a
143 project in gprbuild (where we use local variables instead)
144 * osint.adb, osint.ads: Added minor comment on memory management
146 2009-11-30 Sergey Rybin <rybin@adacore.com>
148 * gnat_ugn.texi: Update gnatcheck doc.
150 2009-11-30 Robert Dewar <dewar@adacore.com>
152 make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting
153 * s-taprop-dummy.adb: Minor code reorganization (raise with msgs start
155 * i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb,
156 g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb,
157 s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb,
158 g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb,
159 g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code
160 reorganization (use conditional expressions).
162 2009-11-30 Vincent Celier <celier@adacore.com>
164 * prj-makr.adb (Source_Files): New hash table to keep track of source
166 (Finalize): Avoid putting several times the same source file name
167 in the source list file.
168 * prj-pp.adb (Print): Fix a bug in the placement of "at nn" for
169 associative array indexes.
171 2009-11-30 Robert Dewar <dewar@adacore.com>
173 * g-dyntab.ads: Add missing pragma Compiler_Unit
175 2009-11-30 Thomas Quinot <quinot@adacore.com>
177 * s-crtrun.ads, s-crtl.ads, g-stseme.adb, Makefile.rtl, s-fileio.adb
178 (System.CRTL.Runtime): New unit, to contain parts of s-crtl that are
179 used in the Ada runtime but can't be used in the compiler because of
181 * socket.c, s-oscons-tmplt.c, g-sothco.ads
182 (System.OS_Constants.SIZEOF_struct_servent): New constant.
183 Use s-oscons constant instead of external variable to get size of
186 2009-11-30 Thomas Quinot <quinot@adacore.com>
188 * s-crtl.ads, g-stseme.adb, s-fileio.adb (System.CRTL.strerror): Change
189 return type to Interfaces.C.Strings.chars_ptr to eliminate need for
190 dubious unchecked conversion at call sites.
191 * s-errrep.adb, s-errrep.ads, Makefile.rtl (System.Error_Reporting):
192 Remove obsolete, unused runtime unit.
193 * gcc-interface/Make-lang.in: Update dependencies.
194 * gcc-interface/Makefile.in: Remove VMS specialization of s-crtl, not
197 2009-11-30 Vincent Celier <celier@adacore.com>
199 * gnatlink.adb: Delete an eventual existing executable file, in case it
200 is a symbolic link, to avoid modifying the target of the symbolic link.
202 2009-11-30 Bob Duff <duff@adacore.com>
204 * socket.c: Add accessor functions for struct servent.
205 * g-sothco.ads (Servent): Declare interfaces to C accessor functions
207 * g-socket.adb (To_Service_Entry): Use accessor functions for struct
210 2009-11-30 Robert Dewar <dewar@adacore.com>
212 * g-arrspl.adb: Minor reformatting
213 * g-dyntab.adb: Add missing pragma Compiler_Unit
215 2009-11-30 Thomas Quinot <quinot@adacore.com>
217 * s-crtl.ads, s-oscons-tmplt.c: Fix support for VMS
218 * make.adb, g-comlin.ads, exp_ch6.adb: Minor reformatting
220 2009-11-30 Robert Dewar <dewar@adacore.com>
222 * bcheck.adb, gnatlink.adb, make.adb, makeutl.adb, osint.adb,
223 osint.ads, prj-ext.adb, sem_case.adb: Minor reformatting
224 * g-alleve.adb: Minor code reorganization (use conditional expressions)
226 2009-11-30 Matthew Heaney <heaney@adacore.com>
228 * a-crbtgo.adb (Delete_Fixup): Changed always-true predicates to
231 2009-11-30 Thomas Quinot <quinot@adacore.com>
233 * a-tasatt.adb, s-crtl.ads, s-taprop-dummy.adb (System.CRTL.malloc32,
234 System.CRTL.realloc32): Remove VMS-specific routines.
235 (Ada.Task_Attributes.Reference): Remove unreachable code.
236 (System.Task_Primitives.Operations.Initialize, dummy version):
237 Use plain Program_Error rather than call to
238 System.Error_Reporting.Shutdown.
240 2009-11-30 Thomas Quinot <quinot@adacore.com>
242 * s-oscons-tmplt.c, xoscons.adb: Add new constants in preparation for
243 sharing s-crtl across all platforms.
245 2009-11-30 Thomas Quinot <quinot@adacore.com>
247 * s-commun.adb, s-commun.ads: New internal support unit,
248 allowing code sharing between GNAT.Sockets and
249 GNAT.Serial_Communication.
250 * g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb,
251 g-socket.adb (GNAT.Sockets.Last_Index): Move to System.Communication.
252 (GNAT.Serial_Communication.Read): Handle correctly the case where no
253 data was read, and Buffer'First = Stream_Element_Offset'First.
254 * Makefile.rtl: Add entry for s-commun
255 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
256 g-socthi-vxworks.ads, g-stseme.adb, g-socthi-mingw.ads,
257 g-socthi.adb, g-socthi.ads (GNAT.Sockets.Thin.Socket_Error_Message):
258 Reimplement in terms of System.CRTL.strerror.
260 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
262 * gcc-interface/utils.c (copy_type): Unshare the language-specific data
263 and the contents of the language-specific slot if needed.
265 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
267 * gcc-interface/trans.c (gnat_to_gnu) <N_In>: Set the source location
268 of the operator on both branches of the test in the generic case.
270 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
272 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): Rename into...
273 (unchecked_conversion_nop): ...this. Handle actual parameters.
274 (gnat_to_gnu): Adjust for above renaming.
276 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
278 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
279 Translate regular boolean types into BOOLEAN_TYPEs.
281 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
283 * sem_util.adb (Set_Debug_Info_Needed): For an E_Class_Wide_Subtype,
284 also set the flag on the Equivalent_Type.
285 * gcc-interface/utils.c (finish_record_type): Replace DO_NOT_FINALIZE
286 parameter with DEBUG_INFO_P. Rename FIELDLIST into FIELD_LIST.
287 (rest_of_record_type_compilation): Rename FIELDLIST into FIELD_LIST.
288 (build_vms_descriptor32): Adjust call to finish_record_type.
289 (build_vms_descriptor): Likewise.
290 (build_unc_object_type): Likewise.
291 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust calls to
292 finish_record_type and components_to_record.
293 (make_packable_type): Adjust call to finish_record_type.
294 (maybe_pad_type): Likewise. Tweak condition.
295 (components_to_record): Likewise. Replace DO_NOT_FINALIZE parameter
296 with MAYBE_UNUSED. Adjust recursive call.
297 (create_variant_part_from): Adjust call to finish_record_type. Do not
298 call rest_of_record_type_compilation on the new record types.
299 * gcc-interface/trans.c (gigi): Adjust call to finish_record_type.
300 * gcc-interface/gigi.h (finish_record_type): Adjust prototype and
302 (rest_of_record_type_compilation): Adjust comment.
304 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
306 * exp_util.adb (Make_CW_Equivalent_Type): Do not mark the type as
307 frozen for targets that do not require front-end layout.
308 (New_Class_Wide_Subtype): Always reset the freezing status to False.
309 * exp_ch8.adb: Do not 'with' Targparm.
310 (Expand_N_Object_Renaming_Declaration): Always freeze a class-wide
311 subtype that has been built from the expression.
312 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
313 class wide, freeze the implicit type that has been built from the
314 expression at the dereference point.
315 * freeze.adb (Freeze_Entity): Adjust comment.
316 * gcc-interface/decl.c (Gigi_Equivalent_Type) <E_Class_Wide_Type>:
318 * gcc-interface/trans.c (process_freeze_entity): Do not special-case
321 * s-osinte-aix.adb (clock_gettime): Fix comment.
322 * s-osinte-darwin.adb (clock_gettime): Likewise.
324 2009-11-23 Eric Botcazou <ebotcazou@adacore.com>
326 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Pass the list
327 of attributes when building the corresponding variable of a constant.
328 * gcc-interface/utils.c (create_var_decl_1): Do not process attributes
331 2009-11-23 Laurent GUERBY <laurent@guerby.net>
332 Eric Botcazou <ebotcazou@adacore.com>
335 * s-osinte-linux.ads (struct_timeval): Delete.
336 * s-osinte-hpux.ads (struct_timeval, To_Duration, To_Timeval): Delete.
337 * s-osinte-kfreebsd-gnu.ads: Likewise.
338 * s-osinte-rtems.ads: Likewise.
339 * s-osinte-aix.ads: Likewise.
340 * s-osinte-hpux-dce.ads: Likewise.
341 * s-osinte-darwin.ads: Likewise.
342 * s-osinte-solaris-posix.ads: Likewise.
343 * s-osinte-irix.ads: Likewise.
344 * s-osinte-solaris.ads: Likewise.
345 * s-osinte-hpux-dce.adb (To_Duration, To_Timeval): Delete.
346 * s-osinte-irix.adb: Likewise.
347 * s-osinte-solaris.adb: Likewise.
348 * s-osinte-rtems.adb: Likewise. Minor reformatting.
349 * s-osinte-aix.adb (To_Duration, To_Timeval): Delete.
350 (clock_gettime): Use cal.c's timeval_to_duration.
351 * s-osinte-darwin.adb: Likewise.
353 2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
355 * adaint.h: Assume large file support on IRIX only if _LFAPI.
357 2009-11-21 Laurent GUERBY <laurent@guerby.net>
358 Eric Botcazou <ebotcazou@adacore.com>
360 * s-osinte-linux.ads (struct_timeval, To_Duration, To_Timeval,
361 gettimeofday): Delete.
362 * s-osinte-posix.adb (To_Duration, To_Timeval): Delete.
363 * s-osprim-posix.adb (struct_timezone, struct_timeval, gettimeofday):
365 (Clock): Use cal.c's timeval_to_duration.
366 * s-taprop-linux.adb (Monotonic_Clock): Likewise.
368 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
369 Laurent GUERBY <laurent@guerby.net>
371 * init.c (GNU/Linux Section): Enable for all architectures.
373 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
376 * system-linux-alpha.ads (Stack_Check_Probes): Set to true.
377 * system-linux-hppa.ads (Stack_Check_Probes): Likewise.
378 * system-linux-sparc.ads (Stack_Check_Probes): Likewise.
379 * system-linux-sparcv9.ads (Stack_Check_Probes): Likewise.
381 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
383 * system-linux-alpha.ads (AAMP, Compiler_System_Version, OpenVMS,
384 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
386 (Stack_Check_Limits, Always_Compatible_Rep): New.
387 * system-linux-mips.ads (AAMP, Compiler_System_Version, OpenVMS,
388 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
390 (Stack_Check_Limits, Always_Compatible_Rep): New.
391 * system-linux-mips64el.ads (AAMP, Compiler_System_Version, OpenVMS,
392 Functions_Return_By_DSP, Front_End_ZCX_Support, High_Integrity_Mode,
393 Long_Shifts_Inlined): Delete.
394 (Stack_Check_Limits, Always_Compatible_Rep): New.
395 * system-linux-mipsel.ads (AAMP, Compiler_System_Version, OpenVMS,
396 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
398 (Stack_Check_Limits, Always_Compatible_Rep): New.
399 * system-linux-s390.ads (AAMP, Compiler_System_Version, OpenVMS,
400 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
402 (Stack_Check_Limits, Always_Compatible_Rep): New.
403 * system-linux-s390x.ads (AAMP, Compiler_System_Version, OpenVMS,
404 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
406 (Stack_Check_Limits, Always_Compatible_Rep): New.
407 * system-linux-sh4.ads (Stack_Check_Limits, Always_Compatible_Rep):
409 * system-linux-sparc.ads (AAMP, Compiler_System_Version, OpenVMS,
410 Front_End_ZCX_Support): Delete.
411 (Stack_Check_Limits, Always_Compatible_Rep): New.
412 * system-linux-sparcv9.ads (AAMP, Compiler_System_Version, OpenVMS,
413 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
415 (Stack_Check_Limits, Always_Compatible_Rep): New.
416 * system-rtems.ads (OpenVMS): Delete.
417 (Stack_Check_Limits, Always_Compatible_Rep): New.
419 2009-11-08 Eric Botcazou <ebotcazou@adacore.com>
421 * gcc-interface/decl.c (make_packable_type): Fix oversight.
422 (gnat_to_gnu_field): Do not attempt to change the form of the type
423 if the field requires strict alignment. Always change the form of
424 the type if the specified size is smaller than its size.
426 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
428 * gcc-interface/utils.c (gnat_type_for_mode): Handle vector modes.
430 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
432 * gcc-interface/trans.c (lvalue_required_p) <N_Unchecked_Conversion>:
435 2009-10-30 Eric Botcazou <ebotcazou@adacore.com>
437 * gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete.
438 (create_field_decl): Update description. In a packed record, round
439 the size up to a byte boundary only if the field's type has BLKmode.
440 * gcc-interface/gigi.h (create_field_decl): Update description.
442 2009-10-30 Emmanuel Briot <briot@adacore.com>
444 * make.adb (Start_Compile_If_Possible): Compute location of resulting
445 ALI file in this procedure instead of after the compilation itself,
446 since the current directory might have changed in between when using
449 * osint.ads: Addded missing alignment clause.
451 * adaint.c, adaint.h, osint.adb (__gnat_reset_attributes,
452 __gnat_size_of_file_attributes): Rename reset_attributes and
453 size_of_file_attributes.
455 2009-10-30 Javier Miranda <miranda@adacore.com>
457 * sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences
458 of statements when searching for SCIL nodes.
460 2009-10-30 Tristan Gingold <gingold@adacore.com>
462 * gnatlink.adb, link.c: By default use shared libgcc on darwin.
464 2009-10-30 Emmanuel Briot <briot@adacore.com>
466 * make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is
468 This saves system calls when looking for ALI files
469 (Scan_Make_Args): The parameter to gnatmake's -D is now converted to an
470 absolute PATH (so that the above improvement properly occurs if both
471 -D<dir> and -aO<dir> are specified).
473 2009-10-30 Thomas Quinot <quinot@adacore.com>
475 * a-direct.adb: Minor reformatting
477 2009-10-30 Emmanuel Briot <briot@adacore.com>
479 * make.adb, adaint.c, adaint.h, osint.adb, osint.ads, bcheck.adb
480 (*_attr): new subprograms.
481 (File_Length, File_Time_Stamp, Is_Writable_File): new subprograms
482 (Read_Library_Info_From_Full, Full_Library_Info_Name,
483 Full_Source_Name): Now benefit from a previous cache of the file
484 attributes, to further save on system calls.
485 (Smart_Find_File): now also cache the file attributes. This makes the
486 package File_Stamp_Hash_Table useless, and it was removed.
487 (Compile_Sources): create subprograms for the various steps of the main
488 loop, for readibility and to avoid sharing variables between the
491 2009-10-30 Emmanuel Briot <briot@adacore.com>
493 * make.adb, osint.adb, osint.ads (Library_File_Stamp): Removed, since
495 (Read_Library_Info_From_Full): New subprogram.
497 2009-10-30 Robert Dewar <dewar@adacore.com>
499 * a-tideio.adb: Minor reformatting
500 * a-wtdeio.adb, a-ztdeio.adb: Update comments, code clean up.
502 * a-reatim.adb, a-tideau.adb, a-ngelfu.adb, a-ztdeau.adb, a-ngrear.adb,
503 a-wtedit.adb, a-ststio.adb, a-ztedit.adb: Minor code reorganization
504 (use conditional expressions).
506 2009-10-30 Ed Schonberg <schonberg@adacore.com>
508 * gnat_ugn.texi: Additional info on gnatw.i and gnatw.I
510 * sem_case.adb: Improved error message.
512 2009-10-30 Emmanuel Briot <briot@adacore.com>
514 * a-direct.adb, gnatcmd.adb, gnatname.adb, makeutl.adb, opt.ads,
515 osint.adb, prj-ext.adb, switch-m.adb (Follow_Links_For_Dirs): Now
516 defaults to False, and controlled by -eL.
517 * a-direct.adb: Add comments.
518 * osint.adb (File_Stamp): Avoid unneeded duplicate system call
520 2009-10-30 Robert Dewar <dewar@adacore.com>
522 * sem_res.adb (Resolve_Type_Conversion): Avoid false positive when
523 converting non-static subtype to "identical" static subtype.
525 2009-10-30 Ed Schonberg <schonberg@adacore.com>
527 * usage.adb: Add -gnatw.i switch.
529 2009-10-30 Vincent Celier <celier@adacore.com>
531 * xsnamest.adb: Update comments with regards to the template files
534 2009-10-30 Bob Duff <duff@adacore.com>
536 * s-fileio.adb (Errno_Message): Suppress VMS-specific warning.
538 2009-10-30 Ed Schonberg <schonberg@adacore.com>
540 * sem_case.adb (Check_Choices): Add explanatory message when there are
541 missing alternatives when the required range of alternatives is given
542 by the base type of the case expression or discriminant in a variant
545 * opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially
546 dangerous overlap between actuals in a call, activated by -gnatw.i
547 * sem_warn.adb (Set_Dot_Warning_Switch): set flag.
548 (Warn_On_Overlapping_Actuals): use new flag.
550 * gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals
552 2009-10-30 Robert Dewar <dewar@adacore.com>
554 * exp_aggr.adb, exp_ch9.adb: Minor reformatting
556 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
558 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
559 create integer types with precision 0.
561 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
564 * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
565 parameters and rewrite comments. For a derived type, return the
566 setting of its parent type.
567 (gnat_to_gnu_entity): Do an alias set copy for derived types if they
568 are composite. Adjust calls to above function.
570 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
572 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not
573 return the RM size for padded types.
575 2009-10-28 Robert Dewar <dewar@adacore.com>
577 * sem_type.adb: Minor reformatting
579 2009-10-28 Arnaud Charlet <charlet@adacore.com>
581 * exp_ch9.adb (Build_Task_Proc_Specification): Generate a different
582 suffix for task type bodies.
584 2009-10-28 Ed Schonberg <schonberg@adacore.com>
586 * exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a
587 finalization list if the designated type requires no control actions,
588 to prevent a useless semantic dependence on ada.tags.
590 2009-10-28 Bob Duff <duff@adacore.com>
592 * s-fileio.adb: Give more information in exception messages.
594 2009-10-28 Robert Dewar <dewar@adacore.com>
596 * gnat_ugn.texi: Document new -gnatyt requirement for space after right
597 paren if next token starts with digit or letter.
598 * styleg.adb (Check_Right_Paren): New rule for space after if next
599 character is a letter or digit.
601 2009-10-28 Thomas Quinot <quinot@adacore.com>
603 * s-crtl.ads (System.CRTL.strerror): New function.
605 2009-10-28 Ed Schonberg <schonberg@adacore.com>
607 * sem_type.adb: Add guard to recover some type errors.
609 2009-10-28 Vincent Celier <celier@adacore.com>
611 * prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
612 Add_If_Not_In_List to account to the fact that a directory may be
613 removed from the list. Only remove directory if Removed is True.
615 2009-10-28 Gary Dismukes <dismukes@adacore.com>
617 * a-textio.ads, a-textio.ads: Put back function EOF_Char in private
618 part. Put back body of function EOF_Char.
619 * a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
622 2009-10-28 Emmanuel Briot <briot@adacore.com>
624 * prj-tree.adb (Free): Fix memory leak.
626 2009-10-28 Thomas Quinot <quinot@adacore.com>
628 * s-fileio.adb: Minor reformatting
630 2009-10-28 Arnaud Charlet <charlet@adacore.com>
632 * gcc-interface/Make-lang.in: Update dependencies.
634 2009-10-28 Robert Dewar <dewar@adacore.com>
636 * exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
637 types.ads: Minor reformatting
639 2009-10-28 Tristan Gingold <gingold@adacore.com>
641 * init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
643 2009-10-28 Thomas Quinot <quinot@adacore.com>
645 * exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
646 the operand of the unary minus and ABS operators.
648 * sem_type.adb (Covers): A concurrent type and its corresponding record
650 * exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
651 attribute reference for the current instance of a protected type while
652 analyzing an access discriminant constraint in a component definition.
653 Such a reference is handled in the corresponding record's init proc,
654 while initializing the constrained component.
655 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
656 corresponding record type, propagate components'
657 Has_Per_Object_Constraint flag.
658 * exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
659 For a concurrent type, set up concurrent aspects before initializing
660 components with a per object constrain, because they may be controlled,
661 and their initialization may call entries or protected subprograms of
662 the enclosing concurrent object.
664 2009-10-28 Emmanuel Briot <briot@adacore.com>
666 * prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
668 (Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
669 processing the directories specified explicitly in the project file.
671 2009-10-28 Robert Dewar <dewar@adacore.com>
673 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
674 a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
676 (Initialize_Standard_Files): New procedure.
677 * a-tienau.adb: Minor change to make EOF directly visible
678 * a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
679 a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
680 * gnat_rm.texi: Add documentation for
681 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
682 * Makefile.rtl: Add entries for
683 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
685 2009-10-28 Thomas Quinot <quinot@adacore.com>
687 * exp_ch9.ads: Minor reformatting
688 * sem_ch3.adb: Minor reformatting
689 * sem_aggr.adb: Minor reformatting.
690 * sem_attr.adb: Minor reformatting
691 * tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
693 Minor code reorganization/factoring.
695 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
697 * gcc-interface/decl.c (purpose_member_field): New static function.
698 (annotate_rep): Use it instead of purpose_member.
700 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
702 * raise-gcc (db_region_for): Use _Unwind_GetIPInfo instead of
703 _Unwind_GetIP if HAVE_GETIPINFO is defined.
704 (db_action_for): Likewise.
706 2009-10-27 Robert Dewar <dewar@adacore.com>
708 * s-fileio.adb, s-fileio.ads, sem_util.adb, sem_warn.adb,
709 sem_warn.ads: Minor reformatting
711 2009-10-27 Robert Dewar <dewar@adacore.com>
713 * sem_warn.adb, sem_util.adb, sem_util.ads: Minor reformatting. Add
716 2009-10-27 Robert Dewar <dewar@adacore.com>
718 * s-os_lib.ads, s-os_lib.adb, prj-err.adb, makeutl.adb: Minor
721 2009-10-27 Ed Schonberg <schonberg@adacore.com>
723 * sem.util.ads, sem_util.adb (Denotes_Same_Object,
724 Denotes_Same_Prefix): New functions to detect overlap between actuals
725 that are not by-copy in a call, when one of them is in-out.
726 * sem_warn.ads, sem_warn.adb (Warn_On_Overlapping_Actuals): New
727 procedure, called on a subprogram call to warn when an in-out actual
728 that is not by-copy overlaps with another actual, thus leadind to
729 potentially dangerous aliasing in the body of the called subprogram.
730 Currently the warning is under control of the -gnatX switch.
731 * sem_res.adb (resolve_call): call Warn_On_Overlapping_Actuals.
733 2009-10-27 Thomas Quinot <quinot@adacore.com>
735 * sem_ch12.adb (Install_Formal_Packages): Do not omit installation of
736 visible entities when the formal package doesn't have a box.
738 * checks.adb: Minor reformatting.
740 2009-10-27 Vincent Celier <celier@adacore.com>
742 * prj-part.adb (Parse): Catch exception Types.Unrecoverable_Error and
743 set Project to Empty_Node.
745 2009-10-27 Robert Dewar <dewar@adacore.com>
747 * gnatbind.adb: Minor reformatting
749 2009-10-27 Arnaud Charlet <charlet@adacore.com>
751 * exp_aggr.adb: Fix comment.
753 2009-10-27 Emmanuel Briot <briot@adacore.com>
755 * prj-err.adb (Error_Msg): take into account continuation lines when
756 computing whether we have a warning.
758 2009-10-27 Vasiliy Fofanov <fofanov@adacore.com>
760 * make.adb, s-os_lib.adb, s-os_lib.ads (Create_Temp_Output_File): New
761 routine that is designed to create temp file descriptor specifically
762 for redirecting an output stream.
764 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
766 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
767 processing the parent type, build the COMPONENT_REF for a discriminant
768 with the proper type.
770 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
772 * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo.
773 * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO.
774 Pass GNATLIBCFLAGS_FOR_C to recursive invocations.
776 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
778 * gcc-interfaces/decl.c (build_subst_list): Convert the expression of
779 the constraint to the type of the discriminant.
781 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
783 * gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
784 TYPE_DECL when a type is padded if there is already one and reset
785 TYPE_STUB_DECL in this case.
787 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
789 * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
790 main_identifier_node.
792 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
794 * gcc-interface/utils.c (convert): When converting to a padded type
795 with an inner type of self-referential size, pad the expression before
796 doing the unchecked conversion.
798 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
800 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
801 sure the element type is consistent.
803 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
805 * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
807 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
809 * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
810 (TYPE_IS_FAT_POINTER_P): ...this.
811 (TYPE_THIN_POINTER_P): Rename into...
812 (TYPE_IS_THIN_POINTER_P): ...this.
813 (TYPE_FAT_OR_THIN_POINTER_P): Rename into...
814 (TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
815 (TYPE_IS_PADDING_P): Change definition, move old one to...
816 (TYPE_PADDING_P): ...this.
817 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
818 (get_unpadded_type): Likewise.
819 (gnat_to_gnu_component_type): Likewise.
820 (gnat_to_gnu_param): Likewise.
821 (relate_alias_sets): Likewise.
822 (make_packable_type): Likewise.
823 (maybe_pad_type): Likewise.
824 (gnat_to_gnu_field): Likewise.
825 (is_variable_size): Likewise.
826 (annotate_object): Likewise.
827 (validate_size): Likewise.
828 (set_rm_size): Likewise.
829 (make_type_from_size): Likewise.
831 * gcc-interface/misc.c (gnat_print_type): Likewise.
832 (gnat_get_alias_set): Likewise.
833 * gcc-interface/trans.c (Identifier_to_gnu): Likewise.
834 (Attribute_to_gnu): Likewise.
835 (call_to_gnu): Likewise.
836 (gnat_to_gnu): Likewise.
837 (add_decl_expr): Likewise.
838 (convert_with_check): Likewise.
839 (addressable_p): Likewise.
840 (maybe_implicit_deref): Likewise.
841 (protect_multiple_eval): Likewise.
842 (gnat_stabilize_reference_1): Likewise.
843 * gcc-interface/utils.c (gnat_pushdecl): Likewise.
844 (finish_record_type): Likewise.
845 (rest_of_record_type_compilation): Likewise.
846 (create_type_decl): Likewise.
847 (gnat_types_compatible_p): Likewise.
848 (build_template): Likewise.
849 (convert_vms_descriptor64): Likewise.
850 (convert_vms_descriptor32): Likewise.
851 (build_unc_object_type_from_ptr): Likewise.
852 (update_pointer_to): Likewise.
853 (convert_to_fat_pointer): Likewise.
854 (convert_to_fat_pointer): Likewise.
856 (remove_conversions): Likewise.
857 (maybe_unconstrained_array): Likewise.
858 (unchecked_convert): Likewise.
859 (handle_vector_type_attribute): Likewise.
860 * gcc-interface/utils2.c (build_binary_op): Likewise.
861 (build_unary_op): Likewise.
862 (build_allocator): Likewise.
864 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
866 * exp_dbug.ads: Adjust type names in comments.
867 * gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
868 add new IS_COMPONENT_TYPE parameter. Adjust. Remove dead code.
869 (gnat_to_gnu_entity): Adjust for above change.
870 (gnat_to_gnu_component_type): Likewise.
871 (gnat_to_gnu_field): Likewise.
872 * gcc-interface/trans.c (call_to_gnu): Likewise. Do not unnecessarily
874 * gcc-interface/utils.c (finish_record_type): Remove obsolete code.
875 * gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.
877 2009-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
879 * s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
880 * s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.
882 2009-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
884 * env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
886 2009-10-10 Samuel Tardieu <sam@rfc1149.net>
888 * sem_eval.adb: Give a more precise error message.
890 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
893 * a-rttiev.adb (Time_Of_Event): Return Time_First for unset event.
895 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
898 * sem_prag.adb (Process_Import_Or_Interface): Forbid an abstract
899 subprogram to be completed with a "pragma Import".
901 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
903 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>:
904 Generate an XVZ variable alongside the XVS type if the size is
906 (maybe_pad_type): Minor tweak.
908 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
910 * gcc-interface/decl.c (check_ok_for_atomic): Do nothing if the type
911 doesn't come from source.
913 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
915 * gcc-interface/decl.c (gnat_to_gnu_component_type): Force at least
916 unit size for the component size of an array with aliased components.
917 (maybe_pad_type): Do not warn for MAX_EXPR.
919 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
921 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
922 common code processing the component type into...
923 <E_Array_Subtype>: Likewise.
924 (gnat_to_gnu_component_type): ...this new static function.
925 (maybe_pad_type): Minor cleanup.
927 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
929 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
930 the handling of constrained discriminated record subtypes.
931 (components_to_record): Declare the type of the variants and of the
933 (build_subst_list): Move around.
934 (compute_field_positions): Rename into...
935 (build_position_list): ...this. Return a TREE_VEC.
936 (annotate_rep): Adjust for above renaming.
937 (build_variant_list): New static function.
938 (create_field_decl_from): Likewise.
939 (get_rep_part): Likewise.
940 (get_variant_part): Likewise.
941 (create_variant_part_from): Likewise.
942 (copy_and_substitute_in_size): Likewise.
944 2009-09-28 Olivier Hainque <hainque@adacore.com>
947 * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
948 Account for observable alignments out of default allocators.
950 2009-09-28 Richard Henderson <rth@redhat.com>
952 * gcc-interface/utils.c (gnat_install_builtins): Update call to
953 build_common_builtin_nodes.
955 2009-09-26 Eric Botcazou <ebotcazou@adacore.com>
957 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
958 negative size for the array dimensions like in the constrained case.
959 <E_Array_Subtype>: Do not create an artificially non-constant high
960 bound if the low bound is non-constant. Minor tweaks.
962 * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
963 and turn ALIASED into a boolean parameter. Adjust calls to self.
964 <N_Attribute_Reference>: Return 1 for more attributes.
965 <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
966 <N_Assignment_Statement>: Return 1 for the LHS.
967 (Identifier_to_gnu): Adjust calls to lvalue_required_p.
968 (call_to_gnu): Be prepared for wrapped boolean rvalues.
970 2009-09-25 Olivier Hainquqe <hainque@adacore.com>
971 Eric Botcazou <ebotcazou@adacore.com>
973 * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
974 specific node. Representative array type for VECTOR_TYPE entities.
975 * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
976 Turn an ARRAY_TYPE entity into a VECTOR_TYPE.
977 (gnat_types_compatible_p): Handle VECTOR_TYPEs.
978 (convert): Likewise. Arrange to produce VECTOR_CST out of constant
979 array aggregates for VECTOR_TYPE entities.
980 (unchecked_convert): Likewise.
981 (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
982 converted to the associated TYPE_REPRESENTATIVE_ARRAY.
983 (handle_pure_attribute, handle_sentinel_attribute,
984 handle_noreturn_attribute, handle_malloc_attribute,
985 handle_vector_size_attribute): Replace uses of qE format by qs.
986 Remove GCC_DIAG_STYLE definition.
987 * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
988 vector input to representative array type on entry.
989 <N_Op_Eq, etc>: Likewise.
990 * gcc-interface/gigi.h (maybe_vector_array): Declare.
991 (VECTOR_TYPE_P): New predicate.
992 * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
994 2009-09-24 Eric Botcazou <ebotcazou@adacore.com>
996 * gcc-interface/ada.h: Fix outdated comment.
997 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
998 lieu of mark_visited.
999 * gcc-interface/gigi.h (mark_visited): Change type of parameter.
1000 (MARK_VISITED): New macro.
1001 (gnat_truthvalue_conversion): Delete.
1002 * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
1004 (annotate_rep): Fix formatting and tidy.
1005 (compute_field_positions): Get rid of useless variable.
1006 * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
1007 node only once. Use IN operator for the Nkind in more cases.
1008 Remove calls to gnat_truthvalue_conversion.
1009 (mark_visited): Change type of parameter and adjust.
1010 (mark_visited_r): Dereference TP only once.
1011 (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
1012 * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
1013 (build_binary_op): Remove calls to gnat_truthvalue_conversion.
1014 (build_unary_op): Likewise.
1016 2009-09-24 Dave Korn <dave.korn.cygwin@gmail.com>
1018 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
1019 a-except% in target pairs list; don't (implicitly) compare whitespace.
1021 2009-09-24 Jakub Jelinek <jakub@redhat.com>
1023 * gcc-interface/utils.c (gnat_pushdecl): Don't set
1024 DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
1027 2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
1029 * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
1030 Bind to getpagesize() in RTEMS 4.10 and newer.
1032 2009-09-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1034 * env.c [__alpha__ && __osf__] (_BSD): Define.
1035 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
1038 2009-09-18 Pascal Obry <obry@adacore.com>
1040 * mingw32.h: Activate Unicode support for x86-64 Windows platform.
1042 2009-09-18 Vadim Godunko <godunko@adacore.com>
1044 * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
1046 2009-09-18 Javier Miranda <miranda@adacore.com>
1048 * exp_aggr.adb (Backend_Processing_Possible): Disable backend
1049 processing for array aggregates in the VM backend if the array has
1052 2009-09-18 Ed Schonberg <schonberg@adacore.com>
1054 * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
1055 the prefix indicates a previous semantic error, and this is the first
1056 error in the program.
1058 2009-09-18 Bob Duff <duff@adacore.com>
1060 * gnat_ugn.texi: Minor editing.
1062 2009-09-18 Vincent Celier <celier@adacore.com>
1064 * prj.ads, prj.adb (Project_Data): New component
1065 Imported_Directories_Switches.
1067 2009-09-18 Pascal Obry <obry@adacore.com>
1069 * mingw32.h: Include standard _mingw.h file.
1070 Define _WIN32_WINNT only if not already defined.
1072 2009-09-18 Thomas Quinot <quinot@adacore.com>
1074 * g-socket.adb (Is_Open): New function indicating whether a
1075 Selector_Type object is open.
1077 2009-09-18 Vincent Celier <celier@adacore.com>
1079 * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
1080 is deleted before creating it.
1082 2009-09-18 Robert Dewar <dewar@adacore.com>
1084 * bindgen.adb: Minor reformatting
1086 2009-09-18 Arnaud Charlet <charlet@adacore.com>
1088 * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
1089 s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
1090 signal handler is installed.
1091 * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
1092 tasks if Abort_Task_Interrupt cannot be used.
1094 2009-09-18 Vincent Celier <celier@adacore.com>
1096 * prj-tree.ads: Minor comment update
1098 2009-09-17 Bob Duff <duff@adacore.com>
1100 * g-socket.ads: Document the fact that Close_Selector has no effect on
1102 * g-socket.adb: Raise an exception when a Selector that should be open
1104 (Check_Selector): Declare RSig as a constant rather than a renames,
1107 2009-09-17 Robert Dewar <dewar@adacore.com>
1109 * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
1110 prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
1111 prj-tree.ads: Minor reformatting
1113 2009-09-17 Emmanuel Briot <briot@adacore.com>
1115 * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
1117 (Do_Autoconf): If the object directory does not exists, create auto.cgpr
1118 in a temporary directory instead
1120 2009-09-17 Bob Duff <duff@adacore.com>
1122 * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
1124 (Get_Priority): Correct message for "terminated" case -- it said "null".
1126 2009-09-17 Robert Dewar <dewar@adacore.com>
1128 * exp_ch6.adb: Minor reformatting
1130 2009-09-17 Emmanuel Briot <briot@adacore.com>
1132 * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
1133 switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
1134 (Project_Node_Tree_Data.Project_Path): New field.
1136 * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
1138 2009-09-17 Emmanuel Briot <briot@adacore.com>
1140 * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
1141 Remove duplicate code.
1142 (Prj.Ext): Fix memory leak
1143 (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
1144 variable. This was previously allowed in the code in
1145 Is_External_Assignment, and some tests rely on it
1147 2009-09-17 Bob Duff <duff@adacore.com>
1149 * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
1151 2009-09-17 Emmanuel Briot <briot@adacore.com>
1153 * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
1154 makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
1155 prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
1156 prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
1157 Scenario variables are now specific to each project tree loaded in
1161 2009-09-17 Javier Miranda <miranda@adacore.com>
1163 * exp_disp.adb (Make_DT): Remove wrong line of code that was
1164 undocumented and probably added by mistake.
1166 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1168 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
1169 conversions between original and packable version of types from
1172 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1174 * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
1175 If a padding type was made for the field, declare it.
1176 (components_to_record): Add DEBUG_INFO_P parameter. Adjust call
1177 to gnat_to_gnu_field and call to self.
1178 (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
1179 <E_Array_Subtype>: Likewise.
1180 Adjust calls to gnat_to_gnu_field and components_to_record.
1182 2009-09-16 Robert Dewar <dewar@adacore.com>
1184 * prj-nmsc.adb: Minor reformatting
1186 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1188 * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
1189 expression is a by-reference type (tagged or inherently limited)
1190 introduce an access type to capture references to the values of each
1191 branch of the conditional.
1193 2009-09-16 Emmanuel Briot <briot@adacore.com>
1195 * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
1196 (Project_Name_And_Node.Display_Name): new field
1197 The display name of a project (as written in the .gpr file) is now
1198 computed when the project file itself is parsed, not when it is
1201 2009-09-16 Thomas Quinot <quinot@adacore.com>
1203 * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
1204 intrinsics untouched (to be expanded later on by gigi) if an external
1205 name has been specified.
1206 (Freeze_Entity): Do not generate a default external name for
1207 imported subprograms with convention Intrinsic (so that the above code
1208 can identify the case where an external name has been explicitly
1211 * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
1212 replaced by something else due to an existing #define clause.
1214 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1216 * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
1217 Parameter_Association node, created for the extra actual generated for
1218 an access parameter of a function that dispatches on result, to prevent
1219 double generation of such actuals when the call is rewritten is a
1221 * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
1222 * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
1223 that carry this flag when rewriting the original call as a dispatching
1224 call, after propagating the controlling tag.
1226 2009-09-16 Vincent Celier <celier@adacore.com>
1228 * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
1230 (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
1232 (Find_Source_Dirs): New parameter Rank to be recorded with the source
1234 (Search_Directories): Call Check_File with the rank of the directory
1235 * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
1236 (Free): Free also Number_Lists
1237 (Reset): Init also Number_Lists
1238 * prj.ads (Number_List_Table): New dynamic table for lists of numbers
1239 (Source_Data): New component Source_Dir_Rank. Remove component
1240 Known_Order_Of_Source_Dirs, no longer needed.
1241 (Project_Data): New component Source_Dir_Ranks
1242 (Project_Tree_Data): New components Number_Lists
1244 2009-09-16 Vincent Celier <celier@adacore.com>
1246 * gprep.adb (Yes_No): New global constant
1247 Unix_Line_Terminators: New global Boolean variable
1248 (Process_One_File): Create the out file with a "Text_Translation=" form
1249 that depends on the use of option -T.
1250 (Scan_Command_Line): Add option -T
1251 (Usage): Add line for option -T
1253 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1255 * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
1256 predicate that describes a proper subset of
1257 Is_Predefined_Dispatching_Operation and excludes stream operations,
1258 which can be overridden by the user.
1259 * sem_ch6.adb (Create_Extra_Formals): use
1260 Is_Predefined_Internal_Operation, so that stream operations get extra
1262 * exp_ch6.adb (Prevent double generation of extra actuals in calls to
1263 'Input, which may be expanded twice, first as a function call and then
1264 as a dispatching call.
1266 2009-09-16 Thomas Quinot <quinot@adacore.com>
1268 * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
1269 * g-expect.adb (Set_Up_Child_Communications): Use
1270 System.OS_Constants.Target_OS to determine whether running on Windows.
1272 2009-09-14 Richard Henderson <rth@redhat.com>
1274 * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
1276 2009-09-14 Eric Botcazou <ebotcazou@adacore.com>
1278 * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
1279 the unconstrained case.
1280 * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
1281 the encoding. Do not give a name to the pointer type to the XUT type.
1282 * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
1283 for fat pointer types, if any. Make sure DECL_ARTIFICIAL is cleared
1284 on nodes with DECL_ORIGINAL_TYPE set.
1285 (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
1286 for fat pointer types. Make sure DECL_ARTIFICIAL is cleared.
1288 2009-09-14 Richard Henderson <rth@redhat.com>
1290 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
1291 default_init_unwind_resume_libfunc.
1292 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
1293 __builtin_eh_pointer.
1294 * gcc-interface/utils.c (gnat_install_builtins): Update call
1295 to build_common_builtin_nodes.
1297 2009-09-13 Richard Guenther <rguenther@suse.de>
1298 Rafael Avila de Espindola <espindola@google.com>
1300 * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
1301 eh_personality_libfunc and lang_eh_runtime_type.
1302 (LANG_HOOKS_EH_PERSONALITY): Define.
1303 (gnat_eh_personality_decl): New static variable.
1304 (gnat_eh_personality): New static function.
1305 Include gt-ada-misc.h.
1306 * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
1307 * gcc-interface/config-lang.in (gtfiles): Add misc.c.
1309 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1312 * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
1314 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1316 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
1318 Avoid useless work when processing the Treat_As_Volatile flag.
1320 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1322 * gcc-interface/targtyps.c: Reorder include directives.
1324 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1326 * gcc-interface/targtyps.c: Add missing include for tm_p.h.
1327 * gcc-interface/Make-lang.in: Update dependencies.
1329 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1331 * make.adb: Add missing documentation for multilib handling.
1333 2009-09-03 Diego Novillo <dnovillo@google.com>
1335 * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
1337 2009-09-02 Richard Henderson <rth@redhat.com>
1339 * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
1341 2009-09-02 Olivier Hainque <hainque@adacore.com>
1343 * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
1346 2009-09-02 Olivier Hainque <hainque@adacore.com>
1348 * gcc-interface/decl.c (cannot_be_superflat_p): Handle
1349 Signed_Integer_Type_Definition Scalar_Ranges.
1351 2009-09-02 Eric Botcazou <ebotcazou@adacore.com>
1353 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
1354 SAVE_EXPR built for misaligned arguments. Remove redundant stuff.
1355 (addressable_p): Return true for more rvalues.
1357 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1359 * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
1360 POINTER_SIZE to HOST_WIDE_INT.
1362 2009-09-01 Richard Guenther <rguenther@suse.de>
1364 * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1366 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
1368 * gcc-interface/trans.c (call_to_gnu): Tidy.
1369 (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
1370 non-constant size but the array itself has constant size.
1371 * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
1373 (convert_vms_descriptor32): Likewise.
1375 2009-08-22 Aurelien Jarno <aurelien@aurel32.net>
1377 * gcc-interface/Makefile.in: Add Ada support for
1378 GNU/kFreeBSD x86_64.
1379 * system-freebsd-x86_64.ads: New file based on
1380 system-freebsd-x86.ads.
1382 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1384 * gcc-interface/utils.c (convert): In the padded case, do the final
1385 conversion as an unchecked conversion if the underlying types are
1386 array types with variable size.
1388 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1390 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
1392 * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
1394 * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
1396 (gnat_gimplify_expr) <DECL_EXPR>: New case.
1398 2009-08-17 Aurelien Jarno <aurelien@aurel32.net>
1400 * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
1401 (stack_t): New record type.
1402 (sigaltstack): New imported function.
1403 (Alternate_Stack): New imported variable.
1404 (Alternate_Stack_Size): New constant.
1406 2009-08-17 Vasiliy Fofanov <fofanov@adacore.com>
1408 * a-calend-vms.adb: Fix typo.
1410 2009-08-17 Tristan Gingold <gingold@adacore.com>
1412 * s-taprop-posix.adb: Round up the stack size to avoid failure on
1415 2009-08-17 Gary Dismukes <dismukes@adacore.com>
1417 * sem_cat.adb (Validate_Static_Object_Name): Update comment.
1419 2009-08-17 Vincent Celier <celier@adacore.com>
1421 * make.adb (Arguments_Collected): Unneeded, removed
1422 (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
1423 ensure caller does not pass in No_Project.
1424 (Compile): Add new parameter Project. Let procedure
1425 Collect_Arguments_And_Compile provide the proper value.
1427 * switch-c.adb: Add documentation for -gnatea and -gnatez
1429 2009-08-17 Ben Brosgol <brosgol@adacore.com>
1431 * gnat_ugn.texi: Changed name of package in SAL example, to avoid
1432 clash with Ada 2005 reserved word (interface).
1434 2009-08-17 Robert Dewar <dewar@adacore.com>
1436 * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
1437 a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
1438 a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
1439 (use conditional expressions).
1441 2009-08-17 Robert Dewar <dewar@adacore.com>
1443 * make.adb: Add ??? comment
1444 * tbuild.adb: Minor reformatting
1446 2009-08-17 Thomas Quinot <quinot@adacore.com>
1448 * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
1449 Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
1450 Use Tbuild.Make_Temporary to create entity for the temporary.
1452 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1454 * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
1455 and ignore -mieee switch to avoid spawning an extra gcc in this case.
1457 2009-08-17 Thomas Quinot <quinot@adacore.com>
1459 * tbuild.adb: Minor reformatting
1461 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1463 * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
1464 exist, as is the case for synchronized types, use the type of the
1465 discriminal in the parameter specification, to prevent a spurious
1466 subtype mismatch in gigi.
1468 2009-08-17 Robert Dewar <dewar@adacore.com>
1470 * prj-env.adb: Minor reformatting
1471 * make.adb: Minor reformatting
1474 2009-08-17 Javier Miranda <miranda@adacore.com>
1476 * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
1478 2009-08-17 Emmanuel Briot <briot@adacore.com>
1480 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
1481 (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
1482 object directories must be present. In the case of gprclean at least,
1483 these are optional (if they do not exist there is nothing to clean)
1485 2009-08-17 Robert Dewar <dewar@adacore.com>
1487 * prj-env.adb: Minor reformatting
1488 * sem_ch3.adb: Minor reformatting
1490 2009-08-17 Hristian Kirtchev <kirtchev@adacore.com>
1492 * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
1493 the time zone since VxWorks chose positive values to represent west
1494 time zones and negative for east zones.
1496 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1498 * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
1499 an anonymous access type whose designated type is generic.
1501 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1503 * comperr.adb (Compiler_Abort): Do not generate a bug box when in
1504 codepeer mode, friendlier.
1506 2009-08-10 Laurent GUERBY <laurent@guerby.net>
1508 * make.adb: Handle multilib
1510 2009-08-10 Vincent Celier <celier@adacore.com>
1512 * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
1513 the temporary file name in the error message when the temporary file
1516 2009-08-10 Yannick Moy <moy@adacore.com>
1518 * gnat_ugn.texi: Fix typo
1520 2009-08-10 Robert Dewar <dewar@adacore.com>
1522 * exp_ch7.adb: Add ??? comment for last change
1524 2009-08-10 Vincent Celier <celier@adacore.com>
1526 * prj-env.adb (Add_To_Buffer): New procedure
1527 (Create_Config_Pragmas_File): Write to temporary file in one shot
1528 (Create_Mapping_File): Ditto
1529 (Set_Ada_Paths): Ditto
1531 2009-08-10 Vincent Celier <celier@adacore.com>
1534 * xref_lib.adb (Print_Xref): Make sure that there is at least one space
1535 between a declaration name and its type.
1537 2009-08-07 Javier Miranda <miranda@adacore.com>
1539 * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
1542 2009-08-07 Robert Dewar <dewar@adacore.com>
1544 * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
1546 2009-08-07 Vincent Celier <celier@adacore.com>
1548 * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
1549 specified on the command line and there are switches in the Compiler
1550 package of the project file, use these compilation switches to invoke
1553 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1555 * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
1557 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1559 * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
1560 even if not in main unit, to simplify debugging.
1562 2009-08-07 Arnaud Charlet <charlet@adacore.com>
1564 * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
1565 * gcc-interface/Make-lang.in: Update dependencies.
1567 2009-08-07 Robert Dewar <dewar@adacore.com>
1569 * types.ads: Minor reformatting
1570 * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
1571 * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
1572 Output_Non_Modified_In_Out_Warnings.
1573 * sem_ch13.adb: Remove ??? comment.
1575 2009-08-07 Vincent Celier <celier@adacore.com>
1577 * mlib-prj.adb (Build_Library): Include binder generate object file
1578 for SAL when library name is only one character.
1580 2009-08-07 Thomas Quinot <quinot@adacore.com>
1582 * targparm.adb: Minor reformatting
1583 * sem.adb: Minor reformatting
1584 * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
1586 2009-08-07 Emmanuel Briot <briot@adacore.com>
1588 * prj-conf.adb: Remove duplicate directory separator in the output when
1589 an object directory does not exist.
1591 2009-08-07 Robert Dewar <dewar@adacore.com>
1593 * exp_util.adb: Minor reformatting
1595 2009-08-07 Vincent Celier <celier@adacore.com>
1597 * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
1600 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1602 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
1603 detect non-static private components that will violate restriction
1604 No_Implicit_Heap_Allocation.
1606 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1608 * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
1610 2009-08-02 Eric Botcazou <ebotcazou@adacore.com>
1612 * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
1613 * gcc-interface/utils.c (end_subprog_body): Likewise.
1614 * gcc-interface/trans.c (gigi): Likewise.
1615 (gnat_to_gnu): Likewise.
1617 2009-07-30 Ben Brosgol <brosgol@adacore.com>
1619 * gnat_ugn.texi: Correct minor texi glitch.
1621 2009-07-30 Ed Schonberg <schonberg@adacore.com>
1623 * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
1624 expression has an underlying representation that is an unchecked union,
1625 there is no subtype to build.
1627 2009-07-30 Robert Dewar <dewar@adacore.com>
1629 * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
1630 s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
1631 sem_ch7.adb, adaint.c: Minor reformatting
1633 2009-07-29 Javier Miranda <miranda@adacore.com>
1635 * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
1636 moved from the expander to the semantic analyzer to allow the
1637 generation of these internal entities when compiling with no code
1638 generation. Required by ASIS.
1639 * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
1640 * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
1641 * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
1642 (Expand_Freeze_Record_Type): Remove call to
1643 Add_Internal_Interface_Entities because this routine is now called at
1644 early stage --when the freezing node is analyzed.
1646 2009-07-29 Robert Dewar <dewar@adacore.com>
1648 * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
1649 exp_disp.adb, g-socket.adb: Minor reformatting
1651 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1653 * sem_ch7.adb (New_Private_Type): Create class-wide type after other
1654 attributes have been established, so that they are all inherited by the
1656 * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
1657 properly named subtypes of class-wide types.
1659 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1661 * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
1662 indicators on user-defined operators.
1664 2009-07-29 Vadim Godunko <godunko@adacore.com>
1666 * g-socket.adb (Receive_Vector): Add comment.
1668 2009-07-29 Javier Miranda <miranda@adacore.com>
1670 * frontend.adb (Frontend): Code cleanup.
1671 * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
1672 Rewriten as a procedure because it a new out-mode parameters to
1673 keep up-to-date the controlling tag node in the caller.
1674 (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
1675 new out-mode parameter to keep up-to-date the controlling tag node in
1677 * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
1678 exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
1680 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
1681 available in new package Sem_SCIL.
1682 (Next_Non_SCIL_Node): Ditto.
1683 * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
1685 (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
1686 plus complete decoration of SCIL dispatching node.
1687 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1688 * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
1690 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1691 * exp_ch3.adb (Build_Init_Procedure): Fix comment.
1692 * sem_scil.ads, sem_scil.adb: New files.
1693 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
1694 Update dependencies.
1696 2009-07-28 Robert Dewar <dewar@adacore.com>
1698 * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
1699 makeutl.adb: Minor reformatting & code reorganization
1700 * sem_ch3.adb: Minor reformatting.
1701 Fix spelling error (constraint for constrain) in error msg.
1703 2009-07-28 Emmanuel Briot <briot@adacore.com>
1705 * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
1706 global variable that also exists in makeutl.ads, and that some routines
1707 in that package use already.
1708 (Check): Moved part of the code to makeutl.adb for better sharing with
1711 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1713 * gcc-interface/Make-lang.in: Update dependencies.
1715 2009-07-28 Emmanuel Briot <briot@adacore.com>
1717 * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
1718 importing project does not end up in the list, in the case of extending
1720 * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
1721 makeutl.ads, for better sharing with gprbuild.
1723 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1725 * gnat_ugn.texi: Fix typo.
1727 2009-07-28 Ed Schonberg <schonberg@adacore.com>
1729 * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
1730 derivation that renames some discriminants and constrain others.
1731 * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
1732 prefix is a derived untagged type, convert to the root type to conform
1733 to the signature of the protected operations.
1735 2009-07-28 Robert Dewar <dewar@adacore.com>
1737 * sinfo.ads: Update comments.
1738 * exp_attr.adb: Minor reformatting
1740 2009-07-28 Ed Schonberg <schonberg@adacore.com>
1742 * sem_aggr.adb (Get_Value): A named association in a record aggregate
1743 should be treated as a modification of the named component, not as a
1746 2009-07-28 Quentin Ochem <ochem@adacore.com>
1748 * prj-tree.ads, prj-tree.adb (Free): Minor editing.
1749 * prj.ads, prj.adb (Image): Ditto.
1751 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1753 * frontend.adb: Minor reformatting.
1754 (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
1757 2009-07-28 Bob Duff <duff@adacore.com>
1759 * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
1760 'Address to get a pointer to the protected body wrapper.
1762 2009-07-28 Javier Miranda <miranda@adacore.com>
1764 * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
1765 nodes if we are not generating code.
1766 * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
1767 attribute SCIL_Related_Node of SCIL dispatching nodes.
1768 (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
1769 * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1770 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1771 (SCIL_Entity): Update documentation.
1772 (SCIL_Related_Node): Update documentation.
1773 (SCIL_Controlling_Tag): New attribute.
1774 (SCIL_Target_Prim): Update documentation.
1775 (N_Null_Statement): Remove attributes associated with SCIL nodes.
1776 (N_SCIL_Dispatch_Table_Object_Init): New node.
1777 (N_SCIL_Dispatch_Table_Tag_Init): New node.
1778 (N_SCIL_Dispatching_Call): New node.
1779 (N_SCIL_Tag_Init): New node.
1780 * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1781 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1782 (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
1783 (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
1784 (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
1785 (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
1786 N_SCIL_Dispatching_Call nodes.
1787 * sem.adb (Analyze): No need to analyze SCIL nodes.
1788 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
1789 (Next_Non_SCIL_Node): New subprogram
1790 * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
1792 * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
1794 * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
1796 * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
1797 null statement nodes.
1798 (Build_Init_Procedure): Generate new SCIL node.
1799 * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
1801 * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
1802 they are currently implemented as special N_Null_Statement nodes.
1803 * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
1804 procedure call then check if some SCIL node references it and needs
1806 * exp_disp.ads (SCIL_Node_Kind): Removed.
1807 (Adjust_SCIL_Node): New subprogram.
1808 (Find_SCIL_Node): New subprogram.
1809 (Get_SCIL_Node_Kind): Removed.
1810 (New_SCIL_Node): Removed.
1811 * exp_disp.adb (Adjust_SCIL_Node): New subprogram
1812 (Expand_Dispatching_Call): Generate new SCIL dispatching node including
1813 decoration of its new controlling_tag attribute.
1814 (Get_SCIL_Node_Kind): Removed.
1815 (Find_SCIL_Node): New subprogram.
1816 (Make_Secondary_DT): Generate new SCIL nodes.
1817 (Make_Tags): Generate new SCIL nodes.
1818 (New_SCIL_Node): Removed.
1819 * exp_util.adb (Insert_Actions): Handle SCIL nodes.
1820 (Remove_Side_Effects): Check if relocated nodes require readjustment
1821 of some SCIL dispatching node.
1822 * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
1824 2009-07-28 Robert Dewar <dewar@adacore.com>
1826 * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
1828 2009-07-28 Sergey Rybin <rybin@adacore.com>
1830 * gnat_ugn.texi: Add section about gnatcheck rule exemption.
1832 2009-07-28 Vadim Godunko <godunko@adacore.com>
1834 * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
1835 not defined by limits.h.
1837 * g-socket.adb (Receive_Vector): Use minimum length from user's vector
1838 length and maximum supported length of data vector.
1840 2009-07-28 Gary Dismukes <dismukes@adacore.com>
1842 * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
1843 * make.adb: Call Get_Target_Parameters before calling Usage so that
1844 VM_Target and AAMP_On_Target will be set.
1846 2009-07-28 Olivier Hainque <hainque@adacore.com>
1848 * g-ssinty.ads: Remove, pointless and just confusing at this stage.
1849 * gnat_rm.texi: Remove documentation.
1850 * g-sse.ads: Minor reorg along the way.
1851 * gcc-interface/Makefile.in: Remove processing for g-ssinty.
1852 * g-ssvety.ads: Minor comment updates.
1854 2009-07-28 Sergey Rybin <rybin@adacore.com>
1856 * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
1857 for the new format of the report file.
1859 2009-07-28 Sergey Rybin <rybin@adacore.com>
1861 * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
1863 2009-07-28 Pascal Obry <obry@adacore.com>
1865 * g-expect.adb: Record standard handles only on Windows.
1867 2009-07-27 Emmanuel Briot <briot@adacore.com>
1869 * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
1872 2009-07-27 Sergey Rybin <rybin@adacore.com>
1874 * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
1875 rule definition the paragraph that explains that generic functions and
1876 functions from generic packages are not checked.
1878 2009-07-27 Gary Dismukes <dismukes@adacore.com>
1880 * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
1881 procedure when determining whether to set the Overridden_Operation
1882 field of a subprogram overriding an inherited subprogram.
1884 2009-07-27 Robert Dewar <dewar@adacore.com>
1886 * a-except.adb, a-except-2005.ads: Minor reformatting
1888 2009-07-27 Robert Dewar <dewar@adacore.com>
1890 * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
1892 2009-07-27 Javier Miranda <miranda@adacore.com>
1894 * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
1895 add some documentation explaining why the SCIL nodes must be generated
1898 2009-07-27 Olivier Hainque <hainque@adacore.com>
1900 * a-except.adb: Bind to __builtin_longjmp directly.
1901 * a-except-2005.ads: Provide direct binding to __builtin_longjmp
1903 * a-exexpr.adb: Use it.
1904 * a-except-xi.adb: Likewise.
1905 * raise.c (_gnat_builtin_longjmp): Remove and update comments.
1906 * raise.h (_gnat_builtin_longjmp): Remove declaration.
1908 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1910 * sem_eval.adb (Compile_Time_Compare): More precise handling of
1911 Known_Valid flag, to prevent spurious range deductions when scalar
1912 variables may be uninitialized. New predicate Is_Known_Valid_Operand.
1914 2009-07-27 Robert Dewar <dewar@adacore.com>
1916 * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
1919 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1921 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
1922 Ravenscar mode. Error has already been posted on specification.
1924 * sem.adb: Further code clean ups.
1926 2009-07-27 Robert Dewar <dewar@adacore.com>
1928 * g-sse.ads: Minor reformatting
1930 2009-07-27 Arnaud Charlet <charlet@adacore.com>
1932 * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
1933 alternate ali extension.
1934 * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
1935 account Osint.ALI_Suffix.
1936 * osint.ads (ALI_Suffix): Make visible.
1937 * gnatfind.adb (Gnatfind): Add support for --ext= switch.
1938 * gnat_ugn.texi: Document new gnatfind --ext= switch.
1940 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1942 * sem.adb (Walk_Library_Items): If main unit is an instance body, do
1945 2009-07-27 Javier Miranda <miranda@adacore.com>
1947 * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
1948 the dispatching call has is expanded.
1950 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1952 * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
1953 Is_Known_Valid flag on the temporary created for the value whose
1954 validity is being checked.
1956 * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
1957 handle properly main units that are package specifications.
1959 2009-07-27 Geert Bosch <bosch@adacore.com>
1961 * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
1962 * sem_aux.ads: Fix typo in comment
1963 * sem_util.ads (Is_LHS): Adjust comment to match body
1965 2009-07-27 Sergey Rybin <rybin@adacore.com>
1967 * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
1970 2009-07-27 Olivier Hainque <hainque@adacore.com>
1972 * g-sse.ads, g-ssvety.ads: Update comments.
1974 2009-07-27 Sergey Rybin <rybin@adacore.com>
1976 * gnat_ugn.texi: Update gnatcheck doc.
1978 2009-07-27 Arnaud Charlet <charlet@adacore.com>
1980 * lib-xref.ads: Allocate/document 'o' char for use by references to
1981 spark 'own' variables.
1983 2009-07-27 Gary Dismukes <dismukes@adacore.com>
1985 * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
1986 objects, since these are implicitly referenced by the return statement.
1987 * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
1988 Is_Return_Object in this procedure, as return objects will never make
1989 it here since they're now marked as Referenced.
1991 2009-07-27 Robert Dewar <dewar@adacore.com>
1993 * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
1995 2009-07-27 Robert Dewar <dewar@adacore.com>
1997 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
1999 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
2001 2009-07-27 Geert Bosch <bosch@adacore.com>
2003 * checks.adb (Find_Check): Minor streamlining of logic.
2004 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
2005 * debug.adb: Document -gnatdX debug flag
2006 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
2007 list information about reads from scalar entities.
2008 Also slightly simplify condition for Expand_Current_Value.
2009 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
2012 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
2015 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
2016 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
2018 (__gnat_stat): Adjust reference to STAT in prototype.
2019 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
2020 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
2021 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
2022 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
2023 __gnat_is_writable_file, __gnat_is_executable_file,
2024 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
2025 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
2026 __gnat_copy_attribs): Adjust all references to the above.
2027 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
2029 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2031 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
2032 done at the same time, guard against listing a body more than once.
2034 2009-07-23 Robert Dewar <dewar@adacore.com>
2036 * exp_ch6.adb: Minor reformatting
2038 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2040 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
2041 static expression is known valid.
2042 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
2043 operands of a subtype with a single value.
2045 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2047 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
2048 are in the context of the main unit body.
2050 2009-07-23 Sergey Rybin <rybin@adacore.com>
2052 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
2053 misprint in rule description.
2055 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2057 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
2058 test that the object declaration is within an extended return statement
2059 with direct test of whether the declared object associated with the
2060 build-in-place call is a return object, since the enclosing function
2061 might not even be a build-in-place function.
2063 2009-07-23 Robert Dewar <dewar@adacore.com>
2065 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
2066 Minor code reorganization
2068 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2070 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
2071 for static analysis, only packed arrays are causing troubles.
2073 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2075 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
2076 ancestor part is a call to a limited function with an unconstrained
2077 result subtype unless the aggregate has a null extension type.
2078 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
2079 the parent type declaration to avoid blowups on subtype cases.
2081 2009-07-23 Robert Dewar <dewar@adacore.com>
2083 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
2086 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
2088 * s-regexp.adb: Minor reformatting
2089 * scos.ads: Minor reformatting.
2091 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2093 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
2094 other similar messages.
2095 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
2096 messages/implicit packing in CodePeer mode.
2097 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
2098 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
2101 2009-07-23 Pascal Obry <obry@adacore.com>
2103 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
2106 2009-07-23 Robert Dewar <dewar@adacore.com>
2108 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
2111 2009-07-23 Yannick Moy <moy@adacore.com>
2113 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
2115 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
2117 (Raise_Exception): Ditto.
2119 2009-07-23 Olivier Hainque <hainque@adacore.com>
2121 * g-sse.ads: Simplify comment.
2123 2009-07-23 Olivier Hainque <hainque@adacore.com>
2125 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
2126 low level internal type definitions for distinct higher level
2127 binding development activities (user type definitions and
2129 * gnat_rm.texi: Document it.
2130 * g-ssvety.ads: Use it.
2131 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
2132 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
2133 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
2134 for the "may_alias" attribute.
2136 2009-07-23 Thomas Quinot <quinot@adacore.com>
2138 * scos.ads: Minor typo fix
2140 * gcc-interface/decl.c (validate_alignment): For the case of an
2141 implicit array base type, look for alignment clause on first subtype.
2143 2009-07-23 Robert Dewar <dewar@adacore.com>
2145 * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
2146 with tagged parent if tagged parent is fully repped.
2148 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2150 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
2151 in the context depends on the spec of the main unit, by delaying
2152 processing of the main unit body until all other units have been
2155 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2157 * a-convec.adb: Add comments about suspicious/subtle code.
2159 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2161 * einfo.ads: Document use of Alias in private overriding
2163 2009-07-23 Thomas Quinot <quinot@adacore.com>
2165 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
2166 an array type, propagate alignment from first subtype to implicit base
2167 type so that other subtypes (such as the itypes for aggregates of the
2168 type) also receive the expected alignment.
2170 * g-comlin.ads: Minor documentation clarification/rewording.
2171 * scos.ads: Minor comments update.
2172 * lib-writ.ads: Minor reformatting
2174 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2176 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
2177 of a class-wide interface type that is a return object of a
2178 build-in-place function, bypass the interface-related expansions into
2179 renamings with displacement conversions, etc.
2180 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
2181 for the case where a renaming occurs in a build-in-place context, to
2182 assert that the bypassing of the build-in-place treatment only occurs
2183 in the case of a renaming that is an expansion of a return expression
2184 that is itself a build-in-place function call.
2186 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2188 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
2189 valid candidate interpretation in a prefixed view if it is hidden, but
2190 overrides an inherited operation declared in the visible part.
2192 2009-07-23 Robert Dewar <dewar@adacore.com>
2194 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2195 division operands to 64-bit at all in any circumstances.
2197 2009-07-23 Robert Dewar <dewar@adacore.com>
2199 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
2200 checking ranges for mod/rem to see if conditional jump will be
2202 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
2203 generating special -1 test for rem, generate it whenever both
2204 operands can be negative (match circuit in Sem_Res).
2205 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
2206 destroys memory of positive range.
2207 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
2208 checking ranges for mod/rem to see if conditional jump will be generated
2210 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2212 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
2213 scalar components has non-static bounds, the equivalent aggregate
2214 cannot be built, even if the expression is static, because range checks
2217 2009-07-23 Robert Dewar <dewar@adacore.com>
2219 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2220 division operands to 64-bit inside a conversion if 64-bit division not
2223 2009-07-23 Sergey Rybin <rybin@adacore.com>
2225 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
2227 2009-07-23 Javier Miranda <miranda@adacore.com>
2229 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
2230 (Entity/Set_Entity): not available in N_Null_Statement nodes
2231 (Is_Scil_Node): renamed as Is_SCIL_Node
2232 (Scil_Nkind): renamed as SCIL_Nkind
2233 (Scil_Related_Node): renamed as SCIL_Related_Node
2234 (Scil_Target_Prim): renamed as SCIL_Target_Prim
2235 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
2236 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
2237 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
2238 Update documentation
2239 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
2240 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2241 (New_Scil_Node): Renamed as New_SCIL_Node
2242 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
2243 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2244 (New_Scil_Node): Renamed as New_SCIL_Node
2245 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
2247 2009-07-23 Robert Dewar <dewar@adacore.com>
2249 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
2250 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
2251 * einfo.adb: Minor reformatting
2253 2009-07-23 Robert Dewar <dewar@adacore.com>
2255 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
2256 cross-referencing the new related code in
2257 Exp_Ch4.Expand_N_Type_Conversion.
2258 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
2260 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
2263 2009-07-23 Javier Miranda <miranda@adacore.com>
2265 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
2266 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
2267 * exp_disp.ads (Scil_Node_Kind): Ditto.
2268 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
2269 * exp_ch3.adb (Build_Init_Procedure): Ditto.
2271 2009-07-23 Javier Miranda <miranda@adacore.com>
2273 * einfo.adb (Component_Type): Add missing assertion.
2274 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
2275 reading attribute Component_Size.
2276 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
2277 before reading attributes Component_Size and Component_Type.
2278 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
2279 before reading attribute Component_Type.
2281 2009-07-23 Olivier Hainque <hainque@adacore.com>
2283 * gnat_rm.texi: Document the GNAT.SSE units.
2285 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2287 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
2288 not null return if it appears on a subunit.
2290 2009-07-23 Robert Dewar <dewar@adacore.com>
2292 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
2293 check right away so it does not get skipped for early returns, e.g.
2295 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
2296 left-side unless we really know the value is valid.
2298 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
2299 reformatting. Minor code reorganization. Add comments.
2301 2009-07-23 Robert Dewar <dewar@adacore.com>
2303 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
2306 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2308 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
2309 with test of coverage, to allow specific type objects in extended
2310 returns of class-wide functions. Remove now-unnecessary special-case
2311 tests that allowed this in certain cases of expanded extended returns.
2313 2009-07-23 Javier Miranda <miranda@adacore.com>
2315 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
2316 N_Null_Statements (for SCIL nodes).
2317 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
2318 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
2319 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
2321 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
2322 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
2323 associated with dispatching call.
2324 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
2325 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
2326 initialization of dispatch tables and initialization of tags.
2327 (New_Scil_Node): New function that creates a new SCIL node.
2328 (Build_Init_Procedure): Add generation of SCIL node associated with the
2329 initialization of tags done in the IP subprogram.
2331 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2333 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
2334 Warnings_Off, do not emit continuation messages.
2336 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
2339 2009-07-23 Emmanuel Briot <briot@adacore.com>
2341 * ali.adb: Minor comment update
2343 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
2345 * s-win32.ads (HANDLE): Define to be the same size as address type.
2348 2009-07-23 Olivier Hainque <hainque@adacore.com>
2350 * g-sse.ads: New file. Root of the SSE facilities trees, with
2351 general description and common declarations.
2352 * g-ssvety.ads: New file. Expose user level SSE vector types.
2353 * impunit.adb (Non_Imp_File_Names_95): Register new units.
2354 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
2355 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
2357 2009-07-23 Ben Brosgol <brosgol@adacore.com>
2359 * gnat_ugn.texi: Wordsmithing.
2361 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2363 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
2365 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
2367 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
2368 they are already of the base type of the index.
2370 2009-07-22 Brett Porter <porter@adacore.com>
2372 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
2374 2009-07-22 Robert Dewar <dewar@adacore.com>
2376 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
2377 * gnat_ugn.texi: Add documentation for -gnateS switch
2378 * ug_words: Add entry for -gnateS /SCO_OUTPUT
2379 * gcc-interface/Make-lang.in: Update dependencies.
2381 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
2382 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
2383 complete information for SCO input/output.
2385 2009-07-22 Sergey Rybin <rybin@adacore.com>
2387 * gnat_ugn.texi: Update doc for some gnatcheck rules.
2389 2009-07-22 Robert Dewar <dewar@adacore.com>
2391 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
2392 contents of SCO tables.
2393 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
2394 scos.adb, scos.ads: New files.
2395 * gcc-interface/Make-lang.in: Update dependencies.
2397 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
2398 fixes and reformatting.
2400 2009-07-22 Robert Dewar <dewar@adacore.com>
2402 * g-socket.ads: Minor reformatting
2404 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2406 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
2407 include the entity kind for following cases of unreferenced entities:
2408 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
2410 2009-07-22 Ed Falis <falis@adacore.com>
2412 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
2415 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2417 * adadecode.c: Make this file compilable outside of GCC.
2419 2009-07-22 Thomas Quinot <quinot@adacore.com>
2421 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
2422 (partially) default-initialized socket sets are handled properly by
2423 clearing their Set component.
2425 2009-07-22 Bob Duff <duff@adacore.com>
2427 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
2429 2009-07-22 Robert Dewar <dewar@adacore.com>
2431 * gnat_ugn.texi: Minor reformatting
2433 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2435 * errout.adb (Error_Msg): A style message within an instantiation
2436 should not be labelled as an error.
2438 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2440 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
2441 in initialization expression if function does not have convention Ada.
2443 2009-07-22 Sergey Rybin <rybin@adacore.com>
2445 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
2446 '--separate-label' to control label layout.
2448 2009-07-22 Robert Dewar <dewar@adacore.com>
2450 * exp_tss.ads, sem_eval.adb: Minor reformatting
2452 2009-07-22 Bob Duff <duff@adacore.com>
2454 * exp_dist.adb, exp_dist.ads: Update comments.
2456 2009-07-22 Brett Porter <porter@adacore.com>
2458 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
2460 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
2462 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2464 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
2465 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
2467 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
2468 used poor terminology.
2470 2009-07-22 Robert Dewar <dewar@adacore.com>
2472 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
2473 * sem_eval.adb, exp_tss.adb: Minor comment update.
2474 * stylesw.adb: Code clean up.
2476 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2478 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
2479 component size is an exact number of bytes, an array type can have a
2480 size clause that forces packing even though the array type itself is
2483 2009-07-22 Thomas Quinot <quinot@adacore.com>
2485 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
2486 if there is a previous entity with the same name in the scope, ignore
2487 it if it is the renaming declaration for a generic package introduced
2490 2009-07-22 Nicolas Roche <roche@adacore.com>
2492 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
2493 handler on x86_64 windows.
2495 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2497 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
2498 false positives in CodePeer, so ignore this pragma in this mode.
2500 2009-07-22 Thomas Quinot <quinot@adacore.com>
2502 * sem_util.adb, sem_ch10.adb: Minor reformatting
2504 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
2505 special handling for the case of no data received and Item'First =
2506 Stream_Element_Offset'First.
2507 (Last_Index): New subprogram factoring the above special handling
2508 over the various locations where it is required.
2510 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2512 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
2513 checks in CodePeer_Mode.
2514 * gcc-interface/Make-lang.in: Update dependencies.
2516 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2518 * sem_aggr.adb: Improve error message.
2520 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
2521 of an address representation clause.
2522 * freeze.adb (Freeze_Static_Object): An local imported object is legal
2523 if it has an address clause.
2525 2009-07-22 Thomas Quinot <quinot@adacore.com>
2527 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
2528 expression to insert an elab check using a conditional expression, be
2529 sure to carry the original list of interpretations to the new location.
2531 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2533 * gnat1drv.adb: Fix spelling error.
2535 2009-07-22 Javier Miranda <miranda@adacore.com>
2537 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
2538 at the library level and fix a hidden bug in its implementation: its
2539 functionality for renaming objects was broken because
2540 N_Object_Renaming_Declarations nodes are not a subclass of
2541 N_Declaration nodes (as documented in sinfo.ads).
2542 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
2543 check nodes that are actuals of generic instantiations.
2545 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2547 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
2548 context of a compilation unit is being analyzed. Used to detect
2549 circularities created by with_clauses that are not detected by the
2551 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
2552 analyzing the context of the current compilation unit, to detect
2553 possible circularities created by with_clauses.
2555 2009-07-22 Thomas Quinot <quinot@adacore.com>
2557 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
2559 2009-07-22 Robert Dewar <dewar@adacore.com>
2561 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
2562 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
2564 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
2565 * gnat_ugn.texi: Add documentation of -gnatyB
2566 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
2568 2009-07-22 Robert Dewar <dewar@adacore.com>
2570 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
2571 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
2572 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
2573 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
2574 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
2575 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
2576 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
2577 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
2578 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
2579 obey short-circuit style rule.
2581 2009-07-20 Bob Duff <duff@adacore.com>
2583 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
2584 instead of "and", because otherwise Parent_Last_Bit is read
2585 uninitialized in the case where it's not a tagged type, or the tagged
2586 parent does not have a complete rep clause.
2588 2009-07-20 Robert Dewar <dewar@adacore.com>
2590 * stylesw.ads: Minor documentation change.
2592 * types.ads: Minor reformatting
2594 2009-07-20 Javier Miranda <miranda@adacore.com>
2596 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
2597 generating the tag checks associated with dispatching calls.
2598 * exp_disp.adb (Apply_Access_Checks): New subprogram.
2599 (New_Value): This routine was previously local to expand dispatching
2600 calls but it is now used also by Apply_Access_Checks.
2601 (Expand_Dispatching_Calls): Cleanup code because the functionality of
2602 tag checks is now provided by Apply_Access_Checks.
2603 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
2604 case of dispatching calls.
2606 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2608 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
2611 2009-07-20 Gary Dismukes <dismukes@adacore.com>
2613 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
2614 for VMS, only rewrite the first component of the associated exception's
2615 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
2616 and third components that were being replaced with 'M' and 'S'.
2618 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2620 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
2621 Also do not generate error when parsing a spec in CodePeer mode.
2623 2009-07-20 Javier Miranda <miranda@adacore.com>
2625 * checks.adb (Apply_Access_Check): Avoid checks on availability of
2626 runtime function Offset_To_Top_Ptr when compiling with no tagged
2628 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
2629 adding code to the init proc when compiling for VM backends.
2631 2009-07-20 Vincent Celier <celier@adacore.com>
2633 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
2634 account switches -gnatw.?
2636 2009-07-20 Thomas Quinot <quinot@adacore.com>
2638 * sem_dist.adb, exp_dist.adb: Minor reformatting
2640 * Make-generated.in: New file.
2642 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
2644 2009-07-20 Javier Miranda <miranda@adacore.com>
2646 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
2648 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
2649 dynamically tagged expression.
2650 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
2652 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
2653 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2655 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2657 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
2658 CodePeer_Mode is set, to benefit from full front-end expansion
2661 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2663 * sem_res.adb: Add guard.
2665 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
2666 for possible attribute definition of External_Tag, in case clause
2667 appears in the private part of a package.
2669 2009-07-20 Jerome Guitton <guitton@adacore.com>
2671 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
2673 2009-07-20 Vadim Godunko <godunko@adacore.com>
2675 * a-coorma.adb: Minor reformatting.
2677 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2679 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
2680 access return types.
2681 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
2682 provide an itype reference to gigi to force elaboration of the subtype
2683 at the proper point.
2685 2009-07-20 Tristan Gingold <gingold@adacore.com>
2687 * g-expect.adb: Avoid closeing already closed handle.
2689 2009-07-20 Robert Dewar <dewar@adacore.com>
2691 * sprint.adb (Write_Subprogram_Name): New procedure to output
2692 subprogram name with possible preceding $ (replaces
2693 Note_Implicit_Run_Time_Call).
2695 2009-07-20 Robert Dewar <dewar@adacore.com>
2697 * vms_data.ads: Minor reformatting
2699 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
2700 applies to base type.
2701 (Parent_Subtype): Now allowed on record subtype, applies to base type
2702 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
2703 for case of fully repped tagged type.
2704 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
2705 tag save/restore for fully repped tagged type case.
2706 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
2707 * fe.h (Is_Fully_Repped_Tagged_Type): New function
2708 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
2709 overlap of tagged type components with parent type if parent type is
2711 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
2713 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
2715 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
2716 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
2718 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
2719 logical operators (AND/OR/XOR), not comparison operators.
2721 * sprint.ads: Minor reformatting
2723 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2725 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
2726 intrinsics, check that argument is a string literal, rather than
2727 checking for staticness.
2729 2009-07-20 Robert Dewar <dewar@adacore.com>
2731 * sem_ch13.adb: Minor reformatting
2733 * einfo.ads: Minor reformatting
2734 Component_Bit_Offset is no longer considered obsolescent
2736 2009-07-20 Nicolas Roche <roche@adacore.com>
2738 * a-calend.adb: Redefine time_t as signed integer with same size as
2740 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
2742 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
2745 2009-07-20 Javier Miranda <miranda@adacore.com>
2747 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
2748 constructors that have anonymous access type formals.
2750 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
2751 class-wide arguments in case of imported C++ subprograms.
2753 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
2755 2009-07-20 Sergey Rybin <rybin@adacore.com>
2757 * vms_data.ads: Update qualifiers.
2759 2009-07-20 Robert Dewar <dewar@adacore.com>
2761 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
2764 2009-07-17 Richard Guenther <rguenther@suse.de>
2767 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
2768 state. Remove unused parameter.
2769 (gnat_gimplify_function): Do not gimplify here.
2770 Fold into its only caller and remove.
2771 (gnat_builtin_function): Adjust for end_subprog_body signature change.
2772 (gnat_write_global_declarations): Also finalize the CU.
2773 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
2774 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
2775 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
2777 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
2779 2009-07-15 Arnaud Charlet <charlet@adacore.com>
2781 * gcc-interface/Make-lang.in: Update dependencies
2783 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
2785 2009-07-15 Robert Dewar <dewar@adacore.com>
2787 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
2788 N_Label. Remove SCO table entry for entry point (not used).
2790 * par_sco.ads: Remove SCO entry point type (not used)
2792 * switch.adb: Minor code clean up.
2794 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
2796 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
2798 2009-07-15 Thomas Quinot <quinot@adacore.com>
2800 * gnatls.adb: Minor reformatting
2802 * gnatcmd.adb: Minor code reorganization
2804 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2806 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
2807 determine whether a component of a private type has a composite type.
2809 2009-07-15 Robert Dewar <dewar@adacore.com>
2811 * sem_ch10.adb: Minor reformatting throughout
2812 Minor code reorganization (put nested subprograms in alpha order)
2814 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2816 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
2817 when compiling a call to a protected function that returns a controlled
2820 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
2822 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
2823 one. Add task locking and unlocking around the critical region which
2824 mentions localtime_r and global variable timezone for various targets.
2825 Comment reformatting.
2827 2009-07-15 Robert Dewar <dewar@adacore.com>
2829 * gnat_rm.texi: Document s-ststop.ads
2831 * impunit.ad: (Map_Array): New table of alternative names
2832 (Get_Kind_Of_Unit): Return possible suggested alternative name
2834 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
2837 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
2838 alternative unit if an implementation unit is with'ed.
2840 2009-07-15 Robert Dewar <dewar@adacore.com>
2842 * gnat_ugn.texi: Minor updates.
2844 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
2846 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2848 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
2849 conditions of a derived boolean type.
2852 2009-07-15 Robert Dewar <dewar@adacore.com>
2854 * gnat1drv.adb: Initialize SCO tables
2856 * par-load.adb: Call SCO_Record for main unit spec
2858 * par.adb: Make call to SCO_Record for main unit
2860 * par_sco.adb (Unit_Table): Change format to facilitate sort
2861 (Process_Decisions): New procedure with list argument
2862 (Traverse_Generic_Package_Declaration): New procedure
2863 (Initialize): New procedure, replaces Init
2864 (SCO_Output): Sort unit table before output
2865 (SCO_Record): Avoid duplications
2866 (SCO_Record): Handle remaining cases of units
2867 (Traverse_Declarations_Or_Statements): Handle generics
2869 * par_sco.ads (Initialize): New peocedure (replaces Init)
2871 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
2874 2009-07-15 Arnaud Charlet <charlet@adacore.com>
2876 * debug.adb: Add -gnatd.J switch for now to support scil generation in
2877 parallel. Add missing doc for -gnatd.I and -gnatd.O
2879 2009-07-15 Robert Dewar <dewar@adacore.com>
2881 * lib-load.adb: Minor reformatting
2883 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
2885 2009-07-15 Robert Dewar <dewar@adacore.com>
2887 * par.adb: Minor reformatting
2888 Add ??? comment for possible bad comment
2890 * par-ch10.adb: Minor reformatting
2892 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2894 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
2895 is a literal of a derived boolean type, it appears as an unchecked
2896 conversion. Retrieve actual value from expression of conversion.
2898 2009-07-15 Robert Dewar <dewar@adacore.com>
2900 * sem_ch3.adb: Minor reformatting
2902 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
2903 lib-writ.ads, lib-writ.adb: Minor reformatting.
2904 Fix problem with SCO format in ALI files
2906 2009-07-15 Robert Dewar <dewar@adacore.com>
2908 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2909 exp_aggr.adb: Minor code reorganization (better calling sequence for
2912 2009-07-15 Thomas Quinot <quinot@adacore.com>
2914 * opt.ads: Minor comment edits
2916 2009-07-15 Tristan Gingold <gingold@adacore.com>
2918 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
2921 2009-07-15 Robert Dewar <dewar@adacore.com>
2923 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
2926 * lib-writ.ads: Document addition of SCO lines to ALI file
2928 * par_sco.ads, par_sco.adb: New files.
2930 * opt.ads (Generate_SCO): New switch
2932 * par.adb (Par): Call SCO_Record to record SCO information
2934 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
2936 * switch-c.adb: Recognize -gnateS to generate SCO information
2938 * usage.adb: Add line for -gnateS
2940 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
2942 2009-07-15 Robert Dewar <dewar@adacore.com>
2944 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
2947 2009-07-15 Thomas Quinot <quinot@adacore.com>
2949 * g-socthi-mingw.adb: Minor comment addition
2951 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
2953 2009-07-15 Robert Dewar <dewar@adacore.com>
2955 * g-htable.ads, s-htable.ads: Minor reformatting
2957 2009-07-15 Robert Dewar <dewar@adacore.com>
2959 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
2960 new switch -gnatw.g.
2961 (Set_GNAT_Mode_Warnings): New procedure.
2963 * lib-xref.adb: Minor reformatting
2965 2009-07-15 Robert Dewar <dewar@adacore.com>
2967 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
2968 Minor code reorganization
2970 2009-07-14 Taras Glek <tglek@mozilla.com>
2971 Rafael Espindola <espindola@google.com>
2973 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
2974 installing plugin headers.
2976 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2978 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2979 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
2980 and link it to the expression whose value it captures.
2982 2009-07-13 Robert Dewar <dewar@adacore.com>
2984 * output.adb: Minor comment addition for last change
2986 * sinfo.ads: Minor reformatting
2988 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
2990 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
2991 spawn failed like on all other targets.
2993 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2995 * exp_ch7.adb: Indicate origin of temporary for transient expression.
2997 2009-07-13 Thomas Quinot <quinot@adacore.com>
2999 * s-oscons-tmplt.c: Add comment.
3001 2009-07-13 Robert Dewar <dewar@adacore.com>
3003 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
3004 reformatting. Minor code reorganization (add 9 argument version of
3007 * impunit.adb: Remove s-os_lib from list of system extensions.
3009 * sem_util.ads: Minor reformatting
3011 * output.adb: Add warnings off/on around System.OS_Lib.
3013 2009-07-13 Bob Duff <duff@adacore.com>
3015 * exp_dist.adb: Minor comment updates.
3017 2009-07-13 Gary Dismukes <dismukes@adacore.com>
3019 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
3020 several references to CodePeer.
3022 2009-07-13 Bob Duff <duff@adacore.com>
3024 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
3025 Build_TypeCode_Function_All): Do not recurse if the type is the base
3028 2009-07-13 Robert Dewar <dewar@adacore.com>
3030 * exp_ch4.adb: Minor comment change
3032 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3034 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
3035 type of iteration, to prevent spurious warnings.
3037 2009-07-13 Nicolas Roche <roche@adacore.com>
3039 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
3042 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3044 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
3045 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
3047 (CodePeer_Mode): New -gnatC switch.
3048 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
3051 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
3053 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
3054 integer bound forces the check if it is compared to its subtype range.
3056 2009-07-13 Robert Dewar <dewar@adacore.com>
3058 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
3059 prj-strt.ads: Minor reformatting
3061 2009-07-13 Thomas Quinot <quinot@adacore.com>
3063 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
3064 set the type of the From_Any call to the base type.
3066 2009-07-13 Doug Rupp <rupp@adacore.com>
3068 * symbols-processing-vms-ia64.adb (Process): Add variables and
3069 constants to retrieve and check for symbol visibility.
3071 2009-07-13 Javier Miranda <miranda@adacore.com>
3073 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
3074 the identical type we remove the conversion completely because
3077 2009-07-13 Emmanuel Briot <briot@adacore.com>
3079 * prj-err.adb (Error_Msg): One more case where a message should be
3080 considered as a warning.
3082 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
3084 2009-07-13 Thomas Quinot <quinot@adacore.com>
3086 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
3087 calling stubs in the (library level) scope of the RCI locator, where it
3088 is attached, not in the caller's scope.
3090 2009-07-13 Javier Miranda <miranda@adacore.com>
3092 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
3093 interface object declarations we delay the generation of the equivalent
3094 record type declarations until its expansion because there are cases in
3095 which they are not required.
3097 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
3099 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
3100 addition of assertion.
3102 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
3103 interface types require no equivalent constrained type declarations
3104 because the expanded code only references the tag component associated
3106 (Find_Interface_Tag): Improve management of interfaces that are
3107 ancestors of tagged types.
3109 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
3110 class-wide object declarations to add missing support to statically
3111 displace the pointer to the object to reference the tag component
3112 associated with the interface.
3114 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
3115 auxiliary types associated with user-defined dispatching calls if the
3116 type has no user-defined primitives.
3118 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
3120 * mingw32.h: Make it explicit that we need XP or later.
3122 * initialize.c: Remove useless extern symbol declaration.
3124 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
3125 code reuse in expect.c.
3127 * adaint.c: Changes throughout the Windows section to redesign storage
3128 of the child process list and the process identification.
3130 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
3131 for interfacing, fix errors.
3132 (__gnat_expect_portable_execvp): use function in adaint.c
3134 2009-07-13 Emmanuel Briot <briot@adacore.com>
3136 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
3137 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
3138 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
3139 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
3140 (Prj.Nmsc.Report_Error): Removed, no longer needed.
3141 Always use Prj.Err.Report_Message.
3143 2009-07-13 Robert Dewar <dewar@adacore.com>
3145 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
3148 2009-07-13 Robert Dewar <dewar@adacore.com>
3150 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3151 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
3153 2009-07-13 Emmanuel Briot <briot@adacore.com>
3155 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
3156 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
3157 Ada_Prj_Include_File_Set): Removed, since not needed
3160 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3162 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
3163 Analyze_Membership_Op.
3165 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
3166 Resolve_Membership_Op.
3168 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
3171 2009-07-13 Robert Dewar <dewar@adacore.com>
3173 * clean.adb: Minor reformattting
3175 2009-07-13 Emmanuel Briot <briot@adacore.com>
3177 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
3178 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
3179 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
3180 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
3181 and attributes in a project tree.
3182 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
3183 Remove last remaining mode-specific code (ada_only or
3184 multi_language). This was duplicating code
3185 (Get_Mode, Set_Mode): removed, no longer used.
3186 (Initialize_Project_Path): all tools will now take into account both
3187 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
3188 Remove some global variables and subprograms no longer used
3189 Make temporary files tree-specific, to avoid interferences between
3190 trees loaded in memory at the same time.
3191 (Prj.Delete_Temporary_File): new subprogram
3192 (Object_Paths, Source_Paths): fields no longer stored in the project
3193 tree, since they are only needed locally in Set_Ada_Paths.
3194 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
3196 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
3197 by local variables in the appropriate subprograms
3198 (Has_Foreign_Sources): removed.
3200 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
3202 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3204 * gnat1drv.adb (Adjust_Global_Switches): No longer set
3205 Back_Annotate_Rep_Info in inspector mode.
3206 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
3208 * opt.ads: Update comment.
3210 2009-07-13 Robert Dewar <dewar@adacore.com>
3212 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
3213 prj.ads: Minor reformatting and code reorganization.
3215 * par-ch3.adb (Check_Restricted_Expression): New procedure
3217 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3219 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
3220 attribute into a call of the corresponding suprogram, create extra
3221 formals for the subprogram, because it may be a renaming whose
3222 analysis does not create extra formals.
3224 2009-07-13 Emmanuel Briot <briot@adacore.com>
3226 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3227 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3228 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
3229 prj-tree.ads: Minor reformatting.
3230 (Processing_Flags): new record to encapsulate the set of common
3231 parameters to several subprograms in the project manager.
3232 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
3233 Remove the need for the Current_Dir parameter in subprograms.
3234 (Look_For_Sources): minor refactoring, now that we no longer need to
3235 share subprograms between the two Ada_Only and Multi_Language modes
3236 (Processing_Flags): New field Error_On_Unknown_Language.
3237 Merge tests for library project between gnatmake and gprbuild.
3239 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3241 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
3244 2009-07-13 Emmanuel Briot <briot@adacore.com>
3246 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
3249 2009-07-13 Thomas Quinot <quinot@adacore.com>
3251 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
3252 Write,Input,Output} from private view to full view.
3254 * sem_type.adb, sem_type.ads: Minor reformatting
3256 2009-07-13 Nicolas Setton <setton@adacore.com>
3258 * exp_dbug.ads: Add documentation note on the utility of
3259 DW_AT_GNAT_encoding for IDEs.
3261 2009-07-13 Robert Dewar <dewar@adacore.com>
3263 * g-socthi-vxworks.adb: Minor reformatting
3265 * gnatcmd.adb: Minor reformatting
3267 2009-07-13 Thomas Quinot <quinot@adacore.com>
3269 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
3270 removed, not used anymore.
3271 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
3272 New subprogram, implements copy of an Any value into a limited object.
3273 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
3274 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
3275 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
3276 of parameters of a limited type, use the above new subprogram.
3278 2009-07-13 Emmanuel Briot <briot@adacore.com>
3280 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
3282 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
3284 (Error_Report): Remove global variable, replaced by parameters.
3286 2009-07-13 Thomas Quinot <quinot@adacore.com>
3288 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
3289 standard sendto(2) interface for connected sockets (passing a null
3290 destination address). Use send(2) instead for that case.
3292 2009-07-13 Pascal Obry <obry@adacore.com>
3294 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
3296 2009-07-13 Emmanuel Briot <briot@adacore.com>
3298 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3299 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
3300 variables and tables in prj-nmsc.adb.
3301 (Tree_Processing_Data): Renames Processing_Data, some new fields added
3302 (Project_Processing_Data): New record
3303 Simplify/unify check for missing sources.
3305 2009-07-13 Emmanuel Briot <briot@adacore.com>
3307 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
3308 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3309 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
3310 prj-tree.ads (Immediate_Directory_Of): Removed.
3311 (Prj.Pars): Now parse the project simulating a default config file.
3312 (Add_Default_GNAT_Naming_Scheme): New subprogram
3313 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
3314 Remove gnatmake-specific parsing of source files.
3315 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
3316 the error itself to provide more precise diagnostics.
3317 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
3318 a unit belongs to several projects.
3319 (Copy_Interface_Sources): Search the full path of files to copy in the
3320 list of sources of the application rather than in the list of units.
3321 (Parse_Project_And_Apply_Config): Do not reset the name of the main
3323 (Check_File): Use htables to find out whether a source is duplicated.
3324 (Add_Source): check whether the source or unit were already seen earlier
3326 * gcc-interface/Makefile.in: Update gnatmake dependencies.
3328 2009-07-13 Robert Dewar <dewar@adacore.com>
3330 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
3331 expression if extensions permitted.
3333 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
3335 (P_Relation): Use P_Membership_Test
3337 * par.adb (P_Membership_Test): New procedure (implement membership set
3340 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
3342 * sprint.adb (Sprint_Node): Handle set form for membership tests.
3344 2009-07-13 Thomas Quinot <quinot@adacore.com>
3346 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
3347 Do not attempt to generate stubs for predefined primitives of
3348 synchronized interfaces.
3349 (Add_Stub_Type): Factor some code from the PCS-specific variants of
3352 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3354 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
3355 Controlling_Result flag from the operation they override.
3357 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3359 * gcc-interface/Make-lang.in: Update dependencies
3361 2009-07-13 Robert Dewar <dewar@adacore.com>
3363 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
3364 details on unsupported constructs.
3366 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
3369 * s-trafor-default.adb: Correct some warnings
3371 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
3372 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
3375 * par-ch4.adb (Conditional_Expression): Capture proper location for
3376 conditional expression, should point to IF.
3378 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
3379 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
3380 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
3381 reorganization (use conditional expressions).
3383 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3385 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
3386 build-in-place function that returns an inherently limited type (not
3387 just a task type) create proper object declaration so that extra
3388 build-in-place actuals are properly added to the call.
3390 2009-07-13 Robert Dewar <dewar@adacore.com>
3392 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
3394 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
3396 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
3398 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
3399 Warn_On_Suspicious_Modulus_Value.
3401 * ug_words: Add entries for -gnatw.m/-gnatw.M.
3403 * usage.adb: Add lines for -gnatw.m/.M switches.
3405 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
3407 2009-07-13 Javier Miranda <miranda@adacore.com>
3409 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
3410 reading the Is_Interface attribute of the dispatching type.
3412 2009-07-13 Robert Dewar <dewar@adacore.com>
3414 * a-convec.adb: Minor code reorganization (use conditional expressions)
3416 2009-07-13 Robert Dewar <dewar@adacore.com>
3418 * freeze.adb (Check_Suspicious_Modulus): New procedure.
3420 2009-07-13 Robert Dewar <dewar@adacore.com>
3422 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
3425 * par-ch4.adb: Minor reformatting
3427 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3429 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
3430 => Is_Atomic_Aggregate
3432 2009-07-13 Emmanuel Briot <briot@adacore.com>
3434 * prj-nmsc.adb: Avoid traversing the list of source files if
3435 we have already processed all locally removed files.
3437 2009-07-13 Jose Ruiz <ruiz@adacore.com>
3439 * gnat_ugn.texi: Fix typo.
3441 2009-07-13 Robert Dewar <dewar@adacore.com>
3443 * freeze.adb: Minor reformatting
3444 Minor code reorganization (use Nkind_In)
3446 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
3448 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3450 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
3451 local variable and do not test it in Compile_Time_Bad_Alignment.
3452 Do not issue size or alignment warnings for the X'Address form.
3453 * sem_util.ads (Find_Overlaid_Object): Delete.
3454 (Find_Overlaid_Entity): New procedure.
3455 * sem_util.adb (Find_Overlaid_Object): Rename to...
3456 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
3457 whether the address is offseted within the overlaid entity.
3458 (Has_Compatible_Alignment): Track the offset globally instead of
3459 passing it to Check_Offset. For an indexed component, compute the
3460 full offset when possible. If the resulting offset is zero, only
3462 (Check_Offset): Delete.
3463 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
3464 (Address_Aliased_Entity): Delete.
3465 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
3466 Find_Overlaid_Entity to find the overlaid entity and the offset.
3467 Adjust throughout for above change.
3468 (Validate_Address_Clauses): Always use attributes of entities, not of
3469 their type. Tweak message for warning. Call Has_Compatible_Alignment
3470 if the address is offseted to warn about incompatible alignments.
3471 * gcc-interface/gigi.h (annotate_object): Declare.
3472 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
3473 entity. Call annotate_object instead of annotating manually objects.
3474 (annotate_object): New function.
3475 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
3478 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3480 * gcc-interface/ada-tree.h: Minor reorganization.
3481 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
3482 (gnat_print_type): Likewise.
3484 2009-07-11 Thomas Quinot <quinot@adacore.com>
3486 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
3489 * exp_ch6.adb: Minor reformatting
3491 2009-07-11 Ed Schonberg <schonberg@adacore.com>
3493 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
3494 account possible type qualification to determine whether aggregate
3495 needs a target temporary to respect atomic type or object.
3497 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
3498 Expand_Atomic_Aggregate.
3500 2009-07-11 Emmanuel Briot <briot@adacore.com>
3502 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
3504 (Excluded_Sources_Htable): No longer a global table.
3505 Change error message to indicate which files are illegal in the list
3506 of excluded files, as opposed to only the location in the project
3508 (Find_Source): New subprogram.
3510 2009-07-10 Thomas Quinot <quinot@adacore.com>
3512 * exp_ch7.adb: Update comments.
3514 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3516 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
3517 clause if -gnatI is set instead of crashing.
3519 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3521 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
3522 Additional work to remove redundant successive raise statements, in
3523 this case access checks.
3525 2009-07-10 Vincent Celier <celier@adacore.com>
3527 * make.adb (Compile): Always create a deep copy of the mapping file
3528 argument (-gnatem=...) as it may be deallocate/reallocate by
3529 Normalize_Arguments.
3531 2009-07-10 Javier Miranda <miranda@adacore.com>
3533 * einfo.adb (Directly_Designated_Type): Add assertion.
3535 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
3536 access types before using attribute Directly_Designated_Type.
3538 2009-07-10 Emmanuel Briot <briot@adacore.com>
3540 * prj.ads: Minor typo fix
3542 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3544 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
3547 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
3548 subprogram is a function call, resolve properly, to ensure that extra
3549 actuals are added as needed.
3551 2009-07-10 Thomas Quinot <quinot@adacore.com>
3553 * sem_aggr.adb: Minor comments editing
3555 * exp_tss.adb, exp_ch3.adb: Minor reformatting
3557 2009-07-10 Robert Dewar <dewar@adacore.com>
3559 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
3561 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
3564 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
3565 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
3566 case of conditional expressions that may not be elaborated.
3568 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
3569 conditional expression where we may not execute then then or else
3572 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3574 * i-cexten.ads (bool): New type.
3576 2009-07-10 Robert Dewar <dewar@adacore.com>
3578 * sinfo.ads (N_Short_Circuit): New definition
3580 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
3581 treepr.adb: Minor code reorganization (use N_Short_Circuit)
3583 2009-07-10 Javier Miranda <miranda@adacore.com>
3585 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
3586 non-tagged record types.
3589 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
3590 with non-tagged types. Required to import C++ classes that have no
3592 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
3593 returning non-tagged types. For backward compatibility, if the
3594 constructor returns a class wide type we internally change the
3595 returned type to the corresponding non class-wide type.
3598 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
3599 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
3600 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
3601 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
3604 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
3606 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
3608 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
3610 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
3612 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
3615 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
3618 (pragma CPP_Class): Document that it can be used now with non-tagged
3620 (pragma CPP_Constructor): Document that it can be used now with
3621 functions returning specific types. For backward compatibility
3622 we also support functions returning class-wide types.
3625 (Interfacing with C++ constructors): Update the examples to incorporate
3626 the new syntax in which the functions used to import C++ constructors
3627 return specific types.
3628 (Interfacing with C++ at the Class Level): Update the examples to
3629 incorporate the new syntax in which the functions used to import
3630 C++ constructors return specific types.
3632 2009-07-10 Thomas Quinot <quinot@adacore.com>
3634 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
3635 Make_Disp_Conditional_Select_Body,
3636 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
3637 interface nor a concurrent type, the primitive body is empty. Generate
3638 a null statement so that it remains well formed.
3640 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3642 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
3643 replace references to them in defaulted component expressions with
3644 references to the values of the discriminants of the target object.
3646 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3648 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
3649 pragma, to capture global references if the context is generic.
3651 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
3652 appears within the initialization procedure for the corresponding
3653 record, replace it with the proper discriminal.
3655 2009-07-10 Vincent Celier <celier@adacore.com>
3657 * make.adb: Do not include object directories or library ALI
3658 directories of library projects in the object path.
3660 2009-07-10 Javier Miranda <miranda@adacore.com>
3662 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
3663 Typ argument to ensure proper management of access types.
3665 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3667 * exp_ch7.adb (Build_Final_List): If the list is being built for a
3668 Taft-Amendment type, place the finalization list in the package body,
3669 to ensure that the tree for the spec is identical whenever it is
3672 2009-07-10 Javier Miranda <miranda@adacore.com>
3674 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
3675 inheriting attributes from a private Parent_Base.
3677 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3679 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
3680 statements with the same condition.
3682 2009-07-10 Robert Dewar <dewar@adacore.com>
3684 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
3686 2009-07-09 Tom Tromey <tromey@redhat.com>
3688 * raise-gcc.c: Include dwarf2h (unconditionally).
3690 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3692 * sem_ch10.adb (Install_Context): If the unit is a package body,
3693 install the private with_clauses of the corresponding package
3696 2009-07-09 Robert Dewar <dewar@adacore.com>
3698 * checks.adb: Minor reformatting
3700 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3702 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3705 2009-07-09 Thomas Quinot <quinot@adacore.com>
3707 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3708 Do not warn for a constant overlaying any constant object
3710 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3712 * sem_ch10.adb (Install_Context): If the unit is a package body,
3713 install the private with_clauses of the corresponding package
3716 2009-07-09 Robert Dewar <dewar@adacore.com>
3718 * checks.adb: Minor reformatting
3720 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3722 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3725 2009-07-09 Thomas Quinot <quinot@adacore.com>
3727 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3728 Do not warn for a constant overlaying any constant object
3730 2009-07-09 Arnaud Charlet <charlet@adacore.com>
3732 * gcc-interface/Make-lang.in: Update dependencies
3734 2009-07-09 Thomas Quinot <quinot@adacore.com>
3736 * g-socket.adb (Check_Selector): Do not create local copies of the
3737 socket sets on the stack.
3739 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3741 * gnat_ugn.texi: Add missing VMS translations.
3743 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3745 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
3746 condition, to prevent generation of visible code during expansion,
3747 when Check is not enabled.
3749 2009-07-09 Gary Dismukes <dismukes@adacore.com>
3751 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
3752 the check gets registered for any available local handler
3755 * sem_util.adb: Add with and use of Exp_Ch11.
3756 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
3757 that the check gets registered for any available local handler.
3759 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
3762 2009-07-09 Steve Baird <baird@adacore.com>
3764 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
3766 (Expand_N_Exception_Declaration): Fix handling of exceptions
3767 declared in a subprogram.
3769 2009-07-09 Emmanuel Briot <briot@adacore.com>
3771 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
3774 2009-07-09 Thomas Quinot <quinot@adacore.com>
3776 * freeze.adb: Minor reformatting
3778 * exp_ch3.adb: Minor comment fix.
3780 * sinfo.ads: Minor comment fix
3782 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3784 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
3786 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3788 * freeze.adb (Freeze_Expression): If the expression is the name of a
3789 function in a call, and the function has not been frozen yet, create
3790 extra formals for it to ensure that the proper actuals are created
3791 when expanding the call.
3793 2009-07-09 Emmanuel Briot <briot@adacore.com>
3795 * prj-pp.adb (Print): Fix handling of source index when set on a
3798 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3800 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
3801 a temporary to the source expression whose value it captures.
3803 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
3805 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3807 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
3810 2009-07-07 Gary Dismukes <dismukes@adacore.com>
3812 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
3813 parameters when the subtype of the actual is not known to be a subrange
3814 of the formal's subtype.
3815 (Expand_Call): Generate a range check only in the E_In_parameter case
3816 (in out parameter range checks are now handled in Expand_Actuals).
3818 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
3821 2009-07-07 Robert Dewar <dewar@adacore.com>
3823 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
3825 2009-07-07 Javier Miranda <miranda@adacore.com>
3827 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
3828 designated type comes from a limited views.
3830 2009-07-07 Emmanuel Briot <briot@adacore.com>
3832 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
3833 locally removed files that are later made visible again in an importing
3836 2009-07-07 Robert Dewar <dewar@adacore.com>
3838 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
3840 2009-07-07 Sergey Rybin <rybin@adacore.com>
3842 * gnat_ugn.texi: Add an example to the description of gnatcheck
3843 'Style_Checks' rule option.
3845 2009-07-07 Tristan Gingold <gingold@adacore.com>
3847 * seh_init.c: Fix inline assembly statement in seh_init.c
3849 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3851 * sem_warn.adb (Check_References): Do not emit warnings on formals of
3852 an entry body. Only the formals of the entry declaration are traced.
3854 2009-07-07 Robert Dewar <dewar@adacore.com>
3856 * s-osprim-mingw.adb: Minor code reorganization
3858 2009-07-07 Robert Dewar <dewar@adacore.com>
3860 * prj-nmsc.adb: Minor reformatting
3862 2009-07-07 Pascal Obry <obry@adacore.com>
3864 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
3865 cases where Pattern is longer than Source.
3867 2009-07-07 Pascal Obry <obry@adacore.com>
3869 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
3871 2009-07-07 Emmanuel Briot <briot@adacore.com>
3873 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
3876 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3878 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
3879 primitive operations, in case one of them is called in the
3880 initialization procedure for the type.
3882 2009-07-07 Robert Dewar <dewar@adacore.com>
3884 * a-calend.adb: Minor code reorganization (use conditional expressions)
3886 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
3887 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
3888 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
3889 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
3890 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
3891 g-comlin.adb, exp_ch11.adb: Minor reformatting.
3893 2009-07-07 Gary Dismukes <dismukes@adacore.com>
3895 * checks.adb (Generate_Range_Check): Replace type conversions with
3896 unchecked conversions to support the case of performing range checks
3897 on Enum'Val (permits integer values to be converted to enumeration).
3899 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
3900 Attribute_Succ): Set Do_Range_Check to False before calling
3901 Expand_Pred_Succ, to prevent gigi from generating any range checks.
3902 (Expand_N_Attribute_Reference, case Attribute_Val):
3903 Generate a range check when needed (and set Do_Range_Check to False).
3905 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
3906 scalar object initialization if needed.
3908 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
3909 when needed on scalar allocators.
3910 (Expand_N_Qualified_Expression): Generate range check when needed.
3911 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
3912 Checks on slice ranges handled in Resolve_Slice.
3914 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
3915 when needed, for all scalar assignments, not just discrete.
3916 (Expand_Simple_Function_Return): Resolve the conversion created for a
3917 scalar function return so that the conversion will get expanded to
3918 generate a possible constraint check.
3920 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
3921 in out scalar actuals when subtypes don't match, to ensure generation
3922 of return checks (and set Do_Range_Check to False).
3923 (Expand_Call): Uncomment code to perform range checks, but make it apply
3924 only to in and in out parameters (checks on parameter returns are
3925 handled in Expand_Actuals). If a scalar actual for a call to a derived
3926 subprogram is marked as needing a range check, peform it here (and set
3927 Do_Range_Check to False).
3929 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
3930 range check on scalar component associations when needed.
3932 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
3933 infinities but the second type does not, as these aren't compatible
3934 floating-point types.
3936 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
3937 slice is itself a slice, pick up the Etype of the prefix. This handles
3938 the case where the prefix was an Image attribute expanded to a slice,
3939 and ensures that we get the subtype with the slice constraint rather
3940 than the unconstrained subbtype of the 'Image.
3942 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3944 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
3945 overloaded expressions in a conditional expressions.
3947 * sem_res.adb (Resolve): Handle properly overloaded conditional
3950 2009-07-07 Robert Dewar <dewar@adacore.com>
3952 * scng.adb: Minor reformattting
3954 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
3955 association allows conditional expression without parens.
3957 * par-ch4.adb (P_Name): Attribute arguments can be conditional
3958 expressions without enclosing parentheses, and also as parameters,
3959 indexing expressions etc.
3960 (P_Conditional_Expression): New procedure
3961 (P_Expression_If_OK): New procedure
3963 * par.adb (P_Conditional_Expression): New procedure
3964 (P_Expression_If_OK): New procedure
3966 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
3967 form of conditional expression.
3969 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
3970 missing True argument if ELSE argument missing.
3972 * sinfo.adb (Is_Elsif): New flag
3974 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
3975 part of the language, and the documentation is modified accordingly.
3976 (Is_Elsif): New flag
3978 2009-07-06 Olivier Hainque <hainque@adacore.com>
3980 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
3981 setjmp_longjmp): Attach the exception propagation reraise fallback
3982 to the sequence end label location when we have it.
3984 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3987 * init.c (APPLE): Include <mach/mach_init.h>.
3988 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
3990 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
3992 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
3993 (SET_DECL_LANG_SPECIFIC): Likewise.
3994 (TYPE_RM_VALUE): New macro.
3995 (SET_TYPE_RM_VALUE): Likewise.
3996 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
3997 (TYPE_RM_MIN_VALUE): Likewise.
3998 (TYPE_RM_MAX_VALUE): Likewise.
3999 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
4000 (SET_TYPE_RM_MIN_VALUE): Likewise.
4001 (SET_TYPE_RM_MAX_VALUE): Likewise.
4002 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
4004 2009-07-04 Laurent GUERBY <laurent@guerby.net>
4007 * tracebak.c (__gnat_backtrace): Fix old-style definition.
4009 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4011 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
4013 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4016 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
4019 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
4021 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
4023 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4025 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
4026 the type of the left operand if it pads a self-referential type when
4027 the right operand is a constructor.
4029 * gcc-interface/lang-specs.h: Fix copyright date.
4031 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4033 * gcc-interface/decl.c: Include tree-inline.h.
4034 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
4035 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
4036 * gcc-interface/utils2.c: Include tree-inline.
4037 (known_alignment) <CALL_EXPR>: Likewise.
4039 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4041 * raise-gcc.c: Include dwarf2.h conditionally.
4043 2009-06-29 Tom Tromey <tromey@redhat.com>
4045 * raise-gcc.c: Include elf/dwarf2.h.
4047 2009-06-27 Laurent GUERBY <laurent@guerby.net>
4049 * tb-gcc.c (trace_callback): Add casts to silence warning.
4051 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
4053 * tb-gcc.c: Fix copyright notice.
4055 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
4057 * init.c (__gnat_set_globals): Add prototype.
4058 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
4059 (__gnat_sals_init_using_constructors): Likewise.
4060 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
4061 (get_block_jmpbuf_decl): Likewise.
4062 (gnat_poplevel): Likewise.
4063 (merge_sizes): Rename local variable.
4064 (copy_type): Likewise.
4065 (build_vms_descriptor32): Likewise.
4066 (build_vms_descriptor): Likewise.
4067 (convert_vms_descriptor64): Likewise.
4068 (convert_vms_descriptor32): Likewise.
4069 (convert_to_fat_pointer): Likewise.
4070 (maybe_unconstrained_array): Likewise.
4071 (def_fn_type): Use promoted type with va_arg.
4072 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
4073 (substitute_in_type): Rename local variable.
4074 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
4076 2009-06-26 Laurent GUERBY <laurent@guerby.net>
4078 * tb-gcc.c (trace_callback): Use char* instead of void*.
4079 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
4080 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
4081 (Attribute_to_gnu): Adjust for above change.
4082 (Subprogram_Body_to_gnu): Likewise.
4083 * gcc-interface/utils.c (merge_sizes): Rename local variable.
4084 (copy_type): Likewise.
4085 (build_vms_descriptor32): Likewise.
4086 (build_vms_descriptor): Likewise.
4087 (convert_vms_descriptor64): Likewise.
4088 (convert_vms_descriptor32): Likewise.
4089 (convert_to_fat_pointer): Likewise.
4090 (maybe_unconstrained_array): Likewise.
4091 * gcc-interface/decl.c (substitute_in_type): Likewise.
4093 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4095 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
4096 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
4097 of the upper bound of the index types.
4099 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4101 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
4102 out common predicate. Use the maximum to compute the upper bound of
4103 the index type only when it is not wider than sizetype. Perform the
4104 comparison in the index type for the generic expression. Use real
4105 precision to decide whether to generate special types for debugging
4108 2009-06-26 Matthew Gingell <gingell@adacore.com>
4110 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
4112 2009-06-26 Vincent Celier <celier@adacore.com>
4114 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
4117 2009-06-26 Robert Dewar <dewar@adacore.com>
4119 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
4121 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4123 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
4124 correct arguments to create_field_decl. Remove redundant iteration.
4125 Rewrite computation of the maximum size.
4126 <E_Array_Subtype>: Reorder and simplify handling of special cases.
4127 Rewrite computation of the maximum size. Use consistent naming.
4128 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
4129 comparison order for consistency. Use generic integer node to
4130 build the operator and fold the result.
4132 2009-06-25 Vincent Celier <celier@adacore.com>
4134 * vms_data.ads: Minor comment change
4136 2009-06-25 Gary Dismukes <dismukes@adacore.com>
4138 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
4139 assignment statement to targeting a caller-provided object when the
4140 result type is an interface type.
4142 * exp_ch6.adb (Expand_Call): Remove redundant test of
4143 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
4144 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
4146 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
4147 to OK_For_Limited_Init.
4149 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
4150 condition so that True is returned for all limited interfaces, not
4151 just synchronized ones. Ignore components of an interface type when
4152 checking for limited components (such a component can be a parent
4155 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
4156 (OK_For_Limited_Init): Add type parameter.
4158 * sem_ch3.adb (Check_Initialization): Add type in call to
4159 OK_For_Limited_Init.
4160 (OK_For_Limited_Init): Add new type param in call to
4161 OK_For_Limited_Init_In_05.
4162 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
4163 nonlimited type when the context type is a limited interface. Add type
4166 * sem_ch4.adb (Analyze_Allocator): Add type in call to
4167 OK_For_Limited_Init.
4169 * sem_ch6.adb (Check_Limited_Return): Add type in call to
4170 OK_For_Limited_Init.
4172 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
4173 OK_For_Limited_Init.
4174 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
4176 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
4177 class-wide interface, get the base type before applying Etype, in order
4178 to account for class-wide subtypes.
4180 2009-06-25 Emmanuel Briot <briot@adacore.com>
4182 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
4183 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
4184 between gnatmake and gprbuild.
4185 (Naming_Data): Removed, no longer used
4186 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
4187 needed locally in one subprogram, no need to store forever in the
4189 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
4191 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
4192 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
4193 Spec_Suffix_Id_Of): removed, no longer used.
4195 2009-06-25 Javier Miranda <miranda@adacore.com>
4197 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
4198 types on qualified expression in calls to imported C++ constructors.
4200 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
4201 imported C++ constructors.
4203 2009-06-25 Sergey Rybin <rybin@adacore.com>
4205 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
4207 2009-06-25 Vincent Celier <celier@adacore.com>
4209 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
4210 provided, on Windows change all '/' to '\'.
4212 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
4213 used. Minor comment changes
4215 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
4216 Remove_Forbidden_File_Name.
4218 2009-06-25 Quentin Ochem <ochem@adacore.com>
4220 * prj.ads (Unit_Index): Now general access type.
4222 2009-06-25 Pascal Obry <obry@adacore.com>
4224 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
4226 2009-06-25 Emmanuel Briot <briot@adacore.com>
4228 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
4229 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
4230 computed efficiently from the other fields.
4231 (Object_To_Global_Archive): New subprogram
4232 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
4233 (Override_Kind): Fix handling of separates in Ada.
4234 (Create_Mapping_File): Remove duplicate code
4235 (Naming_Data.Implementation_Exception, Specification_Exception):
4236 field removed, since never used.
4237 (Naming_Data.Specs, .Bodies): field removed, since this is only
4238 used while processing the project and is not needed once the tree
4239 is in memory. This brings Naming_Data and Lang_Naming_Data
4240 closer (same content now, but different use still).
4242 2009-06-25 Pascal Obry <obry@adacore.com>
4244 * sem_ch4.adb: Minor reformatting.
4246 * a-strsea.adb: Fix confusion between 'Length and 'Last.
4248 2009-06-25 Ed Schonberg <schonberg@adacore.com>
4250 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
4251 Unchecked_Access): If the context is an interface type, and the prefix
4252 is of the corresponding class-wide type, do not insert a conversion
4253 because the pointer displacement has already taken place, and we must
4254 retain the class-wide type in a dispatching context.
4256 2009-06-25 Emmanuel Briot <briot@adacore.com>
4258 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
4259 the previous source file.
4260 (Create_Mapping): Iterate on sources rather than on units.
4262 2009-06-25 Emmanuel Briot <briot@adacore.com>
4264 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
4265 prj-env.adb, prj-env.ads (Slash): removed, no longer used
4266 (Source_Data): no longer use Path.Name to point to a locally removed
4267 file. Instead we use the field Locally_Removed which is clearer
4269 2009-06-25 Arnaud Charlet <charlet@adacore.com>
4271 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
4273 * sem_maps.adb, sem_maps.ads: Removed, not used.
4275 2009-06-25 Ed Falis <falis@adacore.com>
4277 * s-vxwext-rtp.ads: Add missing declaration
4279 2009-06-25 Matthew Gingell <gingell@adacore.com>
4281 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
4282 speed up unmapped case.
4284 2009-06-25 Vincent Celier <celier@adacore.com>
4286 * prj-nmsc.adb (Check): Change error message for illegal abstract
4289 2009-06-25 Robert Dewar <dewar@adacore.com>
4291 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
4293 2009-06-25 Emmanuel Briot <briot@adacore.com>
4295 * fmap.ads: Add documentation on mapping files
4297 2009-06-25 Robert Dewar <dewar@adacore.com>
4299 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
4302 2009-06-24 Robert Dewar <dewar@adacore.com>
4304 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
4306 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
4310 2009-06-24 Ed Schonberg <schonberg@adacore.com>
4312 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
4313 present when checking whether a call may be interpreted as an indexing
4314 of the result of a call.
4316 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
4317 body for a null procedure on the freeze actions for the procedure, so
4318 that it will be analyzed at the proper place without premature freezing
4321 * sem_ch3.adb (Check_Completion): Code cleanup.
4322 Do not diagnose a null procedure without a body, if previous errors
4323 have disabled expansion.
4325 2009-06-24 Doug Rupp <rupp@adacore.com>
4327 * init.c [VMS] Resignal C$_SIGKILL
4329 2009-06-24 Ed Falis <falis@adacore.com>
4331 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
4332 Define ERROR in body for VxWorks 6 kernel
4334 2009-06-24 Pascal Obry <obry@adacore.com>
4336 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
4337 in [Send/Receive]_Socket.
4339 2009-06-24 Emmanuel Briot <briot@adacore.com>
4341 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
4342 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
4343 to several subprograms.
4344 (Source_Data.Other_Part): Removed, since can be computed from the
4346 (Other_Part): New subprogram.
4348 2009-06-24 Emmanuel Briot <briot@adacore.com>
4350 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
4351 the full base name of the file when the suffix doesn't start with a '.'.
4353 2009-06-24 Vincent Celier <celier@adacore.com>
4355 * prj-nmsc.adb (Check): A project declared abstract is legal if no
4356 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
4359 2009-06-24 Robert Dewar <dewar@adacore.com>
4361 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
4362 prj-env.adb: Minor reformatting
4364 2009-06-24 Ed Falis <falis@adacore.com>
4366 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
4367 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
4368 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
4369 support for VxWorks SMP.
4371 * gcc-interface/Make-lang.in: Update dependencies
4373 2009-06-24 Emmanuel Briot <briot@adacore.com>
4375 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4376 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
4378 (Source_Data.Lang_Kind): Removed, since it duplicates information
4379 already available through Language.Config.
4380 (Source_Data.Compile): Removed, since information is already available
4381 through the language.
4382 (Is_Compilable): New subprogram.
4383 (Source_Data.Dependency): Removed, since already available through
4385 (Source_Data.Object_Exist, Object_Linked): Removed since available
4386 through the language already.
4387 (Unit_Data.File_Names): Is now also set in multi_language mode, to
4388 bring the two modes closer in the resulting data structures.
4389 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
4390 just the name that would point into a hash table.
4391 (Get_Language_From_Name): New subprogram.
4393 2009-06-24 Javier Miranda <miranda@adacore.com>
4395 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
4396 visible through limited-with context clauses. In addition, avoid an
4397 extra tag check that is not required when the class-wide
4398 designated types of the operand and target types are
4400 (Tagged_Membership): Handle entities from the limited view.
4402 2009-06-24 Emmanuel Briot <briot@adacore.com>
4404 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
4405 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
4406 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
4407 different vocabularies for similar concepts (Impl/Body_Part and
4408 Spec/Specification).
4409 (Unit_Data): now points directly to a Source_Id, rather than duplicating
4410 some of the information in File_Name_Data. This also saves a bit of
4411 memory. However, since we are now using a pointer we need to test
4412 for null explicitly in several places of the code
4414 2009-06-24 Javier Miranda <miranda@adacore.com>
4416 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
4417 from processing the type conversion when the node is
4418 replaced by an N_Raise_Program_Error node.
4420 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
4422 * sem_ch6.adb (Designates_From_With_Type): New routine.
4423 (Process_Formals): Since anonymous access types are no longer flagged
4424 as from with types, traverse the designated type to determine whether
4425 it is coming from a limited view.
4427 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
4428 (Full_Designated_Type): Use Available_View to extract the non-limited /
4429 full view of a type.
4431 2009-06-24 Robert Dewar <dewar@adacore.com>
4433 * exp_ch6.adb: Minor reformatting
4435 * layout.adb: Minor reformatting
4437 * make.adb: Minor reformatting
4439 2009-06-24 Thomas Quinot <quinot@adacore.com>
4441 * sem_ch10.adb: Minor code reorganization.
4443 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
4445 * ttypes.ads: Minor editing.
4447 2009-06-24 Robert Dewar <dewar@adacore.com>
4449 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
4450 in deciding to do call-by-copy code.
4452 2009-06-24 Vincent Celier <celier@adacore.com>
4454 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
4455 check if an externally built library file is more current than the
4458 2009-06-23 Olivier Hainque <hainque@adacore.com>
4460 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
4461 c-common.c and populate in gnat_internal_attribute_table.
4463 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4465 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
4466 Available_View only when designated type of an anonymous access type
4469 2009-06-23 Robert Dewar <dewar@adacore.com>
4471 * sem_ch10.adb: Minor reformatting
4473 * ali.ads: Mino reformatting.
4475 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
4476 turning off inlining if ASIS mode active).
4478 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
4479 This belongs in gnat1drv.adb after switches are scanned.
4481 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
4483 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
4484 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
4485 when dealing with class-wide types. Detect a legal shadow entity and
4486 retrieve its non-limited view.
4488 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
4489 subprogram to top package level from Intall_Limited_Withed_Unit.
4490 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
4491 Add check which prevents the installation of a limited view if the
4492 non-limited view is already visible through a with clause.
4493 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
4494 legal shadow entity which may occur in subprogram formals of anonymous
4497 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
4499 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
4500 From_With_Type from the designated type to the generated anonymous
4501 access type. Remove associated comment.
4503 * sem_res.adb Add with and use clauses for Sem_Ch10.
4504 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
4505 non-limited view. Since the shadow entity may replace a regular
4506 incomplete type, return the available full view.
4508 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4510 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
4511 incomplete type declarations. Previous code was potentially quadratic
4512 in the number of visible declarations in any package appearing in a
4513 limited_with_clause.
4515 2009-06-23 Robert Dewar <dewar@adacore.com>
4517 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
4518 xref_lib.adb: Minor reformatting
4520 2009-06-23 Robert Dewar <dewar@adacore.com>
4522 * a-stzhas.adb: Provide dummy body to avoid build problems with old
4523 versions which did have a body for this unit.
4525 2009-06-23 Vincent Celier <celier@adacore.com>
4527 * prj-attr.adb: Attribute names Initial_Required_Switches and
4528 Final_Required_Switches changed to Leading_Required_Switches and
4529 Trailing_Required_Switches.
4531 * prj-nmsc.adb (Process_Compiler): Attribute names
4532 Initial_Required_Switches and Final_Required_Switches changed to
4533 Leading_Required_Switches and Trailing_Required_Switches.
4535 * prj.ads (Language_Config): Component Initial_Required_Switches and
4536 Final_Required_Switches changed to Leading_Required_Switches and
4537 Trailing_Required_Switches.
4539 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
4540 Final_Required_Switches; add standard names Leading_Required_Switches
4541 and Trailing_Required_Switches.
4543 2009-06-23 Thomas Quinot <quinot@adacore.com>
4545 * prj-conf.adb: Minor reformatting
4547 * xref_lib.adb: Minor cleanup
4549 2009-06-23 Emmanuel Briot <briot@adacore.com>
4551 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
4552 prj-conf.ads (Check_Configuration): New parameter
4553 Compiler_Driver_Mandatory.
4555 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4557 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
4558 context of the current unit has an inline pragma, the instance is not
4559 rewritten as the declaration of the package wrapper. Handle both
4560 possibilities when retrieving the visible subprogram that renames the
4561 instantiation itself.
4563 2009-06-23 Javier Miranda <miranda@adacore.com>
4565 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
4566 designated types referencing entities from the limited view.
4568 2009-06-23 Robert Dewar <dewar@adacore.com>
4570 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
4572 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
4575 * prj-conf.ads: Minor reformatting
4577 * prj-conf.adb: Minor reformatting
4579 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
4581 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
4582 to correspond to the log format that gnatmem now expects.
4584 2009-06-23 Vincent Celier <celier@adacore.com>
4586 * prj-attr.adb: New attributes Initial_Required_Switches,
4587 Final_Required_Switches and Object_File_Switches
4589 * prj-nmsc.adb (Process_Compiler): Process new attributes
4590 Name_Final_Required_Switches, Name_Initial_Required_Switches and
4591 Name_Object_File_Switches.
4593 * prj.ads (Language_Config): New component
4594 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
4595 Compiler_Final_Required_Switches and Object_File_Switches.
4597 * snames.ads-tmpl: New standard names Initial_Required_Switches,
4598 Final_Required_Switches and Object_File_Switches
4600 2009-06-23 Pascal Obry <obry@adacore.com>
4602 * s-strhas.adb, s-strhas.ads: Minor reformatting.
4604 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4606 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
4607 not indicate that the enclosing unit needs a body.
4609 2009-06-23 Emmanuel Briot <briot@adacore.com>
4611 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
4613 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4615 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
4616 primitive equality include it with its source name even if the
4617 operation is currently invisible, to make sure that the corresponding
4618 slot in the dispatch table is reserved for the internal equality
4619 subsequently generated during expansion.
4621 2009-06-23 Matthew Gingell <gingell@adacore.com>
4623 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
4625 2009-06-22 Jose Ruiz <ruiz@adacore.com>
4627 * sysdep.c (__gnat_localtime_tzoff for RTX):
4628 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
4629 GetTimeZoneInformation instead.
4631 2009-06-22 Robert Dewar <dewar@adacore.com>
4633 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
4635 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4637 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
4638 instantiations declared in a previous generic package body.
4640 2009-06-22 Robert Dewar <dewar@adacore.com>
4642 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
4643 restriction No_Direct_Boolean_Operators.
4645 2009-06-22 Thomas Quinot <quinot@adacore.com>
4647 * bindusg.adb: Minor fixes to gnatbind usage message
4649 * sem_eval.adb: Minor reformatting
4651 2009-06-22 Javier Miranda <miranda@adacore.com>
4653 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
4654 freezing point the check on the use of abstract types in object
4655 declarations. Done to allow the declaration of C++ imported variables
4656 or constants whose type corresponds with an imported C++ classes for
4657 which the constructor is not imported.
4659 2009-06-22 Thomas Quinot <quinot@adacore.com>
4661 * sem_ch6.adb: Minor reformatting
4663 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4665 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
4666 component is constrained with an expression rather than with a
4667 discriminant of the enclosing type, use that expression when building
4668 the call to default-initialize the component, when the call is part of
4669 an aggregate with box initialization.
4671 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4673 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
4674 unconditional rather than a style check, because a formal name out of
4675 order is suspicious.
4677 2009-06-22 Vincent Celier <celier@adacore.com>
4679 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
4680 creating a directory automatically.
4682 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
4684 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
4685 untagged derived type, add a hidden component for every constrained
4686 discriminant of the parent type to keep record layout consistent.
4688 2009-06-22 Thomas Quinot <quinot@adacore.com>
4690 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
4693 2009-06-22 Matthew Gingell <gingell@adacore.com>
4695 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
4696 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
4697 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
4698 a-swuwha.adb: New unit System.String_Hash.
4699 Refactor redundant cut and pasted hash functions with instances of a
4700 new generic hash function.
4701 Implement a new string hashing algorithm which appears in testing to
4702 be move effective than to previous approach.
4704 2009-06-22 Ed Falis <falis@adacore.com>
4706 * sysdep.c: remove include for nfsLib.h and an NFS specific error
4707 message for VxWorks 653 vThreads: not supported by the OS.
4709 * gsocket.h: disable sockets for VxWorks 653 vThreads.
4711 2009-06-22 Robert Dewar <dewar@adacore.com>
4713 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
4715 2009-06-22 Robert Dewar <dewar@adacore.com>
4717 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
4720 * freeze.adb: Minor comment updates
4722 * s-valrea.adb (Bad_Based_Value): New procedure
4723 (Scan_Real): Raise exceptions with messages
4725 2009-06-22 Matthew Gingell <gingell@adacore.com>
4727 * adaint.h: Complete previous change.
4729 2009-06-22 Thomas Quinot <quinot@adacore.com>
4731 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
4733 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4735 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
4736 enabled, emit warning when a non-controlling argument of the overriding
4737 operation appears out of place vis-a-vis of the formal of the
4738 overridden operation.
4740 2009-06-22 Vincent Celier <celier@adacore.com>
4742 * gnatcmd.adb (Check_Files): Close temporary files after all file names
4743 have been written into it.
4745 2009-06-22 Matthew Gingell <gingell@adacore.com>
4747 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
4750 2009-06-22 Thomas Quinot <quinot@adacore.com>
4752 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
4753 view of the root type is visible at the point of the call.
4755 2009-06-22 Pat Rogers <rogers@adacore.com>
4757 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
4759 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
4761 * freeze.adb: Add comments.
4763 2009-06-21 Thomas Quinot <quinot@adacore.com>
4765 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
4766 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
4767 Factor out code to new subprogram...
4768 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
4769 for a default initialized variable.
4770 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
4771 entity that has an associated freeze node.
4772 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
4773 If there is an init call for the object, defer it to the object freeze
4775 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
4776 name clash with new subprogram introduced in Exp_Util.
4778 2009-06-21 Robert Dewar <dewar@adacore.com>
4780 * einfo.ads: Minor reformatting
4782 2009-06-21 Ed Falis <falis@adacore.com>
4784 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
4786 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
4788 * einfo.ads: Update comments.
4790 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
4792 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
4793 where the controlling formal is of private class-wide type whose
4794 completion is a synchronized type can be converted into direct calls.
4796 2009-06-21 Vincent Celier <celier@adacore.com>
4798 * gnatcmd.adb (Check_Files): When all sources of the project are to be
4799 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
4800 of sources using -files=, so that the distinction can be made by the
4801 tool of a call with no source (to display the usage) from a call with
4802 a project file that contains no source.
4804 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
4806 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
4807 case of VM convention arrays.
4809 2009-06-20 Robert Dewar <dewar@adacore.com>
4811 * a-nudira.adb: Minor reformatting
4813 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4815 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
4816 expressions (possibly from a parent type) indicate that the scope of
4817 the new itypes is the initialization procedure being built.
4819 2009-06-20 Robert Dewar <dewar@adacore.com>
4821 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
4822 Needs_64, and now computed without anomolies for some dynamic types.
4824 2009-06-20 Thomas Quinot <quinot@adacore.com>
4826 * sem_prag.adb: Minor reformatting
4828 * exp_disp.ads: Minor reformatting
4830 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4832 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
4833 function call is a legal expression to initialize a limited object.
4835 * exp_ch3.adb: Rename various freeze operations that perform expansion
4836 actions, to prevent confusion with subprograms in the freeze package.
4838 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4840 * sem.adb (Walk_Library_Units): Check instantiations first.
4842 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
4843 private primitive if it is a function with a controlling result that is
4844 a type extension with progenitors.
4846 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
4847 a primitive operation of a synchronized tagged type that has a
4850 2009-06-20 Thomas Quinot <quinot@adacore.com>
4852 * einfo.ads: Fix typo.
4854 2009-06-20 Ed Falis <falis@adacore.com>
4856 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
4858 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4860 * gcc-interface/trans.c (emit_check): Do not wrap up the result
4862 (protect_multiple_eval): Always protect complex expressions.
4864 2009-06-19 Emmanuel Briot <briot@adacore.com>
4866 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
4867 make sure we always return a name ending with a path separator.
4869 2009-06-19 Javier Miranda <miranda@adacore.com>
4871 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
4872 Save and restore the visibility of the parent when installed.
4874 2009-06-19 Jose Ruiz <ruiz@adacore.com>
4876 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
4877 by Common which contains all these fields.
4879 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
4880 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
4881 Remove code duplication in this package by means of calling the
4882 equivalent code in s-taprob.
4884 2009-06-19 Robert Dewar <dewar@adacore.com>
4886 * a-einuoc.ads: Minor reformatting
4888 2009-06-19 Ed Falis <falis@adacore.com>
4890 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
4891 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
4893 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4895 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
4897 2009-06-19 Robert Dewar <dewar@adacore.com>
4899 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
4902 * checks.adb (Determine_Range): Move the test for generic types later.
4904 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
4906 (Eval_Relational_Op): Fold more cases including string compares
4908 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
4911 2009-06-19 Robert Dewar <dewar@adacore.com>
4913 * sem_type.ads, sem_ch12.adb: Minor reformatting
4915 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
4917 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4919 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
4920 primitive operation of a rivate extension whose controlling argument
4921 is an out parameter.
4923 * sem.adb (Walk_Library_Units): exclude generic package declarations
4926 2009-06-19 Thomas Quinot <quinot@adacore.com>
4928 * i-vxwoio.ads: Add comments
4930 2009-06-19 Thomas Quinot <quinot@adacore.com>
4932 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4933 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4934 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
4935 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
4936 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
4937 Thin_Common.Socket_Ioctl.
4938 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
4939 __gnat_socket_ioctl.
4940 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
4941 argument after the file descriptor and request code.
4943 2009-06-19 Robert Dewar <dewar@adacore.com>
4945 * checks.adb: Minor reformatting
4947 2009-06-19 Jose Ruiz <ruiz@adacore.com>
4949 * env.c (__gnat_environ): RTX does not support this functionality.
4951 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4953 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
4954 traverse, to account for front-end inlining and instantiations in a
4955 spec or in the main unit.
4957 2009-06-19 Robert Dewar <dewar@adacore.com>
4959 * checks.adb (Determine_Range): Do not attempt to get range of generic
4962 2009-06-19 Sergey Rybin <rybin@adacore.com>
4964 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
4965 gnatmetric option for generating the schema file for gnatmetric XML
4966 output. Add corresponding VMS qualifier.
4968 2009-06-19 Robert Dewar <dewar@adacore.com>
4970 * g-cgi.adb: Minor reformatting
4972 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4974 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
4975 signal code for SIGFPE and raise Program_Error for SIGILL.
4977 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
4979 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4981 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
4982 generic package if there is a visibility candidate that is declared in
4985 2009-06-18 Olivier Hainque <hainque@adacore.com>
4987 * system-aix64.ads: New file.
4988 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
4989 64bit system.ads for ppc64 multilib variants.
4991 2009-06-16 Robert Dewar <dewar@adacore.com>
4992 Olivier Hainque <hainque@adacore.com>
4994 Relax constraints on Machine_Attribute argument types:
4995 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
4997 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
4998 * gcc-interface/decl.c (prepend_attributes): Accept static
4999 expressions of any type as attribute arguments, not only string
5001 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
5002 the relaxation of the restriction on the Info argument type.
5004 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
5006 * gcc-interface/utils.c (record_builtin_type): Pass location
5007 argument to build_decl.
5008 (create_type_stub_decl): Same.
5009 (create_type_decl): Same.
5010 (create_var_decl_1): Same.
5011 (create_field_decl): Same.
5012 (create_param_decl): Same.
5013 (create_label_decl): Same.
5014 (create_subprog_decl): Same.
5015 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
5016 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
5017 argument to create_artificial_label.
5018 (Loop_Statement_to_gnu): Same.
5019 (Subprogram_Body_to_gnu): Same.
5020 (gnat_gimplify_stmt): Same.
5022 2009-06-11 Richard Henderson <rth@redhat.com>
5024 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
5027 2009-06-11 Ed Schonberg <schonberg@adacore.com>
5029 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
5030 accessibiliy check on access_to_subprogram in the context of an
5031 anonymous access that is not an access parameter.
5033 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
5035 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
5037 2009-06-11 Quentin Ochem <ochem@adacore.com>
5039 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
5040 comments for message handled by GPS.
5042 2009-06-11 Matthew Gingell <gingell@adacore.com>
5044 * adaint.c: Use fopen64 instead of fopen on platforms where we know
5047 2009-06-11 Pascal Obry <obry@adacore.com>
5049 * g-cgi.ads: Fix comment typo.
5051 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
5053 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
5055 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
5056 a reference to the original type for the type of the field of the
5058 (maybe_pad_type): Likewise.
5060 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
5061 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
5062 Pass correctly typed arguments to create_field_decl.
5063 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
5064 case of contrained discriminants as well. Use the padded base type
5065 in the other case as well. Rename temporary variable. Tweak test.
5066 Factor common access pattern. Set GNU_SIZE only once.
5068 2009-06-09 Olivier Hainque <hainque@adacore.com>
5070 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
5071 helper for build_call_alloc_dealloc with arguments to be interpreted
5072 identically. Process the case where a GNAT_PROC to call is provided.
5073 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
5074 and return an allocator for DATA_SIZE bytes aimed at containing a
5075 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
5076 DATA_TYPE alignments greater than what the latter offers.
5077 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
5078 release a DATA_TYPE object designated by DATA_PTR using the
5079 __gnat_free entry point.
5080 (build_call_alloc_dealloc): Expect object data type instead of naked
5081 alignment constraint. Use the new helpers.
5082 (build_allocator): Remove special processing for the super-aligned
5083 case, now handled by build_call_alloc_dealloc. Pass data
5084 type instead of the former alignment argument, as expected by the new
5086 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
5088 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
5089 Remove special processing for the super-aligned case, now handled
5090 by build_call_alloc_dealloc. Pass data type instead of the former
5091 alignment argument, as expected by the new interface.
5093 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
5095 * lib-writ.adb (flag_compare_debug): Import.
5096 (Write_ALI): Skip during -fcompare-debug-second.
5098 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5100 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
5101 adjusting the discriminant nodes in an extension, use the full view
5102 of the parent subtype if it is of a private kind.
5104 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5106 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
5107 _Parent field, if any, to the record before adding the other fields.
5108 <E_Record_Subtype>: Put the _Controller field before the other fields
5109 except for the _Tag or _Parent fields.
5110 (components_to_record): Likewise. Retrieve the _Parent field from the
5113 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5115 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
5116 remove unused parameter and simplify.
5117 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
5118 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
5119 as context for all discriminants. Fix formatting nits.
5120 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
5121 before Discriminant_Constraint. Adjust for above renaming. Do not
5122 set GNU_TYPE more than once.
5123 (elaborate_entity): Test Has_Discriminants on the entity and use
5124 Implementation_Base_Type.
5125 (components_to_record): Rename component_list to gnat_component_list.
5126 Retrieve the _Parent field from the list. Fix nits in comments.
5127 Clarify logic in loop. Pass correct arguments to create_field_decl.
5129 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
5131 * gcc-interface/Make-lang.in: Fix formatting.
5133 2009-06-01 Olivier Hainque <hainque@adacore.com>
5134 Eric Botcazou <ebotcazou@adacore.com>
5136 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
5137 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
5138 on the result if at least one of the input fields couldn't be output
5139 as a static constant any more.
5141 2009-06-01 Olivier Hainque <hainque@adacore.com>
5142 Eric Botcazou <ebotcazou@adacore.com>
5144 * gcc-interface/utils2.c (gnat_build_constructor): Factor
5145 out code. Use initializer_constant_valid_for_bitfield_p and
5146 CONSTRUCTOR_BITFIELD_P for bit-fields.
5148 2009-05-26 Ian Lance Taylor <iant@google.com>
5150 * gcc-interface/Makefile.in (COMPILER): Define.
5151 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
5152 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
5153 (seh_init.o, tracebak.o): Likewise.
5154 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
5155 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
5156 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
5157 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
5158 (ada/utils2.o): Likewise.
5160 2009-05-24 Olivier Hainque <hainque@adacore.com>
5162 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
5163 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
5164 Add -auxbase variants to the list of recognized internal switches.
5165 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
5167 * lib.ads: Make comment on internal GCC switches more general.
5168 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
5171 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5173 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
5175 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5177 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
5180 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5182 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
5183 original type because of the alignment when there is an address clause.
5185 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
5187 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
5188 discriminants affect the shape of the subtype, retrieve the GCC type
5189 directly from the original field if the GNAT types for the field and
5190 the original field are the same.
5192 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
5194 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
5196 (TYPE_RM_VALUES): Likewise.
5197 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
5198 (SET_TYPE_RM_SIZE): New macro.
5199 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
5200 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
5201 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
5202 * gcc-interface/gigi.h (create_range_type): Declare.
5203 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
5204 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
5205 <E_Signed_Integer_Subtype>: Build a regular integer type first and
5206 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5207 <E_Floating_Point_Subtype>: Build a regular floating-point type first
5208 and then set the RM bounds.
5209 <E_Array_Type>: Use create_range_type instead of build_range_type.
5210 <E_Array_Subtype>: Build a regular integer type first and then set
5211 the RM bounds for the extra subtype.
5212 <E_String_Literal_Subtype>: Use create_range_type instead of
5214 <all>: Set the RM bounds for enumeration types and the GCC bounds for
5215 floating-point types.
5216 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
5217 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
5218 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5219 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
5220 types and with RM bounds for subtypes.
5221 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
5222 (gnat_print_type) <REAL_TYPE>: New case.
5223 <ENUMERAL_TYPE>: Fall through to above case.
5224 (gnat_get_subrange_bounds): New function.
5225 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
5226 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
5227 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
5228 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
5229 (create_range_type): New function.
5230 (create_param_decl): Build a regular integer type first and then set
5231 the RM bounds for the extra subtype.
5232 (unchecked_convert): Remove kludge for 'Valid.
5233 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
5234 the index to sizetype instead of TYPE_DOMAIN.
5236 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
5238 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
5239 parameter and move check for static expression to...
5240 (elaborate_expression): ...here. Adjust call to above function.
5241 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
5242 in calls to elaborate_expression.
5243 (elaborate_entity): Likewise.
5244 (substitution_list): Likewise.
5245 (maybe_variable): Fix formatting.
5246 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
5248 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
5250 2009-05-07 Arnaud Charlet <charlet@adacore.com>
5252 * gcc-interface/Make-lang.in: Update dependencies.
5254 2009-05-06 Laurent GUERBY <laurent@guerby.net>
5256 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
5257 Define sa_handler_pos.
5258 * s-osinte-linux.ads: Use it.
5259 * s-linux-mipsel.ads: New.
5260 * system-linux-mips64el.ads: New.
5261 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
5264 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5266 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
5267 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
5268 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
5269 (Tagged_Type_Expansion): New flag.
5270 Replace use of VM_Target related to tagged types expansion by
5271 Tagged_Type_Expansion, since tagged type expansion is not necessarily
5272 linked to VM targets.
5274 2009-05-06 Robert Dewar <dewar@adacore.com>
5276 * sem_attr.adb: Add processing for Standard'Compiler_Version
5278 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
5280 (Expr_First_Char): Add ??? comment that paren skipping needs work
5281 (Expr_Last_Char): Add ??? comment that paren skipping needs work
5283 * exp_attr.adb: Add processing for Compiler_Version
5285 * sem_attr.adb: New attribute Compiler_Version
5287 * snames.ads-tmpl: Add entries for Compiler_Version attribute
5289 * gnat_rm.texi: Document Compiler_Version attribute
5291 2009-05-06 Robert Dewar <dewar@adacore.com>
5293 * errout.adb: Minor reformatting
5295 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
5296 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
5297 styleg.adb: Add stylized comments to error messages that are included
5298 in the codefix circuitry of IDE's such as GPS.
5300 2009-05-06 Sergey Rybin <rybin@adacore.com>
5302 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
5303 new form of the rule parameter that allows to specify the suffix for
5304 access-to-access type names.
5306 2009-05-06 Robert Dewar <dewar@adacore.com>
5308 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
5309 out parameter assigned when exception handlers are present.
5311 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
5312 assignments on exit.
5314 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
5315 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
5316 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
5317 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
5318 messages that are included in the codefix circuitry of IDE's such as
5321 * sinput.ads, sinput.adb (Expr_First_Char): New function
5322 (Expr_Last_Char): New function
5324 2009-05-06 Sergey Rybin <rybin@adacore.com>
5326 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
5327 Add formal definition for extra exit point metric
5329 2009-05-06 Pascal Obry <obry@adacore.com>
5331 * adaint.c: Support for setting attributes on unicode filename on
5334 2009-05-06 Robert Dewar <dewar@adacore.com>
5336 * sem_warn.adb: Minor reformatting
5338 2009-05-06 Javier Miranda <miranda@adacore.com>
5340 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
5341 not have discriminants or components with default expressions.
5342 (Analyze_Pragma): For pragma CPP_Class check that imported types
5343 have no discriminants and components have no default expression.
5345 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
5346 class-wide types in the expression of a record component association.
5348 2009-05-06 Sergey Rybin <rybin@adacore.com>
5350 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
5352 * gnat_ugn.texi: Add description for the new extra exit points metric
5353 (gnatmetric section).
5355 2009-05-06 Robert Dewar <dewar@adacore.com>
5357 * s-fileio.adb: Minor comment update
5359 * sem_ch8.adb: Minor reformatting
5361 * exp_ch3.adb: Update comments.
5363 2009-05-06 Tristan Gingold <gingold@adacore.com>
5365 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
5367 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5369 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
5370 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
5372 * gcc-interface/Make-lang.in: Update dependencies
5374 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5376 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
5377 change. The context clause of a generic instance declaration must be
5378 preserved until the end of the compilation, because it may have to be
5379 installed/removed repeatedly.
5380 The latest change to sem.adb ensures that the context of both spec and
5381 body of an instance is traversed before the instance itself, making
5382 this patch redundant.
5384 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5386 * sem_aggr.adb: Fix typo.
5388 2009-05-06 Thomas Quinot <quinot@adacore.com>
5390 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
5391 declaration, do not adjust if the declaration is to be rewritten into
5394 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5396 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
5399 2009-05-06 Bob Duff <duff@adacore.com>
5401 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
5402 otherwise the compiler would be allowed to optimize away the cleanup
5405 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5407 * gnat_ugn.texi: Fix typo.
5409 2009-05-06 Thomas Quinot <quinot@adacore.com>
5411 * g-debuti.adb: Minor reformatting
5413 * exp_attr.adb: Minor reformatting
5415 2009-05-06 Robert Dewar <dewar@adacore.com>
5417 * sem_aggr.adb: Minor reformatting.
5419 * g-socthi-vms.adb: Minor reformatting
5421 2009-05-06 Bob Duff <duff@adacore.com>
5423 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
5424 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
5426 2009-05-06 Bob Duff <duff@adacore.com>
5428 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
5431 2009-05-06 Javier Miranda <miranda@adacore.com>
5433 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
5434 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
5435 extension aggregates.
5436 (Resolve_Record_Aggregate): Add support for C++ constructors in
5437 extension aggregates.
5439 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
5440 constructors in extension aggregates.
5442 2009-05-06 Robert Dewar <dewar@adacore.com>
5444 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
5447 2009-05-06 Thomas Quinot <quinot@adacore.com>
5449 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
5450 packed type, since on OpenVMS, struct msghdr is packed.
5452 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5454 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5455 call returning an unconstrained composite value, create the proper
5456 subtype for it, as is done for object dclarations with unconstrained
5457 nominal subtypes. Perform this transformation regarless of whether
5458 call comes from source.
5460 2009-05-06 Robert Dewar <dewar@adacore.com>
5462 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
5466 Add documentation for pragma Implicit_Packing applied to record
5469 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5471 * sem.adb (Walk_Library_Items): Place all with_clauses of an
5472 instantiation on the spec, because late instance bodies may generate
5473 with_clauses for the instance body but are inserted in the instance
5476 2009-05-06 Emmanuel Briot <briot@adacore.com>
5478 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
5479 support for returning the directory even if it doesn't exist. This is
5480 used for the object directory, since we are always setting it to a
5481 non-null value, and we should set it to an absolute name rather than a
5482 relative name for the sake of external tools that might depend on it.
5483 (Check_Library_Attributes): When Project.Library_Dir is known, check
5484 that the directory exists.
5486 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5488 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
5489 reference is an implicit dereference, do not freeze the designated type
5490 if within a default expression or when preanalyzing a pre/postcondtion.
5492 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5494 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5495 call returning an unconstrained composite value, create the proper
5496 subtype for it, as is done for object dclarations with unconstrained
5499 2009-05-06 Robert Dewar <dewar@adacore.com>
5501 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
5504 * freeze.adb: Minor reformatting
5506 2009-05-06 Thomas Quinot <quinot@adacore.com>
5508 * sem_ch3.adb (Access_Type_Declaration): An access type whose
5509 designated type is a limited view from a limited with clause (flagged
5510 From_With_Type) is not itself such a limited view.
5512 2009-05-06 Emmanuel Briot <briot@adacore.com>
5514 * prj-nmsc.adb: Remove unused variable.
5516 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
5517 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
5518 makeutl.ads, since not all users of prj.ads need this.
5520 2009-05-06 Javier Miranda <miranda@adacore.com>
5522 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
5523 constructor in case of aggregates whose type is a CPP_Class type.
5525 2009-05-06 Robert Dewar <dewar@adacore.com>
5527 * sem_ch13.adb: Minor comment additions
5529 * osint.adb: Minor reformatting
5531 2009-05-06 Pascal Obry <obry@adacore.com>
5533 * initialize.c: On Windows, keep full pathname to expanded command
5536 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5538 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
5539 an aggregate with box default is of a discriminated private type, do
5540 not build a subaggregate for it.
5541 A proper call to the initialization procedure is generated for it.
5543 2009-05-06 Thomas Quinot <quinot@adacore.com>
5545 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
5546 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
5547 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
5548 use standard array code for Standard.String.
5549 (Exp_Dist): Bump PolyORB s-parint API version to 3.
5550 (Rtsfind): New entities TA_Std_String, Unbounded_String.
5552 2009-05-06 Robert Dewar <dewar@adacore.com>
5554 * g-comlin.ads: Minor reformatting
5556 * xoscons.adb: Minor reformatting
5558 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5560 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
5561 Underlying_Type before retrieving the type definition for gathering
5562 components, to account for the case where the type is private.
5564 2009-05-06 Tristan Gingold <gingold@adacore.com>
5566 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
5568 2009-05-06 Thomas Quinot <quinot@adacore.com>
5570 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5571 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
5572 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
5573 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
5574 Windows versions): Fix incorrect base
5575 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
5576 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
5577 System.Address for the To parameter instead of a Sockaddr_In_Access, to
5578 achieve independance from AF_INET family, and also to allow this
5579 parameter to be retrieved from a Msghdr for the Windows case where
5580 these routines are used to implement C_Sendmsg and C_Recvmsg.
5582 2009-05-06 Bob Duff <duff@adacore.com>
5584 * g-expect.adb, g-expect.ads: Minor reformatting
5586 * sdefault.ads: Minor comment fix
5588 * g-expect-vms.adb: Minor reformatting
5590 * table.ads, table.adb (Append_All): New convenience procedure for
5591 appending a whole array.
5593 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
5594 box message. Call Osint.Dump_Source_File_Names to print out the file
5595 list, instead of rummaging around in various data structures.
5597 * debug.adb: New switch -gnatd.n, to print source file names as they
5600 * alloc.ads: Add parameters for Osint.File_Name_Chars.
5602 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
5603 out source file names during a "bug box".
5604 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
5605 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
5606 If it's not part of the runtimes, store it for later printing by
5607 Dump_Source_File_Names.
5609 2009-05-06 Javier Miranda <miranda@adacore.com>
5611 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
5612 documentation and add reference to the GNAT user guide for further
5615 2009-05-06 Javier Miranda <miranda@adacore.com>
5617 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
5618 also wrong examples that use extension aggregates.
5620 2009-05-06 Albert Lee <lee@adacore.com>
5622 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
5623 of Msg_Iovlen_T for VMS.
5625 2009-05-04 Laurent GUERBY <laurent@guerby.net>
5628 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
5630 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5632 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
5633 box-defaulted operator in an instantiation, when the type of the
5634 operands is not directly visible.
5636 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5638 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
5639 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
5640 analysis of the ancestor part. Remove prohibition against limited
5641 interpretations of the ancestor expression in the case of Ada 2005.
5642 Revise error message in overloaded case, adding a message to cover
5645 2009-04-29 Thomas Quinot <quinot@adacore.com>
5647 * xoscons.adb: Minor reformatting
5649 2009-04-29 Bob Duff <duff@adacore.com>
5651 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
5652 attribute_definition_clauses for the following attributes when the
5653 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
5654 Storage_Size, Write. Otherwise, we get spurious errors (for example,
5655 missing Read attribute on remote types).
5657 * gnat_ugn.texi: Document the change, and add a stern warning.
5659 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5661 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
5662 disabled not just for the current scope, but for the innermost dynamic
5665 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5667 * gcc-interface/Make-lang.in: Update dependencies
5669 2009-04-29 Vincent Celier <celier@adacore.com>
5671 * prj-part.adb: Minor comment update
5673 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5675 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
5676 box-initialized records with discriminated subcomponents that are
5677 constrained by discriminants of enclosing components. New subsidiary
5678 procedures Add_Discriminant_Values, Propagate_Discriminants.
5680 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5682 * g-socket.adb: Code clean up.
5684 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5686 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
5687 function entity, to cover the case of a parameterless function call
5688 that has not been resolved.
5690 2009-04-29 Robert Dewar <dewar@adacore.com>
5692 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
5693 reformatting and comment updates.
5695 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5697 * gnat_ugn.texi: Update some documentation about interfacing with C++
5698 Mention -fkeep-inline-functions.
5700 * gnat_ugn.texi: Minor edits
5702 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5704 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
5705 for a defaulted component of an enclosing aggregate, inherit the type
5706 from the component declaration of the enclosing type.
5708 2009-04-29 Albert Lee <lee@adacore.com>
5710 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
5711 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
5712 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
5713 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
5714 Relocate the Msghdr record type from GNAT.Sockets.Thin to
5715 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
5716 type for the Msg_Iovlen field.
5718 2009-04-29 Vincent Celier <celier@adacore.com>
5720 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
5721 Source_File_Index_Table entries for the source, to avoid crash when
5724 * gnatcmd.adb (Test_If_Relative_Path): Use
5725 Makeutl.Test_If_Relative_Path.
5727 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
5728 Including_RTS is True.
5730 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
5731 Including_RTS defaulted to False.
5733 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
5736 2009-04-29 Javier Miranda <miranda@adacore.com>
5738 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
5740 2009-04-29 Javier Miranda <miranda@adacore.com>
5742 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
5743 associated with dyamically tagged expressions if the expression
5744 initializing a tagged type corresponds with a non default CPP
5746 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
5747 of limited type objects.
5749 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
5750 when a CPP constructor is called in an assignment. Disable also the
5751 error message associated with dyamically tagged expressions if the
5752 exporession initializing a tagged type corresponds with a non default
5755 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
5756 non-default C++ constructors.
5758 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
5760 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
5761 non-default constructors.
5762 (Init_Proc): Add support for non-default constructors.
5764 * exp_disp.adb (Set_Default_Constructor): Removed.
5765 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
5766 but extending its functionality to handle non-default constructors.
5768 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
5769 constructors. Minor code cleanup removing unrequired label and goto
5772 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
5774 (Build_Init_Statements): Add support for non-default constructors.
5775 (Expand_N_Object_Declaration): Add support for non-default constructors.
5776 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
5777 to Set_CPP_Constructors.
5779 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
5780 non-default constructors.
5781 Required to handle its use in build-in-place statements.
5783 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
5784 pragma for non-default C++ constructors and the new compiler support
5785 that allows the use of these constructors in record components, limited
5786 aggregates, and extended return statements.
5788 2009-04-29 Vincent Celier <celier@adacore.com>
5790 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
5791 project extending an abstract project.
5793 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5795 * targparm.ads: Fix oversight.
5797 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5799 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
5800 derivation when necessary, to find the user-subprogram that is actally
5803 2009-04-29 Robert Dewar <dewar@adacore.com>
5805 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
5808 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5810 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
5811 primitive operation, rather than source line of synchronized type, when
5812 building the wrapper for a primitive operation that overrides an
5813 operation inherited from a progenitor, to improve the error message on
5814 duplicate declarations.
5816 * sem_ch3.adb (Process_Full_View): Use new signature of
5819 2009-04-29 Robert Dewar <dewar@adacore.com>
5821 * prj-nmsc.ads: Minor reformatting
5823 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5825 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
5826 expression on the existing parent If statement.
5828 2009-04-29 Robert Dewar <dewar@adacore.com>
5830 * prj-proc.adb, prj.ads: Minor reformatting
5832 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5834 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
5835 existing parent If statement on the newly created one.
5837 2009-04-29 Emmanuel Briot <briot@adacore.com>
5839 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
5840 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
5841 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
5842 (Set_In_Configuration, In_Configuration): Removed.
5843 Replaced by an extra parameter Is_Config_File in several parameter to
5844 avoid global variables to store the state of the parser.
5846 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5848 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
5849 with_clauses generated for the same unit through rtsfind, and that
5850 appear in the context of different units.
5852 * rtsfind.adb: New attribute First_Implicit_With, component of the
5853 Unit_Record that stores information about a unit loaded through rtsfind.
5855 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5857 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
5858 (other conditions permitting), so that abstract stream subprograms will
5859 be declared for them.
5861 2009-04-29 Bob Duff <duff@adacore.com>
5863 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
5865 * g-expect.ads: Minor comment fixes.
5867 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5869 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
5870 dispatching operation is a body without previous spec, update the list
5871 of primitive operations to ensure that cross-reference information is
5874 2009-04-29 Albert Lee <lee@adacore.com>
5876 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5877 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5878 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
5879 (GNAT.Sockets.Thin.C_Readv,
5880 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
5881 (GNAT.Sockets.Thin.C_Recvmsg,
5882 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
5884 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
5885 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
5887 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5889 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
5890 operation is a body without previous spec, update the list of
5891 primitive operations to ensure that cross-reference information is
5894 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
5895 new compilation unit node for the instance declaration, keep the
5896 context items of the original unit on it, so that the context of the
5897 instance body only holds the context inherited from the generic body.
5899 2009-04-29 Bob Duff <duff@adacore.com>
5901 * sem_res.adb: Minor comment fix.
5903 2009-04-29 Thomas Quinot <quinot@adacore.com>
5905 * sem_elim.adb: Minor reformatting
5907 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5909 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
5910 predefined unit, allow arbitrary number of components in static
5911 aggregate, to ensure that the same level of constant folding applies
5912 for Ada 95 and Ada 05 versions of the file.
5914 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5916 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
5917 information: no need for full scope check.
5918 (Eliminate_Error): Do not emit error in a generic context.
5920 2009-04-29 Ed Falis <falis@adacore.com>
5922 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
5923 VxWorks 653 POS does not support rmdir.
5925 2009-04-29 Matteo Bordin <bordin@adacore.com>
5927 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
5928 results are printed.
5930 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5932 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
5935 2009-04-29 Thomas Quinot <quinot@adacore.com>
5937 * make.adb: Minor reformatting.
5938 Minor code reorganization throughout.
5940 2009-04-29 Matteo Bordin <bordin@adacore.com>
5942 * s-stausa.ads: Changed visibility of type Task_Result: moved to
5943 public part to give application visibility over it.
5944 This is for future improvement and to build a public API on top of it.
5945 Changed record components name of type Task_Result to reflect the new
5948 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
5949 reporting Stack usage.
5951 * gnat_ugn.texi: Update doc of stack usage report.
5953 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
5955 * Makefile.rtl: Add new run-time files.
5957 2009-04-29 Pascal Obry <obry@adacore.com>
5959 * initialize.c: Do not expand quoted arguments.
5961 2009-04-29 Emmanuel Briot <briot@adacore.com>
5963 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
5965 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
5966 Prj.Ultimate_Extending_Project_Of
5968 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5970 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
5971 Amendment type, add the with_clause for Finalization.List_Controller
5972 only if the current context is a package body.
5974 2009-04-29 Thomas Quinot <quinot@adacore.com>
5976 * sem_ch12.adb: Minor reformatting
5978 * sem_aggr.adb: Minor reformatting
5980 * sem_ch6.adb, sem_cat.ads: Minor reformatting
5982 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
5984 2009-04-29 Quentin Ochem <ochem@adacore.com>
5986 * prj.ads (Source_Id): Now general pointer type.
5988 2009-04-29 Thomas Quinot <quinot@adacore.com>
5990 * exp_ch7.adb, rtsfind.adb: Minor reformatting
5992 * sem_res.adb: Minor reformatting
5994 2009-04-29 Thomas Quinot <quinot@adacore.com>
5996 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
5997 operands is static only if it is a predefined concatenation operator.
5999 * sem_util.adb: Minor reformatting
6001 * sem_ch12.adb (Save_References): When propagating semantic information
6002 from generic copy back to generic template, for the case of an
6003 identifier that has been rewritten to an explicit dereference whose
6004 prefix is either an object name or a parameterless funcion call
6005 denoting a global object or function, properly capture the denoted
6006 global entity: perform the corresponding rewriting in the template,
6007 and point the rewritten identifier to the correct global entity (not
6008 to the associated identifier in the generic copy).
6010 2009-04-29 Robert Dewar <dewar@adacore.com>
6012 * rtsfind.adb, prj-env.adb: Minor reformatting
6013 Minor code reorganization
6015 2009-04-29 Emmanuel Briot <briot@adacore.com>
6017 * make.adb: Fix comment
6019 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
6020 is given as argument, as might happen in gnatmake.
6022 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6024 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
6025 an abstract operation of a progenitor is not properly overridden by an
6026 operation of a derived synchronized type.
6028 2009-04-29 Robert Dewar <dewar@adacore.com>
6030 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
6031 prj-proc.adb: Minor reformatting
6032 Minor code reorganization
6034 2009-04-29 Bob Duff <duff@adacore.com>
6036 * exp_ch7.adb (Build_Final_List): For an access type that designates a
6037 Taft Amendment type, if the access type needs finalization, make sure
6038 the implicit with clause for List_Controller occurs on the package spec.
6040 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
6041 with's created for the pseudo-children of Text_IO and friends. In
6042 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
6043 Ada.Text_IO.Integer_IO both with-ing each other.
6045 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
6046 oddball cases when pragma Extend_System is used.
6048 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
6049 the case where a package spec instantiates a generic whose body with's
6050 this package, so Walk_Library_Items won't complain about cyclic with's.
6052 2009-04-29 Emmanuel Briot <briot@adacore.com>
6054 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
6055 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
6056 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
6057 (Project_Id): now a real pointer to Project_Data, instead of an index
6058 into the Projects_Table. This simplifies the API significantly, avoiding
6059 extra lookups in this table and the need to pass the Project_Tree_Ref
6060 parameter in several cases
6062 2009-04-29 Nicolas Setton <setton@adacore.com>
6064 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
6067 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
6069 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
6072 2009-04-24 Robert Dewar <dewar@adacore.com>
6074 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
6075 clean.adb: Minor reformatting.
6076 Minor code reorganization and message improvement.
6078 2009-04-24 Emmanuel Briot <briot@adacore.com>
6080 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
6081 (Alternate_Languages): now implemented as a malloc-ed list rather
6082 than through a table.
6084 2009-04-24 Thomas Quinot <quinot@adacore.com>
6086 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
6087 accurately handle cases such as "lit" & "lit" and
6088 "lit" & static_string_constant
6090 2009-04-24 Emmanuel Briot <briot@adacore.com>
6092 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
6093 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
6094 removed. Lists of projects are now implemented via standard malloc
6095 rather than through the table.
6097 2009-04-24 Thomas Quinot <quinot@adacore.com>
6099 * sem_ch12.adb: Minor reformatting
6101 * g-trasym.adb: Minor reformatting
6103 * exp_ch6.adb: Minor reformatting
6105 2009-04-24 Robert Dewar <dewar@adacore.com>
6107 * layout.adb (Layout_Type): For packed array type, copy unset
6108 size/alignment fields from the referenced Packed_Array_Type.
6110 2009-04-24 Bob Duff <duff@adacore.com>
6112 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
6113 longer needed after sem_ch12 changes.
6115 * sem.adb (Walk_Library_Items): Include with's in some debugging
6118 2009-04-24 Emmanuel Briot <briot@adacore.com>
6120 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
6121 only ever using the Project field.
6123 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6125 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
6126 Body_Required on the generated compilation node. The new node is linked
6127 to its body, but both share the same file, so we do not set this flag
6128 on the new unit so as not to create a spurious dependency on a
6129 non-existent body in the ali file for the instance.
6131 2009-04-24 Robert Dewar <dewar@adacore.com>
6133 * make.adb: Minor reformatting
6135 2009-04-24 Emmanuel Briot <briot@adacore.com>
6137 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
6138 Add_Source): merge some code between those. In particular change where
6139 file normalization is done to avoid a few extra calls to
6140 Canonicalize_File_Name. This also removes the need for passing
6141 Current_Dir in a number of subprograms.
6143 2009-04-24 Bob Duff <duff@adacore.com>
6145 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
6146 False, assign the correct unit to the Cunit field of the new table
6147 entry. We want the spec unit, not the body unit.
6149 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
6150 interface for these.
6151 (Maybe_Add_With): Check whether we're trying to a with on the current
6152 unit, and avoid creating such directly self-referential with clauses.
6153 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
6154 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
6155 and matches existing comments in the spec.
6157 * sem.adb (Walk_Library_Items): Add various special cases to make the
6160 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
6161 instead of Parent (N), for uniformity.
6163 2009-04-24 Robert Dewar <dewar@adacore.com>
6165 * errout.ads: Minor reformatting
6167 2009-04-24 Emmanuel Briot <briot@adacore.com>
6169 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
6170 behavior when the project includes sources from multiple languages
6172 2009-04-24 Vincent Celier <celier@adacore.com>
6174 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
6175 is a language other than Ada declared.
6177 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
6178 Imported_First set to True.
6180 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6182 * sem_res.adb: additional optimization to inhibit creation of
6183 redundant transient scopes.
6185 2009-04-24 Bob Duff <duff@adacore.com>
6187 * rtsfind.ads: Minor comment fix
6189 2009-04-24 Emmanuel Briot <briot@adacore.com>
6191 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
6192 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
6193 basically doing the same work (for explicit or implicit sources).
6194 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
6195 role. Rewritten to share some code (testing that all explicit sources
6196 have been found) between ada_only and multi_language modes.
6198 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
6200 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
6201 for CLI imported types.
6202 (Analyze_Pragma): Allow CIL or Java imported functions returning
6203 access-to-subprogram types.
6205 2009-04-24 Emmanuel Briot <briot@adacore.com>
6207 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
6208 (Project_Data.Dir_Path): field removed, since it can be computed
6209 directly from .Directory, and is needed only once when processing the
6210 project is buildgpr.adb or make.adb
6212 2009-04-24 Robert Dewar <dewar@adacore.com>
6214 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
6215 rtsfind.adb: Minor reformatting.
6216 Minor code reorganization
6218 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6220 * mlib-prj.adb: Use friendlier english identifier.
6222 * gnatcmd.adb, make.adb: Use better english identifiers.
6224 2009-04-24 Robert Dewar <dewar@adacore.com>
6226 * clean.adb: Minor reformatting
6228 2009-04-24 Robert Dewar <dewar@adacore.com>
6230 * einfo.adb (OK_To_Rename): New flag
6232 * einfo.ads (OK_To_Rename): New flag
6234 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
6237 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
6239 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
6242 2009-04-24 Emmanuel Briot <briot@adacore.com>
6244 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
6245 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
6246 field removed. This is not a property of the
6247 project, just a boolean used to traverse the project tree, and storing
6248 it in the structure prevents doing multiple traversal in parallel.
6249 (Project_Data.Checked): also removed, since it was playing the same role
6250 as Seen when we had two nested loops, and this is no longer necessary
6251 (For_All_Imported_Projects): removed, since in fact there was already
6252 the equivalent in For_Every_Project_Imported. The latter was rewritten
6253 to use a local hash table instead of Project_Data.Seen
6254 Various loops were rewritten to use For_Every_Project_Imported, thus
6255 removing the need for Project_Data.Seen. This avoids a lot of code
6258 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6260 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
6261 statements, even though the actual of the call is a concatenation,
6262 because the argument is static, and we want to preserve warning
6263 messages about sequences of code statements that are not marked
6266 * sem_warn.adb: remove obsolete comment about warning being obsolete
6268 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
6269 requeued and the delay has expired while within the accept statement
6270 that executes the requeue, do not perform the requeue and indicate that
6271 the timed call has been aborted.
6273 2009-04-24 Emmanuel Briot <briot@adacore.com>
6275 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6276 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
6277 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
6278 since they can be computed from the above.
6280 2009-04-24 Vincent Celier <celier@adacore.com>
6282 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
6284 * prj-env.adb: Move all global variables to the private part of the
6286 Access these new components instead of the global variables no longer
6288 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
6289 components that were previously global variables.
6291 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
6292 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
6295 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
6296 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
6298 * prj.adb (Initialize): Do not call Prj.Env.Initialize
6299 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
6300 components in the private part of the project tree data.
6302 * prj.ads (Private_Project_Tree_Data): new components moved from
6303 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
6304 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
6305 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
6307 2009-04-24 Vincent Celier <celier@adacore.com>
6309 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
6311 * prj-nmsc.adb (Check_Library): No error for imports by shared library
6312 projects, when --unchecked-shared-lib-imports is used.
6314 2009-04-24 Robert Dewar <dewar@adacore.com>
6316 * sem_ch7.adb: Minor reformatting
6318 2009-04-24 Tristan Gingold <gingold@adacore.com>
6320 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
6323 2009-04-24 Emmanuel Briot <briot@adacore.com>
6325 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
6326 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
6327 (For_All_Imported_Projects): new procedure
6328 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
6329 above rather than duplicating code.
6331 2009-04-24 Emmanuel Briot <briot@adacore.com>
6333 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6334 (Source_Id, Source_Data): use a real list to store sources rather than
6335 using an external table to store the elements. This makes code more
6336 efficient and more readable.
6338 2009-04-24 Emmanuel Briot <briot@adacore.com>
6340 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6341 (Source_Iterator): new type.
6342 This removes the need for having the sources on three different
6343 lists at the project tree, project and language level. They are now
6346 2009-04-24 Emmanuel Briot <briot@adacore.com>
6348 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
6350 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6352 * sem_warn.adb: Add comment on obsolete warning
6354 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6356 * s-tassta.adb (Create_Task): Fix violation of locking rule.
6358 2009-04-24 Emmanuel Briot <briot@adacore.com>
6360 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
6361 to Language_Ptr to better reflect its new implementation.
6362 (Project_Data.First_Languages_Processing): renamed to Languages now
6363 that the field with that name is no longer used
6364 (Project_Data.Languages): removed, no longer used, and duplicates
6365 information already available through First_Language_Processing.
6366 (Prj.Language_Index): now an actual pointer, instead of an index into
6367 a table. This makes the list somewhat more obvious, but more importantly
6368 removes the need to pass a pointer to the project_tree_data in a few
6369 places, and makes accessing the attributes of a languages more
6372 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6373 Thomas Quinot <quinot@adacore.com>
6375 * fe.h (Set_Identifier_Casing): Add const to second parameter.
6376 * gcc-interface/misc.c (internal_error_function): Make copy of return
6377 from pp_formatted_text before assigning BUFFER to it.
6378 (gnat_init): Likewise for main_input_filename and gnat_argv.
6379 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
6381 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6383 * ttypes.ads (Target_Double_Float_Alignment): New variable.
6384 (Target_Double_Scalar_Alignment): Likewise.
6385 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
6386 (Get_Double_Float_Alignment): New imported function.
6387 (Get_Double_Scalar_Alignment): Likewise.
6388 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
6389 the alignment of "double" floating-point types and "double" or larger
6390 scalar types, as parameterized by Target_Double_Float_Alignment and
6391 Target_Double_Scalar_Alignment respectively.
6392 * gcc-interface/gigi.h (double_float_alignment): Declare.
6393 (double_scalar_alignment): Likewise.
6394 (is_double_float_or_array): Likewise.
6395 (is_double_scalar_or_array): Likewise.
6396 (get_target_double_float_alignment): Likewise.
6397 (get_target_double_scalar_alignment): Likewise.
6398 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
6399 (get_target_strict_alignment): ...this.
6400 (get_target_double_float_alignment): New function.
6401 (get_target_double_scalar_alignment): Likewise.
6402 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6403 Test the presence of an alignment clause for under-aligned integer
6404 types. Take into account specific caps for the alignment of "double"
6405 floating-point types and "double" or larger scalar types, as
6406 parameterized by Target_Double_Float_Alignment and
6407 Target_Double_Scalar_Alignment respectively.
6408 (validate_alignment): Likewise.
6409 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
6410 (gigi): Initialize double_float_alignment and double_scalar_alignment.
6411 * gcc-interface/utils.c (double_float_alignment): New global variable.
6412 (double_scalar_alignment): Likewise.
6413 (is_double_float_or_array): New predicate.
6414 (is_double_scalar_or_array): Likewise.
6416 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6418 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
6419 the conditional expression only if it is common to both arms.
6421 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6423 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
6424 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
6425 arguments to build_allocator.
6426 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
6427 Remove code handling special allocator and assert its uselessness.
6429 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6431 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
6432 alignment is specified, do not promote that of the component type
6434 <E_Array_Subtype>: Likewise.
6436 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6438 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
6439 * sinfo.ads (Object Declaration): Likewise.
6440 (Assignment Statement): Likewise.
6441 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
6442 Do not force Is_True_Constant to false on the temporary.
6443 (Freeze_Entity): Do not force Is_True_Constant to false on names on
6444 the RHS of object declarations.
6445 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
6446 New case. Return 1 if the object is atomic.
6447 <N_Assignment_Statement>: Likewise.
6449 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6451 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
6452 For packed array types, make the original array type a parallel type
6453 for the modular type and its JM wrapper if the type is bit-packed.
6454 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
6455 record type for packed array types. Remove kludge.
6457 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6459 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
6460 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6461 Use front-end predicates to compute signedness and precision.
6462 <E_String_Literal_Subtype>: Fold range type.
6463 Make sure to set longest_float_type_node to a scalar type.
6464 (elaborate_entity): Use consistent Constraint_Error spelling.
6465 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
6466 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
6467 output for the modulus, if any.
6468 <ENUMERAL_TYPE>: Likewise for the RM size.
6469 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
6471 * gcc-interface/utils.c (finish_record_type): Really test the alignment
6472 of BLKmode bit-fields to compute their addressability.
6473 (create_index_type): Adjust comments.
6474 (create_param_decl): Create the biased subtype manually.
6475 * gcc-interface/utils2.c (build_component_ref): Use consistent
6476 Constraint_Error spelling.
6478 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6480 * gcc-interface/cuintp.c: Clean up include directives.
6481 * gcc-interface/targtyps.c: Likewise.
6482 * gcc-interface/decl.c: Likewise.
6483 * gcc-interface/misc.c: Likewise.
6484 * gcc-interface/trans.c: Likewise.
6485 * gcc-interface/utils.c: Likewise.
6486 * gcc-interface/utils2.c: Likewise.
6487 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
6489 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6491 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
6492 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
6493 (SET_DECL_LANG_SPECIFIC): Likewise.
6495 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6496 Update comment about use of build_range_type.
6497 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
6498 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
6499 check for other cases of overloading.
6500 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
6501 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
6502 Use size_int in lieu of build_int_cst.
6503 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
6506 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6508 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
6509 type is an enumeral or a boolean type, change it to an integer type
6510 with the same mode and signedness.
6512 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6514 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
6515 for an external constant whose initializer is not absolute.
6517 2009-04-22 Taras Glek <tglek@mozilla.com>
6519 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
6520 * gcc-interface/trans.c: Likewise.
6521 * gcc-interface/utils.c: Likewise.
6523 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6525 * sem_res.adb: Create block around procedure call when actual is a
6528 2009-04-22 Thomas Quinot <quinot@adacore.com>
6530 * s-soflin.ads: Fix typos
6532 2009-04-22 Vincent Celier <celier@adacore.com>
6534 * prj-env.adb: Minor comment change
6536 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
6537 Get_Name_String with No_File.
6539 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
6540 cannot be created even when not in verbose mode.
6542 2009-04-22 Emmanuel Briot <briot@adacore.com>
6544 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
6545 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
6546 Multi_Language modes, to avoid code duplication.
6547 (Project_Data.Include_Language): Removed.
6549 2009-04-22 Vincent Celier <celier@adacore.com>
6551 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
6552 the temporary file cannot be created, indicating the directory when the
6553 creation was attempted.
6555 2009-04-22 Emmanuel Briot <briot@adacore.com>
6557 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
6558 the language names, not their indices.
6560 2009-04-22 Emmanuel Briot <briot@adacore.com>
6562 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
6563 (Source_Data.Language_Name): Field removed.
6565 2009-04-22 Emmanuel Briot <briot@adacore.com>
6567 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
6570 2009-04-22 Emmanuel Briot <briot@adacore.com>
6572 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
6573 separate_suffix to the same value as the body_suffix.
6575 2009-04-22 Robert Dewar <dewar@adacore.com>
6577 * prj.adb: Minor code reorganization
6580 * prj-proc.adb: Minor code reorganization, clean up.
6582 * prj-nmsc.adb: Minor reformatting
6583 Minor code reorganization
6585 * gnat_ugn.texi: Add to doc on strict aliasing
6587 2009-04-22 Pascal Obry <obry@adacore.com>
6589 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
6592 * s-tasini.adb: Minor reformatting.
6594 * s-tassta.adb: Minor reformatting.
6596 2009-04-22 Emmanuel Briot <briot@adacore.com>
6598 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
6599 smaller subprograms.
6600 Renamed to Check_File_Naming_Schemes to avoid confusion with the
6601 other Check_Naming_Schemes functions that plays a totally different
6603 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
6604 extracted from the above. These were partially rewritten to avoid
6605 unnecessary code and temporary variables.
6606 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
6607 and Get_Unit (which for now still exist since they contain mode-specific
6610 2009-04-22 Emmanuel Briot <briot@adacore.com>
6612 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
6613 Remove duplicated code.
6614 (Canonical_Case_File_Name): new subprogram
6615 (Check_And_Normalize_Unit_Names): new subprogram
6616 (Write_Attr): new subprogram
6617 Better sharing of code
6618 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
6619 split Check_Naming and help find duplicated code
6620 (Check_Common): new subprogram, sharing code between ada_only and
6621 multi_language mode.
6622 (Naming_Data.Dot_Repl_Loc): field removed
6624 2009-04-22 Emmanuel Briot <briot@adacore.com>
6626 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
6627 Minor refactoring to reduce the size of
6628 Process_Sources_In_Multi_Language_Mode.
6629 Avoid extra copied of Source_Data, which we found in the past could be
6631 (Mark_Excluded_Sources): new subprogram.
6632 (Remove_Locally_Removed_Files_From_Units): merged into the above
6633 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
6634 and allow better sharing of code between multi_lang and ada_only modes
6635 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
6637 2009-04-22 Emmanuel Briot <briot@adacore.com>
6639 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
6640 Removed, since unused.
6642 2009-04-22 Vincent Celier <celier@adacore.com>
6644 * prj-attr.adb: New single project level attribute
6645 Separate_Run_Path_Options.
6647 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6648 attribute Seperate_Run_Path_Options.
6650 * prj.ads: (Project_Configuration): New Boolean component
6651 Separate_Run_Path_Options, defaulted to False.
6653 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
6655 2009-04-22 Robert Dewar <dewar@adacore.com>
6657 * sem_type.adb: Minor reformatting
6659 * mlib.adb: Minor reformatting
6661 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
6664 2009-04-22 Nicolas Setton <setton@adacore.com>
6666 * link.c: Add flag __gnat_separate_run_path_options.
6668 * mlib.adb (Separate_Run_Path_Options): New subprogram.
6670 * mlib.ads (Separate_Run_Path_Options): Declare.
6672 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
6673 switch per directory, rather than one "rpath" switch listing all
6676 * gnatlink.adb (Process_Binder_File): Likewise.
6678 * make.adb (Gnatmake): Likewise.
6680 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
6682 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
6683 Add a call to Move_Final_List when the target of the assignment is a
6684 return object that needs finalization and the expression is a
6685 controlled build-in-place function.
6687 2009-04-22 Vincent Celier <celier@adacore.com>
6689 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
6690 Including_Libraries set to True.
6692 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6694 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
6695 create a unit table entry for the subprogram declaration created for a
6696 child suprogram body that has no separate specification.
6698 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
6699 subprogram body, call Make_Child_Decl_Unit.
6701 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
6702 table can only be the created specification of a child subprogram body
6703 that is the main unit, which has not been entered in the table yet.
6705 * errout.adb (Output_Messages): Ignore created specification of a
6706 child subprogram body to prevent repeated listing of error messages.
6708 * gnat1drv.adb (gnat1drv): The generated specification for a child
6709 subprogram body does not generate code.
6711 2009-04-22 Arnaud Charlet <charlet@adacore.com>
6713 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
6714 since this unit is now part of bootstrap units, so must use Ada 95
6717 2009-04-22 Thomas Quinot <quinot@adacore.com>
6719 * a-tasatt.adb: Minor reformatting
6721 2009-04-22 Bob Duff <duff@adacore.com>
6723 * s-stalib.ads: Remove "with System;" since we're inside System, so
6726 2009-04-22 Vincent Celier <celier@adacore.com>
6728 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
6729 the source record, as there may be a dependency file even if no object
6732 2009-04-22 Robert Dewar <dewar@adacore.com>
6734 * lib-load.adb: Minor reformatting
6736 * lib-load.ads: Minor reformatting
6738 * sinfo.ads: Minor reformatting
6740 2009-04-22 Bob Duff <duff@adacore.com>
6742 * exp_pakd.adb: Minor comment fixes.
6744 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
6745 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
6746 include units containing instantiations, as well as units that are
6747 generic instantiations.
6749 * sem.adb: Include dependents and corresponding specs/bodies in the
6752 * gcc-interface/Make-lang.in:
6753 sem now depends on s-bitops, because of the packed array of Booleans.
6755 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6757 * gcc-interface/ada-tree.def: Fix formatting nits.
6758 (REGION_STMT): Delete.
6759 (HANDLER_STMT): Likewise.
6760 * gcc-interface/ada-tree.h: Fix formatting nits.
6762 (REGION_STMT_BODY): Likewise.
6763 (REGION_STMT_HANDLE): Likewise.
6764 (REGION_STMT_BLOCK): Likewise.
6765 (HANDLER_STMT_ARG): Likewise.
6766 (HANDLER_STMT_LIST): Likewise.
6767 (HANDLER_STMT_BLOCK): Likewise.
6768 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
6769 (fp_size_to_prec): Likewise.
6770 (largest_move_alignment): Delete.
6771 (gnat_compute_largest_alignment): Likewise.
6773 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6774 Remove redundant code.
6775 <E_Array_Type>: Remove redundant assert.
6776 <E_Array_Subtype>: Exit early from index computation in pathological
6778 Rewrite conditional assignment.
6779 (make_type_from_size): Likewise.
6780 * gcc-interface/misc.c (largest_move_alignment): Delete.
6781 (gnat_finish_incomplete_decl): Likewise.
6782 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
6783 (asm_out_file): Likewise
6784 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
6785 (gnat_dwarf_name): Move around.
6786 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
6787 (gigi): Remove call to gnat_compute_largest_alignment.
6788 * utils.c (create_field_decl): Rewrite conditional assignment.
6791 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6793 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
6794 on entry. Defer common processing for types. Reorder and clean up.
6795 Compute the equivalent GNAT node and the default size for types only.
6796 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
6797 <E_Access_Type>: For an unconstrained designated type, do not pretend
6798 that a dummy type is always made.
6799 <all> Fix nits in comments.
6800 (validate_size): Fix formatting nits and comments.
6801 (set_rm_size): Likewise.
6802 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
6803 passed to TARGET_PROMOTE_PROTOTYPES hook.
6805 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6807 * fe.h (Get_External_Name): Declare.
6808 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
6809 (concat_name): ...this.
6810 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
6811 gnu_entity_name and adjust for above renaming.
6812 <E_Access_Type>: Use create_concat_name to get the name of the various
6813 types associated with unconstrained array types.
6814 (make_aligning_type): Adjust for above renaming.
6815 (maybe_pad_type): Likewise.
6816 (components_to_record): Likewise. Use get_identifier_with_length for
6817 the encoding of the variant.
6818 (get_entity_name): Use get_identifier_with_length.
6819 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
6820 Do not fiddle with Name_Buffer.
6821 (concat_id_with_name): Rename to...
6822 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
6824 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
6827 2009-04-21 Joseph Myers <joseph@codesourcery.com>
6829 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
6832 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6834 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
6836 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6838 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
6839 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
6840 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
6841 Remove useless support code for packed array types and assert its
6843 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
6844 adjust for TYPE_RM_SIZE change.
6845 <all> Fix nits in comments. Use Original_Array_Type accessor instead
6846 of Associated_Node_For_Itype accessor for packed array types.
6847 (make_packable_type): Likewise.
6848 (maybe_pad_type): Likewise.
6849 (set_rm_size): Likewise. Rework conditional statement. Adjust for
6850 TYPE_RM_SIZE change.
6851 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
6852 (rm_size): Fix nits in comments. Rework conditional statements.
6853 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
6855 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
6856 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
6857 appropriate function to initialize the size_type_node. Adjust for
6858 TYPE_RM_SIZE change.
6860 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6862 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
6863 for imported subprograms.
6865 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6867 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
6868 constant objects covered by 13.3(19) volatile.
6870 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6872 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
6873 of dummy fat pointer types to the debug back-end.
6875 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6877 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
6878 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
6879 before wrapping it up in the record type. Do not overwrite the
6880 Ada size of the record type with the Esize.
6882 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6884 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
6885 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
6886 if the conversion is on the LHS of an assignment and a no-op.
6887 <all> Do not convert the result to the result type if the Parent
6888 node is such a conversion.
6890 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6892 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
6893 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
6894 of types with unknown discriminants.
6895 (substitute_in_type): Rewrite and restrict to formal substitutions.
6896 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
6897 (update_pointer_to): Update comment.
6899 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6901 * sem_ch8.adb (Use_One_Package): In an instance, if two
6902 potentially_use_visible and non-overloadable homonyms are available
6903 from the actuals of distinct formal packages, retain the current one,
6904 which was visible in the generic, to prevent spurious visibility
6906 (End_Use_Package): Restore use_visibility when needed.
6908 2009-04-20 Sergey Rybin <rybin@adacore.com>
6910 * gnat_ugn.texi, vms_data.ads: Update doc.
6912 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6914 * gcc-interface/Make-lang.in: Update dependencies
6916 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
6919 2009-04-20 Robert Dewar <dewar@adacore.com>
6921 * checks.ads: Fix documentation of range check handling
6923 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6925 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
6926 a redundant use_type clause.
6928 2009-04-20 Robert Dewar <dewar@adacore.com>
6930 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
6931 this attribute can be evaluated at compile time.
6932 (Eval_Attribute, case Range_Length): Same improvement
6934 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
6936 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6938 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
6939 for better handling of null procedures.
6940 (Check_Overriding_Indicator): Do not emit a warning on a missing
6941 overriding indicator on an operator when the type of which the operator
6942 is a primitive is private.
6944 2009-04-20 Bob Duff <duff@adacore.com>
6946 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
6949 2009-04-20 Robert Dewar <dewar@adacore.com>
6951 * sem_attr.adb: Minor reformatting
6953 * gnatcmd.adb: Minor reformatting
6955 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6957 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
6958 overloaded and one interpretation matches the context, label the
6959 operand with the type of first formal.
6961 2009-04-20 Bob Duff <duff@adacore.com>
6963 * debug.ads: Minor comment fix.
6965 * debug.adb: Minor comment fixes.
6967 2009-04-20 Javier Miranda <miranda@adacore.com>
6969 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
6971 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
6973 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
6974 is expanded into a call to Raise_Exception, avoid passing the
6975 exception-name'identity in runtimes in which this argument
6978 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
6980 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
6981 generated bindings for cil.
6983 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6985 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
6986 discriminants, collect components from the Underlying_Record_View,
6987 which will be used in the expansion of the aggregate into assignments.
6989 * sem_ch3.adb: Do not label derived type with unknown discriminants as
6990 having a private declaration.
6992 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6994 * exp_util.adb (Expand_Subtype_From_Expr): use the
6995 underlying_record_view when available, to create the proper constrained
6996 subtype for an object of a derived type with unknown discriminants.
6998 2009-04-20 Javier Miranda <miranda@adacore.com>
7000 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
7001 formals that have pragma unreferenced.
7003 2009-04-20 Pascal Obry <obry@adacore.com>
7005 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
7006 Remove all calls to To_Lower_If_Case_Insensitive to preserve
7007 the pathname original casing.
7009 2009-04-20 Robert Dewar <dewar@adacore.com>
7011 * g-trasym.adb: Minor reformatting
7013 * s-os_lib.adb: Minor reformatting
7015 * sem.adb: Minor reformatting
7016 Minor code reorganization
7018 * sem_ch3.adb: Minor reformatting
7020 * sem_ch4.adb: Minor reformatting
7022 * sem_ch8.adb: Minor reformatting
7024 * sem_type.adb: Minor reformatting
7026 2009-04-20 Javier Miranda <miranda@adacore.com>
7028 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
7029 generated by derivations of tagged types use the aliased subprogram a
7030 reference to locate their controlling type.
7032 2009-04-20 Tristan Gingold <gingold@adacore.com>
7034 * g-trasym.adb: Set size of result buffer before calling
7037 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7039 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
7040 to a function returning an array can be interpreted as a call with
7041 defaulted parameters whose result is indexed, take into account the
7042 types of all the indices of the array result type.
7044 2009-04-20 Pascal Obry <obry@adacore.com>
7046 * a-direct.adb, s-os_lib.adb: Minor reformatting.
7048 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7050 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
7051 null exclusion qualifiers for object renaming declarations.
7053 2009-04-20 Nicolas Roche <roche@adacore.com>
7055 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
7056 unsigned long long. So compare local_time and utc_time before computing
7059 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7061 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7062 of the Underlying_Record_View before that of the derived type.
7064 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
7065 with unknown discriminants with regard to the parent subtype.
7067 2009-04-20 Bob Duff <duff@adacore.com>
7069 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
7070 that are not included. This is necessary if the main unit is a generic
7073 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
7074 because it doesn't work if -gnatn is used.
7076 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7078 * rtsfind.adb (RTE, RTE_Record_Component): In
7079 Configurable_Run_Time_Mode, do not enable front-end inlining.
7081 2009-04-20 Thomas Quinot <quinot@adacore.com>
7083 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
7084 System.Address_To_Access_Conversions.
7086 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7088 * sem.adb: Guard against ill-formed subunits.
7090 2009-04-20 Bob Duff <duff@adacore.com>
7092 * output.adb (Flush_Buffer): Do not indent blank lines.
7093 (Ignore_Output): New procedure for output suppression.
7095 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7097 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
7098 when it is positive. This avoids a potential constraint error raised
7099 by the conversion to Natural.
7101 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7103 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
7104 involves a target that has a specified address, don't set Forward_OK
7105 and Backward_OK to False if the rhs is an aggregate, since overlap
7108 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7110 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
7111 in an object renaming declaration when the expected type is an
7112 anonymous access type.
7114 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
7115 ambiguity when one interpretation is an anonymous access type and the
7116 other is a named access type, and the context itself is anonymous
7118 2009-04-20 Thomas Quinot <quinot@adacore.com>
7120 * einfo.ads: Minor comment rewording
7122 * sem_aggr.adb: Minor comment rewording
7124 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
7126 2009-04-20 Pascal Obry <obry@adacore.com>
7128 * adaint.c (__gnat_is_readable_file): Check for file existence
7129 when not using ACL (always the case on remote drives).
7131 2009-04-20 Robert Dewar <dewar@adacore.com>
7133 * sinfo.ads: Minor comment fixes
7135 * exp_disp.adb: Minor reformatting
7137 * gnat1drv.adb: Minor reformatting
7139 * output.adb: Minor reformatting
7141 * s-vxwext-kernel.ads: Minor reformatting
7143 * sem.ads: Minor reformatting
7145 * sem.adb: Minor reformatting
7147 * sem_elim.adb: Minor reformatting
7149 * uname.ads: Minor reformatting
7151 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7153 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
7154 a small dope of 4 words to the adjustment to the stack pointer.
7156 2009-04-20 Thomas Quinot <quinot@adacore.com>
7158 * xoscons.adb: generate C header s-oscons.h in
7159 addition to s-oscons.ads.
7161 * socket.c: On VMS, use s-oscons.h.
7163 * sem_ch3.adb: Minor reformatting
7165 * exp_ch9.adb: Minor reformatting
7167 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7169 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
7170 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
7171 (call_to_gnu): Likewise.
7173 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7175 * gcc-interface/trans.c (gigi): Declare the name of the compilation
7176 unit as the first global name at the very beginning.
7178 2009-04-20 Thomas Quinot <quinot@adacore.com>
7180 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7181 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
7182 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
7183 since HP-UX supports neither inet_aton nor inet_pton (altough the
7184 latter is part of the Single UNIX Specification!).
7185 So reorganize code, and share C implementation based on inet_addr(3)
7186 with VMS (instead of having a VMS specific Ada implementation in
7189 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7191 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
7192 to return the object file name saved by Set_Object_Output_File_Name.
7194 2009-04-20 Emmanuel Briot <briot@adacore.com>
7196 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
7197 for the standard command line, when argc has been modified since the
7198 start of the application.
7200 2009-04-20 Thomas Quinot <quinot@adacore.com>
7202 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
7203 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
7205 2009-04-20 Bob Duff <duff@adacore.com>
7207 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
7210 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7212 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
7213 subprogram as Eliminated when source operation is.
7214 (Expand_N_Protected_Type_Declaration): Generate protected and
7215 unprotected specs for the internal operations, even if the source
7216 operation is eliminated.
7218 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7220 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
7221 Predefined_Primitive_Bodies): Do not create the declarations and bodies
7222 of the primitive subprograms associated with dispatching select
7223 statements when the runtime is in configurable mode.
7225 2009-04-20 Ed Falis <falis@adacore.com>
7227 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
7229 2009-04-20 Thomas Quinot <quinot@adacore.com>
7231 * s-oscons-tmplt.c: Add support for generating a dummy version of
7232 s-oscons.ads providing all possible constants.
7234 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
7236 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
7237 ANSI version (not the UNICODE version) of WSAStringToAddress.
7239 2009-04-20 Pascal Obry <obry@adacore.com>
7241 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
7242 allocated for the security descriptor and make sure all
7243 handles are closed before leaving this procedure.
7245 2009-04-20 Javier Miranda <miranda@adacore.com>
7247 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
7248 (Set_Is_Underlying_Record_View): New subprogram
7250 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
7251 private types with unknown discriminants use the underlying record view
7254 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
7255 underlying record view in the full view of private types whose parent
7256 has unknown discriminants.
7257 (Build_Derived_Record_Type): Avoid generating the class-wide entity
7258 associated with an underlying record view.
7259 (Derived_Type_Declaration): Avoid deriving parent primitives in
7260 underlying record views.
7262 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
7263 records with unknown discriminants.
7265 * sem_type.adb (Covers): Handle underlying record views.
7266 (Is_Ancestor): Add support for underlying record views.
7268 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
7269 dispatching call if the type of the target object is tagged and has
7270 unknown discriminants.
7272 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
7273 unknown discriminants.
7275 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
7276 tables for internally built underlying record views.
7278 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
7279 empty list of component associations.
7281 2009-04-20 Thomas Quinot <quinot@adacore.com>
7283 * sem_ch10.adb: Minor reformatting
7285 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7286 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
7287 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
7288 standard inet_pton API (and emulate it on platforms that do not
7290 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
7291 DECC$INET_ADDR, imported in Ada.
7292 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
7293 implementation provided by GNAT runtime.
7294 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
7297 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7299 * gnat_ugn.texi: Add documentation for -fno-ivopts.
7301 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7303 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
7304 with_clause if it is the main unit.
7306 2009-04-20 Thomas Quinot <quinot@adacore.com>
7308 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
7309 (no behaviour change): Use Append instead of Increment_Last followed
7312 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7314 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
7315 declarations of all primitives associated with dispatching asynchronous,
7316 conditional and timed selects when dispaching calls are forbidden and
7317 select statements are not allowed (such as in Ravenscar).
7318 (Predefined_Primitive_Bodies): Ditto for bodies.
7320 * exp_disp.ad (Make_DT): Do not create and populate the
7321 Select_Specific_Data of the dispatch table when dispatching calls are
7322 forbidden and select statements are not allowed (such as in Ravenscar).
7324 2009-04-20 Robert Dewar <dewar@adacore.com>
7326 * a-tifiio.adb: Minor reformatting
7328 2009-04-20 Thomas Quinot <quinot@adacore.com>
7330 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
7331 other C library functions, report *failure* with a zero status, and
7332 success with a non-zero status.
7334 2009-04-20 Bob Duff <duff@adacore.com>
7336 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
7337 (Semantics): After analyzing each unit, Append it to the
7338 Comp_Unit_List, if appropriate.
7340 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
7342 (Gnat1drv): Correct comment regarding Back_End_Mode.
7344 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7346 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
7348 2009-04-20 Thomas Quinot <quinot@adacore.com>
7350 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7351 output.adb, output.ads, s-taprop-hpux-dce.adb,
7352 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
7355 2009-04-20 Thomas Quinot <quinot@adacore.com>
7357 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
7358 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
7359 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
7360 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
7361 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
7362 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
7364 * debug.adb: Fix typo
7366 * gnat_rm.texi: Minor doc fix.
7368 * sem_ch7.adb, freeze.adb: Minor reformatting
7370 2009-04-20 Thomas Quinot <quinot@adacore.com>
7372 * g-socket.ads: Add new constants:
7374 Unspecified_Group_Inet_Addr
7375 All_Hosts_Group_Inet_Addr
7376 All_Routers_Group_Inet_Addr
7378 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
7379 ERANGE (Result too large).
7380 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
7381 propagation of errno to caller.
7383 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7385 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
7386 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
7389 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7391 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
7392 checking for references to eliminated subprograms that should be
7394 (Eliminate_Error_Message): Update comment to say "references" rather
7395 than "calls" (since attribute cases are handled here as well).
7397 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
7398 checking for references to eliminated subprograms that should be
7399 flagged. Add with and use of Sem and Sem_Util.
7401 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
7402 Add with and use of Sem_Elim.
7404 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
7405 applied to eliminated subprograms.
7406 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
7407 eliminated subprograms.
7408 Add with and use of Sem_Elim.
7410 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
7411 to eliminated subprograms, now handled during Resolve_Call.
7412 Remove with and use of Sem_Elim.
7414 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
7415 testing Is_Eliminated, for proper handling of primitive derived from
7416 eliminated subprograms.
7418 2009-04-20 Vincent Celier <celier@adacore.com>
7420 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
7421 has been declared (Library_GCC or Linker'Driver), for the driver name.
7423 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
7424 Linker'Driver is, use Linker'Driver as the shared library linker.
7425 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
7426 Library_GCC is declared.
7427 (Check_Library_Attributes): Set up the shared linker driver: either
7428 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
7431 2009-04-20 Thomas Quinot <quinot@adacore.com>
7433 * g-socket.ads (Send_Socket): Fix misleading comment.
7435 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7437 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
7440 2009-04-20 Geert Bosch <bosch@adacore.com>
7442 * a-tifiio.adb (Put): Avoid generating too many digits for certain
7443 fixed types with smalls that are neither integer or the reciprocal
7446 2009-04-20 Bob Duff <duff@adacore.com>
7448 * uname.ads: Minor comment fix.
7450 * types.ads: Minor comment fix.
7452 2009-04-20 Pascal Obry <obry@adacore.com>
7454 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
7455 avoid warning. At the same time fix a memory leak.
7457 * osint.adb (Get_Libraries_From_Registry): Properly free memory
7458 returned by the above routine.
7460 2009-04-20 Robert Dewar <dewar@adacore.com>
7462 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
7463 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
7464 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
7465 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
7467 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
7469 2009-04-20 Pascal Obry <obry@adacore.com>
7471 * initialize.c (__gnat_initialize): Add braces to kill warning.
7473 * adaint.c: Minor reformatting, remove trailing spaces.
7475 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7477 * gcc-interface/Make-lang.in: Update dependencies.
7479 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7481 * adaint.h (__gnat_lwp_self): Declare on Linux.
7483 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
7485 2009-04-20 Robert Dewar <dewar@adacore.com>
7487 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
7488 front-end part of -fpreserve-control-flow switch.
7490 2009-04-20 Bob Duff <duff@adacore.com>
7492 * rtsfind.adb: Minor comment fix
7494 2009-04-20 Robert Dewar <dewar@adacore.com>
7496 * exp_aggr.adb: Minor reformatting
7497 Minor code reorganization (use Nkind_In)
7499 * g-socket.adb: Minor reformatting
7501 * g-socket.ads: Minor comment fix
7503 * s-auxdec.ads: Minor comment and organization update.
7505 * s-auxdec-vms_64.ads: Minor comment and organization update.
7507 * sem_ch10.adb: Minor addition of ??? comment
7509 * sem_disp.adb: Minor reformatting
7511 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7513 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
7514 list a caller of an inlined subprogram, if the caller itself is not
7517 2009-04-20 Pascal Obry <obry@adacore.com>
7519 * adaint.c: Disable use of ACL on network drives.
7521 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7523 * gnat_ugn.texi: Add examples.
7525 2009-04-20 Thomas Quinot <quinot@adacore.com>
7527 * g-socket.ads (Abort_Selector): Clarify documentation.
7529 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7531 * opt.ads (Inspector_Mode): Update documentation of this flag.
7533 2009-04-20 Thomas Quinot <quinot@adacore.com>
7535 * g-socket.ads: Minor reformatting
7537 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
7538 consider S_resolvLib error codes since we only use the hostLib wrappers.
7540 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7542 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7543 of the Underlying_Record_View after that of the derived type.
7545 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7547 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
7550 2009-04-20 Javier Miranda <miranda@adacore.com>
7552 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
7554 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
7557 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
7560 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
7561 in internally built overriding subprograms.
7563 2009-04-20 Doug Rupp <rupp@adacore.com>
7565 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
7567 * s-auxdec.ads: Likewise
7569 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7571 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
7572 type by an interface.
7574 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
7575 minimze difference in expanded tree when compiled as spec of the main
7576 unit, or as a spec in the context of another unit.
7578 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7580 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
7581 (localtime_tzoff): This routine no longer accepts an actual of type
7583 (UTC_Time_Offset): Remove local variable Secs_TM.
7585 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
7586 actual of type struct tm*. Add local variable of type struct tm for all
7587 targets that provide localtime_r and need to invoke it.
7589 2009-04-20 Thomas Quinot <quinot@adacore.com>
7591 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
7592 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
7593 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
7595 2009-04-20 Robert Dewar <dewar@adacore.com>
7597 * sem_ch3.adb: Minor reformatting
7599 * lib-load.adb: Minor reformatting
7601 * sem_ch4.adb: Minor reformatting
7603 2009-04-20 Robert Dewar <dewar@adacore.com>
7605 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
7606 (equal values => False).
7608 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7610 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
7611 to null procedures can be inlined unconditionally.
7613 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7615 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
7616 non-addressable parameter passed by reference, do not convert the
7617 actual if its type is already the nominal type, unless it is of
7618 self-referential size.
7620 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7622 * gnat_ugn.texi: Fix typos.
7624 2009-04-20 Robert Dewar <dewar@adacore.com>
7626 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
7627 Validate_Unchecked_Warnings to suppress warnings about size or
7628 alignment or extra bits if either type involved has pragma Warnings
7629 (Off) set for the type entity.
7631 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
7633 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
7634 a builtin type and give it a name.
7636 2009-04-17 Diego Novillo <dnovillo@google.com>
7638 * gcc-interface/misc.c (gnat_expand_expr): Remove.
7639 (LANG_HOOKS_EXPAND_EXPR): Remove.
7641 2009-04-17 Robert Dewar <dewar@adacore.com>
7643 * sem_ch3.adb: Minor reformatting
7645 2009-04-17 Pascal Obry <obry@adacore.com>
7647 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
7649 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7651 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
7652 illegal constraints on type derived from formal discrete types.
7654 2009-04-17 Thomas Quinot <quinot@adacore.com>
7658 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7659 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7660 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
7661 g-socket.ads (GNAT.Sockets.Thin.C_Send,
7662 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
7663 Replace calls to send(2) with equivalent sendto(2) calls.
7664 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
7665 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
7666 report an error in that case. Factor code common to the two versions
7667 (datagram and stream) in common routine Stream_Write.
7669 2009-04-17 Robert Dewar <dewar@adacore.com>
7671 * exp_disp.adb: Minor reformatting
7672 Minor code reorganization (use Nkind_In)
7674 * prepcomp.adb: Minor reformatting
7676 * sem_ch3.adb: Minor reformatting
7678 * sem_res.adb: Minor comment addition
7680 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
7683 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
7684 setting Is_Referenced
7686 * types.ads: Minor reformatting
7688 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7690 * gnat_ugn.texi: Initial documentation on binding generator.
7692 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7694 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
7695 type extensions whose parent is a type with unknown discriminants.
7697 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
7698 aggregate has unknown discriminants, use the Underlying_Record_View to
7699 obtain the discriminants of the ancestor part.
7701 * exp_disp.adb (Build_Dispatch_Tables): Types that are
7702 Underlying_Record_Views share the dispatching information of the
7703 original record extension.
7705 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
7706 discriminants, propagate dispach table information to the
7707 Underlying_Record_View.
7709 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
7710 discriminants and declaration is not a completion, generate
7711 Underlying_Record_View to provide proper discriminant information to
7712 the front-end and to gigi.
7714 2009-04-17 Robert Dewar <dewar@adacore.com>
7716 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
7717 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
7718 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
7719 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
7720 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
7721 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
7722 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
7723 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
7724 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
7725 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
7726 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
7727 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
7728 s-conca3.ads: Remove unneeded pragma Warnings
7730 2009-04-17 Robert Dewar <dewar@adacore.com>
7732 * g-moreex.adb: Add comments.
7734 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
7736 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
7739 * prepcomp.adb: Add ??? comment
7741 * a-tasatt.adb: Minor reformatting
7743 * g-trasym-vms-alpha.adb: Add ??? comment
7745 * g-trasym-vms-ia64.adb: Add ??? comment
7747 * xoscons.adb: Minor reformatting
7749 * s-tassta.adb: Minor reformatting
7751 * s-scaval.adb: Add ??? comment
7753 * stand.ads: Minor code clean up (remove junk with of Namet)
7755 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
7756 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
7757 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
7758 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
7759 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
7760 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
7761 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
7762 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
7763 Warnings off pragmas.
7765 2009-04-17 Pascal Obry <obry@adacore.com>
7767 * initialize.c: Fix test for reallocating the arguments array.
7769 2009-04-17 Geert Bosch <bosch@adacore.com>
7771 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
7772 conversion truncate only for decimal fixed point types.
7774 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
7776 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
7779 2009-04-17 Robert Dewar <dewar@adacore.com>
7781 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
7782 Backwards_OK if either operand has an address clause.
7784 2009-04-17 Pascal Obry <obry@adacore.com>
7786 * initialize.c: Code clean up, use realloc.
7788 2009-04-17 Pascal Obry <obry@adacore.com>
7790 * initialize.c: Do not get Unicode command line if Unicode support not
7792 Add support for wildcard expansion for Unicode parameters on Win32.
7794 * mingw32.h: Add missing macros when Unicode support not activated.
7796 2009-04-17 Javier Miranda <miranda@adacore.com>
7798 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
7799 avoid generating code that references the Current_Master
7800 when compiling without tasks.
7802 2009-04-17 Vincent Celier <celier@adacore.com>
7804 * prj-attr.adb: New project level attribute Target
7806 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
7809 * prj.ads (Project_Configuration): New component Target
7811 2009-04-17 Thomas Quinot <quinot@adacore.com>
7813 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
7814 case for the case of an aggregate component, the attach call for the
7815 result is actually needed.
7817 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
7818 an array aggregate must be disabled if the component type requires
7821 * exp_ch3.adb: Minor reformatting
7823 2009-04-17 Bob Duff <duff@adacore.com>
7825 * output.ads (Indent,Outdent): New procedures for indenting the output.
7826 (Write_Char): Correct comment -- LF _is_ allowed.
7828 * output.adb (Indent,Outdent): New procedures for indenting the output.
7829 Keep track of the indentation level, and make sure it doesn't get too
7831 (Flush_Buffer): Insert spaces at the beginning of each line, if
7832 indentation level is nonzero.
7833 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
7835 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
7836 "Next_Col := 1;". Flush_Buffer does that.
7838 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
7839 controlled by the -gnatdc switch. It now occurs on entry/exit to the
7840 relevant analysis routines, and calls Indent/Outdent to make the
7841 indentation reflect the nesting level. Add "helper" routines, since
7842 otherwise lots of "return;" statements would skip the debugging output.
7844 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7846 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
7847 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
7848 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
7850 2009-04-17 Thomas Quinot <quinot@adacore.com>
7852 * exp_aggr.adb: Minor code reorganization, no behaviour change.
7854 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7856 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
7857 clause in a unit that is a package body or a subunit, when the previous
7858 clause appears in a spec or a parent.
7860 2009-04-17 Thomas Quinot <quinot@adacore.com>
7862 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
7864 * exp_ch7.adb: Minor reformatting
7866 2009-04-17 Bob Duff <duff@adacore.com>
7868 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
7869 allocator, check that the expression of the qualified expression obeys
7870 the constraints of the subtype of the qualified expression.
7872 2009-04-17 Thomas Quinot <quinot@adacore.com>
7874 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
7876 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7878 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
7879 aggregate, using context imposed by subtype mark in allocator.
7881 2009-04-17 Pascal Obry <obry@adacore.com>
7883 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
7885 2009-04-17 Nicolas Roche <roche@adacore.com>
7887 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
7890 2009-04-17 Gary Dismukes <dismukes@adacore.com>
7892 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
7893 cover both calls and attribute references ("call" => "reference").
7895 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7897 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
7898 type for which Storage_Size is set to 0 is legal in a pure unit.
7900 2009-04-17 Thomas Quinot <quinot@adacore.com>
7902 * exp_ch7.adb: Minor reformatting
7904 2009-04-17 Robert Dewar <dewar@adacore.com>
7906 * restrict.adb (Check_Restriction_No_Dependence): Don't check
7907 restriction if outside main extended source unit.
7909 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
7910 for parents of child units as well as the child unit itself.
7912 2009-04-17 Bob Duff <duff@adacore.com>
7914 * checks.ads: Minor comment fix
7916 * exp_aggr.ads: Minor comment fix
7918 2009-04-17 Nicolas Roche <roche@adacore.com>
7920 * adaint.c: Improve cross compiler detection and handling.
7922 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
7924 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
7926 2009-04-17 Pascal Obry <obry@adacore.com>
7928 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
7931 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
7932 value when no encoding form paramter is set on Text_IO services.
7934 * adaint.c: CurrentCodePage new variable on Windows.
7935 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7938 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7941 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
7942 environment variable value. Default is UTF-8.
7944 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
7945 fopen and freopen encoding parameter is now set to Unspecified.
7946 The default value is in this case UTF-8 (as it was before) but
7947 use the new macros that convert to/from the code page set
7948 at runtime (CurrentCodePage).
7950 * s-fileio.adb: When no encoding specified use Unspecified value.
7952 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7954 * atree.adb, atree.ads: Remove dead code.
7956 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7958 * gcc-interface/Make-lang.in: Update dependencies.
7960 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7962 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
7963 illegal uses of incomplete types in formal parts and return types.
7965 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
7966 access to subprograms.
7968 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
7969 Taft-amendment types as the return type of an access_to_function type.
7971 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7972 type for access_to_subprograms. The check is performed on package exit.
7974 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7976 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
7978 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
7980 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
7982 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
7983 semantic units, because the handling of itypes in the copied tree
7984 requires semantic information that does not belong in atree.
7986 2009-04-17 Robert Dewar <dewar@adacore.com>
7988 * par-ch6.adb: Minor reformatting
7990 * prj.adb: Minor reformatting
7992 2009-04-17 Gary Dismukes <dismukes@adacore.com>
7994 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
7995 on protected subprogram bodies, so exclude the case where Pf_Flags is
7996 Pf_Decl_Pbod from the error check.
7998 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
7999 indicators on subprograms in protected bodies, and proceed with parsing
8002 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
8003 subprograms from the check for primitiveness on subprograms with
8004 overriding indicators.
8005 (Check_Overriding_Indicator): Include protected subprograms in the
8006 style check for missing overriding indicators.
8008 2009-04-17 Tristan Gingold <gingold@adacore.com>
8010 * init.c: Fix stack checking for x86 Darwin.
8012 2009-04-17 Vincent Celier <celier@adacore.com>
8014 * prj-attr.adb: New project level attribute Object_File_Suffix
8017 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
8019 (Process_Compiler): Process attribute Object_File_Suffix
8021 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
8022 platform suffix, when specified.
8024 * prj.ads (Language_Config): New component Object_File_Suffix,
8025 defaulted to No_Name.
8026 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
8028 * snames.ads-tmpl: New standard name Object_File_Suffix
8030 2009-04-17 Robert Dewar <dewar@adacore.com>
8032 * gnat_rm.texi: Add documentation about No_Streams restriction
8034 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
8035 attributes when checking No_Streams restriction.
8037 2009-04-17 Thomas Quinot <quinot@adacore.com>
8039 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
8041 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
8042 missing calls to RE_Request_Destroy to deallocate request objects after
8045 2009-04-17 Nicolas Setton <setton@adacore.com>
8047 * link.c: Fix support for passing a response file under Darwin.
8049 2009-04-17 Emmanuel Briot <briot@adacore.com>
8051 * prj.adb (Free): new subprogram.
8053 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8055 * sem_ch3.adb: additional initialization on incomplete subtypes.
8057 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
8058 part and one of the formals is an incomplete tagged type, attach to
8059 list of private dependends of the type for later validation.
8061 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
8062 primitive operations of a Taft-amendmment type.
8064 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
8065 type. The check is performed on package exit, possibly after the
8066 subprogram is frozen.
8068 2009-04-17 Vincent Celier <celier@adacore.com>
8070 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
8071 before looking for source directories, but make sure that there are nil
8072 if they are not explicitely declared and there is explicitely no
8073 sources in the project.
8075 2009-04-17 Pascal Obry <obry@adacore.com>
8077 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
8079 * init.c: Fix minor typo and style fix.
8081 2009-04-17 Robert Dewar <dewar@adacore.com>
8083 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
8085 * sem_attr.adb (Analyze_Attribute, case Address): Use
8086 PE_Address_Of_Intrinsic.
8088 * types.ads: Add PE_Address_Of_Intrinsic
8090 * types.h: Add PE_Address_Of_Intrinsic
8092 2009-04-17 Nicolas Setton <setton@adacore.com>
8094 * gcc-interface/Makefile.in: Under darwin, build shared libraries
8095 with install_name starting with "@rpath/".
8097 2009-04-17 Nicolas Setton <setton@adacore.com>
8099 * link.c: Add darwin section
8101 2009-04-16 Robert Dewar <dewar@adacore.com>
8103 * g-pehage.adb: Minor reformatting
8105 * sem_ch12.adb: Minor reformatting
8107 * exp_dist.adb: Minor reformatting
8109 * bindgen.adb: Minor style fixes.
8111 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8113 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
8114 indexed components to the case where the prefix is a static string
8117 2009-04-16 Javier Miranda <miranda@adacore.com>
8119 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
8120 objects avoid any further expansion of the expression initializing the
8123 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8125 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
8126 that hides an outer homograph, make that homograph invisible when
8127 analyzing the actuals, to to prevent illegal direct visibility on it.
8129 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8131 * g-pehage.adb (Initialize): Fix off-by-one error.
8133 2009-04-16 Tristan Gingold <gingold@adacore.com>
8135 * init.c: Detect real stack overflow on Darwin.
8137 * system-darwin-x86.ads: Use stack probing on darwin x86.
8139 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8141 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
8142 take the address of an intrinsic subprogram.
8144 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8146 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
8147 for the targets where GNAT.Traceback.Symbolic is not supported.
8149 2009-04-16 Vincent Celier <celier@adacore.com>
8151 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
8153 * g-trasym.ads: Update comments.
8155 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8157 * tracebak.c (STOP_FRAME): Verify validity of the current address
8158 before dereferencing.
8160 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8162 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
8163 the original location of the index expressions and the index subtypes,
8164 to prevent spurious out-of-scope references in gigi.
8166 2009-04-16 Tristan Gingold <gingold@adacore.com>
8168 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
8169 Add support for stack checking on darwin.
8171 2009-04-16 Vincent Celier <celier@adacore.com>
8173 * prj-attr.adb: New attribute Runtime_Source_Dir
8175 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
8176 attribute Runtime_Source_Dir.
8177 (Check_Naming_Schemes): Give default values to out parameters to avoid
8180 * prj.ads (Language_Config): New component Runtime_Source_Dir
8182 * snames.ads-tmpl: New standard name Runtime_Source_Dir
8184 2009-04-16 Pascal Obry <obry@adacore.com>
8186 * adaint.h, adaint.c (__gnat_rmdir): New routine.
8187 Simple wrapper routines used to convert to proper encoding on
8190 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
8192 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
8195 2009-04-16 Pascal Obry <obry@adacore.com>
8197 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
8199 2009-04-16 Thomas Quinot <quinot@adacore.com>
8201 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
8202 integrated preprocessor.
8204 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
8205 (Initialize): Split into two subprograms, Initialize (to be called
8206 prior to compiler command line processing) and Setup_Hooks (to be called
8207 later on when the first source file is loaded).
8209 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
8210 Add call to Prep.Initialize.
8212 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
8213 to Prep.Setup_Hooks.
8215 2009-04-16 Pascal Obry <obry@adacore.com>
8217 * adaint.h, adaint.c (__gnat_chdir): New routine.
8218 Simple wrapper routines used to convert to proper encoding on
8221 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
8223 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
8225 2009-04-16 Quentin Ochem <ochem@adacore.com>
8227 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
8230 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8232 * a-convec.ads (Is_Empty): Mark inline.
8234 2009-04-16 Nicolas Roche <roche@adacore.com>
8236 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
8238 2009-04-16 Thomas Quinot <quinot@adacore.com>
8240 * prepcomp.adb: Minor reformatting
8242 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8244 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
8245 Access_Subprogram types can also be imported.
8246 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
8249 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8251 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8252 preserve homonym chain when the declaration is rewritten into a
8253 renaming declaration, in order to preserve visibility structure.
8255 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8257 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
8258 taken into account for VM targets.
8260 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8262 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
8264 (Year_Week_In_Year): New routine which contains the original code from
8265 Week_In_Year. Add the missing special case for January 1st falling on
8268 2009-04-16 Thomas Quinot <quinot@adacore.com>
8270 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
8271 actual type, use the base type to build the To_Any function.
8272 (Build_From_Any_Function): Remove junk, useless subtype conversion.
8274 2009-04-16 Thomas Quinot <quinot@adacore.com>
8276 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
8277 restrict.adb: Minor code reorganization (use
8278 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
8280 2009-04-16 Bob Duff <duff@adacore.com>
8282 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
8285 2009-04-16 Thomas Quinot <quinot@adacore.com>
8287 * sem_ch4.adb: Minor reformatting
8289 * adaint.c: Remove junk duplicated code.
8291 * sem_ch3.adb: Minor reformatting
8293 * exp_dist.adb: Minor comment rewording
8295 2009-04-16 Robert Dewar <dewar@adacore.com>
8297 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
8300 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8302 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
8303 usable before calling Add_One_Interp, to resolve spurious ambiguities.
8305 2009-04-16 Robert Dewar <dewar@adacore.com>
8307 * Make-lang.in: Add entries for s-conca?.o
8309 * Makefile.rtl: Add entries for s-conca?
8311 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
8312 of concatenation expansion
8314 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
8315 string cases instead of expanding assignments inline.
8317 * opt.ads (Optimize_Size): New flag
8319 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
8320 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
8321 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
8322 s-conca9.adb, s-conca9.ads: New file.
8324 2009-04-16 Robert Dewar <dewar@adacore.com>
8326 * exp_ch6.adb: Add comments
8328 * rtsfind.ads: Add entries for s-conca? routines
8330 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8332 * gcc-interface/Make-lang.in: Update dependencies.
8334 * gcc-interface/Makefile.in: Update translation for vms.
8336 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8338 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
8339 and made global, to be used when installing parents of a child
8340 instance, to provide mappings for entities declared in formal packages
8341 of ancestor units. Now called from Install_Formal_Packages.
8343 2009-04-16 Doug Rupp <rupp@adacore.com>
8345 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
8346 notation for clarity.
8348 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8349 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
8350 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
8351 (Initialize): Initialize Known_Tasks with Environment task.
8353 * s-taskin.ads (Task_States): Move new states to end for the sake of
8356 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
8358 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8360 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
8361 operation has an inline pragma, propagate the flag to the internal
8362 unprotected subprogram.
8364 2009-04-16 Doug Rupp <rupp@adacore.com>
8366 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
8367 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
8368 s-taprop-hpux-dce.adb, s-taprop-posix.adb
8369 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
8371 * s-taprop-vms.adb (Enter_Task): Likewise.
8372 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
8374 * s-tassta.adb (Activate_Tasks): After task creation set state to
8375 Activating, vice Runnable. Initialize Known_Tasks, moved here from
8376 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
8377 Set state to Runnable after above.
8378 (Task_Wrapper): Set Debug_Event_Run. In exception block set
8379 Debug_Event_Terminated.
8381 * s-taskin.ads (Task_States): Add new states Activiting and
8382 Activator_Delay_Sleep.
8383 (Bit_Array, Debug_Event_Array): New types.
8384 (Global_Task_Debug_Event_Set: New flag.
8385 (Common_ATCB): New field Debug_Events.
8387 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
8389 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
8392 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
8393 Activating and when Acceptor_Delay_Sleep.
8395 * s-tasdeb.ads: Add constants for Debug_Events.
8396 (Debug_Event_Kind_Type): New subtype.
8397 (Signal_Debug_Event): New subprogram.
8399 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
8401 2009-04-16 Thomas Quinot <quinot@adacore.com>
8403 * sem_elim.adb: Minor reformatting
8405 * freeze.adb: Minor reformatting
8407 * exp_ch4.adb: Minor reformatting
8409 2009-04-16 Emmanuel Briot <briot@adacore.com>
8411 * prj-nmsc.adb (Path_Name_Of): fix memory leak
8413 2009-04-16 Robert Dewar <dewar@adacore.com>
8415 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
8417 2009-04-16 Vincent Celier <celier@adacore.com>
8419 * fmap.adb (Initialize): Show the current line when the mapping file
8420 is detected as "incorrectly formatted".
8422 2009-04-16 Robert Dewar <dewar@adacore.com>
8424 * sem_ch12.adb: Minor reformatting
8426 * sem_ch5.adb: Minor comment addition
8428 * sem_util.adb: Minor reformatting
8430 * sinput-p.adb: Minor reformatting
8431 Add missing pragma Warnings (On)
8433 2009-04-16 Ed Falis <falis@adacore.com>
8435 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
8437 2009-04-16 Vincent Celier <celier@adacore.com>
8439 * ali-util.adb: Minor comment spelling error fix
8441 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8443 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
8444 generate an assignment loop in case of overlap.
8446 2009-04-16 Olivier Hainque <hainque@adacore.com>
8448 * gnat_ugn.texi (gnatmem description): Make it explicit that
8449 gnatmem is designed to work in association with static runtime
8452 2009-04-16 Thomas Quinot <quinot@adacore.com>
8454 * sem_type.adb: Minor reformatting
8456 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8458 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
8459 concerning return codes of gettimeofday and return value check.
8461 2009-04-16 Ed Falis <falis@adacore.com>
8463 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
8464 body can be renaming of imported routines.
8466 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8468 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
8471 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8473 * exp_ch9.adb: Comment improvements.
8474 (Build_Entry_Family_Name): Add parentheses around the index of a entry
8477 2009-04-15 Bob Duff <duff@adacore.com>
8479 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
8480 "while X /= null loop" where X is unchanged inside the loop. We were
8481 not warning in this case, because of the pointers -- we feared that the
8482 loop variable could be updated via a pointer, if there are any pointers
8483 around the place. But that is impossible in this case.
8485 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
8486 the case of dereferences. In X.all, X cannot be an l-value. We now
8487 catch that case (and implicit dereferences, too).
8489 2009-04-15 Vincent Celier <celier@adacore.com>
8491 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
8493 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8495 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
8497 (Analyze_Package_Instantiation): If generic unit in child instance is
8498 the same as generic unit in parent instance, look for an outer homonym
8499 to locate the desired generic.
8501 2009-04-15 Bob Duff <duff@adacore.com>
8503 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
8504 warnings unless the loop comes from source, because checking generated
8505 loops is a waste of time, and makes it harder to debug
8506 Check_Infinite_Loop_Warning.
8508 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
8509 tested in the while loop is a renaming, do not warn. Otherwise, we get
8510 false alarms, because it's usually renaming something that we can't
8511 deal with (an indexed component, a global variable, ...).
8513 * gnat_rm.texi: Fix typo
8515 2009-04-15 Thomas Quinot <quinot@adacore.com>
8517 * sem_ch6.adb: Minor reformatting
8519 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8521 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
8522 immediate parent of the controlled function call is a component
8525 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8527 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
8528 corresponding class-wide type is also in use.
8530 2009-04-15 Thomas Quinot <quinot@adacore.com>
8532 * frontend.adb: Minor comment fix
8534 2009-04-15 Robert Dewar <dewar@adacore.com>
8536 * gnatchop.adb (BOM_Length): New global variable
8537 (Write_Unit): Add new parameter Write_BOM
8538 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
8541 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
8543 2009-04-15 Geert Bosch <bosch@adacore.com>
8545 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
8546 (Backend_Overflow_Checks): Set to True.
8548 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8550 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
8551 keyword is given in a record extension.
8553 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8555 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
8556 of a controlled function call in the context of a record aggregate.
8557 This does not apply to array aggregates since the call will be expanded
8560 2009-04-15 Ed Falis <falis@adacore.com>
8562 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
8563 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
8564 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
8565 s-osinte-vxworks* and s-vxwext*.
8567 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8569 * gcc-interface/Make-lang.in: Update dependencies.
8571 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
8574 2009-04-15 Robert Dewar <dewar@adacore.com>
8576 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
8577 of node for location for warning messages.
8579 * gnatchop.adb: Minor reformatting
8581 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8583 * exp_ch6.adb: additional guard for renaming declarations for in
8584 parameters of an array type.
8586 2009-04-15 Robert Dewar <dewar@adacore.com>
8588 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
8589 in case they were rewritten by expander (Force_Evaluation).
8591 * targparm.adb (Get_Target_Parameters): Correct check for
8592 Suppress_Exception_Locations.
8594 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8596 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
8597 inlined is of an array type that is not bit-packed, use a renaming
8598 declaration to capture its value, rather than a constant declaration.
8600 2009-04-15 Robert Dewar <dewar@adacore.com>
8602 * rtsfind.adb: Minor reformatting.
8604 2009-04-15 Emmanuel Briot <briot@adacore.com>
8606 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
8607 Restore, and free the saved context.
8609 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8611 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
8612 for illegal private extension from a synchronized interface parent in
8613 front of check for illegal limited extension so that limited extension
8614 from a synchronized interface will be rejected.
8615 (Check_Ifaces): Check that a private extension that has a synchronized
8616 interface as a progenitor must be explicitly declared synchronized.
8617 Also check that a record extension cannot derive from a synchronized
8620 2009-04-15 Pascal Obry <obry@adacore.com>
8622 * adaint.h (__gnat_unlink): Add spec.
8623 (__gnat_rename): Likewise.
8625 2009-04-15 Vincent Celier <celier@adacore.com>
8627 * prj-nmsc.adb: Minor spelling error corrections in error messages
8629 2009-04-15 Robert Dewar <dewar@adacore.com>
8631 * sinfo.ads: Minor comment update
8633 * opt.ads: Minor comment updates
8635 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
8638 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8640 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
8641 that generates the code needed to update a dispatch table when a
8642 primitive operation is declared with a subprogram body without previous
8643 spec. Insertion of the generated code is responsibility of the caller.
8644 (Make_DT): When building static tables, append the code created by
8645 Register_Primitive to update a secondary table after it has been
8648 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
8650 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
8651 on an overriding operation that implements an interface operation only
8652 if not building static dispatch tables.
8654 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8656 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
8657 does not cause overflow when converted to Duration. Use the safe value
8658 as the maximum allowable time delay..
8660 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
8662 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
8663 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
8664 translated to "-j 2".
8666 2009-04-15 Bob Duff <duff@adacore.com>
8668 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
8669 with_clauses, to avoid code duplication. Change this processing so we
8670 always add a with_clause on the main unit if needed.
8672 2009-04-15 Pascal Obry <obry@adacore.com>
8674 Add support for Win32 native encoding for delete/rename routines.
8676 * adaint.c (__gnat_unlink): New routine.
8677 (__gnat_rename): New routine.
8678 Simple wrapper routines used to convert to proper encoding on
8681 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
8682 call to the C library.
8684 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
8686 2009-04-15 Robert Dewar <dewar@adacore.com>
8688 * s-tassta.adb: Minor reformatting
8690 2009-04-15 Robert Dewar <dewar@adacore.com>
8692 * frontend.adb (Frontend): Set proper default for
8693 Warn_On_Non_Local_Exception.
8695 * opt.ads (Exception_Handler_Encountered): New flag
8696 (No_Warn_On_Non_Local_Exception): New flag
8698 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
8700 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8701 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8703 2009-04-15 Cyrille Comar <comar@adacore.com>
8705 * s-tassta.adb, a-exextr.adb, a-elchha.adb
8706 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
8707 message when exception traces are active since it would generate
8708 redundant information.
8709 (Exception_Traces.Notify_Exception): put message output by a critical
8710 section to avoid unsynchronized output.
8711 (Trace_Unhandled_Exception_In_Task): put message output by a critical
8712 section to avoid unsynchronized output.
8714 2009-04-15 Emmanuel Briot <briot@adacore.com>
8716 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
8717 (Free): New subprogram.
8719 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8721 * a-calend.adb: Add new constant Nanos_In_Four_Years.
8722 (Formatting_Operations.Time_Of): Change the way four year chunks of
8723 nanoseconds are added to the intermediate result.
8725 2009-04-15 Nicolas Setton <setton@adacore.com>
8727 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
8728 does not need to wait for a carriage return.
8730 2009-04-15 Tristan Gingold <gingold@adacore.com>
8732 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
8735 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8737 * freeze.adb (Freeze_Entity): improve error message for improper use of
8739 Diagnose additional illegal uses of incomplete types in formal parts.
8740 appearing in formal parts.
8742 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
8744 2009-04-15 Robert Dewar <dewar@adacore.com>
8746 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
8748 2009-04-15 Nicolas Roche <roche@adacore.com>
8750 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
8753 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
8755 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
8757 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8759 * sem_ch4.adb: improve error message on exponentiation.
8761 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8763 * a-calend.adb: Move constant Epoch_Offset from package
8764 Conversion_Operations to top level.
8765 (Delay_Operations.To_Duration): Define a constant which represents
8766 "end of time" and use it as a guard against very distant delay dates.
8767 Protect the code against overflow when performing the origin shift to
8770 2009-04-15 Robert Dewar <dewar@adacore.com>
8772 * sem_prag.adb: Minor reformatting.
8774 * sem_type.adb: Minor reformatting
8776 2009-04-15 Javier Miranda <miranda@adacore.com>
8778 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
8779 support to check eliminated subprograms.
8781 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
8783 * sem_elim.adb (Set_Eliminated): Add support for elimination of
8784 dispatching subprograms.
8786 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
8787 operations. Initialize with "null" the slots of eliminated dispaching
8789 (Write_DT): Add output for eliminated primitives.
8791 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
8793 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8795 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
8796 the second is redundant, regardless of scopes.
8798 2009-04-15 Vincent Celier <celier@adacore.com>
8800 * prj-nmsc.adb (Get_Directories): Check for sources before checking
8801 the object directory as when there are no sources, they may not be any
8804 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
8805 directory, when there are no exec directory.
8807 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8809 * sem_type.adb (Remove_Conversions): In order to resolve spurious
8810 ambiguities, refine removal of universal interpretations from complex
8811 expressions with literal arguments, when some numeric operators have
8812 been declared abstract.
8814 2009-04-15 Ed Falis <falis@adacore.com>
8816 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
8817 and backward compatibility for targets using probing for stack overflow
8819 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8821 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
8822 after any declaration, including renaming declarations.
8824 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8826 * gcc-interface/Make-lang.in: Update dependencies.
8828 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
8829 Update xenomai target pairs.
8831 2009-04-15 Javier Miranda <miranda@adacore.com>
8833 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
8835 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
8836 functions returning anonymous access to class-wide limited types. Mark
8837 also the containing scope as a task master.
8839 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
8840 limited-withed packages. Required to restore their visibility after
8841 processing packages associated with implicit with-clauses.
8843 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
8844 associated with return statements because this work is now done by
8845 Check_Anonymous_Return.
8846 (Build_Master): Code cleanup.
8848 2009-04-15 Thomas Quinot <quinot@adacore.com>
8850 * sem_warn.ads: Minor reformatting
8852 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8854 * sem_ch3.adb: better error message for illegal interfaces
8856 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
8857 formal is an incomplete type from a limited_with clause.
8859 2009-04-15 Vincent Celier <celier@adacore.com>
8861 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
8862 Externally_Built indicating if the project is externally built. If it
8863 is, and --subdirs is specified, but the subdir does not exist, look
8864 for the specified directory, without the subdir.
8866 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8868 * a-tasatt.adb: Fix typo, plus minor reformatting
8870 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
8872 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
8874 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8876 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
8877 private extension whose parent is a synchronized interface carries an
8878 explicit synchronized keyword.
8880 2009-04-15 Thomas Quinot <quinot@adacore.com>
8882 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
8883 instantiate generic shared object package with the corresponding
8886 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8888 * system-linux-sparc.ads: Remove obsolete entries.
8890 2009-04-15 Thomas Quinot <quinot@adacore.com>
8892 * s-tasuti.ads: Add ??? comment
8894 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8896 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
8897 type even if the designated type comes from a limited_with clause, to
8898 ensure that the symbol for the finalization list of the access type is
8901 2009-04-10 Robert Dewar <dewar@adacore.com>
8903 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
8904 for warning suppression.
8906 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8908 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
8909 identical, there is no redudancy to check.
8911 2009-04-10 Gary Dismukes <dismukes@adacore.com>
8913 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
8914 calls initializing SS_Allocator (which is initialized in following
8916 (Expand_Simple_Function_Return): Add comment about False value for
8917 Comes_From_Source on secondary-stack allocator.
8919 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
8920 (Build_Entry_Name): Add comment.
8922 2009-04-10 Robert Dewar <dewar@adacore.com>
8924 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
8926 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
8927 bound tested, since this is now done more generally in Sem_Res.
8929 * sem_res.adb (Resolve_Comparison_Op): Add call to
8930 Check_Lower_Bound_Tested.
8931 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
8933 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
8934 (Low_Bound_Tested): New name for Low_Bound_Known flag
8936 * exp_ch5.adb: Minor reformatting
8939 Add comments on copying the Comes_From_Source flag for allocators
8942 Add comments on copying the Comes_From_Source flag for allocators
8944 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
8945 Comes_From_Source flag from old allocator to new one.
8947 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8949 * sem_ch6.ads: Address missing documentation query
8951 2009-04-10 Vincent Celier <celier@adacore.com>
8954 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
8955 and Response_File_Switches.
8957 * prj-nmsc.adb (Process_Linker): Process new attributes
8958 Max_Command_Line_Length, Response_File_Format and
8959 Response_File_Switches.
8961 * prj.ads (Response_File_Format): New enumeration type
8962 (Project_Configuration): New componants Max_Command_Line_Length,
8963 Resp_File_Format and Resp_File_Options.
8965 * snames.ads-tmpl: Add new standard names for linking response files
8966 for gprbuild: GNU, None, Object_List, Option_List,
8967 Max_Command_Line_Length, Response_File_Format and
8968 Response_File_Switches.
8970 2009-04-10 Geert Bosch <bosch@adacore.com>
8972 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
8973 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
8974 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
8975 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
8976 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
8977 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
8978 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
8979 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
8980 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
8981 system-vxworks-arm.ads, system-vxworks-m68k.ads,
8982 system-vxworks-mips.ads, system-vxworks-ppc.ads,
8983 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
8984 (Backend_Overflow_Checks): Set to True.
8986 2009-04-10 Thomas Quinot <quinot@adacore.com>
8988 * exp_attr.adb: Minor reformatting
8990 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8992 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
8993 analyze the expression for a postcondition, even if the compiler mode
8996 2009-04-10 Robert Dewar <dewar@adacore.com>
8998 * sem_aux.adb: Minor reformatting
9000 2009-04-10 Ed Falis <falis@adacore.com>
9002 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
9004 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
9006 2009-04-10 Thomas Quinot <quinot@adacore.com>
9008 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
9009 undocumented formal.
9012 * a-direio.ads: Fix typo in comment
9014 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
9015 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
9016 Use uniform phrasing for comment at start of subprogram body.
9018 * xsnamest.adb: Add note to explain why we use specific names for the
9019 newly generated files instead of generating snames.{ads,adb,h} directly
9021 2009-04-10 Sergey Rybin <rybin@adacore.com>
9024 Add qualifier for new gnatstub option '--no-exception'
9027 Add the description of the new gnatstub option '--no-exception'
9029 2009-04-10 Robert Dewar <dewar@adacore.com>
9031 * rtsfind.adb: Minor reformatting
9033 2009-04-10 Thomas Quinot <quinot@adacore.com>
9035 * sem_disp.adb: Minor reformatting.
9036 Add comment pointing to RM clause for the case of warning against a
9037 (failed) attempt at declaring a primitive operation elsewhere than in a
9040 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9042 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
9043 an actual for a previous formal package of the current instance.
9045 2009-04-10 Bob Duff <duff@adacore.com>
9047 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
9048 them first, rather than on the extended main unit.
9050 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9052 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
9053 specification of full view carries a null exclusion indicator, create
9054 an itype for it, to check for conformance with partial view.
9056 2009-04-10 Bob Duff <duff@adacore.com>
9058 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
9060 * rtsfind.adb: Minor comment changes, and remove useless code.
9062 * sinfo.ads: Add ??? comment.
9064 2009-04-10 Vincent Celier <celier@adacore.com>
9066 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
9068 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9070 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
9071 type is a synchronized type, retrieve tag information from the
9072 corresponding record, which has the dispatch table link.
9074 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
9076 * g-comlin.adb (Group_Analysis): Take care of switches that might be
9077 decomposed afterwards, but are present as-is in the command line
9078 configuration, and thus should be kept as-is.
9080 2009-04-10 Robert Dewar <dewar@adacore.com>
9082 * gnat_rm.texi: Document that postconditions are tested on implicit
9085 * sem_aux.adb: Minor reformatting
9087 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9089 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
9092 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
9093 Null_Exclusion_In_Return_Present when an access-to-function type has a
9094 result type with an explicit not null.
9096 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
9097 given on the result type, then create a null-excluding itype for the
9100 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
9101 the case where a null exclusion is imposed on a named access type.
9102 (Analyze_Subprogram_Specification): Push and pop the scope of the
9103 function around the call to Analyze_Return_Type in the case of no
9104 formals, for consistency with handling when formals are present
9105 (Process_Formals does this). Ensures that any itype created for the
9106 return type will be associated with the proper scope.
9108 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
9109 exclusion is given on a generic function's result type, then create a
9110 null-excluding itype for the generic function.
9111 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
9112 for an actual for a formal in object according to the setting on the
9113 formal. Ensures null exclusion checks are done when the association is
9116 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
9117 N_Access_Function_Definition.
9119 * sinfo.adb: Add Get_ and Set_ operations for
9120 Null_Exclusion_In_Return_Present.
9122 2009-04-10 Bob Duff <duff@adacore.com>
9124 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
9125 call to the _Postconditions procedure in the case of implicit returns
9126 from analysis to expansion. This eliminates some duplicated code. Use
9127 the Postcondition_Proc to find the identity of this procedure during
9130 2009-04-10 Robert Dewar <dewar@adacore.com>
9132 * sem_ch6.adb: Minor code clean up.
9134 * einfo.ads, sem_attr.adb: Minor comment fixes.
9136 2009-04-10 Robert Dewar <dewar@adacore.com>
9138 * sem_ch8.adb: Minor reformatting
9140 2009-04-10 Robert Dewar <dewar@adacore.com>
9142 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
9145 * sem_ch6.adb: Minor code clean up.
9147 2009-04-10 Robert Dewar <dewar@adacore.com>
9149 * mlib-tgt-specific-xi.adb: Minor reformatting
9151 2009-04-10 Bob Duff <duff@adacore.com>
9153 * einfo.ads: Minor comment fixes
9155 2009-04-10 Vincent Celier <celier@adacore.com>
9157 * snames.ads-tmpl: Remove names that are no longer used in the
9159 Mark specifically those that are used only in gprbuild
9161 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
9163 * init.c: Adjust EH support code on Alpha/Tru64.
9165 2009-04-10 Bob Duff <duff@adacore.com>
9167 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
9168 procedure on every path that could return implicitly (not via a return
9169 statement) from a procedure.
9171 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9173 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
9174 valid scope for a task declarations and therefore for a master id.
9176 2009-04-10 Robert Dewar <dewar@adacore.com>
9178 * sem_aux.adb: Minor reformatting
9180 2009-04-10 Vincent Celier <celier@adacore.com>
9182 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
9184 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
9185 (Set_Obsolescent_Check): New procedure to change the value of
9186 Obsolescent_Check_Flag.
9188 * scn.ads (Set_Obsolescent_Check): New procedure to control
9191 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
9192 obsolescent features while preprocessing.
9194 2009-04-10 Thomas Quinot <quinot@adacore.com>
9196 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
9197 generated files on all platforms.
9199 2009-04-10 Robert Dewar <dewar@adacore.com>
9201 * sem_aux.adb: Minor reformatting
9203 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9205 * sem_ch3.adb (Access_Definition): Handle properly the case of a
9206 protected function with formals that returns an anonymous access type.
9208 2009-04-10 Thomas Quinot <quinot@adacore.com>
9210 * sem_disp.adb: Minor reformatting
9212 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
9214 * seh_init.c: Do not use the 32-bit specific implementation of
9215 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
9218 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9220 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
9221 a '/' at the end so we better use the complete target name to determine
9222 whether it is a PowerPC 55xx target.
9224 2009-04-10 Thomas Quinot <quinot@adacore.com>
9226 * sem_eval.adb: Minor reformatting
9228 2009-04-10 Thomas Quinot <quinot@adacore.com>
9230 * snames.h, snames.ads, snames.adb: Remove files, now generated from
9233 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
9236 * xsnamest.adb: New file.
9238 * gcc-interface/Make-lang.in: New target for automated generation of
9239 snames.ads, snames.adb and snames.h
9241 2009-04-10 Tristan Gingold <gingold@adacore.com>
9243 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
9244 avoid compile time warnings.
9245 Do not add gcc/config in include search list while compiling the RTS.
9246 Pragma Thread_Local_Storage is available on any target.
9248 2009-04-10 Bob Duff <duff@adacore.com>
9250 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
9252 2009-04-10 Tristan Gingold <gingold@adacore.com>
9254 * init.c: Install signal handler on Darwin.
9256 2009-04-10 Robert Dewar <dewar@adacore.com>
9258 * sem_prag.adb: Minor reformatting
9260 * exp_util.adb (Make_Non_Empty_Check): New function
9261 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
9262 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
9264 2009-04-10 Arnaud Charlet <charlet@adacore.com>
9266 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
9268 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9270 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
9271 tool prefix for AVR and PowerPC 55xx targets.
9273 2009-04-10 Robert Dewar <dewar@adacore.com>
9275 * sem_warn.adb (Within_Postcondition): New function
9276 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
9278 2009-04-10 Robert Dewar <dewar@adacore.com>
9280 * sem_warn.adb: Minor reformatting
9282 * make.adb: Minor reformatting.
9284 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9286 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
9287 entity and the scope is a subprogram, retrieve the Sloc of the
9288 subprogram's body rather than using the sloc of the spec, for better
9289 line-stepping behavior in gdb.
9290 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
9291 controller, use the Sloc of the first declaration of the containing list
9292 rather than that of the node that triggered creation of the list
9295 2009-04-10 Vincent Celier <celier@adacore.com>
9297 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
9298 to avoid gcc warning.
9300 2009-04-10 Robert Dewar <dewar@adacore.com>
9302 * g-comlin.adb: Add ??? comment
9304 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9306 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
9307 unreferenced entities for a package with no visible declarations.
9309 2009-04-10 Robert Dewar <dewar@adacore.com>
9311 * exp_ch9.adb: Minor reformatting
9313 2009-04-10 Thomas Quinot <quinot@adacore.com>
9315 * sem_prag.adb: Minor reformatting
9317 2009-04-10 Vincent Celier <celier@adacore.com>
9320 (Check_Library_Attributes): For a project qualified as a library project
9321 that is not a library project, indicate in the error message which
9322 attributes are missing (Library_Dir and/or Library_Name).
9324 2009-04-10 Bob Duff <duff@adacore.com>
9326 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
9327 generated nodes, because it might confuse various circuits in the FE.
9329 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9331 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
9332 of pragma. It will be recopied and analyzed when used in call to
9335 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
9336 initialization operations and recognize use of it in procedure calls
9339 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
9340 argument, because it may have side-effects.
9342 * exp_ch2.adb: Remove obsolete comments on default functions
9344 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9346 * adaint.c (RTX section): Do for RTX the same thing as we do for
9347 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
9349 2009-04-10 Robert Dewar <dewar@adacore.com>
9351 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
9353 * sem_res.adb (Resolve_Call): Fix test for
9354 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
9355 a non-dynamic scope).
9357 2009-04-10 Robert Dewar <dewar@adacore.com>
9359 * make.adb: Add comment.
9362 2009-04-10 Nicolas Setton <setton@adacore.com>
9364 * s-osprim-darwin.adb: New file.
9366 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
9368 2009-04-10 Thomas Quinot <quinot@adacore.com>
9370 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
9372 2009-04-09 Nick Clifton <nickc@redhat.com>
9374 * adadecode.h: Change copyright header to refer to version
9375 3 of the GNU General Public License with version 3.1 of the
9376 GCC Runtime Library Exception and to point readers at the
9377 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
9379 * 9drpc.adb: Likewise.
9380 * a-assert.adb: Likewise.
9381 * a-astaco.adb: Likewise.
9382 * a-calari.adb: Likewise.
9383 * a-calcon.adb: Likewise.
9384 * a-calcon.ads: Likewise.
9385 * a-caldel.ads: Likewise.
9386 * a-calend-vms.adb: Likewise.
9387 * a-calend-vms.ads: Likewise.
9388 * a-calend.adb: Likewise.
9389 * a-calend.ads: Likewise.
9390 * a-calfor.adb: Likewise.
9391 * a-catizo.adb: Likewise.
9392 * a-cdlili.adb: Likewise.
9393 * a-cdlili.ads: Likewise.
9394 * a-cgaaso.adb: Likewise.
9395 * a-cgaaso.ads: Likewise.
9396 * a-cgarso.adb: Likewise.
9397 * a-cgcaso.adb: Likewise.
9398 * a-chacon.adb: Likewise.
9399 * a-chacon.ads: Likewise.
9400 * a-chahan.adb: Likewise.
9401 * a-chahan.ads: Likewise.
9402 * a-chlat9.ads: Likewise.
9403 * a-chtgke.adb: Likewise.
9404 * a-chtgke.ads: Likewise.
9405 * a-chtgop.adb: Likewise.
9406 * a-chtgop.ads: Likewise.
9407 * a-chzla1.ads: Likewise.
9408 * a-chzla9.ads: Likewise.
9409 * a-cidlli.adb: Likewise.
9410 * a-cidlli.ads: Likewise.
9411 * a-cihama.adb: Likewise.
9412 * a-cihama.ads: Likewise.
9413 * a-cihase.adb: Likewise.
9414 * a-cihase.ads: Likewise.
9415 * a-ciorma.adb: Likewise.
9416 * a-ciorma.ads: Likewise.
9417 * a-ciormu.adb: Likewise.
9418 * a-ciormu.ads: Likewise.
9419 * a-ciorse.adb: Likewise.
9420 * a-ciorse.ads: Likewise.
9421 * a-clrefi.adb: Likewise.
9422 * a-clrefi.ads: Likewise.
9423 * a-cohama.adb: Likewise.
9424 * a-cohama.ads: Likewise.
9425 * a-cohase.adb: Likewise.
9426 * a-cohase.ads: Likewise.
9427 * a-cohata.ads: Likewise.
9428 * a-coinve.adb: Likewise.
9429 * a-coinve.ads: Likewise.
9430 * a-colien.adb: Likewise.
9431 * a-colien.ads: Likewise.
9432 * a-colire.adb: Likewise.
9433 * a-colire.ads: Likewise.
9434 * a-comlin.adb: Likewise.
9435 * a-comlin.ads: Likewise.
9436 * a-convec.adb: Likewise.
9437 * a-convec.ads: Likewise.
9438 * a-coorma.adb: Likewise.
9439 * a-coorma.ads: Likewise.
9440 * a-coormu.adb: Likewise.
9441 * a-coormu.ads: Likewise.
9442 * a-coorse.adb: Likewise.
9443 * a-coorse.ads: Likewise.
9444 * a-coprnu.adb: Likewise.
9445 * a-coprnu.ads: Likewise.
9446 * a-crbltr.ads: Likewise.
9447 * a-crbtgk.adb: Likewise.
9448 * a-crbtgk.ads: Likewise.
9449 * a-crbtgo.adb: Likewise.
9450 * a-crbtgo.ads: Likewise.
9451 * a-crdlli.adb: Likewise.
9452 * a-crdlli.ads: Likewise.
9453 * a-cwila1.ads: Likewise.
9454 * a-cwila9.ads: Likewise.
9455 * a-decima.adb: Likewise.
9456 * a-decima.ads: Likewise.
9457 * a-diocst.adb: Likewise.
9458 * a-diocst.ads: Likewise.
9459 * a-direct.adb: Likewise.
9460 * a-direct.ads: Likewise.
9461 * a-direio.adb: Likewise.
9462 * a-direio.ads: Likewise.
9463 * a-dirval-mingw.adb: Likewise.
9464 * a-dirval-vms.adb: Likewise.
9465 * a-dirval.adb: Likewise.
9466 * a-dirval.ads: Likewise.
9467 * a-dynpri.adb: Likewise.
9468 * a-einuoc.adb: Likewise.
9469 * a-einuoc.ads: Likewise.
9470 * a-elchha.adb: Likewise.
9471 * a-elchha.ads: Likewise.
9472 * a-envvar.adb: Likewise.
9473 * a-excach.adb: Likewise.
9474 * a-except-2005.adb: Likewise.
9475 * a-except-2005.ads: Likewise.
9476 * a-except.adb: Likewise.
9477 * a-except.ads: Likewise.
9478 * a-excpol-abort.adb: Likewise.
9479 * a-excpol.adb: Likewise.
9480 * a-exctra.adb: Likewise.
9481 * a-exctra.ads: Likewise.
9482 * a-exetim-mingw.adb: Likewise.
9483 * a-exetim-mingw.ads: Likewise.
9484 * a-exexda.adb: Likewise.
9485 * a-exexpr-gcc.adb: Likewise.
9486 * a-exexpr.adb: Likewise.
9487 * a-exextr.adb: Likewise.
9488 * a-exstat.adb: Likewise.
9489 * a-filico.adb: Likewise.
9490 * a-filico.ads: Likewise.
9491 * a-finali.adb: Likewise.
9492 * a-finali.ads: Likewise.
9493 * a-interr.ads: Likewise.
9494 * a-intnam-aix.ads: Likewise.
9495 * a-intnam-darwin.ads: Likewise.
9496 * a-intnam-dummy.ads: Likewise.
9497 * a-intnam-freebsd.ads: Likewise.
9498 * a-intnam-hpux.ads: Likewise.
9499 * a-intnam-irix.ads: Likewise.
9500 * a-intnam-linux.ads: Likewise.
9501 * a-intnam-lynxos.ads: Likewise.
9502 * a-intnam-mingw.ads: Likewise.
9503 * a-intnam-rtems.ads: Likewise.
9504 * a-intnam-solaris.ads: Likewise.
9505 * a-intnam-tru64.ads: Likewise.
9506 * a-intnam-vms.ads: Likewise.
9507 * a-intnam-vxworks.ads: Likewise.
9508 * a-intsig.adb: Likewise.
9509 * a-intsig.ads: Likewise.
9510 * a-ngcefu.adb: Likewise.
9511 * a-ngcoar.adb: Likewise.
9512 * a-ngcoty.adb: Likewise.
9513 * a-ngcoty.ads: Likewise.
9514 * a-ngelfu.adb: Likewise.
9515 * a-ngrear.adb: Likewise.
9516 * a-ngrear.ads: Likewise.
9517 * a-nudira.adb: Likewise.
9518 * a-nudira.ads: Likewise.
9519 * a-nuflra.adb: Likewise.
9520 * a-nuflra.ads: Likewise.
9521 * a-numaux-darwin.adb: Likewise.
9522 * a-numaux-darwin.ads: Likewise.
9523 * a-numaux-libc-x86.ads: Likewise.
9524 * a-numaux-vxworks.ads: Likewise.
9525 * a-numaux-x86.adb: Likewise.
9526 * a-numaux-x86.ads: Likewise.
9527 * a-numaux.ads: Likewise.
9528 * a-rbtgso.adb: Likewise.
9529 * a-rbtgso.ads: Likewise.
9530 * a-reatim.ads: Likewise.
9531 * a-retide.adb: Likewise.
9532 * a-retide.ads: Likewise.
9533 * a-rttiev.adb: Likewise.
9534 * a-rttiev.ads: Likewise.
9535 * a-secain.adb: Likewise.
9536 * a-secain.ads: Likewise.
9537 * a-sequio.adb: Likewise.
9538 * a-sequio.ads: Likewise.
9539 * a-shcain.adb: Likewise.
9540 * a-shcain.ads: Likewise.
9541 * a-siocst.adb: Likewise.
9542 * a-siocst.ads: Likewise.
9543 * a-slcain.adb: Likewise.
9544 * a-slcain.ads: Likewise.
9545 * a-ssicst.adb: Likewise.
9546 * a-ssicst.ads: Likewise.
9547 * a-stboha.adb: Likewise.
9548 * a-stmaco.ads: Likewise.
9549 * a-storio.adb: Likewise.
9550 * a-strbou.adb: Likewise.
9551 * a-strbou.ads: Likewise.
9552 * a-stream.ads: Likewise.
9553 * a-strfix.adb: Likewise.
9554 * a-strhas.adb: Likewise.
9555 * a-strmap.adb: Likewise.
9556 * a-strmap.ads: Likewise.
9557 * a-strsea.adb: Likewise.
9558 * a-strsea.ads: Likewise.
9559 * a-strsup.adb: Likewise.
9560 * a-strsup.ads: Likewise.
9561 * a-strunb.adb: Likewise.
9562 * a-strunb.ads: Likewise.
9563 * a-ststio.adb: Likewise.
9564 * a-ststio.ads: Likewise.
9565 * a-stunau.adb: Likewise.
9566 * a-stunau.ads: Likewise.
9567 * a-stunha.adb: Likewise.
9568 * a-stwibo.adb: Likewise.
9569 * a-stwibo.ads: Likewise.
9570 * a-stwifi.adb: Likewise.
9571 * a-stwiha.adb: Likewise.
9572 * a-stwima.adb: Likewise.
9573 * a-stwima.ads: Likewise.
9574 * a-stwise.adb: Likewise.
9575 * a-stwise.ads: Likewise.
9576 * a-stwisu.adb: Likewise.
9577 * a-stwisu.ads: Likewise.
9578 * a-stwiun.adb: Likewise.
9579 * a-stwiun.ads: Likewise.
9580 * a-stzbou.adb: Likewise.
9581 * a-stzbou.ads: Likewise.
9582 * a-stzfix.adb: Likewise.
9583 * a-stzhas.adb: Likewise.
9584 * a-stzmap.adb: Likewise.
9585 * a-stzmap.ads: Likewise.
9586 * a-stzsea.adb: Likewise.
9587 * a-stzsea.ads: Likewise.
9588 * a-stzsup.adb: Likewise.
9589 * a-stzsup.ads: Likewise.
9590 * a-stzunb.adb: Likewise.
9591 * a-stzunb.ads: Likewise.
9592 * a-suteio.adb: Likewise.
9593 * a-suteio.ads: Likewise.
9594 * a-swbwha.adb: Likewise.
9595 * a-swmwco.ads: Likewise.
9596 * a-swunau.adb: Likewise.
9597 * a-swunau.ads: Likewise.
9598 * a-swuwha.adb: Likewise.
9599 * a-swuwti.adb: Likewise.
9600 * a-swuwti.ads: Likewise.
9601 * a-sytaco.adb: Likewise.
9602 * a-sytaco.ads: Likewise.
9603 * a-szbzha.adb: Likewise.
9604 * a-szmzco.ads: Likewise.
9605 * a-szunau.adb: Likewise.
9606 * a-szunau.ads: Likewise.
9607 * a-szuzha.adb: Likewise.
9608 * a-szuzti.adb: Likewise.
9609 * a-szuzti.ads: Likewise.
9610 * a-tags.adb: Likewise.
9611 * a-tags.ads: Likewise.
9612 * a-tasatt.ads: Likewise.
9613 * a-taside.adb: Likewise.
9614 * a-taside.ads: Likewise.
9615 * a-taster.adb: Likewise.
9616 * a-teioed.adb: Likewise.
9617 * a-teioed.ads: Likewise.
9618 * a-textio.adb: Likewise.
9619 * a-textio.ads: Likewise.
9620 * a-tiboio.adb: Likewise.
9621 * a-ticoau.adb: Likewise.
9622 * a-ticoau.ads: Likewise.
9623 * a-ticoio.adb: Likewise.
9624 * a-ticoio.ads: Likewise.
9625 * a-tideau.adb: Likewise.
9626 * a-tideau.ads: Likewise.
9627 * a-tideio.adb: Likewise.
9628 * a-tideio.ads: Likewise.
9629 * a-tienau.adb: Likewise.
9630 * a-tienau.ads: Likewise.
9631 * a-tienio.adb: Likewise.
9632 * a-tienio.ads: Likewise.
9633 * a-tifiio.adb: Likewise.
9634 * a-tifiio.ads: Likewise.
9635 * a-tiflau.adb: Likewise.
9636 * a-tiflau.ads: Likewise.
9637 * a-tiflio.adb: Likewise.
9638 * a-tiflio.ads: Likewise.
9639 * a-tigeau.adb: Likewise.
9640 * a-tigeau.ads: Likewise.
9641 * a-tiinau.adb: Likewise.
9642 * a-tiinau.ads: Likewise.
9643 * a-tiinio.adb: Likewise.
9644 * a-tiinio.ads: Likewise.
9645 * a-timoau.adb: Likewise.
9646 * a-timoau.ads: Likewise.
9647 * a-timoio.adb: Likewise.
9648 * a-timoio.ads: Likewise.
9649 * a-tiocst.adb: Likewise.
9650 * a-tiocst.ads: Likewise.
9651 * a-titest.adb: Likewise.
9652 * a-wichun.adb: Likewise.
9653 * a-wichun.ads: Likewise.
9654 * a-witeio.adb: Likewise.
9655 * a-witeio.ads: Likewise.
9656 * a-wtcoau.adb: Likewise.
9657 * a-wtcoau.ads: Likewise.
9658 * a-wtcoio.adb: Likewise.
9659 * a-wtcstr.adb: Likewise.
9660 * a-wtcstr.ads: Likewise.
9661 * a-wtdeau.adb: Likewise.
9662 * a-wtdeau.ads: Likewise.
9663 * a-wtdeio.adb: Likewise.
9664 * a-wtdeio.ads: Likewise.
9665 * a-wtedit.adb: Likewise.
9666 * a-wtedit.ads: Likewise.
9667 * a-wtenau.adb: Likewise.
9668 * a-wtenau.ads: Likewise.
9669 * a-wtenio.adb: Likewise.
9670 * a-wtenio.ads: Likewise.
9671 * a-wtfiio.adb: Likewise.
9672 * a-wtfiio.ads: Likewise.
9673 * a-wtflau.adb: Likewise.
9674 * a-wtflau.ads: Likewise.
9675 * a-wtflio.adb: Likewise.
9676 * a-wtflio.ads: Likewise.
9677 * a-wtgeau.adb: Likewise.
9678 * a-wtgeau.ads: Likewise.
9679 * a-wtinau.adb: Likewise.
9680 * a-wtinau.ads: Likewise.
9681 * a-wtinio.adb: Likewise.
9682 * a-wtmoau.adb: Likewise.
9683 * a-wtmoau.ads: Likewise.
9684 * a-wtmoio.adb: Likewise.
9685 * a-wtmoio.ads: Likewise.
9686 * a-wttest.adb: Likewise.
9687 * a-wwboio.adb: Likewise.
9688 * a-zchuni.adb: Likewise.
9689 * a-zchuni.ads: Likewise.
9690 * a-ztcoau.adb: Likewise.
9691 * a-ztcoau.ads: Likewise.
9692 * a-ztcoio.adb: Likewise.
9693 * a-ztcstr.adb: Likewise.
9694 * a-ztcstr.ads: Likewise.
9695 * a-ztdeau.adb: Likewise.
9696 * a-ztdeau.ads: Likewise.
9697 * a-ztdeio.adb: Likewise.
9698 * a-ztdeio.ads: Likewise.
9699 * a-ztedit.adb: Likewise.
9700 * a-ztedit.ads: Likewise.
9701 * a-ztenau.adb: Likewise.
9702 * a-ztenau.ads: Likewise.
9703 * a-ztenio.adb: Likewise.
9704 * a-ztenio.ads: Likewise.
9705 * a-ztexio.adb: Likewise.
9706 * a-ztexio.ads: Likewise.
9707 * a-ztfiio.adb: Likewise.
9708 * a-ztfiio.ads: Likewise.
9709 * a-ztflau.adb: Likewise.
9710 * a-ztflau.ads: Likewise.
9711 * a-ztflio.adb: Likewise.
9712 * a-ztflio.ads: Likewise.
9713 * a-ztgeau.adb: Likewise.
9714 * a-ztgeau.ads: Likewise.
9715 * a-ztinau.adb: Likewise.
9716 * a-ztinau.ads: Likewise.
9717 * a-ztinio.adb: Likewise.
9718 * a-ztmoau.adb: Likewise.
9719 * a-ztmoau.ads: Likewise.
9720 * a-ztmoio.adb: Likewise.
9721 * a-ztmoio.ads: Likewise.
9722 * a-zttest.adb: Likewise.
9723 * a-zzboio.adb: Likewise.
9724 * adadecode.c: Likewise.
9725 * adaint.c: Likewise.
9726 * adaint.h: Likewise.
9727 * alloc.ads: Likewise.
9729 * arit64.c: Likewise.
9730 * atree.adb: Likewise.
9731 * atree.ads: Likewise.
9732 * aux-io.c: Likewise.
9734 * casing.adb: Likewise.
9735 * casing.ads: Likewise.
9737 * csets.adb: Likewise.
9738 * csets.ads: Likewise.
9739 * cstreams.c: Likewise.
9740 * ctrl_c.c: Likewise.
9741 * debug.adb: Likewise.
9742 * debug.ads: Likewise.
9743 * dec.ads: Likewise.
9744 * einfo.adb: Likewise.
9745 * einfo.ads: Likewise.
9746 * elists.adb: Likewise.
9747 * elists.ads: Likewise.
9750 * errno.c: Likewise.
9753 * final.c: Likewise.
9754 * fname.adb: Likewise.
9755 * fname.ads: Likewise.
9756 * g-allein.ads: Likewise.
9757 * g-alleve.adb: Likewise.
9758 * g-alleve.ads: Likewise.
9759 * g-altcon.adb: Likewise.
9760 * g-altcon.ads: Likewise.
9761 * g-altive.ads: Likewise.
9762 * g-alveop.adb: Likewise.
9763 * g-alveop.ads: Likewise.
9764 * g-alvety.ads: Likewise.
9765 * g-alvevi.ads: Likewise.
9766 * g-arrspl.adb: Likewise.
9767 * g-arrspl.ads: Likewise.
9768 * g-calend.ads: Likewise.
9769 * g-comlin.adb: Likewise.
9770 * g-debpoo.adb: Likewise.
9771 * g-debpoo.ads: Likewise.
9772 * g-eacodu-vms.adb: Likewise.
9773 * g-eacodu.adb: Likewise.
9774 * g-excact.adb: Likewise.
9775 * g-excact.ads: Likewise.
9776 * g-locfil.adb: Likewise.
9777 * g-os_lib.ads: Likewise.
9778 * g-rannum.adb: Likewise.
9779 * g-rannum.ads: Likewise.
9780 * g-regist.adb: Likewise.
9781 * g-regist.ads: Likewise.
9782 * g-signal.adb: Likewise.
9783 * g-signal.ads: Likewise.
9784 * g-soccon.ads: Likewise.
9785 * g-string.adb: Likewise.
9786 * g-string.ads: Likewise.
9787 * g-strspl.ads: Likewise.
9788 * g-timsta.adb: Likewise.
9789 * g-timsta.ads: Likewise.
9790 * g-trasym-vms-alpha.adb: Likewise.
9791 * g-trasym-vms-ia64.adb: Likewise.
9792 * g-utf_32.adb: Likewise.
9793 * g-utf_32.ads: Likewise.
9794 * g-wistsp.ads: Likewise.
9795 * g-zstspl.ads: Likewise.
9797 * gnatvsn.adb: Likewise.
9798 * gnatvsn.ads: Likewise.
9799 * gsocket.h: Likewise.
9800 * hostparm.ads: Likewise.
9801 * i-c.adb: Likewise.
9802 * i-cexten.ads: Likewise.
9803 * i-cobol.adb: Likewise.
9804 * i-cobol.ads: Likewise.
9805 * i-cpoint.adb: Likewise.
9806 * i-cpoint.ads: Likewise.
9807 * i-cpp.adb: Likewise.
9808 * i-cpp.ads: Likewise.
9809 * i-cstrea-vms.adb: Likewise.
9810 * i-cstrea.adb: Likewise.
9811 * i-cstrea.ads: Likewise.
9812 * i-cstrin.adb: Likewise.
9813 * i-cstrin.ads: Likewise.
9814 * i-forbla-darwin.adb: Likewise.
9815 * i-forbla-unimplemented.ads: Likewise.
9816 * i-forbla.adb: Likewise.
9817 * i-forbla.ads: Likewise.
9818 * i-forlap.ads: Likewise.
9819 * i-fortra.adb: Likewise.
9820 * i-pacdec.adb: Likewise.
9821 * i-pacdec.ads: Likewise.
9822 * i-vxwoio.adb: Likewise.
9823 * i-vxwoio.ads: Likewise.
9824 * indepsw-aix.adb: Likewise.
9825 * indepsw-gnu.adb: Likewise.
9826 * indepsw-mingw.adb: Likewise.
9827 * indepsw.adb: Likewise.
9828 * indepsw.ads: Likewise.
9830 * initialize.c: Likewise.
9831 * interfac.ads: Likewise.
9832 * krunch.adb: Likewise.
9833 * krunch.ads: Likewise.
9834 * lib-list.adb: Likewise.
9835 * lib-sort.adb: Likewise.
9836 * lib.adb: Likewise.
9837 * lib.ads: Likewise.
9839 * math_lib.adb: Likewise.
9840 * memtrack.adb: Likewise.
9841 * mingw32.h: Likewise.
9842 * mkdir.c: Likewise.
9843 * namet-sp.adb: Likewise.
9844 * namet-sp.ads: Likewise.
9845 * namet.adb: Likewise.
9846 * namet.ads: Likewise.
9847 * nlists.adb: Likewise.
9848 * nlists.ads: Likewise.
9849 * opt.adb: Likewise.
9850 * opt.ads: Likewise.
9851 * output.adb: Likewise.
9852 * output.ads: Likewise.
9853 * raise-gcc.c: Likewise.
9854 * raise.c: Likewise.
9855 * raise.h: Likewise.
9856 * repinfo.adb: Likewise.
9857 * repinfo.ads: Likewise.
9858 * repinfo.h: Likewise.
9859 * rident.ads: Likewise.
9860 * s-addima.adb: Likewise.
9861 * s-addima.ads: Likewise.
9862 * s-addope.adb: Likewise.
9863 * s-addope.ads: Likewise.
9864 * s-arit64.adb: Likewise.
9865 * s-arit64.ads: Likewise.
9866 * s-assert.adb: Likewise.
9867 * s-assert.ads: Likewise.
9868 * s-asthan-vms-alpha.adb: Likewise.
9869 * s-asthan.adb: Likewise.
9870 * s-asthan.ads: Likewise.
9871 * s-atacco.adb: Likewise.
9872 * s-atacco.ads: Likewise.
9873 * s-auxdec-empty.adb: Likewise.
9874 * s-auxdec-empty.ads: Likewise.
9875 * s-auxdec-vms_64.ads: Likewise.
9876 * s-auxdec.adb: Likewise.
9877 * s-auxdec.ads: Likewise.
9878 * s-bitops.adb: Likewise.
9879 * s-bitops.ads: Likewise.
9880 * s-boarop.ads: Likewise.
9881 * s-carsi8.adb: Likewise.
9882 * s-carsi8.ads: Likewise.
9883 * s-carun8.adb: Likewise.
9884 * s-carun8.ads: Likewise.
9885 * s-casi16.adb: Likewise.
9886 * s-casi16.ads: Likewise.
9887 * s-casi32.adb: Likewise.
9888 * s-casi32.ads: Likewise.
9889 * s-casi64.adb: Likewise.
9890 * s-casi64.ads: Likewise.
9891 * s-casuti.ads: Likewise.
9892 * s-caun16.adb: Likewise.
9893 * s-caun16.ads: Likewise.
9894 * s-caun32.adb: Likewise.
9895 * s-caun32.ads: Likewise.
9896 * s-caun64.adb: Likewise.
9897 * s-caun64.ads: Likewise.
9898 * s-chepoo.ads: Likewise.
9899 * s-crc32.adb: Likewise.
9900 * s-crc32.ads: Likewise.
9901 * s-crtl.ads: Likewise.
9902 * s-direio.adb: Likewise.
9903 * s-direio.ads: Likewise.
9904 * s-dsaser.ads: Likewise.
9905 * s-except.adb: Likewise.
9906 * s-except.ads: Likewise.
9907 * s-exctab.adb: Likewise.
9908 * s-exctab.ads: Likewise.
9909 * s-exnint.adb: Likewise.
9910 * s-exnint.ads: Likewise.
9911 * s-exnllf.adb: Likewise.
9912 * s-exnllf.ads: Likewise.
9913 * s-exnlli.adb: Likewise.
9914 * s-exnlli.ads: Likewise.
9915 * s-expint.adb: Likewise.
9916 * s-expint.ads: Likewise.
9917 * s-explli.adb: Likewise.
9918 * s-explli.ads: Likewise.
9919 * s-expllu.adb: Likewise.
9920 * s-expllu.ads: Likewise.
9921 * s-expmod.adb: Likewise.
9922 * s-expmod.ads: Likewise.
9923 * s-expuns.adb: Likewise.
9924 * s-expuns.ads: Likewise.
9925 * s-fatflt.ads: Likewise.
9926 * s-fatgen.adb: Likewise.
9927 * s-fatgen.ads: Likewise.
9928 * s-fatlfl.ads: Likewise.
9929 * s-fatllf.ads: Likewise.
9930 * s-fatsfl.ads: Likewise.
9931 * s-ficobl.ads: Likewise.
9932 * s-fileio.adb: Likewise.
9933 * s-fileio.ads: Likewise.
9934 * s-filofl.ads: Likewise.
9935 * s-finimp.adb: Likewise.
9936 * s-finimp.ads: Likewise.
9937 * s-finroo.adb: Likewise.
9938 * s-finroo.ads: Likewise.
9939 * s-fishfl.ads: Likewise.
9940 * s-fore.adb: Likewise.
9941 * s-fore.ads: Likewise.
9942 * s-fvadfl.ads: Likewise.
9943 * s-fvaffl.ads: Likewise.
9944 * s-fvagfl.ads: Likewise.
9945 * s-gearop.adb: Likewise.
9946 * s-gearop.ads: Likewise.
9947 * s-gecobl.adb: Likewise.
9948 * s-gecobl.ads: Likewise.
9949 * s-gecola.adb: Likewise.
9950 * s-gecola.ads: Likewise.
9951 * s-gerebl.adb: Likewise.
9952 * s-gerebl.ads: Likewise.
9953 * s-gerela.adb: Likewise.
9954 * s-gerela.ads: Likewise.
9955 * s-geveop.adb: Likewise.
9956 * s-geveop.ads: Likewise.
9957 * s-gloloc.adb: Likewise.
9958 * s-gloloc.ads: Likewise.
9959 * s-hibaen.ads: Likewise.
9960 * s-imenne.adb: Likewise.
9961 * s-imenne.ads: Likewise.
9962 * s-imgbiu.adb: Likewise.
9963 * s-imgbiu.ads: Likewise.
9964 * s-imgboo.adb: Likewise.
9965 * s-imgboo.ads: Likewise.
9966 * s-imgcha.adb: Likewise.
9967 * s-imgcha.ads: Likewise.
9968 * s-imgdec.adb: Likewise.
9969 * s-imgdec.ads: Likewise.
9970 * s-imgenu.adb: Likewise.
9971 * s-imgenu.ads: Likewise.
9972 * s-imgint.adb: Likewise.
9973 * s-imgint.ads: Likewise.
9974 * s-imgllb.adb: Likewise.
9975 * s-imgllb.ads: Likewise.
9976 * s-imglld.adb: Likewise.
9977 * s-imglld.ads: Likewise.
9978 * s-imglli.adb: Likewise.
9979 * s-imglli.ads: Likewise.
9980 * s-imgllu.adb: Likewise.
9981 * s-imgllu.ads: Likewise.
9982 * s-imgllw.adb: Likewise.
9983 * s-imgllw.ads: Likewise.
9984 * s-imgrea.adb: Likewise.
9985 * s-imgrea.ads: Likewise.
9986 * s-imguns.adb: Likewise.
9987 * s-imguns.ads: Likewise.
9988 * s-imgwch.adb: Likewise.
9989 * s-imgwch.ads: Likewise.
9990 * s-imgwiu.adb: Likewise.
9991 * s-imgwiu.ads: Likewise.
9992 * s-inmaop-dummy.adb: Likewise.
9993 * s-inmaop-vms.adb: Likewise.
9994 * s-inmaop.ads: Likewise.
9995 * s-interr-hwint.adb: Likewise.
9996 * s-interr-sigaction.adb: Likewise.
9997 * s-interr-vms.adb: Likewise.
9998 * s-interr.adb: Likewise.
9999 * s-interr.ads: Likewise.
10000 * s-intman-dummy.adb: Likewise.
10001 * s-intman-mingw.adb: Likewise.
10002 * s-intman-posix.adb: Likewise.
10003 * s-intman-solaris.adb: Likewise.
10004 * s-intman-vms.adb: Likewise.
10005 * s-intman-vms.ads: Likewise.
10006 * s-intman-vxworks.adb: Likewise.
10007 * s-intman-vxworks.ads: Likewise.
10008 * s-intman.ads: Likewise.
10009 * s-io.adb: Likewise.
10010 * s-io.ads: Likewise.
10011 * s-linux-alpha.ads: Likewise.
10012 * s-linux-hppa.ads: Likewise.
10013 * s-linux.ads: Likewise.
10014 * s-maccod.ads: Likewise.
10015 * s-mantis.adb: Likewise.
10016 * s-mantis.ads: Likewise.
10017 * s-mastop-irix.adb: Likewise.
10018 * s-mastop.adb: Likewise.
10019 * s-mastop.ads: Likewise.
10020 * s-memcop.ads: Likewise.
10021 * s-memory-mingw.adb: Likewise.
10022 * s-memory.adb: Likewise.
10023 * s-memory.ads: Likewise.
10024 * s-os_lib.ads: Likewise.
10025 * s-oscons-tmplt.c: Likewise.
10026 * s-osinte-aix.adb: Likewise.
10027 * s-osinte-darwin.adb: Likewise.
10028 * s-osinte-freebsd.adb: Likewise.
10029 * s-osinte-irix.adb: Likewise.
10030 * s-osinte-lynxos-3.adb: Likewise.
10031 * s-osinte-rtems.ads: Likewise.
10032 * s-osinte-tru64.adb: Likewise.
10033 * s-osinte-vxworks-kernel.adb: Likewise.
10034 * s-osinte-vxworks.adb: Likewise.
10035 * s-osprim-mingw.adb: Likewise.
10036 * s-osprim-posix.adb: Likewise.
10037 * s-osprim-solaris.adb: Likewise.
10038 * s-osprim-unix.adb: Likewise.
10039 * s-osprim-vms.adb: Likewise.
10040 * s-osprim-vms.ads: Likewise.
10041 * s-osprim-vxworks.adb: Likewise.
10042 * s-osprim.ads: Likewise.
10043 * s-pack03.adb: Likewise.
10044 * s-pack03.ads: Likewise.
10045 * s-pack05.adb: Likewise.
10046 * s-pack05.ads: Likewise.
10047 * s-pack06.adb: Likewise.
10048 * s-pack06.ads: Likewise.
10049 * s-pack07.adb: Likewise.
10050 * s-pack07.ads: Likewise.
10051 * s-pack09.adb: Likewise.
10052 * s-pack09.ads: Likewise.
10053 * s-pack10.adb: Likewise.
10054 * s-pack10.ads: Likewise.
10055 * s-pack11.adb: Likewise.
10056 * s-pack11.ads: Likewise.
10057 * s-pack12.adb: Likewise.
10058 * s-pack12.ads: Likewise.
10059 * s-pack13.adb: Likewise.
10060 * s-pack13.ads: Likewise.
10061 * s-pack14.adb: Likewise.
10062 * s-pack14.ads: Likewise.
10063 * s-pack15.adb: Likewise.
10064 * s-pack15.ads: Likewise.
10065 * s-pack17.adb: Likewise.
10066 * s-pack17.ads: Likewise.
10067 * s-pack18.adb: Likewise.
10068 * s-pack18.ads: Likewise.
10069 * s-pack19.adb: Likewise.
10070 * s-pack19.ads: Likewise.
10071 * s-pack20.adb: Likewise.
10072 * s-pack20.ads: Likewise.
10073 * s-pack21.adb: Likewise.
10074 * s-pack21.ads: Likewise.
10075 * s-pack22.adb: Likewise.
10076 * s-pack22.ads: Likewise.
10077 * s-pack23.adb: Likewise.
10078 * s-pack23.ads: Likewise.
10079 * s-pack24.adb: Likewise.
10080 * s-pack24.ads: Likewise.
10081 * s-pack25.adb: Likewise.
10082 * s-pack25.ads: Likewise.
10083 * s-pack26.adb: Likewise.
10084 * s-pack26.ads: Likewise.
10085 * s-pack27.adb: Likewise.
10086 * s-pack27.ads: Likewise.
10087 * s-pack28.adb: Likewise.
10088 * s-pack28.ads: Likewise.
10089 * s-pack29.adb: Likewise.
10090 * s-pack29.ads: Likewise.
10091 * s-pack30.adb: Likewise.
10092 * s-pack30.ads: Likewise.
10093 * s-pack31.adb: Likewise.
10094 * s-pack31.ads: Likewise.
10095 * s-pack33.adb: Likewise.
10096 * s-pack33.ads: Likewise.
10097 * s-pack34.adb: Likewise.
10098 * s-pack34.ads: Likewise.
10099 * s-pack35.adb: Likewise.
10100 * s-pack35.ads: Likewise.
10101 * s-pack36.adb: Likewise.
10102 * s-pack36.ads: Likewise.
10103 * s-pack37.adb: Likewise.
10104 * s-pack37.ads: Likewise.
10105 * s-pack38.adb: Likewise.
10106 * s-pack38.ads: Likewise.
10107 * s-pack39.adb: Likewise.
10108 * s-pack39.ads: Likewise.
10109 * s-pack40.adb: Likewise.
10110 * s-pack40.ads: Likewise.
10111 * s-pack41.adb: Likewise.
10112 * s-pack41.ads: Likewise.
10113 * s-pack42.adb: Likewise.
10114 * s-pack42.ads: Likewise.
10115 * s-pack43.adb: Likewise.
10116 * s-pack43.ads: Likewise.
10117 * s-pack44.adb: Likewise.
10118 * s-pack44.ads: Likewise.
10119 * s-pack45.adb: Likewise.
10120 * s-pack45.ads: Likewise.
10121 * s-pack46.adb: Likewise.
10122 * s-pack46.ads: Likewise.
10123 * s-pack47.adb: Likewise.
10124 * s-pack47.ads: Likewise.
10125 * s-pack48.adb: Likewise.
10126 * s-pack48.ads: Likewise.
10127 * s-pack49.adb: Likewise.
10128 * s-pack49.ads: Likewise.
10129 * s-pack50.adb: Likewise.
10130 * s-pack50.ads: Likewise.
10131 * s-pack51.adb: Likewise.
10132 * s-pack51.ads: Likewise.
10133 * s-pack52.adb: Likewise.
10134 * s-pack52.ads: Likewise.
10135 * s-pack53.adb: Likewise.
10136 * s-pack53.ads: Likewise.
10137 * s-pack54.adb: Likewise.
10138 * s-pack54.ads: Likewise.
10139 * s-pack55.adb: Likewise.
10140 * s-pack55.ads: Likewise.
10141 * s-pack56.adb: Likewise.
10142 * s-pack56.ads: Likewise.
10143 * s-pack57.adb: Likewise.
10144 * s-pack57.ads: Likewise.
10145 * s-pack58.adb: Likewise.
10146 * s-pack58.ads: Likewise.
10147 * s-pack59.adb: Likewise.
10148 * s-pack59.ads: Likewise.
10149 * s-pack60.adb: Likewise.
10150 * s-pack60.ads: Likewise.
10151 * s-pack61.adb: Likewise.
10152 * s-pack61.ads: Likewise.
10153 * s-pack62.adb: Likewise.
10154 * s-pack62.ads: Likewise.
10155 * s-pack63.adb: Likewise.
10156 * s-pack63.ads: Likewise.
10157 * s-parame-ae653.ads: Likewise.
10158 * s-parame-hpux.ads: Likewise.
10159 * s-parame-rtems.adb: Likewise.
10160 * s-parame-vms-alpha.ads: Likewise.
10161 * s-parame-vms-ia64.ads: Likewise.
10162 * s-parame-vms-restrict.ads: Likewise.
10163 * s-parame-vxworks.adb: Likewise.
10164 * s-parame-vxworks.ads: Likewise.
10165 * s-parame.adb: Likewise.
10166 * s-parame.ads: Likewise.
10167 * s-parint.adb: Likewise.
10168 * s-parint.ads: Likewise.
10169 * s-pooglo.adb: Likewise.
10170 * s-pooglo.ads: Likewise.
10171 * s-pooloc.adb: Likewise.
10172 * s-pooloc.ads: Likewise.
10173 * s-poosiz.adb: Likewise.
10174 * s-poosiz.ads: Likewise.
10175 * s-powtab.ads: Likewise.
10176 * s-proinf-irix-athread.adb: Likewise.
10177 * s-proinf-irix-athread.ads: Likewise.
10178 * s-proinf.adb: Likewise.
10179 * s-proinf.ads: Likewise.
10180 * s-purexc.ads: Likewise.
10181 * s-rannum.adb: Likewise.
10182 * s-rannum.ads: Likewise.
10183 * s-restri.adb: Likewise.
10184 * s-restri.ads: Likewise.
10185 * s-rident.ads: Likewise.
10186 * s-rpc.adb: Likewise.
10187 * s-rpc.ads: Likewise.
10188 * s-scaval.adb: Likewise.
10189 * s-scaval.ads: Likewise.
10190 * s-secsta.adb: Likewise.
10191 * s-secsta.ads: Likewise.
10192 * s-sequio.adb: Likewise.
10193 * s-sequio.ads: Likewise.
10194 * s-shasto.adb: Likewise.
10195 * s-shasto.ads: Likewise.
10196 * s-soflin.adb: Likewise.
10197 * s-soflin.ads: Likewise.
10198 * s-solita.adb: Likewise.
10199 * s-solita.ads: Likewise.
10200 * s-sopco3.adb: Likewise.
10201 * s-sopco3.ads: Likewise.
10202 * s-sopco4.adb: Likewise.
10203 * s-sopco4.ads: Likewise.
10204 * s-sopco5.adb: Likewise.
10205 * s-sopco5.ads: Likewise.
10206 * s-stache.adb: Likewise.
10207 * s-stache.ads: Likewise.
10208 * s-stalib.adb: Likewise.
10209 * s-stalib.ads: Likewise.
10210 * s-stausa.adb: Likewise.
10211 * s-stausa.ads: Likewise.
10212 * s-stchop-limit.ads: Likewise.
10213 * s-stchop-rtems.adb: Likewise.
10214 * s-stchop-vxworks.adb: Likewise.
10215 * s-stchop.adb: Likewise.
10216 * s-stchop.ads: Likewise.
10217 * s-stoele.adb: Likewise.
10218 * s-stoele.ads: Likewise.
10219 * s-stopoo.adb: Likewise.
10220 * s-stopoo.ads: Likewise.
10221 * s-stratt.adb: Likewise.
10222 * s-stratt.ads: Likewise.
10223 * s-strcom.adb: Likewise.
10224 * s-strcom.ads: Likewise.
10225 * s-string.adb: Likewise.
10226 * s-string.ads: Likewise.
10227 * s-strops.adb: Likewise.
10228 * s-strops.ads: Likewise.
10229 * s-strxdr.adb: Likewise.
10230 * s-ststop.adb: Likewise.
10231 * s-ststop.ads: Likewise.
10232 * s-taasde.adb: Likewise.
10233 * s-taasde.ads: Likewise.
10234 * s-tadeca.adb: Likewise.
10235 * s-tadeca.ads: Likewise.
10236 * s-tadert.adb: Likewise.
10237 * s-tadert.ads: Likewise.
10238 * s-taenca.adb: Likewise.
10239 * s-taenca.ads: Likewise.
10240 * s-taprob.ads: Likewise.
10241 * s-taprop-dummy.adb: Likewise.
10242 * s-taprop-hpux-dce.adb: Likewise.
10243 * s-taprop-irix.adb: Likewise.
10244 * s-taprop-linux.adb: Likewise.
10245 * s-taprop-lynxos.adb: Likewise.
10246 * s-taprop-mingw.adb: Likewise.
10247 * s-taprop-posix.adb: Likewise.
10248 * s-taprop-solaris.adb: Likewise.
10249 * s-taprop-tru64.adb: Likewise.
10250 * s-taprop-vms.adb: Likewise.
10251 * s-taprop-vxworks.adb: Likewise.
10252 * s-taprop.ads: Likewise.
10253 * s-tarest.adb: Likewise.
10254 * s-tarest.ads: Likewise.
10255 * s-tasdeb.adb: Likewise.
10256 * s-tasdeb.ads: Likewise.
10257 * s-tasinf-irix.ads: Likewise.
10258 * s-tasinf-linux.adb: Likewise.
10259 * s-tasinf-linux.ads: Likewise.
10260 * s-tasinf-mingw.adb: Likewise.
10261 * s-tasinf-mingw.ads: Likewise.
10262 * s-tasinf-solaris.adb: Likewise.
10263 * s-tasinf-solaris.ads: Likewise.
10264 * s-tasinf-tru64.ads: Likewise.
10265 * s-tasinf.adb: Likewise.
10266 * s-tasinf.ads: Likewise.
10267 * s-tasini.adb: Likewise.
10268 * s-tasini.ads: Likewise.
10269 * s-taskin.adb: Likewise.
10270 * s-taskin.ads: Likewise.
10271 * s-taspri-dummy.ads: Likewise.
10272 * s-taspri-hpux-dce.ads: Likewise.
10273 * s-taspri-mingw.ads: Likewise.
10274 * s-taspri-solaris.ads: Likewise.
10275 * s-taspri-tru64.ads: Likewise.
10276 * s-taspri-vms.ads: Likewise.
10277 * s-taspri-vxworks.ads: Likewise.
10278 * s-tasque.adb: Likewise.
10279 * s-tasque.ads: Likewise.
10280 * s-tasren.adb: Likewise.
10281 * s-tasren.ads: Likewise.
10282 * s-tasres.ads: Likewise.
10283 * s-tassta.adb: Likewise.
10284 * s-tassta.ads: Likewise.
10285 * s-tasuti.adb: Likewise.
10286 * s-tasuti.ads: Likewise.
10287 * s-tfsetr-default.adb: Likewise.
10288 * s-tfsetr-vxworks.adb: Likewise.
10289 * s-tpinop.adb: Likewise.
10290 * s-tpinop.ads: Likewise.
10291 * s-tpoben.adb: Likewise.
10292 * s-tpoben.ads: Likewise.
10293 * s-tpobop.adb: Likewise.
10294 * s-tpobop.ads: Likewise.
10295 * s-tpopde-vms.adb: Likewise.
10296 * s-tpopde-vms.ads: Likewise.
10297 * s-tpopsp-lynxos.adb: Likewise.
10298 * s-tpopsp-posix-foreign.adb: Likewise.
10299 * s-tpopsp-posix.adb: Likewise.
10300 * s-tpopsp-solaris.adb: Likewise.
10301 * s-tpopsp-vxworks.adb: Likewise.
10302 * s-tporft.adb: Likewise.
10303 * s-tposen.adb: Likewise.
10304 * s-tposen.ads: Likewise.
10305 * s-traceb.adb: Likewise.
10306 * s-traceb.ads: Likewise.
10307 * s-traces-default.adb: Likewise.
10308 * s-traces.adb: Likewise.
10309 * s-traces.ads: Likewise.
10310 * s-traent-vms.adb: Likewise.
10311 * s-traent-vms.ads: Likewise.
10312 * s-traent.adb: Likewise.
10313 * s-traent.ads: Likewise.
10314 * s-trafor-default.adb: Likewise.
10315 * s-trafor-default.ads: Likewise.
10316 * s-tratas-default.adb: Likewise.
10317 * s-tratas.adb: Likewise.
10318 * s-tratas.ads: Likewise.
10319 * s-unstyp.ads: Likewise.
10320 * s-utf_32.adb: Likewise.
10321 * s-utf_32.ads: Likewise.
10322 * s-vaflop-vms-alpha.adb: Likewise.
10323 * s-vaflop.adb: Likewise.
10324 * s-vaflop.ads: Likewise.
10325 * s-valboo.adb: Likewise.
10326 * s-valboo.ads: Likewise.
10327 * s-valcha.adb: Likewise.
10328 * s-valcha.ads: Likewise.
10329 * s-valdec.adb: Likewise.
10330 * s-valdec.ads: Likewise.
10331 * s-valenu.adb: Likewise.
10332 * s-valenu.ads: Likewise.
10333 * s-valint.adb: Likewise.
10334 * s-valint.ads: Likewise.
10335 * s-vallld.adb: Likewise.
10336 * s-vallld.ads: Likewise.
10337 * s-vallli.adb: Likewise.
10338 * s-vallli.ads: Likewise.
10339 * s-valllu.adb: Likewise.
10340 * s-valllu.ads: Likewise.
10341 * s-valrea.adb: Likewise.
10342 * s-valrea.ads: Likewise.
10343 * s-valuns.adb: Likewise.
10344 * s-valuns.ads: Likewise.
10345 * s-valuti.adb: Likewise.
10346 * s-valuti.ads: Likewise.
10347 * s-valwch.adb: Likewise.
10348 * s-valwch.ads: Likewise.
10349 * s-veboop.adb: Likewise.
10350 * s-veboop.ads: Likewise.
10351 * s-vector.ads: Likewise.
10352 * s-vercon.adb: Likewise.
10353 * s-vercon.ads: Likewise.
10354 * s-vmexta.adb: Likewise.
10355 * s-vmexta.ads: Likewise.
10356 * s-vxwext-kernel.ads: Likewise.
10357 * s-vxwext-rtp.adb: Likewise.
10358 * s-vxwext-rtp.ads: Likewise.
10359 * s-vxwext.ads: Likewise.
10360 * s-vxwork-arm.ads: Likewise.
10361 * s-vxwork-m68k.ads: Likewise.
10362 * s-vxwork-mips.ads: Likewise.
10363 * s-vxwork-ppc.ads: Likewise.
10364 * s-vxwork-sparcv9.ads: Likewise.
10365 * s-vxwork-x86.ads: Likewise.
10366 * s-wchcnv.adb: Likewise.
10367 * s-wchcnv.ads: Likewise.
10368 * s-wchcon.adb: Likewise.
10369 * s-wchcon.ads: Likewise.
10370 * s-wchjis.adb: Likewise.
10371 * s-wchjis.ads: Likewise.
10372 * s-wchstw.adb: Likewise.
10373 * s-wchstw.ads: Likewise.
10374 * s-wchwts.adb: Likewise.
10375 * s-wchwts.ads: Likewise.
10376 * s-widboo.adb: Likewise.
10377 * s-widboo.ads: Likewise.
10378 * s-widcha.adb: Likewise.
10379 * s-widcha.ads: Likewise.
10380 * s-widenu.adb: Likewise.
10381 * s-widenu.ads: Likewise.
10382 * s-widlli.adb: Likewise.
10383 * s-widlli.ads: Likewise.
10384 * s-widllu.adb: Likewise.
10385 * s-widllu.ads: Likewise.
10386 * s-widwch.adb: Likewise.
10387 * s-widwch.ads: Likewise.
10388 * s-win32.ads: Likewise.
10389 * s-winext.ads: Likewise.
10390 * s-wwdcha.adb: Likewise.
10391 * s-wwdcha.ads: Likewise.
10392 * s-wwdenu.adb: Likewise.
10393 * s-wwdenu.ads: Likewise.
10394 * s-wwdwch.adb: Likewise.
10395 * s-wwdwch.ads: Likewise.
10396 * scans.adb: Likewise.
10397 * scans.ads: Likewise.
10398 * seh_init.c: Likewise.
10399 * sfn_scan.adb: Likewise.
10400 * sinfo.adb: Likewise.
10401 * sinfo.ads: Likewise.
10402 * sinput.adb: Likewise.
10403 * sinput.ads: Likewise.
10404 * snames.adb: Likewise.
10405 * snames.ads: Likewise.
10406 * socket.c: Likewise.
10407 * stand.adb: Likewise.
10408 * stand.ads: Likewise.
10409 * stringt.adb: Likewise.
10410 * stringt.ads: Likewise.
10411 * sysdep.c: Likewise.
10412 * system-aix.ads: Likewise.
10413 * system-darwin-ppc.ads: Likewise.
10414 * system-darwin-x86.ads: Likewise.
10415 * system-darwin-x86_64.ads: Likewise.
10416 * system-freebsd-x86.ads: Likewise.
10417 * system-hpux-ia64.ads: Likewise.
10418 * system-hpux.ads: Likewise.
10419 * system-irix-n32.ads: Likewise.
10420 * system-irix-n64.ads: Likewise.
10421 * system-irix-o32.ads: Likewise.
10422 * system-linux-alpha.ads: Likewise.
10423 * system-linux-hppa.ads: Likewise.
10424 * system-linux-ia64.ads: Likewise.
10425 * system-linux-mips.ads: Likewise.
10426 * system-linux-mipsel.ads: Likewise.
10427 * system-linux-ppc.ads: Likewise.
10428 * system-linux-ppc64.ads: Likewise.
10429 * system-linux-s390.ads: Likewise.
10430 * system-linux-s390x.ads: Likewise.
10431 * system-linux-sh4.ads: Likewise.
10432 * system-linux-sparc.ads: Likewise.
10433 * system-linux-sparcv9.ads: Likewise.
10434 * system-linux-x86.ads: Likewise.
10435 * system-linux-x86_64.ads: Likewise.
10436 * system-lynxos-ppc.ads: Likewise.
10437 * system-lynxos-x86.ads: Likewise.
10438 * system-mingw-x86_64.ads: Likewise.
10439 * system-mingw.ads: Likewise.
10440 * system-rtems.ads: Likewise.
10441 * system-solaris-sparc.ads: Likewise.
10442 * system-solaris-sparcv9.ads: Likewise.
10443 * system-solaris-x86.ads: Likewise.
10444 * system-solaris-x86_64.ads: Likewise.
10445 * system-tru64.ads: Likewise.
10446 * system-vms-ia64.ads: Likewise.
10447 * system-vms-zcx.ads: Likewise.
10448 * system-vms.ads: Likewise.
10449 * system-vms_64.ads: Likewise.
10450 * system-vxworks-arm.ads: Likewise.
10451 * system-vxworks-m68k.ads: Likewise.
10452 * system-vxworks-mips.ads: Likewise.
10453 * system-vxworks-ppc.ads: Likewise.
10454 * system-vxworks-sparcv9.ads: Likewise.
10455 * system-vxworks-x86.ads: Likewise.
10456 * system.ads: Likewise.
10457 * table.adb: Likewise.
10458 * table.ads: Likewise.
10459 * targext.c: Likewise.
10460 * targparm.ads: Likewise.
10461 * tree_in.adb: Likewise.
10462 * tree_in.ads: Likewise.
10463 * tree_io.adb: Likewise.
10464 * tree_io.ads: Likewise.
10465 * types.adb: Likewise.
10466 * types.ads: Likewise.
10467 * uintp.adb: Likewise.
10468 * uintp.ads: Likewise.
10469 * uname.adb: Likewise.
10470 * uname.ads: Likewise.
10471 * urealp.adb: Likewise.
10472 * urealp.ads: Likewise.
10473 * vx_stack_info.c: Likewise.
10474 * widechar.adb: Likewise.
10475 * widechar.ads: Likewise.
10476 * exp_attr.adb: Change copyright header to refer to version
10477 3 of the GNU General Public License and to point readers at the
10478 COPYING3 file and the FSF's license web page.
10479 * sem.adb: Likewise.
10480 * sem_attr.ads: Likewise.
10481 * freeze.adb: Likewise.
10482 * freeze.ads: Likewise.
10483 * errout.ads: Likewise.
10484 * erroutc.adb: Likewise.
10485 * exp_ch11.ads: Likewise.
10487 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10489 * config-lang.in: Change copyright header to refer to version
10490 3 of the GNU General Public License and to point readers at the
10491 COPYING3 file and the FSF's license web page.
10492 * gcc-interface/trans.c: Likewise.
10493 * gnathtml.pl: Likewise.
10494 * gcc-interface/ada.h: Likewise. Remove runtime exception.
10495 * gcc-interface/gigi.h: Likewise.
10496 * gcc-interface/misc.c: Likewise.
10497 * gcc-interface/targtyps.c: Likewise.
10499 2009-04-09 Nicolas Setton <setton@adacore.com>
10501 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
10503 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
10506 2009-04-09 Bob Duff <duff@adacore.com>
10508 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
10509 internally-generated nodes related to select statements to avoid
10510 confusing the debugger.
10512 2009-04-09 Pascal Obry <obry@adacore.com>
10514 * make.adb: Ensure that all linker arguments are duplicated.
10516 2009-04-09 Robert Dewar <dewar@adacore.com>
10518 * sem_ch5.adb: Minor reformatting
10520 2009-04-09 Vincent Celier <celier@adacore.com>
10523 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
10524 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
10525 New qualifier /LXDEBUG=nnn for -gnatDnnn
10529 Update documentation for VMS qualifiers equivalent to -gnatGnn and
10532 2009-04-09 Nicolas Setton <setton@adacore.com>
10534 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
10535 to match layout of siginfo_t in sys/signal.h.
10537 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
10539 2009-04-09 Thomas Quinot <quinot@adacore.com>
10541 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
10543 2009-04-09 Nicolas Setton <setton@adacore.com>
10545 * s-oscons-tmplt.c: Allow long lines in the generated spec.
10546 Add generation of Darwin-specific constants needed when binding to the
10549 2009-04-09 Robert Dewar <dewar@adacore.com>
10552 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
10553 when no invalid values exist, Avoid duplicate read of atomic variable.
10555 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
10556 (Standard_Unsigned): Set Is_Known_Valid
10558 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
10559 subtype declaration if no constraint.
10560 (Set_Modular_Size): Set Is_Known_Valid if appropriate
10561 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
10563 2009-04-09 Robert Dewar <dewar@adacore.com>
10565 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
10566 switch.ads: for numeric switches, an optional equal sign is always
10569 2009-04-09 Vincent Celier <celier@adacore.com>
10571 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
10572 the case of file names is not significant.
10574 2009-04-09 Vincent Celier <celier@adacore.com>
10576 * errout.adb: Remove dependency on package Style
10578 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
10581 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
10584 * errutil.adb, par.adb: Import Stylesw
10586 2009-04-09 Arnaud Charlet <charlet@adacore.com>
10588 * opt.ads: Fix typos.
10590 2009-04-09 Robert Dewar <dewar@adacore.com>
10592 * einfo.adb: Minor reformatting
10594 2009-04-09 Robert Dewar <dewar@adacore.com>
10596 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
10599 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
10601 2009-04-09 Robert Dewar <dewar@adacore.com>
10603 * g-comver.adb: Minor reformatting.
10605 2009-04-09 Thomas Quinot <quinot@adacore.com>
10607 * lib-load.ads (Load_Unit): Update documentation.
10609 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10611 * lib-load.adb (Load_Unit): When loading the parent of a child unit
10612 named in a with_clause, retain the with_clause to preserve a
10613 limited_with indication.
10615 2009-04-09 Robert Dewar <dewar@adacore.com>
10617 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
10618 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
10619 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
10620 possible to replace an OR of two separate tests.
10622 2009-04-09 Robert Dewar <dewar@adacore.com>
10624 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
10627 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
10628 warning status as well.
10630 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
10632 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
10635 * bindusg.adb, usage.adb: Update line for -gnatm switch
10637 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
10638 -mnn binder switch.
10640 2009-04-09 Robert Dewar <dewar@adacore.com>
10642 * sem_ch10.adb: Minor reformatting.
10644 2009-04-09 Bob Duff <duff@adacore.com>
10646 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
10647 Set Sloc of generated nodes for calls to Undefer_Aborts and
10648 Save_Occurrence to No_Location, so the debugger ignores them and
10649 therefore does not jump back and forth when single stepping.
10651 2009-04-09 Robert Dewar <dewar@adacore.com>
10653 * switch-b.adb: Minor reformatting.
10655 2009-04-09 Robert Dewar <dewar@adacore.com>
10657 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
10658 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
10659 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
10660 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
10661 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
10662 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
10663 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
10664 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
10665 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
10666 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
10667 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
10669 2009-04-09 Robert Dewar <dewar@adacore.com>
10671 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
10673 * atree.h: Add Elist26
10675 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
10678 2009-04-09 Javier Miranda <miranda@adacore.com>
10680 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
10681 retrieve from the Dispatch_Table_Wrappers list the external name.
10682 Addition of documentation.
10683 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
10684 used to export secondary dispatch tables (in the previous version of
10685 the frontend only primary dispatch tables were exported). Addition of
10687 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
10688 dispatch table of a given tagged type.
10689 (Make_Tags): Modified to import secondary dispatch tables.
10691 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
10692 (Constant_Redeclaration): Code cleanup.
10694 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
10695 Dispatch_Table_Wrappers. Update documentation.
10697 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
10698 Renamed to Dispatch_Table_Wrappers.
10700 * sem_util.adb (Collect_Interface_Components): Improve handling of
10703 * atree.ads (Elist26, Set_Elist26): New subprograms
10705 * atree.adb (Elist26, Set_Elist26): New subprograms
10707 2009-04-09 Javier Miranda <miranda@adacore.com>
10709 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
10710 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
10713 2009-04-09 Robert Dewar <dewar@adacore.com>
10715 * s-direio.adb: Minor reformatting
10717 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
10719 2009-04-09 Robert Dewar <dewar@adacore.com>
10721 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
10723 2009-04-09 Pascal Obry <obry@adacore.com>
10725 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
10726 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
10727 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
10728 a-filico.ads: Add some missing overriding keywords.
10730 2009-04-09 Pascal Obry <obry@adacore.com>
10732 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
10733 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
10734 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
10737 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10739 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
10740 missing overriding indicator if the new declaration is not seen as
10743 2009-04-09 Thomas Quinot <quinot@adacore.com>
10745 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
10746 overflows in computation of bounds.
10748 2009-04-09 Pascal Obry <obry@adacore.com>
10750 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
10753 2009-04-09 Robert Dewar <dewar@adacore.com>
10755 * sem_attr.adb (Check_Stream_Attribute): Check violation of
10756 restriction No_Streams
10758 * gnat_rm.texi: Clarify No_Streams restriction
10760 * g-socket.adb: Minor reformatting.
10762 2009-04-09 Thomas Quinot <quinot@adacore.com>
10764 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
10766 2009-04-09 Geert Bosch <bosch@adacore.com>
10768 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
10769 (Set_Result): Likewise.
10770 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
10771 conversion, as required by RM 4.6(31).
10773 2009-04-08 Robert Dewar <dewar@adacore.com>
10775 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
10778 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
10781 2009-04-08 Robert Dewar <dewar@adacore.com>
10783 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
10784 No_Local_Allocators restriction preventing local instantiation.
10786 2009-04-08 Thomas Quinot <quinot@adacore.com>
10788 * sem_eval.adb: Minor comment fix
10790 2009-04-08 Thomas Quinot <quinot@adacore.com>
10792 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
10793 New limited controlled type used to automate the initialization and
10794 finalization of the sockets implementation.
10795 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
10797 2009-04-08 Vincent Celier <celier@adacore.com>
10799 * prj-attr.adb: New read-only project-level attribute Project_Dir
10801 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
10802 read-only attribute of the same name.
10803 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
10804 (Recursive_Process): Ditto
10806 * snames.adb: Add new standard name Project_Dir
10808 * snames.ads: Add new standard name Project_Dir
10810 2009-04-08 Thomas Quinot <quinot@adacore.com>
10812 * checks.adb: Minor reformatting
10814 2009-04-08 Vincent Celier <celier@adacore.com>
10816 * vms_data.ads: Add documentation for new style keyword
10817 OVERRIDING_INDICATORS
10819 2009-04-08 Robert Dewar <dewar@adacore.com>
10821 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
10822 spec is in the current unit.
10824 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10826 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
10827 presence of entity.
10829 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
10831 2009-04-08 Vincent Celier <celier@adacore.com>
10833 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
10835 2009-04-08 Thomas Quinot <quinot@adacore.com>
10837 * checks.ads: Minor reformatting
10839 2009-04-08 Robert Dewar <dewar@adacore.com>
10841 * gnat_rm.texi: Update documentation of pragma Obsolescent
10843 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
10844 be omitted, and allow Entity parameter to be omitted.
10846 2009-04-08 Thomas Quinot <quinot@adacore.com>
10848 * exp_util.adb: Minor comment fix
10850 2009-04-08 Robert Dewar <dewar@adacore.com>
10852 * g-socket.ads: Fix bad syntax in pragma Obsolescent
10854 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
10855 argument with no identifier following one that has an identifier. Was
10856 missed in some cases.
10858 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
10860 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
10862 * snames.adb: Add Name_Policy
10864 * snames.ads: Add Name_Policy
10866 2009-04-08 Robert Dewar <dewar@adacore.com>
10868 * gnat_rm.texi: Minor reformatting
10870 * par-ch2.adb: Minor reformatting
10872 2009-04-08 Robert Dewar <dewar@adacore.com>
10874 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
10876 2009-04-08 Robert Dewar <dewar@adacore.com>
10878 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
10879 properly in the presence of Remote_Types or Remote_Call_Interface.
10881 * sem_util.adb: Add comment.
10883 2009-04-08 Robert Dewar <dewar@adacore.com>
10885 * ug_words: Add /ASSUME_VALID for -gnatB
10887 * vms_data.ads: Add /ASSUME_VALID for -gnatB
10889 * sem_cat.adb: Add clarifying commment
10891 * a-direio.ads (Bytes): Make sure value is non-zero
10893 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10895 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
10896 that does not come from source, check for a rewritten function call in
10897 prefixed notation before other forms of rewriting.
10899 2009-04-08 Robert Dewar <dewar@adacore.com>
10901 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
10902 these are now obsolescent units used only for bootrapping with an
10905 2009-04-08 Robert Dewar <dewar@adacore.com>
10907 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
10909 * sem_ch3.adb: Minor comment updates
10911 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10913 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
10914 that come from source.
10916 2009-04-08 Tristan Gingold <gingold@adacore.com>
10918 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
10919 * gcc-interface/decl.c (prepend_attributes): New case
10920 Pragma_Thread_Local_Storage.
10921 * gcc-interface/utils.c (process_attributes): New case
10922 ATTR_THREAD_LOCAL_STORAGE.
10924 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10926 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
10927 by the back-end if it contains a call to a subprogram without a
10928 previous spec that is declared in the same unit.
10930 * errout.ads: Update comments on uses of dirs
10932 2009-04-08 Robert Dewar <dewar@adacore.com>
10934 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
10936 2009-04-08 Tristan Gingold <gingold@adacore.com>
10938 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
10940 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
10942 2009-04-08 Vincent Celier <celier@adacore.com>
10945 (Add_Source): Add the mapping of the unit name to source file name in
10946 the Unit_Sources_HT hash table, if the unit name is not null.
10948 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
10950 * prj.ads (Unit_Sources_Htable): New hash table instantiation
10951 (Project_Tree_Data): New component Unit_Sources_HT
10953 2009-04-08 Thomas Quinot <quinot@adacore.com>
10955 * sem_ch8.adb: Minor reformatting.
10956 Minor code reorganization.
10958 2009-04-08 Robert Dewar <dewar@adacore.com>
10960 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
10961 snames.ads, freeze.adb, par-prag.adb: Add implementation of
10962 pragma Thread_Local_Storage, setting new flag
10963 Has_Pragma_Thread_Local_Storage in corresponding entities.
10965 2009-04-08 Emmanuel Briot <briot@adacore.com>
10967 * prj.ads: Update comment on switches file
10969 * prj-nmsc.adb: Code clean up. Use renaming clauses.
10971 2009-04-08 Robert Dewar <dewar@adacore.com>
10973 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
10975 2009-04-08 Thomas Quinot <quinot@adacore.com>
10977 * ali-util.adb: Minor comment fix
10979 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10981 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
10982 appears in a context clause, and the enclosing package is mentioned in
10983 a limited_with_clause.
10984 (Use_One_Type): Reject clause if type is still incomplete.
10986 2009-04-08 Emmanuel Briot <briot@adacore.com>
10988 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
10989 avoid copies of Source_Data variables when possible, since these
10990 involve calls to memcpy() which are done too many times.
10992 2009-04-08 Robert Dewar <dewar@adacore.com>
10994 * exp_ch4.adb (Expand_Concatenate): Clean up code
10996 2009-04-07 Thomas Quinot <quinot@adacore.com>
10998 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
10999 type for the case of concatenating a constrained array indexed by an
11002 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11004 * sem_ch6.adb (Check_Conformance): when checking conformance of an
11005 operation that overrides an abstract operation inherited from an
11006 interface, return False if only one of the controlling formals is an
11009 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11011 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
11012 mandated by AI05-105.
11014 2009-04-07 Vincent Celier <celier@adacore.com>
11016 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
11018 2009-04-07 Thomas Quinot <quinot@adacore.com>
11020 * usage.adb: Minor fix in usage message.
11022 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
11023 match declaration; the correct subtype is Node_Id, not Entity_Id,
11024 because the expected node kind is an identifier, not a defining
11027 * switch-c.adb: Minor reformatting.
11029 * uintp.adb: Minor reformatting.
11031 2009-04-07 Robert Dewar <dewar@adacore.com>
11033 * exp_ch13.adb: Minor reformatting
11035 2009-04-07 Robert Dewar <dewar@adacore.com>
11037 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
11038 against missing parent.
11040 2009-04-07 Thomas Quinot <quinot@adacore.com>
11042 * xoscons.adb: Minor reformatting
11044 2009-04-07 Robert Dewar <dewar@adacore.com>
11046 * rtsfind.ads: Remove obsolete string concatenation entries
11048 2009-04-07 Robert Dewar <dewar@adacore.com>
11050 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
11052 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11054 * sem_ch10.adb (Check_Body_Required): Handle properly imported
11057 2009-04-07 Gary Dismukes <dismukes@adacore.com>
11059 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
11060 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
11061 is of a scalar or string type then suppress the setting of the
11062 expression to Empty.
11064 * freeze.adb (Warn_Overlay): Also emit the warnings about default
11065 initialization for the cases of scalar and string objects when
11066 Init_Or_Norm_Scalars is True.
11068 2009-04-07 Bob Duff <duff@adacore.com>
11070 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
11072 2009-04-07 Bob Duff <duff@adacore.com>
11074 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
11075 Form parameter of Text_Translation=No allows binary mode for Text_IO
11078 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
11080 2009-04-07 Javier Miranda <miranda@adacore.com>
11082 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
11083 processing the bounds for bit packed arrays or VM target machines.
11085 2009-04-07 Thomas Quinot <quinot@adacore.com>
11087 * g-sothco.ads (Int_Access): Remove extraneous access type (use
11088 anonymous access instead).
11089 (Get_Socket_From_Set): Fix incorrectly reverted formals
11090 Last and Socket to match the underlying C routine.
11092 * g-socket.adb, g-socket.ads
11093 (Get): Use named parameter associations instead of positional ones in
11094 call go Get_Socket_From_Set, since this routine has two formals of the
11096 (Image): New procedure.
11098 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11099 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
11100 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
11101 for type of Arg formal.
11103 * sem_warn.adb: Minor reformatting
11105 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11107 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
11108 over record components.
11110 2009-04-07 Nicolas Roche <roche@adacore.com>
11113 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
11114 has disappeared between VxWorks 6.4 and VxWorks 6.5
11115 In RTP mode use time.h instead of times.h
11117 2009-04-07 Robert Dewar <dewar@adacore.com>
11119 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
11121 2009-04-07 Kevin Pouget <pouget@adacore.com>
11123 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
11124 expanded code for constrained types.
11126 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11128 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
11129 AI05-105: in an object renaming declaration, anonymousness is a name
11132 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
11134 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11136 * g-comlin.adb (Expansion): Fix old regression: also return directory
11137 names when matching.
11139 2009-04-07 Robert Dewar <dewar@adacore.com>
11142 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
11143 (Expand_Concatenate): New name for Expand_Concatenate_String which has
11144 been rewritten to handle all types.
11145 (Expand_Concatenate_Other): Remove
11147 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11149 * lib-xref.adb (Generate_Reference): A default subprogram in an
11150 instance appears within the tree for the instance, but generates an
11151 implicit reference in the ALI.
11153 2009-04-07 Javier Miranda <miranda@adacore.com>
11155 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
11156 derived type that has discriminants, propagate the list of interfaces
11157 to the corresponding new base type. In addition, propagate also
11158 attribute Limited_Present (found working in this patch).
11160 2009-04-07 Robert Dewar <dewar@adacore.com>
11162 * exp_ch4.adb: Rewrite concatenation expansion.
11164 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11166 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
11167 relevant to packages.
11169 2009-04-07 Robert Dewar <dewar@adacore.com>
11171 * sem_attr.adb: Minor reformatting
11173 * sem_ch6.adb: Minor reformatting
11175 2009-04-07 Tristan Gingold <gingold@adacore.com>
11177 * socket.c: Add more protections against S_resolvLib_ macros.
11179 2009-04-07 Thomas Quinot <quinot@adacore.com>
11181 * sem_attr.adb: Minor reformatting
11183 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11185 * sem_ch6.adb (New_Overloaded_Entity): New predicate
11186 Is_Overriding_Alias to handle properly types that inherit two homonym
11187 operations that have distinct dispatch table entries.
11189 2009-04-07 Emmanuel Briot <briot@adacore.com>
11191 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
11192 looking for the end of a parenthesis group
11194 2009-04-07 Tristan Gingold <gingold@adacore.com>
11196 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
11198 * socket.c Don't use resolvLib_ macros if not defined.
11200 2009-04-07 Robert Dewar <dewar@adacore.com>
11202 * g-socket.adb: Minor reformatting.
11204 * g-socthi-mingw.adb: Minor reformatting
11206 * g-sothco.ads: Minor reformatting
11209 (Expand_Concatenate_String): Complete rewrite to generate efficient code
11210 inline instead of relying on external library routines.
11212 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
11213 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
11216 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11219 (Eval_Attribute): for attributes of array objects that are not strings,
11220 attributes are not static if nominal subtype of object is unconstrained.
11222 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11224 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
11225 operations for a type T in an instance do not override each other,
11226 when T is derived from a formal private type, the corresponding
11227 operations inherited by a type derived from T outside
11228 of the instance do not override each other either.
11230 2009-04-07 Robert Dewar <dewar@adacore.com>
11232 (Osint.Fail): Change calling sequence to have one string arg
11233 (Make.Make_Failed): Same change
11234 All callers are adjusted to use concatenation
11236 2009-04-07 Robert Dewar <dewar@adacore.com>
11238 * exp_ch4.adb: Fix documentation typo
11240 2009-04-07 Robert Dewar <dewar@adacore.com>
11242 * tbuild.ads: Minor reformatting
11244 2009-04-07 Javier Miranda <miranda@adacore.com>
11246 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
11247 when compiling under ZFP runtime.
11249 2009-04-07 Robert Dewar <dewar@adacore.com>
11251 * g-comlin.adb: Minor reformatting
11253 2009-04-07 Thomas Quinot <quinot@adacore.com>
11255 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11256 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
11257 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
11258 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
11260 2009-04-07 Robert Dewar <dewar@adacore.com>
11262 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
11264 * opt.ads (Sprint_Line_Limit): New parameter
11266 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
11268 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
11270 * usage.adb: Output information for -gnatGnn -gnatDnn
11272 2009-04-07 Robert Dewar <dewar@adacore.com>
11274 * make.adb: Minor reformatting
11276 2009-04-07 Robert Dewar <dewar@adacore.com>
11278 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
11280 2009-04-07 Robert Dewar <dewar@adacore.com>
11282 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
11284 2009-04-07 Robert Dewar <dewar@adacore.com>
11287 Remove Assume_Valid parameter from In_Subrange_Of calls
11290 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11291 (Is_In_Range): Remove incorrect use of Assume_Valid
11292 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
11295 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11296 (Is_In_Range): Documentation cleanup
11297 (Is_Out_Of_Range): Documentation cleanup
11300 Add documentation for Assume_No_Invalid_Values pragma
11302 * sem_ch12.adb: Minor reformatting
11304 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
11306 * sem_prag.adb: Improve error message.
11308 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
11309 LF/CR no longer recognized as line terminator
11311 * switch.ads: Minor documentation improvement
11313 * vms_data.ads: Minor reformatting
11315 2009-04-07 Robert Dewar <dewar@adacore.com>
11317 * checks.adb (Determine_Range): Add Assume_Valid parameter
11319 * checks.ads (Determine_Range): Add Assume_Valid parameter
11321 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
11322 Is_Null_Loop to suppress warnings in a loop body.
11325 (Rewrite_Comparison): Major rewrite to accomodate invalid values
11328 (Expand_N_Loop_Statement): Delete loop known not to execute
11331 (Assume_No_Invalid_Values): Now set to False, and as documented, this
11332 fully enables the proper handling of invalid values.
11335 New calling sequence for Is_In_Range
11338 (Analyze_Iteration_Scheme): Accomodate possible invalid values
11339 in determining if a loop range is null.
11342 (Is_In_Range): Add Assume_Valid parameter
11343 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11344 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
11345 also to do more accurate and complete range analysis, catching more
11349 (Is_In_Range): Add Assume_Valid parameter
11350 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11353 New calling sequence for Is_In_Range
11356 (Suppress_Loop_Warnings): New flag
11359 (Is_Null_Loop): Update documentation
11360 (Suppress_Loop_Warnings): New flag
11362 * gnat_ugn.texi: Document -gnatB switch
11364 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11366 * gnatvsn.ads: Bump version number.
11368 2009-04-07 Thomas Quinot <quinot@adacore.com>
11370 * exp_ch3.adb: Minor rewording (comments)
11372 2009-04-07 Robert Dewar <dewar@adacore.com>
11374 * exp_disp.adb: Minor reformatting
11376 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11378 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
11380 * gcc-interface/trans.c (lvalue_required_p): Likewise.
11382 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11384 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
11385 Do not convert the result. Remove obsolete comment.
11387 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11389 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
11391 (Subprogram_Body_to_gnu): Fix pasto.
11393 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11395 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
11396 (void_type_decl_node): Remove.
11397 (init_gigi_decls): Likewise.
11398 (gnat_install_builtins): Declare.
11399 (record_builtin_type): Likewise.
11400 (create_type_stub_decl): Likewise.
11401 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
11402 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
11404 <E_Array_Subtype>: Use the index types, not only their name, in the
11405 record giving the names of the bounds, if any.
11406 For a packed array type, make it artificial only if the base type
11407 was artificial as well. Remove redundant statement.
11408 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
11410 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
11411 (rest_of_type_decl_compilation_no_defer): Likewise.
11412 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
11413 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
11414 and use create_type_stub_decl to build it.
11415 (gnat_pushdecl): Rewrite condition.
11416 (gnat_install_builtins): Remove bogus declaration.
11417 (record_builtin_type): New function.
11418 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
11420 (create_type_stub_decl): New function.
11421 (create_type_decl): Assert that the type is not dummy. If the type
11422 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
11423 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
11424 (build_vms_descriptor): Likewise.
11425 (init_gigi_decls): Delete and move bulk of code to...
11426 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
11427 (emit_range_check): Add gnat_node parameter.
11428 (emit_index_check): Likewise.
11429 (emit_check): Likewise.
11430 (build_unary_op_trapv): Likewise.
11431 (build_binary_op_trapv): Likewise.
11432 (convert_with_check): Likewise.
11433 (Attribute_to_gnu): Adjust calls for above changes.
11434 (call_to_gnu): Likewise.
11435 (gnat_to_gnu): Likewise.
11436 (assoc_to_constructor): Likewise.
11437 (pos_to_constructor): Likewise.
11438 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
11439 (process_type): Do not create TYPE_DECL for dummy types.
11441 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11443 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
11444 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
11445 * gcc-interface/utils.c: Fix comments.
11447 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11449 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
11451 (gnat_to_gnu_type): Move around.
11452 (get_unpadded_type): Likewise.
11453 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
11456 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11458 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
11459 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
11460 (call_to_gnu): Invoke it instead of manually checking.
11462 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
11464 * gcc-interface/utils.c (finish_record_type): Force structural equality
11465 checks if the record type is discriminated.
11467 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
11469 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
11470 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
11471 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
11472 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
11473 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
11474 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
11475 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
11477 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
11479 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
11480 of TREE_CONSTANT_OVERFLOW.
11482 2009-03-30 Joseph Myers <joseph@codesourcery.com>
11484 PR rtl-optimization/323
11485 * gcc-interface/misc.c (gnat_post_options): Set
11486 flag_excess_precision_cmdline. Give an error for
11487 -fexcess-precision=standard for processors where the option is
11490 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11493 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
11496 2009-03-11 Olivier Hainque <hainque@adacore.com>
11498 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
11499 checks processing, remove unintended TREE_TYPE walk on index type.
11501 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
11504 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
11505 call make_packable_type on fat pointer types.
11506 <E_Array_Subtype>: Likewise.
11507 <E_Record_Subtype>: Call make_packable_type on all record types
11508 except for fat pointer types.
11509 (make_packable_type): Likewise.
11510 (gnat_to_gnu_field): Likewise.
11512 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
11514 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
11515 EH_MECHANISM change made on 2007-12-06.
11517 2009-02-26 Andreas Schwab <schwab@suse.de>
11520 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
11521 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
11522 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
11524 (target_cpu_default): Substitute.
11526 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11529 * a-teioed.adb (Expand): Fix Result overflow.
11531 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11533 * gcc-interface/Makefile.in: Fix multilib handling for
11536 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11538 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
11540 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
11542 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
11544 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
11546 * gcc-interface/deftarg.c: Remove.
11548 2009-02-10 Olivier Hainque <hainque@adacore.com>
11549 Eric Botcazou <ebotcazou@adacore.com>
11551 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
11552 (copy_alias_set): Rename into...
11553 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
11554 underlying array of unconstrained arrays for the new type as well.
11555 If the old and new alias sets don't conflict, make one a subset of
11556 the other as per the OP parameter.
11557 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
11558 <E_Record_Type>: Do not copy the alias set for derived types.
11559 For all types, make the alias set of derived types a superset of
11560 that of their parent type.
11561 (make_aligning_type): Adjust calls to copy_alias_set.
11562 (make_packable_type): Likewise.
11563 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
11564 Check for alias set conflict instead of strict equality to issue the
11567 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
11569 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11570 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
11571 (copy_alias_set): Assert that arrays have the same aliasing settings.
11572 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
11574 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
11576 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11577 Set TYPE_NONALIASED_COMPONENT on the array type.
11579 2009-01-31 Laurent GUERBY <laurent@guerby.net>
11581 * gcc-interface/Makefile.in: Fix mipsel linux handling.
11583 2009-01-16 Jakub Jelinek <jakub@redhat.com>
11585 * gcc-interface/Makefile.in: Fix multilib handling for
11588 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
11590 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
11591 only useless conversions around renamed objects.
11593 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
11595 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
11596 the _Tag field before any discriminants in the field list.
11597 (components_to_record): Remove obsolete comment.
11601 Copyright (C) 2009 Free Software Foundation, Inc.
11603 Copying and distribution of this file, with or without modification,
11604 are permitted in any medium without royalty provided the copyright
11605 notice and this notice are preserved.