1 2009-11-30 Vincent Celier <celier@adacore.com>
3 * prj-tree.ads: Minor comment updates
4 * prj-tree.adb: Minor reformatting
6 2009-11-30 Ed Schonberg <schonberg@adacore.com>
8 * sem_ch3.adb (Derive_Subprogram): Indicate that an inherited
9 predefined control operation is hidden if the parent type is not
11 * sem_ch6.adb (Check_Overriding_Indicator): Do not report error if
12 overridden operation is not visible, as may be the case with predefined
14 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on
15 non-overriding control operation when type is not visibly controlled,
16 if the subprogram has an explicit overriding indicator.
17 * sem_util.ads, sem_util.adb (Is_Visibly_Controlled): Moved here from
20 2009-11-30 Emmanuel Briot <briot@adacore.com>
22 * prj-tree.adb (Create_Attribute): Fix handling of VMS and Windows
23 * prj-attr.ads: Minor comment updates
25 2009-11-30 Robert Dewar <dewar@adacore.com>
27 * gnat_rm.texi: Document pragma Short_Circuit
29 2009-11-30 Emmanuel Briot <briot@adacore.com>
31 * prj-conf.adb, prj-tree.adb, prj-tree.ads (Create_Attribute): Now set
32 the index either on the attribute or on its value, depending on the
33 kind of the attribute. Done to match recent changes in Prj.PP that were
34 not synchronized with this function.
36 2009-11-30 Arnaud Charlet <charlet@adacore.com>
38 * gcc-interface/Make-lang.in: Fix typo.
41 2009-11-30 Robert Dewar <dewar@adacore.com>
43 * gnat_rm.texi: Add documentation for attribute Result.
45 2009-11-30 Arnaud Charlet <charlet@adacore.com>
47 * s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
48 s-osinte-tru64.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads
49 (Get_Page_Size): Update comment since Get_Page_Size is now required.
51 2009-11-30 Jerome Lambourg <lambourg@adacore.com>
53 * freeze.adb: Disable Warning on VM targets concerning C Imports, not
56 2009-11-30 Bob Duff <duff@adacore.com>
58 * sprint.adb (Source_Dump): Minor comment fix.
59 (Write_Itype): When writing a string literal subtype, use Expr_Value
60 instead of Intval to get the low bound.
62 2009-11-30 Vincent Celier <celier@adacore.com>
64 * gnatlink.adb (Process_Args): Do not call Executable_Name on arguments
67 2009-11-30 Robert Dewar <dewar@adacore.com>
69 * exp_ch4.adb (Expand_N_Op_And): Implement pragma Short_Circuit_And_Or
70 (Expand_N_Op_Or): Implement pragma Short_Circuit_And_Or
71 * opt.ads (Short_Circuit_And_Or): New flag
72 * par-prag.adb: Add dummy entry for pragma Short_Circuit_And_Or
73 * sem_prag.adb: Implement pragma Short_Circuit_And_Or
74 * snames.ads-tmpl: Add entries for pragma Short_Circuit_And_Or
76 2009-11-30 Arnaud Charlet <charlet@adacore.com>
78 * s-taprop-posix.adb: Fix casing.
79 * s-osinte-tru64.adb: Complete previous check-in.
81 2009-11-30 Robert Dewar <dewar@adacore.com>
83 * gnat_rm.texi: Document pragma Compiler_Unit
84 * s-bitops.adb, s-restri.adb, g-htable.adb, s-restri.ads,
85 a-comlin.ads, a-strhas.ads, s-strhas.adb, s-parame.adb,
86 s-parame.ads, a-clrefi.adb, a-clrefi.ads, a-ioexce.ads: Supply missing
87 Compiler_Unit pragmas.
88 * freeze.adb (Freeze_Entity): Improve message for 8-bit boolean passed
91 2009-11-30 Robert Dewar <dewar@adacore.com>
93 * makeutl.adb, makeutl.ads, prj-proc.adb, prj.adb, prj.ads: Minor
96 2009-11-30 Thomas Quinot <quinot@adacore.com>
98 * osint.adb: Minor reformatting
100 2009-11-30 Vincent Celier <celier@adacore.com>
102 * makeutl.ads, makeutl.adb (Base_Name_Index_For): New function to get
103 the base name of a main without the extension, with an eventual source
105 (Mains.Get_Index): New procedure to set the source index of a main
106 (Mains.Get_Index): New function to get the source index of a main
107 * prj-attr.adb: New attributes Config_Body_File_Name_Index,
108 Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
110 * prj-nmsc.adb (Process_Compiler): Takle into account new attributes
111 Config_Body_File_Name_Index, Config_Spec_File_Name_Index,
112 Multi_Unit_Object_Separator and Multi_Unit_Switches.
113 Allow only one character for Multi_Unit_Object_Separator.
114 * prj-proc.adb (Process_Declarative_Items): Take into account the
115 source indexes in indexes of associative array attribute declarations.
116 * prj.adb (Object_Name): New function to get the object file name for
117 units in multi-unit sources.
118 * prj.ads (Language_Config): New components Multi_Unit_Switches,
119 Multi_Unit_Object_Separator Config_Body_Index and Config_Spec_Index.
120 (Object_Name): New function to get the object file name for units in
122 * snames.ads-tmpl: New standard names Config_Body_File_Name_Index,
123 Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
126 2009-11-30 Arnaud Charlet <charlet@adacore.com>
128 * s-tassta.adb: Update comment.
130 2009-11-30 Robert Dewar <dewar@adacore.com>
132 * a-ngelfu.adb: Minor code reorganization.
134 2009-11-30 Robert Dewar <dewar@adacore.com>
136 * osint.ads, prj.adb, prj.ads: Minor reformatting
137 * s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
138 s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
139 s-strxdr.adb, s-taprop-irix.adb, s-osinte-hpux-dce.adb,
140 s-osinte-tru64.adb, s-taenca.adb, s-taprop-hpux-dce.adb, s-stausa.adb,
141 s-taprop-posix.adb: Minor code reorganization (use conditional
144 2009-11-30 Bob Duff <duff@adacore.com>
146 * g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change.
148 2009-11-30 Bob Duff <duff@adacore.com>
150 * socket.c: Add more accessor functions for struct servent (need
151 setters as well as getters).
152 * g-sothco.ads (Servent): Declare interfaces to C setter functions for
154 * g-sttsne-locking.adb (Copy_Service_Entry): Use setter functions for
157 2009-11-30 Robert Dewar <dewar@adacore.com>
159 * s-stchop-vxworks.adb: Add comment.
161 2009-11-30 Emmanuel Briot <briot@adacore.com>
163 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Now acts
164 on the whole tree, to better share code with gprbuild.
165 (Length): New subprogram, to share code in gprbuild.
166 (Project_Data): Remove fields that are only needed when compiling a
167 project in gprbuild (where we use local variables instead)
168 * osint.adb, osint.ads: Added minor comment on memory management
170 2009-11-30 Sergey Rybin <rybin@adacore.com>
172 * gnat_ugn.texi: Update gnatcheck doc.
174 2009-11-30 Robert Dewar <dewar@adacore.com>
176 make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting
177 * s-taprop-dummy.adb: Minor code reorganization (raise with msgs start
179 * i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb,
180 g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb,
181 s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb,
182 g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb,
183 g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code
184 reorganization (use conditional expressions).
186 2009-11-30 Vincent Celier <celier@adacore.com>
188 * prj-makr.adb (Source_Files): New hash table to keep track of source
190 (Finalize): Avoid putting several times the same source file name
191 in the source list file.
192 * prj-pp.adb (Print): Fix a bug in the placement of "at nn" for
193 associative array indexes.
195 2009-11-30 Robert Dewar <dewar@adacore.com>
197 * g-dyntab.ads: Add missing pragma Compiler_Unit
199 2009-11-30 Thomas Quinot <quinot@adacore.com>
201 * s-crtrun.ads, s-crtl.ads, g-stseme.adb, Makefile.rtl, s-fileio.adb
202 (System.CRTL.Runtime): New unit, to contain parts of s-crtl that are
203 used in the Ada runtime but can't be used in the compiler because of
205 * socket.c, s-oscons-tmplt.c, g-sothco.ads
206 (System.OS_Constants.SIZEOF_struct_servent): New constant.
207 Use s-oscons constant instead of external variable to get size of
210 2009-11-30 Thomas Quinot <quinot@adacore.com>
212 * s-crtl.ads, g-stseme.adb, s-fileio.adb (System.CRTL.strerror): Change
213 return type to Interfaces.C.Strings.chars_ptr to eliminate need for
214 dubious unchecked conversion at call sites.
215 * s-errrep.adb, s-errrep.ads, Makefile.rtl (System.Error_Reporting):
216 Remove obsolete, unused runtime unit.
217 * gcc-interface/Make-lang.in: Update dependencies.
218 * gcc-interface/Makefile.in: Remove VMS specialization of s-crtl, not
221 2009-11-30 Vincent Celier <celier@adacore.com>
223 * gnatlink.adb: Delete an eventual existing executable file, in case it
224 is a symbolic link, to avoid modifying the target of the symbolic link.
226 2009-11-30 Bob Duff <duff@adacore.com>
228 * socket.c: Add accessor functions for struct servent.
229 * g-sothco.ads (Servent): Declare interfaces to C accessor functions
231 * g-socket.adb (To_Service_Entry): Use accessor functions for struct
234 2009-11-30 Robert Dewar <dewar@adacore.com>
236 * g-arrspl.adb: Minor reformatting
237 * g-dyntab.adb: Add missing pragma Compiler_Unit
239 2009-11-30 Thomas Quinot <quinot@adacore.com>
241 * s-crtl.ads, s-oscons-tmplt.c: Fix support for VMS
242 * make.adb, g-comlin.ads, exp_ch6.adb: Minor reformatting
244 2009-11-30 Robert Dewar <dewar@adacore.com>
246 * bcheck.adb, gnatlink.adb, make.adb, makeutl.adb, osint.adb,
247 osint.ads, prj-ext.adb, sem_case.adb: Minor reformatting
248 * g-alleve.adb: Minor code reorganization (use conditional expressions)
250 2009-11-30 Matthew Heaney <heaney@adacore.com>
252 * a-crbtgo.adb (Delete_Fixup): Changed always-true predicates to
255 2009-11-30 Thomas Quinot <quinot@adacore.com>
257 * a-tasatt.adb, s-crtl.ads, s-taprop-dummy.adb (System.CRTL.malloc32,
258 System.CRTL.realloc32): Remove VMS-specific routines.
259 (Ada.Task_Attributes.Reference): Remove unreachable code.
260 (System.Task_Primitives.Operations.Initialize, dummy version):
261 Use plain Program_Error rather than call to
262 System.Error_Reporting.Shutdown.
264 2009-11-30 Thomas Quinot <quinot@adacore.com>
266 * s-oscons-tmplt.c, xoscons.adb: Add new constants in preparation for
267 sharing s-crtl across all platforms.
269 2009-11-30 Thomas Quinot <quinot@adacore.com>
271 * s-commun.adb, s-commun.ads: New internal support unit,
272 allowing code sharing between GNAT.Sockets and
273 GNAT.Serial_Communication.
274 * g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb,
275 g-socket.adb (GNAT.Sockets.Last_Index): Move to System.Communication.
276 (GNAT.Serial_Communication.Read): Handle correctly the case where no
277 data was read, and Buffer'First = Stream_Element_Offset'First.
278 * Makefile.rtl: Add entry for s-commun
279 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
280 g-socthi-vxworks.ads, g-stseme.adb, g-socthi-mingw.ads,
281 g-socthi.adb, g-socthi.ads (GNAT.Sockets.Thin.Socket_Error_Message):
282 Reimplement in terms of System.CRTL.strerror.
284 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
286 * gcc-interface/utils.c (copy_type): Unshare the language-specific data
287 and the contents of the language-specific slot if needed.
289 2009-11-26 Eric Botcazou <ebotcazou@adacore.com>
291 * gcc-interface/trans.c (gnat_to_gnu) <N_In>: Set the source location
292 of the operator on both branches of the test in the generic case.
294 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
296 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): Rename into...
297 (unchecked_conversion_nop): ...this. Handle actual parameters.
298 (gnat_to_gnu): Adjust for above renaming.
300 2009-11-25 Eric Botcazou <ebotcazou@adacore.com>
302 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
303 Translate regular boolean types into BOOLEAN_TYPEs.
305 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
307 * sem_util.adb (Set_Debug_Info_Needed): For an E_Class_Wide_Subtype,
308 also set the flag on the Equivalent_Type.
309 * gcc-interface/utils.c (finish_record_type): Replace DO_NOT_FINALIZE
310 parameter with DEBUG_INFO_P. Rename FIELDLIST into FIELD_LIST.
311 (rest_of_record_type_compilation): Rename FIELDLIST into FIELD_LIST.
312 (build_vms_descriptor32): Adjust call to finish_record_type.
313 (build_vms_descriptor): Likewise.
314 (build_unc_object_type): Likewise.
315 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust calls to
316 finish_record_type and components_to_record.
317 (make_packable_type): Adjust call to finish_record_type.
318 (maybe_pad_type): Likewise. Tweak condition.
319 (components_to_record): Likewise. Replace DO_NOT_FINALIZE parameter
320 with MAYBE_UNUSED. Adjust recursive call.
321 (create_variant_part_from): Adjust call to finish_record_type. Do not
322 call rest_of_record_type_compilation on the new record types.
323 * gcc-interface/trans.c (gigi): Adjust call to finish_record_type.
324 * gcc-interface/gigi.h (finish_record_type): Adjust prototype and
326 (rest_of_record_type_compilation): Adjust comment.
328 2009-11-24 Eric Botcazou <ebotcazou@adacore.com>
330 * exp_util.adb (Make_CW_Equivalent_Type): Do not mark the type as
331 frozen for targets that do not require front-end layout.
332 (New_Class_Wide_Subtype): Always reset the freezing status to False.
333 * exp_ch8.adb: Do not 'with' Targparm.
334 (Expand_N_Object_Renaming_Declaration): Always freeze a class-wide
335 subtype that has been built from the expression.
336 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
337 class wide, freeze the implicit type that has been built from the
338 expression at the dereference point.
339 * freeze.adb (Freeze_Entity): Adjust comment.
340 * gcc-interface/decl.c (Gigi_Equivalent_Type) <E_Class_Wide_Type>:
342 * gcc-interface/trans.c (process_freeze_entity): Do not special-case
345 * s-osinte-aix.adb (clock_gettime): Fix comment.
346 * s-osinte-darwin.adb (clock_gettime): Likewise.
348 2009-11-23 Eric Botcazou <ebotcazou@adacore.com>
350 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Pass the list
351 of attributes when building the corresponding variable of a constant.
352 * gcc-interface/utils.c (create_var_decl_1): Do not process attributes
355 2009-11-23 Laurent GUERBY <laurent@guerby.net>
356 Eric Botcazou <ebotcazou@adacore.com>
359 * s-osinte-linux.ads (struct_timeval): Delete.
360 * s-osinte-hpux.ads (struct_timeval, To_Duration, To_Timeval): Delete.
361 * s-osinte-kfreebsd-gnu.ads: Likewise.
362 * s-osinte-rtems.ads: Likewise.
363 * s-osinte-aix.ads: Likewise.
364 * s-osinte-hpux-dce.ads: Likewise.
365 * s-osinte-darwin.ads: Likewise.
366 * s-osinte-solaris-posix.ads: Likewise.
367 * s-osinte-irix.ads: Likewise.
368 * s-osinte-solaris.ads: Likewise.
369 * s-osinte-hpux-dce.adb (To_Duration, To_Timeval): Delete.
370 * s-osinte-irix.adb: Likewise.
371 * s-osinte-solaris.adb: Likewise.
372 * s-osinte-rtems.adb: Likewise. Minor reformatting.
373 * s-osinte-aix.adb (To_Duration, To_Timeval): Delete.
374 (clock_gettime): Use cal.c's timeval_to_duration.
375 * s-osinte-darwin.adb: Likewise.
377 2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
379 * adaint.h: Assume large file support on IRIX only if _LFAPI.
381 2009-11-21 Laurent GUERBY <laurent@guerby.net>
382 Eric Botcazou <ebotcazou@adacore.com>
384 * s-osinte-linux.ads (struct_timeval, To_Duration, To_Timeval,
385 gettimeofday): Delete.
386 * s-osinte-posix.adb (To_Duration, To_Timeval): Delete.
387 * s-osprim-posix.adb (struct_timezone, struct_timeval, gettimeofday):
389 (Clock): Use cal.c's timeval_to_duration.
390 * s-taprop-linux.adb (Monotonic_Clock): Likewise.
392 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
393 Laurent GUERBY <laurent@guerby.net>
395 * init.c (GNU/Linux Section): Enable for all architectures.
397 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
400 * system-linux-alpha.ads (Stack_Check_Probes): Set to true.
401 * system-linux-hppa.ads (Stack_Check_Probes): Likewise.
402 * system-linux-sparc.ads (Stack_Check_Probes): Likewise.
403 * system-linux-sparcv9.ads (Stack_Check_Probes): Likewise.
405 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
407 * system-linux-alpha.ads (AAMP, Compiler_System_Version, OpenVMS,
408 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
410 (Stack_Check_Limits, Always_Compatible_Rep): New.
411 * system-linux-mips.ads (AAMP, Compiler_System_Version, OpenVMS,
412 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
414 (Stack_Check_Limits, Always_Compatible_Rep): New.
415 * system-linux-mips64el.ads (AAMP, Compiler_System_Version, OpenVMS,
416 Functions_Return_By_DSP, Front_End_ZCX_Support, High_Integrity_Mode,
417 Long_Shifts_Inlined): Delete.
418 (Stack_Check_Limits, Always_Compatible_Rep): New.
419 * system-linux-mipsel.ads (AAMP, Compiler_System_Version, OpenVMS,
420 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
422 (Stack_Check_Limits, Always_Compatible_Rep): New.
423 * system-linux-s390.ads (AAMP, Compiler_System_Version, OpenVMS,
424 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
426 (Stack_Check_Limits, Always_Compatible_Rep): New.
427 * system-linux-s390x.ads (AAMP, Compiler_System_Version, OpenVMS,
428 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
430 (Stack_Check_Limits, Always_Compatible_Rep): New.
431 * system-linux-sh4.ads (Stack_Check_Limits, Always_Compatible_Rep):
433 * system-linux-sparc.ads (AAMP, Compiler_System_Version, OpenVMS,
434 Front_End_ZCX_Support): Delete.
435 (Stack_Check_Limits, Always_Compatible_Rep): New.
436 * system-linux-sparcv9.ads (AAMP, Compiler_System_Version, OpenVMS,
437 Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined):
439 (Stack_Check_Limits, Always_Compatible_Rep): New.
440 * system-rtems.ads (OpenVMS): Delete.
441 (Stack_Check_Limits, Always_Compatible_Rep): New.
443 2009-11-08 Eric Botcazou <ebotcazou@adacore.com>
445 * gcc-interface/decl.c (make_packable_type): Fix oversight.
446 (gnat_to_gnu_field): Do not attempt to change the form of the type
447 if the field requires strict alignment. Always change the form of
448 the type if the specified size is smaller than its size.
450 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
452 * gcc-interface/utils.c (gnat_type_for_mode): Handle vector modes.
454 2009-11-05 Eric Botcazou <ebotcazou@adacore.com>
456 * gcc-interface/trans.c (lvalue_required_p) <N_Unchecked_Conversion>:
459 2009-10-30 Eric Botcazou <ebotcazou@adacore.com>
461 * gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete.
462 (create_field_decl): Update description. In a packed record, round
463 the size up to a byte boundary only if the field's type has BLKmode.
464 * gcc-interface/gigi.h (create_field_decl): Update description.
466 2009-10-30 Emmanuel Briot <briot@adacore.com>
468 * make.adb (Start_Compile_If_Possible): Compute location of resulting
469 ALI file in this procedure instead of after the compilation itself,
470 since the current directory might have changed in between when using
473 * osint.ads: Addded missing alignment clause.
475 * adaint.c, adaint.h, osint.adb (__gnat_reset_attributes,
476 __gnat_size_of_file_attributes): Rename reset_attributes and
477 size_of_file_attributes.
479 2009-10-30 Javier Miranda <miranda@adacore.com>
481 * sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences
482 of statements when searching for SCIL nodes.
484 2009-10-30 Tristan Gingold <gingold@adacore.com>
486 * gnatlink.adb, link.c: By default use shared libgcc on darwin.
488 2009-10-30 Emmanuel Briot <briot@adacore.com>
490 * make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is
492 This saves system calls when looking for ALI files
493 (Scan_Make_Args): The parameter to gnatmake's -D is now converted to an
494 absolute PATH (so that the above improvement properly occurs if both
495 -D<dir> and -aO<dir> are specified).
497 2009-10-30 Thomas Quinot <quinot@adacore.com>
499 * a-direct.adb: Minor reformatting
501 2009-10-30 Emmanuel Briot <briot@adacore.com>
503 * make.adb, adaint.c, adaint.h, osint.adb, osint.ads, bcheck.adb
504 (*_attr): new subprograms.
505 (File_Length, File_Time_Stamp, Is_Writable_File): new subprograms
506 (Read_Library_Info_From_Full, Full_Library_Info_Name,
507 Full_Source_Name): Now benefit from a previous cache of the file
508 attributes, to further save on system calls.
509 (Smart_Find_File): now also cache the file attributes. This makes the
510 package File_Stamp_Hash_Table useless, and it was removed.
511 (Compile_Sources): create subprograms for the various steps of the main
512 loop, for readibility and to avoid sharing variables between the
515 2009-10-30 Emmanuel Briot <briot@adacore.com>
517 * make.adb, osint.adb, osint.ads (Library_File_Stamp): Removed, since
519 (Read_Library_Info_From_Full): New subprogram.
521 2009-10-30 Robert Dewar <dewar@adacore.com>
523 * a-tideio.adb: Minor reformatting
524 * a-wtdeio.adb, a-ztdeio.adb: Update comments, code clean up.
526 * a-reatim.adb, a-tideau.adb, a-ngelfu.adb, a-ztdeau.adb, a-ngrear.adb,
527 a-wtedit.adb, a-ststio.adb, a-ztedit.adb: Minor code reorganization
528 (use conditional expressions).
530 2009-10-30 Ed Schonberg <schonberg@adacore.com>
532 * gnat_ugn.texi: Additional info on gnatw.i and gnatw.I
534 * sem_case.adb: Improved error message.
536 2009-10-30 Emmanuel Briot <briot@adacore.com>
538 * a-direct.adb, gnatcmd.adb, gnatname.adb, makeutl.adb, opt.ads,
539 osint.adb, prj-ext.adb, switch-m.adb (Follow_Links_For_Dirs): Now
540 defaults to False, and controlled by -eL.
541 * a-direct.adb: Add comments.
542 * osint.adb (File_Stamp): Avoid unneeded duplicate system call
544 2009-10-30 Robert Dewar <dewar@adacore.com>
546 * sem_res.adb (Resolve_Type_Conversion): Avoid false positive when
547 converting non-static subtype to "identical" static subtype.
549 2009-10-30 Ed Schonberg <schonberg@adacore.com>
551 * usage.adb: Add -gnatw.i switch.
553 2009-10-30 Vincent Celier <celier@adacore.com>
555 * xsnamest.adb: Update comments with regards to the template files
558 2009-10-30 Bob Duff <duff@adacore.com>
560 * s-fileio.adb (Errno_Message): Suppress VMS-specific warning.
562 2009-10-30 Ed Schonberg <schonberg@adacore.com>
564 * sem_case.adb (Check_Choices): Add explanatory message when there are
565 missing alternatives when the required range of alternatives is given
566 by the base type of the case expression or discriminant in a variant
569 * opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially
570 dangerous overlap between actuals in a call, activated by -gnatw.i
571 * sem_warn.adb (Set_Dot_Warning_Switch): set flag.
572 (Warn_On_Overlapping_Actuals): use new flag.
574 * gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals
576 2009-10-30 Robert Dewar <dewar@adacore.com>
578 * exp_aggr.adb, exp_ch9.adb: Minor reformatting
580 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
582 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
583 create integer types with precision 0.
585 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
588 * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
589 parameters and rewrite comments. For a derived type, return the
590 setting of its parent type.
591 (gnat_to_gnu_entity): Do an alias set copy for derived types if they
592 are composite. Adjust calls to above function.
594 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
596 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not
597 return the RM size for padded types.
599 2009-10-28 Robert Dewar <dewar@adacore.com>
601 * sem_type.adb: Minor reformatting
603 2009-10-28 Arnaud Charlet <charlet@adacore.com>
605 * exp_ch9.adb (Build_Task_Proc_Specification): Generate a different
606 suffix for task type bodies.
608 2009-10-28 Ed Schonberg <schonberg@adacore.com>
610 * exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a
611 finalization list if the designated type requires no control actions,
612 to prevent a useless semantic dependence on ada.tags.
614 2009-10-28 Bob Duff <duff@adacore.com>
616 * s-fileio.adb: Give more information in exception messages.
618 2009-10-28 Robert Dewar <dewar@adacore.com>
620 * gnat_ugn.texi: Document new -gnatyt requirement for space after right
621 paren if next token starts with digit or letter.
622 * styleg.adb (Check_Right_Paren): New rule for space after if next
623 character is a letter or digit.
625 2009-10-28 Thomas Quinot <quinot@adacore.com>
627 * s-crtl.ads (System.CRTL.strerror): New function.
629 2009-10-28 Ed Schonberg <schonberg@adacore.com>
631 * sem_type.adb: Add guard to recover some type errors.
633 2009-10-28 Vincent Celier <celier@adacore.com>
635 * prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
636 Add_If_Not_In_List to account to the fact that a directory may be
637 removed from the list. Only remove directory if Removed is True.
639 2009-10-28 Gary Dismukes <dismukes@adacore.com>
641 * a-textio.ads, a-textio.ads: Put back function EOF_Char in private
642 part. Put back body of function EOF_Char.
643 * a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
646 2009-10-28 Emmanuel Briot <briot@adacore.com>
648 * prj-tree.adb (Free): Fix memory leak.
650 2009-10-28 Thomas Quinot <quinot@adacore.com>
652 * s-fileio.adb: Minor reformatting
654 2009-10-28 Arnaud Charlet <charlet@adacore.com>
656 * gcc-interface/Make-lang.in: Update dependencies.
658 2009-10-28 Robert Dewar <dewar@adacore.com>
660 * exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
661 types.ads: Minor reformatting
663 2009-10-28 Tristan Gingold <gingold@adacore.com>
665 * init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
667 2009-10-28 Thomas Quinot <quinot@adacore.com>
669 * exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
670 the operand of the unary minus and ABS operators.
672 * sem_type.adb (Covers): A concurrent type and its corresponding record
674 * exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
675 attribute reference for the current instance of a protected type while
676 analyzing an access discriminant constraint in a component definition.
677 Such a reference is handled in the corresponding record's init proc,
678 while initializing the constrained component.
679 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
680 corresponding record type, propagate components'
681 Has_Per_Object_Constraint flag.
682 * exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
683 For a concurrent type, set up concurrent aspects before initializing
684 components with a per object constrain, because they may be controlled,
685 and their initialization may call entries or protected subprograms of
686 the enclosing concurrent object.
688 2009-10-28 Emmanuel Briot <briot@adacore.com>
690 * prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
692 (Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
693 processing the directories specified explicitly in the project file.
695 2009-10-28 Robert Dewar <dewar@adacore.com>
697 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
698 a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
700 (Initialize_Standard_Files): New procedure.
701 * a-tienau.adb: Minor change to make EOF directly visible
702 * a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
703 a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
704 * gnat_rm.texi: Add documentation for
705 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
706 * Makefile.rtl: Add entries for
707 Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
709 2009-10-28 Thomas Quinot <quinot@adacore.com>
711 * exp_ch9.ads: Minor reformatting
712 * sem_ch3.adb: Minor reformatting
713 * sem_aggr.adb: Minor reformatting.
714 * sem_attr.adb: Minor reformatting
715 * tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
717 Minor code reorganization/factoring.
719 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
721 * gcc-interface/decl.c (purpose_member_field): New static function.
722 (annotate_rep): Use it instead of purpose_member.
724 2009-10-27 Eric Botcazou <ebotcazou@adacore.com>
726 * raise-gcc (db_region_for): Use _Unwind_GetIPInfo instead of
727 _Unwind_GetIP if HAVE_GETIPINFO is defined.
728 (db_action_for): Likewise.
730 2009-10-27 Robert Dewar <dewar@adacore.com>
732 * s-fileio.adb, s-fileio.ads, sem_util.adb, sem_warn.adb,
733 sem_warn.ads: Minor reformatting
735 2009-10-27 Robert Dewar <dewar@adacore.com>
737 * sem_warn.adb, sem_util.adb, sem_util.ads: Minor reformatting. Add
740 2009-10-27 Robert Dewar <dewar@adacore.com>
742 * s-os_lib.ads, s-os_lib.adb, prj-err.adb, makeutl.adb: Minor
745 2009-10-27 Ed Schonberg <schonberg@adacore.com>
747 * sem.util.ads, sem_util.adb (Denotes_Same_Object,
748 Denotes_Same_Prefix): New functions to detect overlap between actuals
749 that are not by-copy in a call, when one of them is in-out.
750 * sem_warn.ads, sem_warn.adb (Warn_On_Overlapping_Actuals): New
751 procedure, called on a subprogram call to warn when an in-out actual
752 that is not by-copy overlaps with another actual, thus leadind to
753 potentially dangerous aliasing in the body of the called subprogram.
754 Currently the warning is under control of the -gnatX switch.
755 * sem_res.adb (resolve_call): call Warn_On_Overlapping_Actuals.
757 2009-10-27 Thomas Quinot <quinot@adacore.com>
759 * sem_ch12.adb (Install_Formal_Packages): Do not omit installation of
760 visible entities when the formal package doesn't have a box.
762 * checks.adb: Minor reformatting.
764 2009-10-27 Vincent Celier <celier@adacore.com>
766 * prj-part.adb (Parse): Catch exception Types.Unrecoverable_Error and
767 set Project to Empty_Node.
769 2009-10-27 Robert Dewar <dewar@adacore.com>
771 * gnatbind.adb: Minor reformatting
773 2009-10-27 Arnaud Charlet <charlet@adacore.com>
775 * exp_aggr.adb: Fix comment.
777 2009-10-27 Emmanuel Briot <briot@adacore.com>
779 * prj-err.adb (Error_Msg): take into account continuation lines when
780 computing whether we have a warning.
782 2009-10-27 Vasiliy Fofanov <fofanov@adacore.com>
784 * make.adb, s-os_lib.adb, s-os_lib.ads (Create_Temp_Output_File): New
785 routine that is designed to create temp file descriptor specifically
786 for redirecting an output stream.
788 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
790 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
791 processing the parent type, build the COMPONENT_REF for a discriminant
792 with the proper type.
794 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
796 * init.c (__gnat_adjust_context_for_raise): Mention _Unwind_GetIPInfo.
797 * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Add HAVE_GETIPINFO.
798 Pass GNATLIBCFLAGS_FOR_C to recursive invocations.
800 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
802 * gcc-interfaces/decl.c (build_subst_list): Convert the expression of
803 the constraint to the type of the discriminant.
805 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
807 * gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
808 TYPE_DECL when a type is padded if there is already one and reset
809 TYPE_STUB_DECL in this case.
811 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
813 * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
814 main_identifier_node.
816 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
818 * gcc-interface/utils.c (convert): When converting to a padded type
819 with an inner type of self-referential size, pad the expression before
820 doing the unchecked conversion.
822 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
824 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
825 sure the element type is consistent.
827 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
829 * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
831 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
833 * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
834 (TYPE_IS_FAT_POINTER_P): ...this.
835 (TYPE_THIN_POINTER_P): Rename into...
836 (TYPE_IS_THIN_POINTER_P): ...this.
837 (TYPE_FAT_OR_THIN_POINTER_P): Rename into...
838 (TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
839 (TYPE_IS_PADDING_P): Change definition, move old one to...
840 (TYPE_PADDING_P): ...this.
841 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
842 (get_unpadded_type): Likewise.
843 (gnat_to_gnu_component_type): Likewise.
844 (gnat_to_gnu_param): Likewise.
845 (relate_alias_sets): Likewise.
846 (make_packable_type): Likewise.
847 (maybe_pad_type): Likewise.
848 (gnat_to_gnu_field): Likewise.
849 (is_variable_size): Likewise.
850 (annotate_object): Likewise.
851 (validate_size): Likewise.
852 (set_rm_size): Likewise.
853 (make_type_from_size): Likewise.
855 * gcc-interface/misc.c (gnat_print_type): Likewise.
856 (gnat_get_alias_set): Likewise.
857 * gcc-interface/trans.c (Identifier_to_gnu): Likewise.
858 (Attribute_to_gnu): Likewise.
859 (call_to_gnu): Likewise.
860 (gnat_to_gnu): Likewise.
861 (add_decl_expr): Likewise.
862 (convert_with_check): Likewise.
863 (addressable_p): Likewise.
864 (maybe_implicit_deref): Likewise.
865 (protect_multiple_eval): Likewise.
866 (gnat_stabilize_reference_1): Likewise.
867 * gcc-interface/utils.c (gnat_pushdecl): Likewise.
868 (finish_record_type): Likewise.
869 (rest_of_record_type_compilation): Likewise.
870 (create_type_decl): Likewise.
871 (gnat_types_compatible_p): Likewise.
872 (build_template): Likewise.
873 (convert_vms_descriptor64): Likewise.
874 (convert_vms_descriptor32): Likewise.
875 (build_unc_object_type_from_ptr): Likewise.
876 (update_pointer_to): Likewise.
877 (convert_to_fat_pointer): Likewise.
878 (convert_to_fat_pointer): Likewise.
880 (remove_conversions): Likewise.
881 (maybe_unconstrained_array): Likewise.
882 (unchecked_convert): Likewise.
883 (handle_vector_type_attribute): Likewise.
884 * gcc-interface/utils2.c (build_binary_op): Likewise.
885 (build_unary_op): Likewise.
886 (build_allocator): Likewise.
888 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
890 * exp_dbug.ads: Adjust type names in comments.
891 * gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
892 add new IS_COMPONENT_TYPE parameter. Adjust. Remove dead code.
893 (gnat_to_gnu_entity): Adjust for above change.
894 (gnat_to_gnu_component_type): Likewise.
895 (gnat_to_gnu_field): Likewise.
896 * gcc-interface/trans.c (call_to_gnu): Likewise. Do not unnecessarily
898 * gcc-interface/utils.c (finish_record_type): Remove obsolete code.
899 * gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.
901 2009-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
903 * s-osinte-rtems.ads: Add mutex type to pthread_mutexattr_t
904 * s-stchop-rtems.adb: Correct binding to rtems_stack_checker_is_blown.
906 2009-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
908 * env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
910 2009-10-10 Samuel Tardieu <sam@rfc1149.net>
912 * sem_eval.adb: Give a more precise error message.
914 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
917 * a-rttiev.adb (Time_Of_Event): Return Time_First for unset event.
919 2009-10-06 Samuel Tardieu <sam@rfc1149.net>
922 * sem_prag.adb (Process_Import_Or_Interface): Forbid an abstract
923 subprogram to be completed with a "pragma Import".
925 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
927 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>:
928 Generate an XVZ variable alongside the XVS type if the size is
930 (maybe_pad_type): Minor tweak.
932 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
934 * gcc-interface/decl.c (check_ok_for_atomic): Do nothing if the type
935 doesn't come from source.
937 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
939 * gcc-interface/decl.c (gnat_to_gnu_component_type): Force at least
940 unit size for the component size of an array with aliased components.
941 (maybe_pad_type): Do not warn for MAX_EXPR.
943 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
945 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
946 common code processing the component type into...
947 <E_Array_Subtype>: Likewise.
948 (gnat_to_gnu_component_type): ...this new static function.
949 (maybe_pad_type): Minor cleanup.
951 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
953 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
954 the handling of constrained discriminated record subtypes.
955 (components_to_record): Declare the type of the variants and of the
957 (build_subst_list): Move around.
958 (compute_field_positions): Rename into...
959 (build_position_list): ...this. Return a TREE_VEC.
960 (annotate_rep): Adjust for above renaming.
961 (build_variant_list): New static function.
962 (create_field_decl_from): Likewise.
963 (get_rep_part): Likewise.
964 (get_variant_part): Likewise.
965 (create_variant_part_from): Likewise.
966 (copy_and_substitute_in_size): Likewise.
968 2009-09-28 Olivier Hainque <hainque@adacore.com>
971 * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
972 Account for observable alignments out of default allocators.
974 2009-09-28 Richard Henderson <rth@redhat.com>
976 * gcc-interface/utils.c (gnat_install_builtins): Update call to
977 build_common_builtin_nodes.
979 2009-09-26 Eric Botcazou <ebotcazou@adacore.com>
981 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
982 negative size for the array dimensions like in the constrained case.
983 <E_Array_Subtype>: Do not create an artificially non-constant high
984 bound if the low bound is non-constant. Minor tweaks.
986 * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
987 and turn ALIASED into a boolean parameter. Adjust calls to self.
988 <N_Attribute_Reference>: Return 1 for more attributes.
989 <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
990 <N_Assignment_Statement>: Return 1 for the LHS.
991 (Identifier_to_gnu): Adjust calls to lvalue_required_p.
992 (call_to_gnu): Be prepared for wrapped boolean rvalues.
994 2009-09-25 Olivier Hainquqe <hainque@adacore.com>
995 Eric Botcazou <ebotcazou@adacore.com>
997 * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
998 specific node. Representative array type for VECTOR_TYPE entities.
999 * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
1000 Turn an ARRAY_TYPE entity into a VECTOR_TYPE.
1001 (gnat_types_compatible_p): Handle VECTOR_TYPEs.
1002 (convert): Likewise. Arrange to produce VECTOR_CST out of constant
1003 array aggregates for VECTOR_TYPE entities.
1004 (unchecked_convert): Likewise.
1005 (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
1006 converted to the associated TYPE_REPRESENTATIVE_ARRAY.
1007 (handle_pure_attribute, handle_sentinel_attribute,
1008 handle_noreturn_attribute, handle_malloc_attribute,
1009 handle_vector_size_attribute): Replace uses of qE format by qs.
1010 Remove GCC_DIAG_STYLE definition.
1011 * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
1012 vector input to representative array type on entry.
1013 <N_Op_Eq, etc>: Likewise.
1014 * gcc-interface/gigi.h (maybe_vector_array): Declare.
1015 (VECTOR_TYPE_P): New predicate.
1016 * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
1018 2009-09-24 Eric Botcazou <ebotcazou@adacore.com>
1020 * gcc-interface/ada.h: Fix outdated comment.
1021 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
1022 lieu of mark_visited.
1023 * gcc-interface/gigi.h (mark_visited): Change type of parameter.
1024 (MARK_VISITED): New macro.
1025 (gnat_truthvalue_conversion): Delete.
1026 * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
1028 (annotate_rep): Fix formatting and tidy.
1029 (compute_field_positions): Get rid of useless variable.
1030 * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
1031 node only once. Use IN operator for the Nkind in more cases.
1032 Remove calls to gnat_truthvalue_conversion.
1033 (mark_visited): Change type of parameter and adjust.
1034 (mark_visited_r): Dereference TP only once.
1035 (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
1036 * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
1037 (build_binary_op): Remove calls to gnat_truthvalue_conversion.
1038 (build_unary_op): Likewise.
1040 2009-09-24 Dave Korn <dave.korn.cygwin@gmail.com>
1042 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
1043 a-except% in target pairs list; don't (implicitly) compare whitespace.
1045 2009-09-24 Jakub Jelinek <jakub@redhat.com>
1047 * gcc-interface/utils.c (gnat_pushdecl): Don't set
1048 DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
1051 2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
1053 * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
1054 Bind to getpagesize() in RTEMS 4.10 and newer.
1056 2009-09-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1058 * env.c [__alpha__ && __osf__] (_BSD): Define.
1059 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
1062 2009-09-18 Pascal Obry <obry@adacore.com>
1064 * mingw32.h: Activate Unicode support for x86-64 Windows platform.
1066 2009-09-18 Vadim Godunko <godunko@adacore.com>
1068 * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
1070 2009-09-18 Javier Miranda <miranda@adacore.com>
1072 * exp_aggr.adb (Backend_Processing_Possible): Disable backend
1073 processing for array aggregates in the VM backend if the array has
1076 2009-09-18 Ed Schonberg <schonberg@adacore.com>
1078 * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
1079 the prefix indicates a previous semantic error, and this is the first
1080 error in the program.
1082 2009-09-18 Bob Duff <duff@adacore.com>
1084 * gnat_ugn.texi: Minor editing.
1086 2009-09-18 Vincent Celier <celier@adacore.com>
1088 * prj.ads, prj.adb (Project_Data): New component
1089 Imported_Directories_Switches.
1091 2009-09-18 Pascal Obry <obry@adacore.com>
1093 * mingw32.h: Include standard _mingw.h file.
1094 Define _WIN32_WINNT only if not already defined.
1096 2009-09-18 Thomas Quinot <quinot@adacore.com>
1098 * g-socket.adb (Is_Open): New function indicating whether a
1099 Selector_Type object is open.
1101 2009-09-18 Vincent Celier <celier@adacore.com>
1103 * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
1104 is deleted before creating it.
1106 2009-09-18 Robert Dewar <dewar@adacore.com>
1108 * bindgen.adb: Minor reformatting
1110 2009-09-18 Arnaud Charlet <charlet@adacore.com>
1112 * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
1113 s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
1114 signal handler is installed.
1115 * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
1116 tasks if Abort_Task_Interrupt cannot be used.
1118 2009-09-18 Vincent Celier <celier@adacore.com>
1120 * prj-tree.ads: Minor comment update
1122 2009-09-17 Bob Duff <duff@adacore.com>
1124 * g-socket.ads: Document the fact that Close_Selector has no effect on
1126 * g-socket.adb: Raise an exception when a Selector that should be open
1128 (Check_Selector): Declare RSig as a constant rather than a renames,
1131 2009-09-17 Robert Dewar <dewar@adacore.com>
1133 * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
1134 prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
1135 prj-tree.ads: Minor reformatting
1137 2009-09-17 Emmanuel Briot <briot@adacore.com>
1139 * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
1141 (Do_Autoconf): If the object directory does not exists, create auto.cgpr
1142 in a temporary directory instead
1144 2009-09-17 Bob Duff <duff@adacore.com>
1146 * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
1148 (Get_Priority): Correct message for "terminated" case -- it said "null".
1150 2009-09-17 Robert Dewar <dewar@adacore.com>
1152 * exp_ch6.adb: Minor reformatting
1154 2009-09-17 Emmanuel Briot <briot@adacore.com>
1156 * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
1157 switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
1158 (Project_Node_Tree_Data.Project_Path): New field.
1160 * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
1162 2009-09-17 Emmanuel Briot <briot@adacore.com>
1164 * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
1165 Remove duplicate code.
1166 (Prj.Ext): Fix memory leak
1167 (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
1168 variable. This was previously allowed in the code in
1169 Is_External_Assignment, and some tests rely on it
1171 2009-09-17 Bob Duff <duff@adacore.com>
1173 * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
1175 2009-09-17 Emmanuel Briot <briot@adacore.com>
1177 * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
1178 makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
1179 prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
1180 prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
1181 Scenario variables are now specific to each project tree loaded in
1185 2009-09-17 Javier Miranda <miranda@adacore.com>
1187 * exp_disp.adb (Make_DT): Remove wrong line of code that was
1188 undocumented and probably added by mistake.
1190 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1192 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
1193 conversions between original and packable version of types from
1196 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
1198 * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
1199 If a padding type was made for the field, declare it.
1200 (components_to_record): Add DEBUG_INFO_P parameter. Adjust call
1201 to gnat_to_gnu_field and call to self.
1202 (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
1203 <E_Array_Subtype>: Likewise.
1204 Adjust calls to gnat_to_gnu_field and components_to_record.
1206 2009-09-16 Robert Dewar <dewar@adacore.com>
1208 * prj-nmsc.adb: Minor reformatting
1210 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1212 * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
1213 expression is a by-reference type (tagged or inherently limited)
1214 introduce an access type to capture references to the values of each
1215 branch of the conditional.
1217 2009-09-16 Emmanuel Briot <briot@adacore.com>
1219 * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
1220 (Project_Name_And_Node.Display_Name): new field
1221 The display name of a project (as written in the .gpr file) is now
1222 computed when the project file itself is parsed, not when it is
1225 2009-09-16 Thomas Quinot <quinot@adacore.com>
1227 * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
1228 intrinsics untouched (to be expanded later on by gigi) if an external
1229 name has been specified.
1230 (Freeze_Entity): Do not generate a default external name for
1231 imported subprograms with convention Intrinsic (so that the above code
1232 can identify the case where an external name has been explicitly
1235 * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
1236 replaced by something else due to an existing #define clause.
1238 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1240 * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
1241 Parameter_Association node, created for the extra actual generated for
1242 an access parameter of a function that dispatches on result, to prevent
1243 double generation of such actuals when the call is rewritten is a
1245 * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
1246 * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
1247 that carry this flag when rewriting the original call as a dispatching
1248 call, after propagating the controlling tag.
1250 2009-09-16 Vincent Celier <celier@adacore.com>
1252 * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
1254 (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
1256 (Find_Source_Dirs): New parameter Rank to be recorded with the source
1258 (Search_Directories): Call Check_File with the rank of the directory
1259 * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
1260 (Free): Free also Number_Lists
1261 (Reset): Init also Number_Lists
1262 * prj.ads (Number_List_Table): New dynamic table for lists of numbers
1263 (Source_Data): New component Source_Dir_Rank. Remove component
1264 Known_Order_Of_Source_Dirs, no longer needed.
1265 (Project_Data): New component Source_Dir_Ranks
1266 (Project_Tree_Data): New components Number_Lists
1268 2009-09-16 Vincent Celier <celier@adacore.com>
1270 * gprep.adb (Yes_No): New global constant
1271 Unix_Line_Terminators: New global Boolean variable
1272 (Process_One_File): Create the out file with a "Text_Translation=" form
1273 that depends on the use of option -T.
1274 (Scan_Command_Line): Add option -T
1275 (Usage): Add line for option -T
1277 2009-09-16 Ed Schonberg <schonberg@adacore.com>
1279 * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
1280 predicate that describes a proper subset of
1281 Is_Predefined_Dispatching_Operation and excludes stream operations,
1282 which can be overridden by the user.
1283 * sem_ch6.adb (Create_Extra_Formals): use
1284 Is_Predefined_Internal_Operation, so that stream operations get extra
1286 * exp_ch6.adb (Prevent double generation of extra actuals in calls to
1287 'Input, which may be expanded twice, first as a function call and then
1288 as a dispatching call.
1290 2009-09-16 Thomas Quinot <quinot@adacore.com>
1292 * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
1293 * g-expect.adb (Set_Up_Child_Communications): Use
1294 System.OS_Constants.Target_OS to determine whether running on Windows.
1296 2009-09-14 Richard Henderson <rth@redhat.com>
1298 * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
1300 2009-09-14 Eric Botcazou <ebotcazou@adacore.com>
1302 * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
1303 the unconstrained case.
1304 * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
1305 the encoding. Do not give a name to the pointer type to the XUT type.
1306 * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
1307 for fat pointer types, if any. Make sure DECL_ARTIFICIAL is cleared
1308 on nodes with DECL_ORIGINAL_TYPE set.
1309 (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
1310 for fat pointer types. Make sure DECL_ARTIFICIAL is cleared.
1312 2009-09-14 Richard Henderson <rth@redhat.com>
1314 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
1315 default_init_unwind_resume_libfunc.
1316 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
1317 __builtin_eh_pointer.
1318 * gcc-interface/utils.c (gnat_install_builtins): Update call
1319 to build_common_builtin_nodes.
1321 2009-09-13 Richard Guenther <rguenther@suse.de>
1322 Rafael Avila de Espindola <espindola@google.com>
1324 * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
1325 eh_personality_libfunc and lang_eh_runtime_type.
1326 (LANG_HOOKS_EH_PERSONALITY): Define.
1327 (gnat_eh_personality_decl): New static variable.
1328 (gnat_eh_personality): New static function.
1329 Include gt-ada-misc.h.
1330 * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
1331 * gcc-interface/config-lang.in (gtfiles): Add misc.c.
1333 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1336 * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
1338 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1340 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
1342 Avoid useless work when processing the Treat_As_Volatile flag.
1344 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
1346 * gcc-interface/targtyps.c: Reorder include directives.
1348 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1350 * gcc-interface/targtyps.c: Add missing include for tm_p.h.
1351 * gcc-interface/Make-lang.in: Update dependencies.
1353 2009-09-07 Laurent GUERBY <laurent@guerby.net>
1355 * make.adb: Add missing documentation for multilib handling.
1357 2009-09-03 Diego Novillo <dnovillo@google.com>
1359 * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
1361 2009-09-02 Richard Henderson <rth@redhat.com>
1363 * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
1365 2009-09-02 Olivier Hainque <hainque@adacore.com>
1367 * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
1370 2009-09-02 Olivier Hainque <hainque@adacore.com>
1372 * gcc-interface/decl.c (cannot_be_superflat_p): Handle
1373 Signed_Integer_Type_Definition Scalar_Ranges.
1375 2009-09-02 Eric Botcazou <ebotcazou@adacore.com>
1377 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
1378 SAVE_EXPR built for misaligned arguments. Remove redundant stuff.
1379 (addressable_p): Return true for more rvalues.
1381 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1383 * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
1384 POINTER_SIZE to HOST_WIDE_INT.
1386 2009-09-01 Richard Guenther <rguenther@suse.de>
1388 * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1390 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
1392 * gcc-interface/trans.c (call_to_gnu): Tidy.
1393 (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
1394 non-constant size but the array itself has constant size.
1395 * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
1397 (convert_vms_descriptor32): Likewise.
1399 2009-08-22 Aurelien Jarno <aurelien@aurel32.net>
1401 * gcc-interface/Makefile.in: Add Ada support for
1402 GNU/kFreeBSD x86_64.
1403 * system-freebsd-x86_64.ads: New file based on
1404 system-freebsd-x86.ads.
1406 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1408 * gcc-interface/utils.c (convert): In the padded case, do the final
1409 conversion as an unchecked conversion if the underlying types are
1410 array types with variable size.
1412 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
1414 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
1416 * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
1418 * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
1420 (gnat_gimplify_expr) <DECL_EXPR>: New case.
1422 2009-08-17 Aurelien Jarno <aurelien@aurel32.net>
1424 * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
1425 (stack_t): New record type.
1426 (sigaltstack): New imported function.
1427 (Alternate_Stack): New imported variable.
1428 (Alternate_Stack_Size): New constant.
1430 2009-08-17 Vasiliy Fofanov <fofanov@adacore.com>
1432 * a-calend-vms.adb: Fix typo.
1434 2009-08-17 Tristan Gingold <gingold@adacore.com>
1436 * s-taprop-posix.adb: Round up the stack size to avoid failure on
1439 2009-08-17 Gary Dismukes <dismukes@adacore.com>
1441 * sem_cat.adb (Validate_Static_Object_Name): Update comment.
1443 2009-08-17 Vincent Celier <celier@adacore.com>
1445 * make.adb (Arguments_Collected): Unneeded, removed
1446 (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
1447 ensure caller does not pass in No_Project.
1448 (Compile): Add new parameter Project. Let procedure
1449 Collect_Arguments_And_Compile provide the proper value.
1451 * switch-c.adb: Add documentation for -gnatea and -gnatez
1453 2009-08-17 Ben Brosgol <brosgol@adacore.com>
1455 * gnat_ugn.texi: Changed name of package in SAL example, to avoid
1456 clash with Ada 2005 reserved word (interface).
1458 2009-08-17 Robert Dewar <dewar@adacore.com>
1460 * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
1461 a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
1462 a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
1463 (use conditional expressions).
1465 2009-08-17 Robert Dewar <dewar@adacore.com>
1467 * make.adb: Add ??? comment
1468 * tbuild.adb: Minor reformatting
1470 2009-08-17 Thomas Quinot <quinot@adacore.com>
1472 * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
1473 Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
1474 Use Tbuild.Make_Temporary to create entity for the temporary.
1476 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1478 * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
1479 and ignore -mieee switch to avoid spawning an extra gcc in this case.
1481 2009-08-17 Thomas Quinot <quinot@adacore.com>
1483 * tbuild.adb: Minor reformatting
1485 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1487 * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
1488 exist, as is the case for synchronized types, use the type of the
1489 discriminal in the parameter specification, to prevent a spurious
1490 subtype mismatch in gigi.
1492 2009-08-17 Robert Dewar <dewar@adacore.com>
1494 * prj-env.adb: Minor reformatting
1495 * make.adb: Minor reformatting
1498 2009-08-17 Javier Miranda <miranda@adacore.com>
1500 * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
1502 2009-08-17 Emmanuel Briot <briot@adacore.com>
1504 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
1505 (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
1506 object directories must be present. In the case of gprclean at least,
1507 these are optional (if they do not exist there is nothing to clean)
1509 2009-08-17 Robert Dewar <dewar@adacore.com>
1511 * prj-env.adb: Minor reformatting
1512 * sem_ch3.adb: Minor reformatting
1514 2009-08-17 Hristian Kirtchev <kirtchev@adacore.com>
1516 * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
1517 the time zone since VxWorks chose positive values to represent west
1518 time zones and negative for east zones.
1520 2009-08-17 Ed Schonberg <schonberg@adacore.com>
1522 * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
1523 an anonymous access type whose designated type is generic.
1525 2009-08-17 Arnaud Charlet <charlet@adacore.com>
1527 * comperr.adb (Compiler_Abort): Do not generate a bug box when in
1528 codepeer mode, friendlier.
1530 2009-08-10 Laurent GUERBY <laurent@guerby.net>
1532 * make.adb: Handle multilib
1534 2009-08-10 Vincent Celier <celier@adacore.com>
1536 * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
1537 the temporary file name in the error message when the temporary file
1540 2009-08-10 Yannick Moy <moy@adacore.com>
1542 * gnat_ugn.texi: Fix typo
1544 2009-08-10 Robert Dewar <dewar@adacore.com>
1546 * exp_ch7.adb: Add ??? comment for last change
1548 2009-08-10 Vincent Celier <celier@adacore.com>
1550 * prj-env.adb (Add_To_Buffer): New procedure
1551 (Create_Config_Pragmas_File): Write to temporary file in one shot
1552 (Create_Mapping_File): Ditto
1553 (Set_Ada_Paths): Ditto
1555 2009-08-10 Vincent Celier <celier@adacore.com>
1558 * xref_lib.adb (Print_Xref): Make sure that there is at least one space
1559 between a declaration name and its type.
1561 2009-08-07 Javier Miranda <miranda@adacore.com>
1563 * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
1566 2009-08-07 Robert Dewar <dewar@adacore.com>
1568 * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
1570 2009-08-07 Vincent Celier <celier@adacore.com>
1572 * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
1573 specified on the command line and there are switches in the Compiler
1574 package of the project file, use these compilation switches to invoke
1577 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1579 * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
1581 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1583 * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
1584 even if not in main unit, to simplify debugging.
1586 2009-08-07 Arnaud Charlet <charlet@adacore.com>
1588 * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
1589 * gcc-interface/Make-lang.in: Update dependencies.
1591 2009-08-07 Robert Dewar <dewar@adacore.com>
1593 * types.ads: Minor reformatting
1594 * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
1595 * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
1596 Output_Non_Modified_In_Out_Warnings.
1597 * sem_ch13.adb: Remove ??? comment.
1599 2009-08-07 Vincent Celier <celier@adacore.com>
1601 * mlib-prj.adb (Build_Library): Include binder generate object file
1602 for SAL when library name is only one character.
1604 2009-08-07 Thomas Quinot <quinot@adacore.com>
1606 * targparm.adb: Minor reformatting
1607 * sem.adb: Minor reformatting
1608 * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
1610 2009-08-07 Emmanuel Briot <briot@adacore.com>
1612 * prj-conf.adb: Remove duplicate directory separator in the output when
1613 an object directory does not exist.
1615 2009-08-07 Robert Dewar <dewar@adacore.com>
1617 * exp_util.adb: Minor reformatting
1619 2009-08-07 Vincent Celier <celier@adacore.com>
1621 * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
1624 2009-08-07 Ed Schonberg <schonberg@adacore.com>
1626 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
1627 detect non-static private components that will violate restriction
1628 No_Implicit_Heap_Allocation.
1630 2009-08-07 Ben Brosgol <brosgol@adacore.com>
1632 * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
1634 2009-08-02 Eric Botcazou <ebotcazou@adacore.com>
1636 * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
1637 * gcc-interface/utils.c (end_subprog_body): Likewise.
1638 * gcc-interface/trans.c (gigi): Likewise.
1639 (gnat_to_gnu): Likewise.
1641 2009-07-30 Ben Brosgol <brosgol@adacore.com>
1643 * gnat_ugn.texi: Correct minor texi glitch.
1645 2009-07-30 Ed Schonberg <schonberg@adacore.com>
1647 * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
1648 expression has an underlying representation that is an unchecked union,
1649 there is no subtype to build.
1651 2009-07-30 Robert Dewar <dewar@adacore.com>
1653 * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
1654 s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
1655 sem_ch7.adb, adaint.c: Minor reformatting
1657 2009-07-29 Javier Miranda <miranda@adacore.com>
1659 * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
1660 moved from the expander to the semantic analyzer to allow the
1661 generation of these internal entities when compiling with no code
1662 generation. Required by ASIS.
1663 * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
1664 * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
1665 * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
1666 (Expand_Freeze_Record_Type): Remove call to
1667 Add_Internal_Interface_Entities because this routine is now called at
1668 early stage --when the freezing node is analyzed.
1670 2009-07-29 Robert Dewar <dewar@adacore.com>
1672 * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
1673 exp_disp.adb, g-socket.adb: Minor reformatting
1675 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1677 * sem_ch7.adb (New_Private_Type): Create class-wide type after other
1678 attributes have been established, so that they are all inherited by the
1680 * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
1681 properly named subtypes of class-wide types.
1683 2009-07-29 Ed Schonberg <schonberg@adacore.com>
1685 * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
1686 indicators on user-defined operators.
1688 2009-07-29 Vadim Godunko <godunko@adacore.com>
1690 * g-socket.adb (Receive_Vector): Add comment.
1692 2009-07-29 Javier Miranda <miranda@adacore.com>
1694 * frontend.adb (Frontend): Code cleanup.
1695 * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
1696 Rewriten as a procedure because it a new out-mode parameters to
1697 keep up-to-date the controlling tag node in the caller.
1698 (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
1699 new out-mode parameter to keep up-to-date the controlling tag node in
1701 * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
1702 exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
1704 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
1705 available in new package Sem_SCIL.
1706 (Next_Non_SCIL_Node): Ditto.
1707 * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
1709 (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
1710 plus complete decoration of SCIL dispatching node.
1711 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1712 * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
1714 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
1715 * exp_ch3.adb (Build_Init_Procedure): Fix comment.
1716 * sem_scil.ads, sem_scil.adb: New files.
1717 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
1718 Update dependencies.
1720 2009-07-28 Robert Dewar <dewar@adacore.com>
1722 * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
1723 makeutl.adb: Minor reformatting & code reorganization
1724 * sem_ch3.adb: Minor reformatting.
1725 Fix spelling error (constraint for constrain) in error msg.
1727 2009-07-28 Emmanuel Briot <briot@adacore.com>
1729 * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
1730 global variable that also exists in makeutl.ads, and that some routines
1731 in that package use already.
1732 (Check): Moved part of the code to makeutl.adb for better sharing with
1735 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1737 * gcc-interface/Make-lang.in: Update dependencies.
1739 2009-07-28 Emmanuel Briot <briot@adacore.com>
1741 * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
1742 importing project does not end up in the list, in the case of extending
1744 * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
1745 makeutl.ads, for better sharing with gprbuild.
1747 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1749 * gnat_ugn.texi: Fix typo.
1751 2009-07-28 Ed Schonberg <schonberg@adacore.com>
1753 * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
1754 derivation that renames some discriminants and constrain others.
1755 * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
1756 prefix is a derived untagged type, convert to the root type to conform
1757 to the signature of the protected operations.
1759 2009-07-28 Robert Dewar <dewar@adacore.com>
1761 * sinfo.ads: Update comments.
1762 * exp_attr.adb: Minor reformatting
1764 2009-07-28 Ed Schonberg <schonberg@adacore.com>
1766 * sem_aggr.adb (Get_Value): A named association in a record aggregate
1767 should be treated as a modification of the named component, not as a
1770 2009-07-28 Quentin Ochem <ochem@adacore.com>
1772 * prj-tree.ads, prj-tree.adb (Free): Minor editing.
1773 * prj.ads, prj.adb (Image): Ditto.
1775 2009-07-28 Arnaud Charlet <charlet@adacore.com>
1777 * frontend.adb: Minor reformatting.
1778 (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
1781 2009-07-28 Bob Duff <duff@adacore.com>
1783 * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
1784 'Address to get a pointer to the protected body wrapper.
1786 2009-07-28 Javier Miranda <miranda@adacore.com>
1788 * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
1789 nodes if we are not generating code.
1790 * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
1791 attribute SCIL_Related_Node of SCIL dispatching nodes.
1792 (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
1793 * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1794 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1795 (SCIL_Entity): Update documentation.
1796 (SCIL_Related_Node): Update documentation.
1797 (SCIL_Controlling_Tag): New attribute.
1798 (SCIL_Target_Prim): Update documentation.
1799 (N_Null_Statement): Remove attributes associated with SCIL nodes.
1800 (N_SCIL_Dispatch_Table_Object_Init): New node.
1801 (N_SCIL_Dispatch_Table_Tag_Init): New node.
1802 (N_SCIL_Dispatching_Call): New node.
1803 (N_SCIL_Tag_Init): New node.
1804 * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
1805 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
1806 (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
1807 (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
1808 (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
1809 (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
1810 N_SCIL_Dispatching_Call nodes.
1811 * sem.adb (Analyze): No need to analyze SCIL nodes.
1812 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
1813 (Next_Non_SCIL_Node): New subprogram
1814 * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
1816 * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
1818 * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
1820 * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
1821 null statement nodes.
1822 (Build_Init_Procedure): Generate new SCIL node.
1823 * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
1825 * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
1826 they are currently implemented as special N_Null_Statement nodes.
1827 * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
1828 procedure call then check if some SCIL node references it and needs
1830 * exp_disp.ads (SCIL_Node_Kind): Removed.
1831 (Adjust_SCIL_Node): New subprogram.
1832 (Find_SCIL_Node): New subprogram.
1833 (Get_SCIL_Node_Kind): Removed.
1834 (New_SCIL_Node): Removed.
1835 * exp_disp.adb (Adjust_SCIL_Node): New subprogram
1836 (Expand_Dispatching_Call): Generate new SCIL dispatching node including
1837 decoration of its new controlling_tag attribute.
1838 (Get_SCIL_Node_Kind): Removed.
1839 (Find_SCIL_Node): New subprogram.
1840 (Make_Secondary_DT): Generate new SCIL nodes.
1841 (Make_Tags): Generate new SCIL nodes.
1842 (New_SCIL_Node): Removed.
1843 * exp_util.adb (Insert_Actions): Handle SCIL nodes.
1844 (Remove_Side_Effects): Check if relocated nodes require readjustment
1845 of some SCIL dispatching node.
1846 * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
1848 2009-07-28 Robert Dewar <dewar@adacore.com>
1850 * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
1852 2009-07-28 Sergey Rybin <rybin@adacore.com>
1854 * gnat_ugn.texi: Add section about gnatcheck rule exemption.
1856 2009-07-28 Vadim Godunko <godunko@adacore.com>
1858 * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
1859 not defined by limits.h.
1861 * g-socket.adb (Receive_Vector): Use minimum length from user's vector
1862 length and maximum supported length of data vector.
1864 2009-07-28 Gary Dismukes <dismukes@adacore.com>
1866 * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
1867 * make.adb: Call Get_Target_Parameters before calling Usage so that
1868 VM_Target and AAMP_On_Target will be set.
1870 2009-07-28 Olivier Hainque <hainque@adacore.com>
1872 * g-ssinty.ads: Remove, pointless and just confusing at this stage.
1873 * gnat_rm.texi: Remove documentation.
1874 * g-sse.ads: Minor reorg along the way.
1875 * gcc-interface/Makefile.in: Remove processing for g-ssinty.
1876 * g-ssvety.ads: Minor comment updates.
1878 2009-07-28 Sergey Rybin <rybin@adacore.com>
1880 * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
1881 for the new format of the report file.
1883 2009-07-28 Sergey Rybin <rybin@adacore.com>
1885 * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
1887 2009-07-28 Pascal Obry <obry@adacore.com>
1889 * g-expect.adb: Record standard handles only on Windows.
1891 2009-07-27 Emmanuel Briot <briot@adacore.com>
1893 * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
1896 2009-07-27 Sergey Rybin <rybin@adacore.com>
1898 * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
1899 rule definition the paragraph that explains that generic functions and
1900 functions from generic packages are not checked.
1902 2009-07-27 Gary Dismukes <dismukes@adacore.com>
1904 * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
1905 procedure when determining whether to set the Overridden_Operation
1906 field of a subprogram overriding an inherited subprogram.
1908 2009-07-27 Robert Dewar <dewar@adacore.com>
1910 * a-except.adb, a-except-2005.ads: Minor reformatting
1912 2009-07-27 Robert Dewar <dewar@adacore.com>
1914 * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
1916 2009-07-27 Javier Miranda <miranda@adacore.com>
1918 * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
1919 add some documentation explaining why the SCIL nodes must be generated
1922 2009-07-27 Olivier Hainque <hainque@adacore.com>
1924 * a-except.adb: Bind to __builtin_longjmp directly.
1925 * a-except-2005.ads: Provide direct binding to __builtin_longjmp
1927 * a-exexpr.adb: Use it.
1928 * a-except-xi.adb: Likewise.
1929 * raise.c (_gnat_builtin_longjmp): Remove and update comments.
1930 * raise.h (_gnat_builtin_longjmp): Remove declaration.
1932 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1934 * sem_eval.adb (Compile_Time_Compare): More precise handling of
1935 Known_Valid flag, to prevent spurious range deductions when scalar
1936 variables may be uninitialized. New predicate Is_Known_Valid_Operand.
1938 2009-07-27 Robert Dewar <dewar@adacore.com>
1940 * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
1943 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1945 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
1946 Ravenscar mode. Error has already been posted on specification.
1948 * sem.adb: Further code clean ups.
1950 2009-07-27 Robert Dewar <dewar@adacore.com>
1952 * g-sse.ads: Minor reformatting
1954 2009-07-27 Arnaud Charlet <charlet@adacore.com>
1956 * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
1957 alternate ali extension.
1958 * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
1959 account Osint.ALI_Suffix.
1960 * osint.ads (ALI_Suffix): Make visible.
1961 * gnatfind.adb (Gnatfind): Add support for --ext= switch.
1962 * gnat_ugn.texi: Document new gnatfind --ext= switch.
1964 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1966 * sem.adb (Walk_Library_Items): If main unit is an instance body, do
1969 2009-07-27 Javier Miranda <miranda@adacore.com>
1971 * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
1972 the dispatching call has is expanded.
1974 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1976 * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
1977 Is_Known_Valid flag on the temporary created for the value whose
1978 validity is being checked.
1980 * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
1981 handle properly main units that are package specifications.
1983 2009-07-27 Geert Bosch <bosch@adacore.com>
1985 * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
1986 * sem_aux.ads: Fix typo in comment
1987 * sem_util.ads (Is_LHS): Adjust comment to match body
1989 2009-07-27 Sergey Rybin <rybin@adacore.com>
1991 * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
1994 2009-07-27 Olivier Hainque <hainque@adacore.com>
1996 * g-sse.ads, g-ssvety.ads: Update comments.
1998 2009-07-27 Sergey Rybin <rybin@adacore.com>
2000 * gnat_ugn.texi: Update gnatcheck doc.
2002 2009-07-27 Arnaud Charlet <charlet@adacore.com>
2004 * lib-xref.ads: Allocate/document 'o' char for use by references to
2005 spark 'own' variables.
2007 2009-07-27 Gary Dismukes <dismukes@adacore.com>
2009 * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
2010 objects, since these are implicitly referenced by the return statement.
2011 * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
2012 Is_Return_Object in this procedure, as return objects will never make
2013 it here since they're now marked as Referenced.
2015 2009-07-27 Robert Dewar <dewar@adacore.com>
2017 * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
2019 2009-07-27 Robert Dewar <dewar@adacore.com>
2021 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
2023 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
2025 2009-07-27 Geert Bosch <bosch@adacore.com>
2027 * checks.adb (Find_Check): Minor streamlining of logic.
2028 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
2029 * debug.adb: Document -gnatdX debug flag
2030 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
2031 list information about reads from scalar entities.
2032 Also slightly simplify condition for Expand_Current_Value.
2033 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
2036 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
2039 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
2040 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
2042 (__gnat_stat): Adjust reference to STAT in prototype.
2043 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
2044 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
2045 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
2046 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
2047 __gnat_is_writable_file, __gnat_is_executable_file,
2048 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
2049 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
2050 __gnat_copy_attribs): Adjust all references to the above.
2051 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
2053 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2055 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
2056 done at the same time, guard against listing a body more than once.
2058 2009-07-23 Robert Dewar <dewar@adacore.com>
2060 * exp_ch6.adb: Minor reformatting
2062 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2064 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
2065 static expression is known valid.
2066 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
2067 operands of a subtype with a single value.
2069 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2071 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
2072 are in the context of the main unit body.
2074 2009-07-23 Sergey Rybin <rybin@adacore.com>
2076 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
2077 misprint in rule description.
2079 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2081 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
2082 test that the object declaration is within an extended return statement
2083 with direct test of whether the declared object associated with the
2084 build-in-place call is a return object, since the enclosing function
2085 might not even be a build-in-place function.
2087 2009-07-23 Robert Dewar <dewar@adacore.com>
2089 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
2090 Minor code reorganization
2092 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2094 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
2095 for static analysis, only packed arrays are causing troubles.
2097 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2099 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
2100 ancestor part is a call to a limited function with an unconstrained
2101 result subtype unless the aggregate has a null extension type.
2102 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
2103 the parent type declaration to avoid blowups on subtype cases.
2105 2009-07-23 Robert Dewar <dewar@adacore.com>
2107 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
2110 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
2112 * s-regexp.adb: Minor reformatting
2113 * scos.ads: Minor reformatting.
2115 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2117 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
2118 other similar messages.
2119 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
2120 messages/implicit packing in CodePeer mode.
2121 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
2122 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
2125 2009-07-23 Pascal Obry <obry@adacore.com>
2127 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
2130 2009-07-23 Robert Dewar <dewar@adacore.com>
2132 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
2135 2009-07-23 Yannick Moy <moy@adacore.com>
2137 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
2139 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
2141 (Raise_Exception): Ditto.
2143 2009-07-23 Olivier Hainque <hainque@adacore.com>
2145 * g-sse.ads: Simplify comment.
2147 2009-07-23 Olivier Hainque <hainque@adacore.com>
2149 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
2150 low level internal type definitions for distinct higher level
2151 binding development activities (user type definitions and
2153 * gnat_rm.texi: Document it.
2154 * g-ssvety.ads: Use it.
2155 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
2156 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
2157 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
2158 for the "may_alias" attribute.
2160 2009-07-23 Thomas Quinot <quinot@adacore.com>
2162 * scos.ads: Minor typo fix
2164 * gcc-interface/decl.c (validate_alignment): For the case of an
2165 implicit array base type, look for alignment clause on first subtype.
2167 2009-07-23 Robert Dewar <dewar@adacore.com>
2169 * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
2170 with tagged parent if tagged parent is fully repped.
2172 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2174 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
2175 in the context depends on the spec of the main unit, by delaying
2176 processing of the main unit body until all other units have been
2179 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2181 * a-convec.adb: Add comments about suspicious/subtle code.
2183 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2185 * einfo.ads: Document use of Alias in private overriding
2187 2009-07-23 Thomas Quinot <quinot@adacore.com>
2189 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
2190 an array type, propagate alignment from first subtype to implicit base
2191 type so that other subtypes (such as the itypes for aggregates of the
2192 type) also receive the expected alignment.
2194 * g-comlin.ads: Minor documentation clarification/rewording.
2195 * scos.ads: Minor comments update.
2196 * lib-writ.ads: Minor reformatting
2198 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2200 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
2201 of a class-wide interface type that is a return object of a
2202 build-in-place function, bypass the interface-related expansions into
2203 renamings with displacement conversions, etc.
2204 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
2205 for the case where a renaming occurs in a build-in-place context, to
2206 assert that the bypassing of the build-in-place treatment only occurs
2207 in the case of a renaming that is an expansion of a return expression
2208 that is itself a build-in-place function call.
2210 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2212 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
2213 valid candidate interpretation in a prefixed view if it is hidden, but
2214 overrides an inherited operation declared in the visible part.
2216 2009-07-23 Robert Dewar <dewar@adacore.com>
2218 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2219 division operands to 64-bit at all in any circumstances.
2221 2009-07-23 Robert Dewar <dewar@adacore.com>
2223 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
2224 checking ranges for mod/rem to see if conditional jump will be
2226 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
2227 generating special -1 test for rem, generate it whenever both
2228 operands can be negative (match circuit in Sem_Res).
2229 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
2230 destroys memory of positive range.
2231 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
2232 checking ranges for mod/rem to see if conditional jump will be generated
2234 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2236 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
2237 scalar components has non-static bounds, the equivalent aggregate
2238 cannot be built, even if the expression is static, because range checks
2241 2009-07-23 Robert Dewar <dewar@adacore.com>
2243 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
2244 division operands to 64-bit inside a conversion if 64-bit division not
2247 2009-07-23 Sergey Rybin <rybin@adacore.com>
2249 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
2251 2009-07-23 Javier Miranda <miranda@adacore.com>
2253 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
2254 (Entity/Set_Entity): not available in N_Null_Statement nodes
2255 (Is_Scil_Node): renamed as Is_SCIL_Node
2256 (Scil_Nkind): renamed as SCIL_Nkind
2257 (Scil_Related_Node): renamed as SCIL_Related_Node
2258 (Scil_Target_Prim): renamed as SCIL_Target_Prim
2259 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
2260 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
2261 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
2262 Update documentation
2263 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
2264 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2265 (New_Scil_Node): Renamed as New_SCIL_Node
2266 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
2267 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
2268 (New_Scil_Node): Renamed as New_SCIL_Node
2269 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
2271 2009-07-23 Robert Dewar <dewar@adacore.com>
2273 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
2274 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
2275 * einfo.adb: Minor reformatting
2277 2009-07-23 Robert Dewar <dewar@adacore.com>
2279 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
2280 cross-referencing the new related code in
2281 Exp_Ch4.Expand_N_Type_Conversion.
2282 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
2284 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
2287 2009-07-23 Javier Miranda <miranda@adacore.com>
2289 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
2290 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
2291 * exp_disp.ads (Scil_Node_Kind): Ditto.
2292 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
2293 * exp_ch3.adb (Build_Init_Procedure): Ditto.
2295 2009-07-23 Javier Miranda <miranda@adacore.com>
2297 * einfo.adb (Component_Type): Add missing assertion.
2298 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
2299 reading attribute Component_Size.
2300 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
2301 before reading attributes Component_Size and Component_Type.
2302 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
2303 before reading attribute Component_Type.
2305 2009-07-23 Olivier Hainque <hainque@adacore.com>
2307 * gnat_rm.texi: Document the GNAT.SSE units.
2309 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2311 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
2312 not null return if it appears on a subunit.
2314 2009-07-23 Robert Dewar <dewar@adacore.com>
2316 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
2317 check right away so it does not get skipped for early returns, e.g.
2319 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
2320 left-side unless we really know the value is valid.
2322 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
2323 reformatting. Minor code reorganization. Add comments.
2325 2009-07-23 Robert Dewar <dewar@adacore.com>
2327 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
2330 2009-07-23 Gary Dismukes <dismukes@adacore.com>
2332 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
2333 with test of coverage, to allow specific type objects in extended
2334 returns of class-wide functions. Remove now-unnecessary special-case
2335 tests that allowed this in certain cases of expanded extended returns.
2337 2009-07-23 Javier Miranda <miranda@adacore.com>
2339 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
2340 N_Null_Statements (for SCIL nodes).
2341 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
2342 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
2343 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
2345 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
2346 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
2347 associated with dispatching call.
2348 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
2349 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
2350 initialization of dispatch tables and initialization of tags.
2351 (New_Scil_Node): New function that creates a new SCIL node.
2352 (Build_Init_Procedure): Add generation of SCIL node associated with the
2353 initialization of tags done in the IP subprogram.
2355 2009-07-23 Ed Schonberg <schonberg@adacore.com>
2357 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
2358 Warnings_Off, do not emit continuation messages.
2360 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
2363 2009-07-23 Emmanuel Briot <briot@adacore.com>
2365 * ali.adb: Minor comment update
2367 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
2369 * s-win32.ads (HANDLE): Define to be the same size as address type.
2372 2009-07-23 Olivier Hainque <hainque@adacore.com>
2374 * g-sse.ads: New file. Root of the SSE facilities trees, with
2375 general description and common declarations.
2376 * g-ssvety.ads: New file. Expose user level SSE vector types.
2377 * impunit.adb (Non_Imp_File_Names_95): Register new units.
2378 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
2379 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
2381 2009-07-23 Ben Brosgol <brosgol@adacore.com>
2383 * gnat_ugn.texi: Wordsmithing.
2385 2009-07-23 Arnaud Charlet <charlet@adacore.com>
2387 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
2389 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
2391 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
2392 they are already of the base type of the index.
2394 2009-07-22 Brett Porter <porter@adacore.com>
2396 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
2398 2009-07-22 Robert Dewar <dewar@adacore.com>
2400 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
2401 * gnat_ugn.texi: Add documentation for -gnateS switch
2402 * ug_words: Add entry for -gnateS /SCO_OUTPUT
2403 * gcc-interface/Make-lang.in: Update dependencies.
2405 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
2406 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
2407 complete information for SCO input/output.
2409 2009-07-22 Sergey Rybin <rybin@adacore.com>
2411 * gnat_ugn.texi: Update doc for some gnatcheck rules.
2413 2009-07-22 Robert Dewar <dewar@adacore.com>
2415 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
2416 contents of SCO tables.
2417 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
2418 scos.adb, scos.ads: New files.
2419 * gcc-interface/Make-lang.in: Update dependencies.
2421 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
2422 fixes and reformatting.
2424 2009-07-22 Robert Dewar <dewar@adacore.com>
2426 * g-socket.ads: Minor reformatting
2428 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2430 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
2431 include the entity kind for following cases of unreferenced entities:
2432 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
2434 2009-07-22 Ed Falis <falis@adacore.com>
2436 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
2439 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2441 * adadecode.c: Make this file compilable outside of GCC.
2443 2009-07-22 Thomas Quinot <quinot@adacore.com>
2445 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
2446 (partially) default-initialized socket sets are handled properly by
2447 clearing their Set component.
2449 2009-07-22 Bob Duff <duff@adacore.com>
2451 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
2453 2009-07-22 Robert Dewar <dewar@adacore.com>
2455 * gnat_ugn.texi: Minor reformatting
2457 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2459 * errout.adb (Error_Msg): A style message within an instantiation
2460 should not be labelled as an error.
2462 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2464 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
2465 in initialization expression if function does not have convention Ada.
2467 2009-07-22 Sergey Rybin <rybin@adacore.com>
2469 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
2470 '--separate-label' to control label layout.
2472 2009-07-22 Robert Dewar <dewar@adacore.com>
2474 * exp_tss.ads, sem_eval.adb: Minor reformatting
2476 2009-07-22 Bob Duff <duff@adacore.com>
2478 * exp_dist.adb, exp_dist.ads: Update comments.
2480 2009-07-22 Brett Porter <porter@adacore.com>
2482 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
2484 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
2486 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2488 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
2489 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
2491 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
2492 used poor terminology.
2494 2009-07-22 Robert Dewar <dewar@adacore.com>
2496 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
2497 * sem_eval.adb, exp_tss.adb: Minor comment update.
2498 * stylesw.adb: Code clean up.
2500 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2502 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
2503 component size is an exact number of bytes, an array type can have a
2504 size clause that forces packing even though the array type itself is
2507 2009-07-22 Thomas Quinot <quinot@adacore.com>
2509 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
2510 if there is a previous entity with the same name in the scope, ignore
2511 it if it is the renaming declaration for a generic package introduced
2514 2009-07-22 Nicolas Roche <roche@adacore.com>
2516 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
2517 handler on x86_64 windows.
2519 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2521 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
2522 false positives in CodePeer, so ignore this pragma in this mode.
2524 2009-07-22 Thomas Quinot <quinot@adacore.com>
2526 * sem_util.adb, sem_ch10.adb: Minor reformatting
2528 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
2529 special handling for the case of no data received and Item'First =
2530 Stream_Element_Offset'First.
2531 (Last_Index): New subprogram factoring the above special handling
2532 over the various locations where it is required.
2534 2009-07-22 Arnaud Charlet <charlet@adacore.com>
2536 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
2537 checks in CodePeer_Mode.
2538 * gcc-interface/Make-lang.in: Update dependencies.
2540 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2542 * sem_aggr.adb: Improve error message.
2544 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
2545 of an address representation clause.
2546 * freeze.adb (Freeze_Static_Object): An local imported object is legal
2547 if it has an address clause.
2549 2009-07-22 Thomas Quinot <quinot@adacore.com>
2551 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
2552 expression to insert an elab check using a conditional expression, be
2553 sure to carry the original list of interpretations to the new location.
2555 2009-07-22 Gary Dismukes <dismukes@adacore.com>
2557 * gnat1drv.adb: Fix spelling error.
2559 2009-07-22 Javier Miranda <miranda@adacore.com>
2561 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
2562 at the library level and fix a hidden bug in its implementation: its
2563 functionality for renaming objects was broken because
2564 N_Object_Renaming_Declarations nodes are not a subclass of
2565 N_Declaration nodes (as documented in sinfo.ads).
2566 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
2567 check nodes that are actuals of generic instantiations.
2569 2009-07-22 Ed Schonberg <schonberg@adacore.com>
2571 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
2572 context of a compilation unit is being analyzed. Used to detect
2573 circularities created by with_clauses that are not detected by the
2575 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
2576 analyzing the context of the current compilation unit, to detect
2577 possible circularities created by with_clauses.
2579 2009-07-22 Thomas Quinot <quinot@adacore.com>
2581 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
2583 2009-07-22 Robert Dewar <dewar@adacore.com>
2585 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
2586 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
2588 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
2589 * gnat_ugn.texi: Add documentation of -gnatyB
2590 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
2592 2009-07-22 Robert Dewar <dewar@adacore.com>
2594 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
2595 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
2596 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
2597 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
2598 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
2599 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
2600 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
2601 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
2602 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
2603 obey short-circuit style rule.
2605 2009-07-20 Bob Duff <duff@adacore.com>
2607 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
2608 instead of "and", because otherwise Parent_Last_Bit is read
2609 uninitialized in the case where it's not a tagged type, or the tagged
2610 parent does not have a complete rep clause.
2612 2009-07-20 Robert Dewar <dewar@adacore.com>
2614 * stylesw.ads: Minor documentation change.
2616 * types.ads: Minor reformatting
2618 2009-07-20 Javier Miranda <miranda@adacore.com>
2620 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
2621 generating the tag checks associated with dispatching calls.
2622 * exp_disp.adb (Apply_Access_Checks): New subprogram.
2623 (New_Value): This routine was previously local to expand dispatching
2624 calls but it is now used also by Apply_Access_Checks.
2625 (Expand_Dispatching_Calls): Cleanup code because the functionality of
2626 tag checks is now provided by Apply_Access_Checks.
2627 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
2628 case of dispatching calls.
2630 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2632 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
2635 2009-07-20 Gary Dismukes <dismukes@adacore.com>
2637 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
2638 for VMS, only rewrite the first component of the associated exception's
2639 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
2640 and third components that were being replaced with 'M' and 'S'.
2642 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2644 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
2645 Also do not generate error when parsing a spec in CodePeer mode.
2647 2009-07-20 Javier Miranda <miranda@adacore.com>
2649 * checks.adb (Apply_Access_Check): Avoid checks on availability of
2650 runtime function Offset_To_Top_Ptr when compiling with no tagged
2652 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
2653 adding code to the init proc when compiling for VM backends.
2655 2009-07-20 Vincent Celier <celier@adacore.com>
2657 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
2658 account switches -gnatw.?
2660 2009-07-20 Thomas Quinot <quinot@adacore.com>
2662 * sem_dist.adb, exp_dist.adb: Minor reformatting
2664 * Make-generated.in: New file.
2666 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
2668 2009-07-20 Javier Miranda <miranda@adacore.com>
2670 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
2672 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
2673 dynamically tagged expression.
2674 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
2676 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
2677 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2679 2009-07-20 Arnaud Charlet <charlet@adacore.com>
2681 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
2682 CodePeer_Mode is set, to benefit from full front-end expansion
2685 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2687 * sem_res.adb: Add guard.
2689 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
2690 for possible attribute definition of External_Tag, in case clause
2691 appears in the private part of a package.
2693 2009-07-20 Jerome Guitton <guitton@adacore.com>
2695 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
2697 2009-07-20 Vadim Godunko <godunko@adacore.com>
2699 * a-coorma.adb: Minor reformatting.
2701 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2703 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
2704 access return types.
2705 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
2706 provide an itype reference to gigi to force elaboration of the subtype
2707 at the proper point.
2709 2009-07-20 Tristan Gingold <gingold@adacore.com>
2711 * g-expect.adb: Avoid closeing already closed handle.
2713 2009-07-20 Robert Dewar <dewar@adacore.com>
2715 * sprint.adb (Write_Subprogram_Name): New procedure to output
2716 subprogram name with possible preceding $ (replaces
2717 Note_Implicit_Run_Time_Call).
2719 2009-07-20 Robert Dewar <dewar@adacore.com>
2721 * vms_data.ads: Minor reformatting
2723 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
2724 applies to base type.
2725 (Parent_Subtype): Now allowed on record subtype, applies to base type
2726 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
2727 for case of fully repped tagged type.
2728 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
2729 tag save/restore for fully repped tagged type case.
2730 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
2731 * fe.h (Is_Fully_Repped_Tagged_Type): New function
2732 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
2733 overlap of tagged type components with parent type if parent type is
2735 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
2737 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
2739 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
2740 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
2742 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
2743 logical operators (AND/OR/XOR), not comparison operators.
2745 * sprint.ads: Minor reformatting
2747 2009-07-20 Ed Schonberg <schonberg@adacore.com>
2749 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
2750 intrinsics, check that argument is a string literal, rather than
2751 checking for staticness.
2753 2009-07-20 Robert Dewar <dewar@adacore.com>
2755 * sem_ch13.adb: Minor reformatting
2757 * einfo.ads: Minor reformatting
2758 Component_Bit_Offset is no longer considered obsolescent
2760 2009-07-20 Nicolas Roche <roche@adacore.com>
2762 * a-calend.adb: Redefine time_t as signed integer with same size as
2764 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
2766 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
2769 2009-07-20 Javier Miranda <miranda@adacore.com>
2771 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
2772 constructors that have anonymous access type formals.
2774 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
2775 class-wide arguments in case of imported C++ subprograms.
2777 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
2779 2009-07-20 Sergey Rybin <rybin@adacore.com>
2781 * vms_data.ads: Update qualifiers.
2783 2009-07-20 Robert Dewar <dewar@adacore.com>
2785 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
2788 2009-07-17 Richard Guenther <rguenther@suse.de>
2791 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
2792 state. Remove unused parameter.
2793 (gnat_gimplify_function): Do not gimplify here.
2794 Fold into its only caller and remove.
2795 (gnat_builtin_function): Adjust for end_subprog_body signature change.
2796 (gnat_write_global_declarations): Also finalize the CU.
2797 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
2798 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
2799 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
2801 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
2803 2009-07-15 Arnaud Charlet <charlet@adacore.com>
2805 * gcc-interface/Make-lang.in: Update dependencies
2807 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
2809 2009-07-15 Robert Dewar <dewar@adacore.com>
2811 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
2812 N_Label. Remove SCO table entry for entry point (not used).
2814 * par_sco.ads: Remove SCO entry point type (not used)
2816 * switch.adb: Minor code clean up.
2818 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
2820 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
2822 2009-07-15 Thomas Quinot <quinot@adacore.com>
2824 * gnatls.adb: Minor reformatting
2826 * gnatcmd.adb: Minor code reorganization
2828 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2830 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
2831 determine whether a component of a private type has a composite type.
2833 2009-07-15 Robert Dewar <dewar@adacore.com>
2835 * sem_ch10.adb: Minor reformatting throughout
2836 Minor code reorganization (put nested subprograms in alpha order)
2838 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2840 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
2841 when compiling a call to a protected function that returns a controlled
2844 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
2846 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
2847 one. Add task locking and unlocking around the critical region which
2848 mentions localtime_r and global variable timezone for various targets.
2849 Comment reformatting.
2851 2009-07-15 Robert Dewar <dewar@adacore.com>
2853 * gnat_rm.texi: Document s-ststop.ads
2855 * impunit.ad: (Map_Array): New table of alternative names
2856 (Get_Kind_Of_Unit): Return possible suggested alternative name
2858 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
2861 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
2862 alternative unit if an implementation unit is with'ed.
2864 2009-07-15 Robert Dewar <dewar@adacore.com>
2866 * gnat_ugn.texi: Minor updates.
2868 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
2870 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2872 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
2873 conditions of a derived boolean type.
2876 2009-07-15 Robert Dewar <dewar@adacore.com>
2878 * gnat1drv.adb: Initialize SCO tables
2880 * par-load.adb: Call SCO_Record for main unit spec
2882 * par.adb: Make call to SCO_Record for main unit
2884 * par_sco.adb (Unit_Table): Change format to facilitate sort
2885 (Process_Decisions): New procedure with list argument
2886 (Traverse_Generic_Package_Declaration): New procedure
2887 (Initialize): New procedure, replaces Init
2888 (SCO_Output): Sort unit table before output
2889 (SCO_Record): Avoid duplications
2890 (SCO_Record): Handle remaining cases of units
2891 (Traverse_Declarations_Or_Statements): Handle generics
2893 * par_sco.ads (Initialize): New peocedure (replaces Init)
2895 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
2898 2009-07-15 Arnaud Charlet <charlet@adacore.com>
2900 * debug.adb: Add -gnatd.J switch for now to support scil generation in
2901 parallel. Add missing doc for -gnatd.I and -gnatd.O
2903 2009-07-15 Robert Dewar <dewar@adacore.com>
2905 * lib-load.adb: Minor reformatting
2907 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
2909 2009-07-15 Robert Dewar <dewar@adacore.com>
2911 * par.adb: Minor reformatting
2912 Add ??? comment for possible bad comment
2914 * par-ch10.adb: Minor reformatting
2916 2009-07-15 Ed Schonberg <schonberg@adacore.com>
2918 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
2919 is a literal of a derived boolean type, it appears as an unchecked
2920 conversion. Retrieve actual value from expression of conversion.
2922 2009-07-15 Robert Dewar <dewar@adacore.com>
2924 * sem_ch3.adb: Minor reformatting
2926 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
2927 lib-writ.ads, lib-writ.adb: Minor reformatting.
2928 Fix problem with SCO format in ALI files
2930 2009-07-15 Robert Dewar <dewar@adacore.com>
2932 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2933 exp_aggr.adb: Minor code reorganization (better calling sequence for
2936 2009-07-15 Thomas Quinot <quinot@adacore.com>
2938 * opt.ads: Minor comment edits
2940 2009-07-15 Tristan Gingold <gingold@adacore.com>
2942 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
2945 2009-07-15 Robert Dewar <dewar@adacore.com>
2947 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
2950 * lib-writ.ads: Document addition of SCO lines to ALI file
2952 * par_sco.ads, par_sco.adb: New files.
2954 * opt.ads (Generate_SCO): New switch
2956 * par.adb (Par): Call SCO_Record to record SCO information
2958 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
2960 * switch-c.adb: Recognize -gnateS to generate SCO information
2962 * usage.adb: Add line for -gnateS
2964 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
2966 2009-07-15 Robert Dewar <dewar@adacore.com>
2968 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
2971 2009-07-15 Thomas Quinot <quinot@adacore.com>
2973 * g-socthi-mingw.adb: Minor comment addition
2975 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
2977 2009-07-15 Robert Dewar <dewar@adacore.com>
2979 * g-htable.ads, s-htable.ads: Minor reformatting
2981 2009-07-15 Robert Dewar <dewar@adacore.com>
2983 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
2984 new switch -gnatw.g.
2985 (Set_GNAT_Mode_Warnings): New procedure.
2987 * lib-xref.adb: Minor reformatting
2989 2009-07-15 Robert Dewar <dewar@adacore.com>
2991 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
2992 Minor code reorganization
2994 2009-07-14 Taras Glek <tglek@mozilla.com>
2995 Rafael Espindola <espindola@google.com>
2997 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
2998 installing plugin headers.
3000 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3002 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
3003 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
3004 and link it to the expression whose value it captures.
3006 2009-07-13 Robert Dewar <dewar@adacore.com>
3008 * output.adb: Minor comment addition for last change
3010 * sinfo.ads: Minor reformatting
3012 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
3014 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
3015 spawn failed like on all other targets.
3017 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3019 * exp_ch7.adb: Indicate origin of temporary for transient expression.
3021 2009-07-13 Thomas Quinot <quinot@adacore.com>
3023 * s-oscons-tmplt.c: Add comment.
3025 2009-07-13 Robert Dewar <dewar@adacore.com>
3027 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
3028 reformatting. Minor code reorganization (add 9 argument version of
3031 * impunit.adb: Remove s-os_lib from list of system extensions.
3033 * sem_util.ads: Minor reformatting
3035 * output.adb: Add warnings off/on around System.OS_Lib.
3037 2009-07-13 Bob Duff <duff@adacore.com>
3039 * exp_dist.adb: Minor comment updates.
3041 2009-07-13 Gary Dismukes <dismukes@adacore.com>
3043 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
3044 several references to CodePeer.
3046 2009-07-13 Bob Duff <duff@adacore.com>
3048 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
3049 Build_TypeCode_Function_All): Do not recurse if the type is the base
3052 2009-07-13 Robert Dewar <dewar@adacore.com>
3054 * exp_ch4.adb: Minor comment change
3056 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3058 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
3059 type of iteration, to prevent spurious warnings.
3061 2009-07-13 Nicolas Roche <roche@adacore.com>
3063 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
3066 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3068 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
3069 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
3071 (CodePeer_Mode): New -gnatC switch.
3072 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
3075 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
3077 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
3078 integer bound forces the check if it is compared to its subtype range.
3080 2009-07-13 Robert Dewar <dewar@adacore.com>
3082 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
3083 prj-strt.ads: Minor reformatting
3085 2009-07-13 Thomas Quinot <quinot@adacore.com>
3087 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
3088 set the type of the From_Any call to the base type.
3090 2009-07-13 Doug Rupp <rupp@adacore.com>
3092 * symbols-processing-vms-ia64.adb (Process): Add variables and
3093 constants to retrieve and check for symbol visibility.
3095 2009-07-13 Javier Miranda <miranda@adacore.com>
3097 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
3098 the identical type we remove the conversion completely because
3101 2009-07-13 Emmanuel Briot <briot@adacore.com>
3103 * prj-err.adb (Error_Msg): One more case where a message should be
3104 considered as a warning.
3106 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
3108 2009-07-13 Thomas Quinot <quinot@adacore.com>
3110 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
3111 calling stubs in the (library level) scope of the RCI locator, where it
3112 is attached, not in the caller's scope.
3114 2009-07-13 Javier Miranda <miranda@adacore.com>
3116 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
3117 interface object declarations we delay the generation of the equivalent
3118 record type declarations until its expansion because there are cases in
3119 which they are not required.
3121 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
3123 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
3124 addition of assertion.
3126 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
3127 interface types require no equivalent constrained type declarations
3128 because the expanded code only references the tag component associated
3130 (Find_Interface_Tag): Improve management of interfaces that are
3131 ancestors of tagged types.
3133 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
3134 class-wide object declarations to add missing support to statically
3135 displace the pointer to the object to reference the tag component
3136 associated with the interface.
3138 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
3139 auxiliary types associated with user-defined dispatching calls if the
3140 type has no user-defined primitives.
3142 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
3144 * mingw32.h: Make it explicit that we need XP or later.
3146 * initialize.c: Remove useless extern symbol declaration.
3148 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
3149 code reuse in expect.c.
3151 * adaint.c: Changes throughout the Windows section to redesign storage
3152 of the child process list and the process identification.
3154 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
3155 for interfacing, fix errors.
3156 (__gnat_expect_portable_execvp): use function in adaint.c
3158 2009-07-13 Emmanuel Briot <briot@adacore.com>
3160 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
3161 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
3162 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
3163 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
3164 (Prj.Nmsc.Report_Error): Removed, no longer needed.
3165 Always use Prj.Err.Report_Message.
3167 2009-07-13 Robert Dewar <dewar@adacore.com>
3169 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
3172 2009-07-13 Robert Dewar <dewar@adacore.com>
3174 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3175 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
3177 2009-07-13 Emmanuel Briot <briot@adacore.com>
3179 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
3180 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
3181 Ada_Prj_Include_File_Set): Removed, since not needed
3184 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3186 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
3187 Analyze_Membership_Op.
3189 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
3190 Resolve_Membership_Op.
3192 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
3195 2009-07-13 Robert Dewar <dewar@adacore.com>
3197 * clean.adb: Minor reformattting
3199 2009-07-13 Emmanuel Briot <briot@adacore.com>
3201 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
3202 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
3203 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
3204 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
3205 and attributes in a project tree.
3206 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
3207 Remove last remaining mode-specific code (ada_only or
3208 multi_language). This was duplicating code
3209 (Get_Mode, Set_Mode): removed, no longer used.
3210 (Initialize_Project_Path): all tools will now take into account both
3211 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
3212 Remove some global variables and subprograms no longer used
3213 Make temporary files tree-specific, to avoid interferences between
3214 trees loaded in memory at the same time.
3215 (Prj.Delete_Temporary_File): new subprogram
3216 (Object_Paths, Source_Paths): fields no longer stored in the project
3217 tree, since they are only needed locally in Set_Ada_Paths.
3218 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
3220 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
3221 by local variables in the appropriate subprograms
3222 (Has_Foreign_Sources): removed.
3224 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
3226 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3228 * gnat1drv.adb (Adjust_Global_Switches): No longer set
3229 Back_Annotate_Rep_Info in inspector mode.
3230 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
3232 * opt.ads: Update comment.
3234 2009-07-13 Robert Dewar <dewar@adacore.com>
3236 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
3237 prj.ads: Minor reformatting and code reorganization.
3239 * par-ch3.adb (Check_Restricted_Expression): New procedure
3241 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3243 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
3244 attribute into a call of the corresponding suprogram, create extra
3245 formals for the subprogram, because it may be a renaming whose
3246 analysis does not create extra formals.
3248 2009-07-13 Emmanuel Briot <briot@adacore.com>
3250 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3251 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3252 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
3253 prj-tree.ads: Minor reformatting.
3254 (Processing_Flags): new record to encapsulate the set of common
3255 parameters to several subprograms in the project manager.
3256 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
3257 Remove the need for the Current_Dir parameter in subprograms.
3258 (Look_For_Sources): minor refactoring, now that we no longer need to
3259 share subprograms between the two Ada_Only and Multi_Language modes
3260 (Processing_Flags): New field Error_On_Unknown_Language.
3261 Merge tests for library project between gnatmake and gprbuild.
3263 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3265 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
3268 2009-07-13 Emmanuel Briot <briot@adacore.com>
3270 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
3273 2009-07-13 Thomas Quinot <quinot@adacore.com>
3275 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
3276 Write,Input,Output} from private view to full view.
3278 * sem_type.adb, sem_type.ads: Minor reformatting
3280 2009-07-13 Nicolas Setton <setton@adacore.com>
3282 * exp_dbug.ads: Add documentation note on the utility of
3283 DW_AT_GNAT_encoding for IDEs.
3285 2009-07-13 Robert Dewar <dewar@adacore.com>
3287 * g-socthi-vxworks.adb: Minor reformatting
3289 * gnatcmd.adb: Minor reformatting
3291 2009-07-13 Thomas Quinot <quinot@adacore.com>
3293 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
3294 removed, not used anymore.
3295 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
3296 New subprogram, implements copy of an Any value into a limited object.
3297 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
3298 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
3299 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
3300 of parameters of a limited type, use the above new subprogram.
3302 2009-07-13 Emmanuel Briot <briot@adacore.com>
3304 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
3306 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
3308 (Error_Report): Remove global variable, replaced by parameters.
3310 2009-07-13 Thomas Quinot <quinot@adacore.com>
3312 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
3313 standard sendto(2) interface for connected sockets (passing a null
3314 destination address). Use send(2) instead for that case.
3316 2009-07-13 Pascal Obry <obry@adacore.com>
3318 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
3320 2009-07-13 Emmanuel Briot <briot@adacore.com>
3322 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3323 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
3324 variables and tables in prj-nmsc.adb.
3325 (Tree_Processing_Data): Renames Processing_Data, some new fields added
3326 (Project_Processing_Data): New record
3327 Simplify/unify check for missing sources.
3329 2009-07-13 Emmanuel Briot <briot@adacore.com>
3331 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
3332 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
3333 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
3334 prj-tree.ads (Immediate_Directory_Of): Removed.
3335 (Prj.Pars): Now parse the project simulating a default config file.
3336 (Add_Default_GNAT_Naming_Scheme): New subprogram
3337 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
3338 Remove gnatmake-specific parsing of source files.
3339 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
3340 the error itself to provide more precise diagnostics.
3341 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
3342 a unit belongs to several projects.
3343 (Copy_Interface_Sources): Search the full path of files to copy in the
3344 list of sources of the application rather than in the list of units.
3345 (Parse_Project_And_Apply_Config): Do not reset the name of the main
3347 (Check_File): Use htables to find out whether a source is duplicated.
3348 (Add_Source): check whether the source or unit were already seen earlier
3350 * gcc-interface/Makefile.in: Update gnatmake dependencies.
3352 2009-07-13 Robert Dewar <dewar@adacore.com>
3354 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
3355 expression if extensions permitted.
3357 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
3359 (P_Relation): Use P_Membership_Test
3361 * par.adb (P_Membership_Test): New procedure (implement membership set
3364 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
3366 * sprint.adb (Sprint_Node): Handle set form for membership tests.
3368 2009-07-13 Thomas Quinot <quinot@adacore.com>
3370 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
3371 Do not attempt to generate stubs for predefined primitives of
3372 synchronized interfaces.
3373 (Add_Stub_Type): Factor some code from the PCS-specific variants of
3376 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3378 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
3379 Controlling_Result flag from the operation they override.
3381 2009-07-13 Arnaud Charlet <charlet@adacore.com>
3383 * gcc-interface/Make-lang.in: Update dependencies
3385 2009-07-13 Robert Dewar <dewar@adacore.com>
3387 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
3388 details on unsupported constructs.
3390 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
3393 * s-trafor-default.adb: Correct some warnings
3395 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
3396 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
3399 * par-ch4.adb (Conditional_Expression): Capture proper location for
3400 conditional expression, should point to IF.
3402 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
3403 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
3404 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
3405 reorganization (use conditional expressions).
3407 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3409 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
3410 build-in-place function that returns an inherently limited type (not
3411 just a task type) create proper object declaration so that extra
3412 build-in-place actuals are properly added to the call.
3414 2009-07-13 Robert Dewar <dewar@adacore.com>
3416 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
3418 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
3420 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
3422 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
3423 Warn_On_Suspicious_Modulus_Value.
3425 * ug_words: Add entries for -gnatw.m/-gnatw.M.
3427 * usage.adb: Add lines for -gnatw.m/.M switches.
3429 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
3431 2009-07-13 Javier Miranda <miranda@adacore.com>
3433 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
3434 reading the Is_Interface attribute of the dispatching type.
3436 2009-07-13 Robert Dewar <dewar@adacore.com>
3438 * a-convec.adb: Minor code reorganization (use conditional expressions)
3440 2009-07-13 Robert Dewar <dewar@adacore.com>
3442 * freeze.adb (Check_Suspicious_Modulus): New procedure.
3444 2009-07-13 Robert Dewar <dewar@adacore.com>
3446 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
3449 * par-ch4.adb: Minor reformatting
3451 2009-07-13 Ed Schonberg <schonberg@adacore.com>
3453 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
3454 => Is_Atomic_Aggregate
3456 2009-07-13 Emmanuel Briot <briot@adacore.com>
3458 * prj-nmsc.adb: Avoid traversing the list of source files if
3459 we have already processed all locally removed files.
3461 2009-07-13 Jose Ruiz <ruiz@adacore.com>
3463 * gnat_ugn.texi: Fix typo.
3465 2009-07-13 Robert Dewar <dewar@adacore.com>
3467 * freeze.adb: Minor reformatting
3468 Minor code reorganization (use Nkind_In)
3470 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
3472 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3474 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
3475 local variable and do not test it in Compile_Time_Bad_Alignment.
3476 Do not issue size or alignment warnings for the X'Address form.
3477 * sem_util.ads (Find_Overlaid_Object): Delete.
3478 (Find_Overlaid_Entity): New procedure.
3479 * sem_util.adb (Find_Overlaid_Object): Rename to...
3480 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
3481 whether the address is offseted within the overlaid entity.
3482 (Has_Compatible_Alignment): Track the offset globally instead of
3483 passing it to Check_Offset. For an indexed component, compute the
3484 full offset when possible. If the resulting offset is zero, only
3486 (Check_Offset): Delete.
3487 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
3488 (Address_Aliased_Entity): Delete.
3489 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
3490 Find_Overlaid_Entity to find the overlaid entity and the offset.
3491 Adjust throughout for above change.
3492 (Validate_Address_Clauses): Always use attributes of entities, not of
3493 their type. Tweak message for warning. Call Has_Compatible_Alignment
3494 if the address is offseted to warn about incompatible alignments.
3495 * gcc-interface/gigi.h (annotate_object): Declare.
3496 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
3497 entity. Call annotate_object instead of annotating manually objects.
3498 (annotate_object): New function.
3499 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
3502 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
3504 * gcc-interface/ada-tree.h: Minor reorganization.
3505 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
3506 (gnat_print_type): Likewise.
3508 2009-07-11 Thomas Quinot <quinot@adacore.com>
3510 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
3513 * exp_ch6.adb: Minor reformatting
3515 2009-07-11 Ed Schonberg <schonberg@adacore.com>
3517 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
3518 account possible type qualification to determine whether aggregate
3519 needs a target temporary to respect atomic type or object.
3521 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
3522 Expand_Atomic_Aggregate.
3524 2009-07-11 Emmanuel Briot <briot@adacore.com>
3526 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
3528 (Excluded_Sources_Htable): No longer a global table.
3529 Change error message to indicate which files are illegal in the list
3530 of excluded files, as opposed to only the location in the project
3532 (Find_Source): New subprogram.
3534 2009-07-10 Thomas Quinot <quinot@adacore.com>
3536 * exp_ch7.adb: Update comments.
3538 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3540 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
3541 clause if -gnatI is set instead of crashing.
3543 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3545 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
3546 Additional work to remove redundant successive raise statements, in
3547 this case access checks.
3549 2009-07-10 Vincent Celier <celier@adacore.com>
3551 * make.adb (Compile): Always create a deep copy of the mapping file
3552 argument (-gnatem=...) as it may be deallocate/reallocate by
3553 Normalize_Arguments.
3555 2009-07-10 Javier Miranda <miranda@adacore.com>
3557 * einfo.adb (Directly_Designated_Type): Add assertion.
3559 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
3560 access types before using attribute Directly_Designated_Type.
3562 2009-07-10 Emmanuel Briot <briot@adacore.com>
3564 * prj.ads: Minor typo fix
3566 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3568 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
3571 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
3572 subprogram is a function call, resolve properly, to ensure that extra
3573 actuals are added as needed.
3575 2009-07-10 Thomas Quinot <quinot@adacore.com>
3577 * sem_aggr.adb: Minor comments editing
3579 * exp_tss.adb, exp_ch3.adb: Minor reformatting
3581 2009-07-10 Robert Dewar <dewar@adacore.com>
3583 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
3585 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
3588 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
3589 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
3590 case of conditional expressions that may not be elaborated.
3592 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
3593 conditional expression where we may not execute then then or else
3596 2009-07-10 Arnaud Charlet <charlet@adacore.com>
3598 * i-cexten.ads (bool): New type.
3600 2009-07-10 Robert Dewar <dewar@adacore.com>
3602 * sinfo.ads (N_Short_Circuit): New definition
3604 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
3605 treepr.adb: Minor code reorganization (use N_Short_Circuit)
3607 2009-07-10 Javier Miranda <miranda@adacore.com>
3609 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
3610 non-tagged record types.
3613 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
3614 with non-tagged types. Required to import C++ classes that have no
3616 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
3617 returning non-tagged types. For backward compatibility, if the
3618 constructor returns a class wide type we internally change the
3619 returned type to the corresponding non class-wide type.
3622 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
3623 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
3624 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
3625 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
3628 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
3630 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
3632 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
3634 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
3636 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
3639 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
3642 (pragma CPP_Class): Document that it can be used now with non-tagged
3644 (pragma CPP_Constructor): Document that it can be used now with
3645 functions returning specific types. For backward compatibility
3646 we also support functions returning class-wide types.
3649 (Interfacing with C++ constructors): Update the examples to incorporate
3650 the new syntax in which the functions used to import C++ constructors
3651 return specific types.
3652 (Interfacing with C++ at the Class Level): Update the examples to
3653 incorporate the new syntax in which the functions used to import
3654 C++ constructors return specific types.
3656 2009-07-10 Thomas Quinot <quinot@adacore.com>
3658 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
3659 Make_Disp_Conditional_Select_Body,
3660 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
3661 interface nor a concurrent type, the primitive body is empty. Generate
3662 a null statement so that it remains well formed.
3664 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3666 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
3667 replace references to them in defaulted component expressions with
3668 references to the values of the discriminants of the target object.
3670 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3672 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
3673 pragma, to capture global references if the context is generic.
3675 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
3676 appears within the initialization procedure for the corresponding
3677 record, replace it with the proper discriminal.
3679 2009-07-10 Vincent Celier <celier@adacore.com>
3681 * make.adb: Do not include object directories or library ALI
3682 directories of library projects in the object path.
3684 2009-07-10 Javier Miranda <miranda@adacore.com>
3686 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
3687 Typ argument to ensure proper management of access types.
3689 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3691 * exp_ch7.adb (Build_Final_List): If the list is being built for a
3692 Taft-Amendment type, place the finalization list in the package body,
3693 to ensure that the tree for the spec is identical whenever it is
3696 2009-07-10 Javier Miranda <miranda@adacore.com>
3698 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
3699 inheriting attributes from a private Parent_Base.
3701 2009-07-10 Ed Schonberg <schonberg@adacore.com>
3703 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
3704 statements with the same condition.
3706 2009-07-10 Robert Dewar <dewar@adacore.com>
3708 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
3710 2009-07-09 Tom Tromey <tromey@redhat.com>
3712 * raise-gcc.c: Include dwarf2h (unconditionally).
3714 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3716 * sem_ch10.adb (Install_Context): If the unit is a package body,
3717 install the private with_clauses of the corresponding package
3720 2009-07-09 Robert Dewar <dewar@adacore.com>
3722 * checks.adb: Minor reformatting
3724 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3726 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3729 2009-07-09 Thomas Quinot <quinot@adacore.com>
3731 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3732 Do not warn for a constant overlaying any constant object
3734 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3736 * sem_ch10.adb (Install_Context): If the unit is a package body,
3737 install the private with_clauses of the corresponding package
3740 2009-07-09 Robert Dewar <dewar@adacore.com>
3742 * checks.adb: Minor reformatting
3744 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3746 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
3749 2009-07-09 Thomas Quinot <quinot@adacore.com>
3751 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
3752 Do not warn for a constant overlaying any constant object
3754 2009-07-09 Arnaud Charlet <charlet@adacore.com>
3756 * gcc-interface/Make-lang.in: Update dependencies
3758 2009-07-09 Thomas Quinot <quinot@adacore.com>
3760 * g-socket.adb (Check_Selector): Do not create local copies of the
3761 socket sets on the stack.
3763 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
3765 * gnat_ugn.texi: Add missing VMS translations.
3767 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3769 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
3770 condition, to prevent generation of visible code during expansion,
3771 when Check is not enabled.
3773 2009-07-09 Gary Dismukes <dismukes@adacore.com>
3775 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
3776 the check gets registered for any available local handler
3779 * sem_util.adb: Add with and use of Exp_Ch11.
3780 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
3781 that the check gets registered for any available local handler.
3783 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
3786 2009-07-09 Steve Baird <baird@adacore.com>
3788 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
3790 (Expand_N_Exception_Declaration): Fix handling of exceptions
3791 declared in a subprogram.
3793 2009-07-09 Emmanuel Briot <briot@adacore.com>
3795 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
3798 2009-07-09 Thomas Quinot <quinot@adacore.com>
3800 * freeze.adb: Minor reformatting
3802 * exp_ch3.adb: Minor comment fix.
3804 * sinfo.ads: Minor comment fix
3806 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3808 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
3810 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3812 * freeze.adb (Freeze_Expression): If the expression is the name of a
3813 function in a call, and the function has not been frozen yet, create
3814 extra formals for it to ensure that the proper actuals are created
3815 when expanding the call.
3817 2009-07-09 Emmanuel Briot <briot@adacore.com>
3819 * prj-pp.adb (Print): Fix handling of source index when set on a
3822 2009-07-09 Ed Schonberg <schonberg@adacore.com>
3824 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
3825 a temporary to the source expression whose value it captures.
3827 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
3829 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3831 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
3834 2009-07-07 Gary Dismukes <dismukes@adacore.com>
3836 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
3837 parameters when the subtype of the actual is not known to be a subrange
3838 of the formal's subtype.
3839 (Expand_Call): Generate a range check only in the E_In_parameter case
3840 (in out parameter range checks are now handled in Expand_Actuals).
3842 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
3845 2009-07-07 Robert Dewar <dewar@adacore.com>
3847 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
3849 2009-07-07 Javier Miranda <miranda@adacore.com>
3851 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
3852 designated type comes from a limited views.
3854 2009-07-07 Emmanuel Briot <briot@adacore.com>
3856 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
3857 locally removed files that are later made visible again in an importing
3860 2009-07-07 Robert Dewar <dewar@adacore.com>
3862 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
3864 2009-07-07 Sergey Rybin <rybin@adacore.com>
3866 * gnat_ugn.texi: Add an example to the description of gnatcheck
3867 'Style_Checks' rule option.
3869 2009-07-07 Tristan Gingold <gingold@adacore.com>
3871 * seh_init.c: Fix inline assembly statement in seh_init.c
3873 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3875 * sem_warn.adb (Check_References): Do not emit warnings on formals of
3876 an entry body. Only the formals of the entry declaration are traced.
3878 2009-07-07 Robert Dewar <dewar@adacore.com>
3880 * s-osprim-mingw.adb: Minor code reorganization
3882 2009-07-07 Robert Dewar <dewar@adacore.com>
3884 * prj-nmsc.adb: Minor reformatting
3886 2009-07-07 Pascal Obry <obry@adacore.com>
3888 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
3889 cases where Pattern is longer than Source.
3891 2009-07-07 Pascal Obry <obry@adacore.com>
3893 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
3895 2009-07-07 Emmanuel Briot <briot@adacore.com>
3897 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
3900 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3902 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
3903 primitive operations, in case one of them is called in the
3904 initialization procedure for the type.
3906 2009-07-07 Robert Dewar <dewar@adacore.com>
3908 * a-calend.adb: Minor code reorganization (use conditional expressions)
3910 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
3911 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
3912 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
3913 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
3914 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
3915 g-comlin.adb, exp_ch11.adb: Minor reformatting.
3917 2009-07-07 Gary Dismukes <dismukes@adacore.com>
3919 * checks.adb (Generate_Range_Check): Replace type conversions with
3920 unchecked conversions to support the case of performing range checks
3921 on Enum'Val (permits integer values to be converted to enumeration).
3923 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
3924 Attribute_Succ): Set Do_Range_Check to False before calling
3925 Expand_Pred_Succ, to prevent gigi from generating any range checks.
3926 (Expand_N_Attribute_Reference, case Attribute_Val):
3927 Generate a range check when needed (and set Do_Range_Check to False).
3929 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
3930 scalar object initialization if needed.
3932 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
3933 when needed on scalar allocators.
3934 (Expand_N_Qualified_Expression): Generate range check when needed.
3935 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
3936 Checks on slice ranges handled in Resolve_Slice.
3938 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
3939 when needed, for all scalar assignments, not just discrete.
3940 (Expand_Simple_Function_Return): Resolve the conversion created for a
3941 scalar function return so that the conversion will get expanded to
3942 generate a possible constraint check.
3944 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
3945 in out scalar actuals when subtypes don't match, to ensure generation
3946 of return checks (and set Do_Range_Check to False).
3947 (Expand_Call): Uncomment code to perform range checks, but make it apply
3948 only to in and in out parameters (checks on parameter returns are
3949 handled in Expand_Actuals). If a scalar actual for a call to a derived
3950 subprogram is marked as needing a range check, peform it here (and set
3951 Do_Range_Check to False).
3953 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
3954 range check on scalar component associations when needed.
3956 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
3957 infinities but the second type does not, as these aren't compatible
3958 floating-point types.
3960 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
3961 slice is itself a slice, pick up the Etype of the prefix. This handles
3962 the case where the prefix was an Image attribute expanded to a slice,
3963 and ensures that we get the subtype with the slice constraint rather
3964 than the unconstrained subbtype of the 'Image.
3966 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3968 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
3969 overloaded expressions in a conditional expressions.
3971 * sem_res.adb (Resolve): Handle properly overloaded conditional
3974 2009-07-07 Robert Dewar <dewar@adacore.com>
3976 * scng.adb: Minor reformattting
3978 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
3979 association allows conditional expression without parens.
3981 * par-ch4.adb (P_Name): Attribute arguments can be conditional
3982 expressions without enclosing parentheses, and also as parameters,
3983 indexing expressions etc.
3984 (P_Conditional_Expression): New procedure
3985 (P_Expression_If_OK): New procedure
3987 * par.adb (P_Conditional_Expression): New procedure
3988 (P_Expression_If_OK): New procedure
3990 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
3991 form of conditional expression.
3993 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
3994 missing True argument if ELSE argument missing.
3996 * sinfo.adb (Is_Elsif): New flag
3998 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
3999 part of the language, and the documentation is modified accordingly.
4000 (Is_Elsif): New flag
4002 2009-07-06 Olivier Hainque <hainque@adacore.com>
4004 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
4005 setjmp_longjmp): Attach the exception propagation reraise fallback
4006 to the sequence end label location when we have it.
4008 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4011 * init.c (APPLE): Include <mach/mach_init.h>.
4012 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
4014 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
4016 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
4017 (SET_DECL_LANG_SPECIFIC): Likewise.
4018 (TYPE_RM_VALUE): New macro.
4019 (SET_TYPE_RM_VALUE): Likewise.
4020 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
4021 (TYPE_RM_MIN_VALUE): Likewise.
4022 (TYPE_RM_MAX_VALUE): Likewise.
4023 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
4024 (SET_TYPE_RM_MIN_VALUE): Likewise.
4025 (SET_TYPE_RM_MAX_VALUE): Likewise.
4026 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
4028 2009-07-04 Laurent GUERBY <laurent@guerby.net>
4031 * tracebak.c (__gnat_backtrace): Fix old-style definition.
4033 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4035 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
4037 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4040 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
4043 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
4045 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
4047 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4049 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
4050 the type of the left operand if it pads a self-referential type when
4051 the right operand is a constructor.
4053 * gcc-interface/lang-specs.h: Fix copyright date.
4055 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4057 * gcc-interface/decl.c: Include tree-inline.h.
4058 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
4059 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
4060 * gcc-interface/utils2.c: Include tree-inline.
4061 (known_alignment) <CALL_EXPR>: Likewise.
4063 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4065 * raise-gcc.c: Include dwarf2.h conditionally.
4067 2009-06-29 Tom Tromey <tromey@redhat.com>
4069 * raise-gcc.c: Include elf/dwarf2.h.
4071 2009-06-27 Laurent GUERBY <laurent@guerby.net>
4073 * tb-gcc.c (trace_callback): Add casts to silence warning.
4075 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
4077 * tb-gcc.c: Fix copyright notice.
4079 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
4081 * init.c (__gnat_set_globals): Add prototype.
4082 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
4083 (__gnat_sals_init_using_constructors): Likewise.
4084 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
4085 (get_block_jmpbuf_decl): Likewise.
4086 (gnat_poplevel): Likewise.
4087 (merge_sizes): Rename local variable.
4088 (copy_type): Likewise.
4089 (build_vms_descriptor32): Likewise.
4090 (build_vms_descriptor): Likewise.
4091 (convert_vms_descriptor64): Likewise.
4092 (convert_vms_descriptor32): Likewise.
4093 (convert_to_fat_pointer): Likewise.
4094 (maybe_unconstrained_array): Likewise.
4095 (def_fn_type): Use promoted type with va_arg.
4096 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
4097 (substitute_in_type): Rename local variable.
4098 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
4100 2009-06-26 Laurent GUERBY <laurent@guerby.net>
4102 * tb-gcc.c (trace_callback): Use char* instead of void*.
4103 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
4104 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
4105 (Attribute_to_gnu): Adjust for above change.
4106 (Subprogram_Body_to_gnu): Likewise.
4107 * gcc-interface/utils.c (merge_sizes): Rename local variable.
4108 (copy_type): Likewise.
4109 (build_vms_descriptor32): Likewise.
4110 (build_vms_descriptor): Likewise.
4111 (convert_vms_descriptor64): Likewise.
4112 (convert_vms_descriptor32): Likewise.
4113 (convert_to_fat_pointer): Likewise.
4114 (maybe_unconstrained_array): Likewise.
4115 * gcc-interface/decl.c (substitute_in_type): Likewise.
4117 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4119 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
4120 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
4121 of the upper bound of the index types.
4123 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4125 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
4126 out common predicate. Use the maximum to compute the upper bound of
4127 the index type only when it is not wider than sizetype. Perform the
4128 comparison in the index type for the generic expression. Use real
4129 precision to decide whether to generate special types for debugging
4132 2009-06-26 Matthew Gingell <gingell@adacore.com>
4134 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
4136 2009-06-26 Vincent Celier <celier@adacore.com>
4138 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
4141 2009-06-26 Robert Dewar <dewar@adacore.com>
4143 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
4145 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
4147 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
4148 correct arguments to create_field_decl. Remove redundant iteration.
4149 Rewrite computation of the maximum size.
4150 <E_Array_Subtype>: Reorder and simplify handling of special cases.
4151 Rewrite computation of the maximum size. Use consistent naming.
4152 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
4153 comparison order for consistency. Use generic integer node to
4154 build the operator and fold the result.
4156 2009-06-25 Vincent Celier <celier@adacore.com>
4158 * vms_data.ads: Minor comment change
4160 2009-06-25 Gary Dismukes <dismukes@adacore.com>
4162 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
4163 assignment statement to targeting a caller-provided object when the
4164 result type is an interface type.
4166 * exp_ch6.adb (Expand_Call): Remove redundant test of
4167 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
4168 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
4170 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
4171 to OK_For_Limited_Init.
4173 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
4174 condition so that True is returned for all limited interfaces, not
4175 just synchronized ones. Ignore components of an interface type when
4176 checking for limited components (such a component can be a parent
4179 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
4180 (OK_For_Limited_Init): Add type parameter.
4182 * sem_ch3.adb (Check_Initialization): Add type in call to
4183 OK_For_Limited_Init.
4184 (OK_For_Limited_Init): Add new type param in call to
4185 OK_For_Limited_Init_In_05.
4186 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
4187 nonlimited type when the context type is a limited interface. Add type
4190 * sem_ch4.adb (Analyze_Allocator): Add type in call to
4191 OK_For_Limited_Init.
4193 * sem_ch6.adb (Check_Limited_Return): Add type in call to
4194 OK_For_Limited_Init.
4196 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
4197 OK_For_Limited_Init.
4198 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
4200 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
4201 class-wide interface, get the base type before applying Etype, in order
4202 to account for class-wide subtypes.
4204 2009-06-25 Emmanuel Briot <briot@adacore.com>
4206 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
4207 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
4208 between gnatmake and gprbuild.
4209 (Naming_Data): Removed, no longer used
4210 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
4211 needed locally in one subprogram, no need to store forever in the
4213 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
4215 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
4216 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
4217 Spec_Suffix_Id_Of): removed, no longer used.
4219 2009-06-25 Javier Miranda <miranda@adacore.com>
4221 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
4222 types on qualified expression in calls to imported C++ constructors.
4224 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
4225 imported C++ constructors.
4227 2009-06-25 Sergey Rybin <rybin@adacore.com>
4229 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
4231 2009-06-25 Vincent Celier <celier@adacore.com>
4233 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
4234 provided, on Windows change all '/' to '\'.
4236 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
4237 used. Minor comment changes
4239 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
4240 Remove_Forbidden_File_Name.
4242 2009-06-25 Quentin Ochem <ochem@adacore.com>
4244 * prj.ads (Unit_Index): Now general access type.
4246 2009-06-25 Pascal Obry <obry@adacore.com>
4248 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
4250 2009-06-25 Emmanuel Briot <briot@adacore.com>
4252 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
4253 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
4254 computed efficiently from the other fields.
4255 (Object_To_Global_Archive): New subprogram
4256 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
4257 (Override_Kind): Fix handling of separates in Ada.
4258 (Create_Mapping_File): Remove duplicate code
4259 (Naming_Data.Implementation_Exception, Specification_Exception):
4260 field removed, since never used.
4261 (Naming_Data.Specs, .Bodies): field removed, since this is only
4262 used while processing the project and is not needed once the tree
4263 is in memory. This brings Naming_Data and Lang_Naming_Data
4264 closer (same content now, but different use still).
4266 2009-06-25 Pascal Obry <obry@adacore.com>
4268 * sem_ch4.adb: Minor reformatting.
4270 * a-strsea.adb: Fix confusion between 'Length and 'Last.
4272 2009-06-25 Ed Schonberg <schonberg@adacore.com>
4274 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
4275 Unchecked_Access): If the context is an interface type, and the prefix
4276 is of the corresponding class-wide type, do not insert a conversion
4277 because the pointer displacement has already taken place, and we must
4278 retain the class-wide type in a dispatching context.
4280 2009-06-25 Emmanuel Briot <briot@adacore.com>
4282 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
4283 the previous source file.
4284 (Create_Mapping): Iterate on sources rather than on units.
4286 2009-06-25 Emmanuel Briot <briot@adacore.com>
4288 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
4289 prj-env.adb, prj-env.ads (Slash): removed, no longer used
4290 (Source_Data): no longer use Path.Name to point to a locally removed
4291 file. Instead we use the field Locally_Removed which is clearer
4293 2009-06-25 Arnaud Charlet <charlet@adacore.com>
4295 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
4297 * sem_maps.adb, sem_maps.ads: Removed, not used.
4299 2009-06-25 Ed Falis <falis@adacore.com>
4301 * s-vxwext-rtp.ads: Add missing declaration
4303 2009-06-25 Matthew Gingell <gingell@adacore.com>
4305 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
4306 speed up unmapped case.
4308 2009-06-25 Vincent Celier <celier@adacore.com>
4310 * prj-nmsc.adb (Check): Change error message for illegal abstract
4313 2009-06-25 Robert Dewar <dewar@adacore.com>
4315 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
4317 2009-06-25 Emmanuel Briot <briot@adacore.com>
4319 * fmap.ads: Add documentation on mapping files
4321 2009-06-25 Robert Dewar <dewar@adacore.com>
4323 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
4326 2009-06-24 Robert Dewar <dewar@adacore.com>
4328 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
4330 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
4334 2009-06-24 Ed Schonberg <schonberg@adacore.com>
4336 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
4337 present when checking whether a call may be interpreted as an indexing
4338 of the result of a call.
4340 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
4341 body for a null procedure on the freeze actions for the procedure, so
4342 that it will be analyzed at the proper place without premature freezing
4345 * sem_ch3.adb (Check_Completion): Code cleanup.
4346 Do not diagnose a null procedure without a body, if previous errors
4347 have disabled expansion.
4349 2009-06-24 Doug Rupp <rupp@adacore.com>
4351 * init.c [VMS] Resignal C$_SIGKILL
4353 2009-06-24 Ed Falis <falis@adacore.com>
4355 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
4356 Define ERROR in body for VxWorks 6 kernel
4358 2009-06-24 Pascal Obry <obry@adacore.com>
4360 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
4361 in [Send/Receive]_Socket.
4363 2009-06-24 Emmanuel Briot <briot@adacore.com>
4365 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
4366 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
4367 to several subprograms.
4368 (Source_Data.Other_Part): Removed, since can be computed from the
4370 (Other_Part): New subprogram.
4372 2009-06-24 Emmanuel Briot <briot@adacore.com>
4374 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
4375 the full base name of the file when the suffix doesn't start with a '.'.
4377 2009-06-24 Vincent Celier <celier@adacore.com>
4379 * prj-nmsc.adb (Check): A project declared abstract is legal if no
4380 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
4383 2009-06-24 Robert Dewar <dewar@adacore.com>
4385 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
4386 prj-env.adb: Minor reformatting
4388 2009-06-24 Ed Falis <falis@adacore.com>
4390 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
4391 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
4392 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
4393 support for VxWorks SMP.
4395 * gcc-interface/Make-lang.in: Update dependencies
4397 2009-06-24 Emmanuel Briot <briot@adacore.com>
4399 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4400 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
4402 (Source_Data.Lang_Kind): Removed, since it duplicates information
4403 already available through Language.Config.
4404 (Source_Data.Compile): Removed, since information is already available
4405 through the language.
4406 (Is_Compilable): New subprogram.
4407 (Source_Data.Dependency): Removed, since already available through
4409 (Source_Data.Object_Exist, Object_Linked): Removed since available
4410 through the language already.
4411 (Unit_Data.File_Names): Is now also set in multi_language mode, to
4412 bring the two modes closer in the resulting data structures.
4413 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
4414 just the name that would point into a hash table.
4415 (Get_Language_From_Name): New subprogram.
4417 2009-06-24 Javier Miranda <miranda@adacore.com>
4419 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
4420 visible through limited-with context clauses. In addition, avoid an
4421 extra tag check that is not required when the class-wide
4422 designated types of the operand and target types are
4424 (Tagged_Membership): Handle entities from the limited view.
4426 2009-06-24 Emmanuel Briot <briot@adacore.com>
4428 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
4429 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
4430 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
4431 different vocabularies for similar concepts (Impl/Body_Part and
4432 Spec/Specification).
4433 (Unit_Data): now points directly to a Source_Id, rather than duplicating
4434 some of the information in File_Name_Data. This also saves a bit of
4435 memory. However, since we are now using a pointer we need to test
4436 for null explicitly in several places of the code
4438 2009-06-24 Javier Miranda <miranda@adacore.com>
4440 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
4441 from processing the type conversion when the node is
4442 replaced by an N_Raise_Program_Error node.
4444 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
4446 * sem_ch6.adb (Designates_From_With_Type): New routine.
4447 (Process_Formals): Since anonymous access types are no longer flagged
4448 as from with types, traverse the designated type to determine whether
4449 it is coming from a limited view.
4451 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
4452 (Full_Designated_Type): Use Available_View to extract the non-limited /
4453 full view of a type.
4455 2009-06-24 Robert Dewar <dewar@adacore.com>
4457 * exp_ch6.adb: Minor reformatting
4459 * layout.adb: Minor reformatting
4461 * make.adb: Minor reformatting
4463 2009-06-24 Thomas Quinot <quinot@adacore.com>
4465 * sem_ch10.adb: Minor code reorganization.
4467 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
4469 * ttypes.ads: Minor editing.
4471 2009-06-24 Robert Dewar <dewar@adacore.com>
4473 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
4474 in deciding to do call-by-copy code.
4476 2009-06-24 Vincent Celier <celier@adacore.com>
4478 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
4479 check if an externally built library file is more current than the
4482 2009-06-23 Olivier Hainque <hainque@adacore.com>
4484 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
4485 c-common.c and populate in gnat_internal_attribute_table.
4487 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4489 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
4490 Available_View only when designated type of an anonymous access type
4493 2009-06-23 Robert Dewar <dewar@adacore.com>
4495 * sem_ch10.adb: Minor reformatting
4497 * ali.ads: Mino reformatting.
4499 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
4500 turning off inlining if ASIS mode active).
4502 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
4503 This belongs in gnat1drv.adb after switches are scanned.
4505 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
4507 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
4508 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
4509 when dealing with class-wide types. Detect a legal shadow entity and
4510 retrieve its non-limited view.
4512 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
4513 subprogram to top package level from Intall_Limited_Withed_Unit.
4514 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
4515 Add check which prevents the installation of a limited view if the
4516 non-limited view is already visible through a with clause.
4517 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
4518 legal shadow entity which may occur in subprogram formals of anonymous
4521 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
4523 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
4524 From_With_Type from the designated type to the generated anonymous
4525 access type. Remove associated comment.
4527 * sem_res.adb Add with and use clauses for Sem_Ch10.
4528 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
4529 non-limited view. Since the shadow entity may replace a regular
4530 incomplete type, return the available full view.
4532 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4534 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
4535 incomplete type declarations. Previous code was potentially quadratic
4536 in the number of visible declarations in any package appearing in a
4537 limited_with_clause.
4539 2009-06-23 Robert Dewar <dewar@adacore.com>
4541 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
4542 xref_lib.adb: Minor reformatting
4544 2009-06-23 Robert Dewar <dewar@adacore.com>
4546 * a-stzhas.adb: Provide dummy body to avoid build problems with old
4547 versions which did have a body for this unit.
4549 2009-06-23 Vincent Celier <celier@adacore.com>
4551 * prj-attr.adb: Attribute names Initial_Required_Switches and
4552 Final_Required_Switches changed to Leading_Required_Switches and
4553 Trailing_Required_Switches.
4555 * prj-nmsc.adb (Process_Compiler): Attribute names
4556 Initial_Required_Switches and Final_Required_Switches changed to
4557 Leading_Required_Switches and Trailing_Required_Switches.
4559 * prj.ads (Language_Config): Component Initial_Required_Switches and
4560 Final_Required_Switches changed to Leading_Required_Switches and
4561 Trailing_Required_Switches.
4563 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
4564 Final_Required_Switches; add standard names Leading_Required_Switches
4565 and Trailing_Required_Switches.
4567 2009-06-23 Thomas Quinot <quinot@adacore.com>
4569 * prj-conf.adb: Minor reformatting
4571 * xref_lib.adb: Minor cleanup
4573 2009-06-23 Emmanuel Briot <briot@adacore.com>
4575 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
4576 prj-conf.ads (Check_Configuration): New parameter
4577 Compiler_Driver_Mandatory.
4579 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4581 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
4582 context of the current unit has an inline pragma, the instance is not
4583 rewritten as the declaration of the package wrapper. Handle both
4584 possibilities when retrieving the visible subprogram that renames the
4585 instantiation itself.
4587 2009-06-23 Javier Miranda <miranda@adacore.com>
4589 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
4590 designated types referencing entities from the limited view.
4592 2009-06-23 Robert Dewar <dewar@adacore.com>
4594 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
4596 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
4599 * prj-conf.ads: Minor reformatting
4601 * prj-conf.adb: Minor reformatting
4603 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
4605 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
4606 to correspond to the log format that gnatmem now expects.
4608 2009-06-23 Vincent Celier <celier@adacore.com>
4610 * prj-attr.adb: New attributes Initial_Required_Switches,
4611 Final_Required_Switches and Object_File_Switches
4613 * prj-nmsc.adb (Process_Compiler): Process new attributes
4614 Name_Final_Required_Switches, Name_Initial_Required_Switches and
4615 Name_Object_File_Switches.
4617 * prj.ads (Language_Config): New component
4618 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
4619 Compiler_Final_Required_Switches and Object_File_Switches.
4621 * snames.ads-tmpl: New standard names Initial_Required_Switches,
4622 Final_Required_Switches and Object_File_Switches
4624 2009-06-23 Pascal Obry <obry@adacore.com>
4626 * s-strhas.adb, s-strhas.ads: Minor reformatting.
4628 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4630 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
4631 not indicate that the enclosing unit needs a body.
4633 2009-06-23 Emmanuel Briot <briot@adacore.com>
4635 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
4637 2009-06-23 Ed Schonberg <schonberg@adacore.com>
4639 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
4640 primitive equality include it with its source name even if the
4641 operation is currently invisible, to make sure that the corresponding
4642 slot in the dispatch table is reserved for the internal equality
4643 subsequently generated during expansion.
4645 2009-06-23 Matthew Gingell <gingell@adacore.com>
4647 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
4649 2009-06-22 Jose Ruiz <ruiz@adacore.com>
4651 * sysdep.c (__gnat_localtime_tzoff for RTX):
4652 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
4653 GetTimeZoneInformation instead.
4655 2009-06-22 Robert Dewar <dewar@adacore.com>
4657 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
4659 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4661 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
4662 instantiations declared in a previous generic package body.
4664 2009-06-22 Robert Dewar <dewar@adacore.com>
4666 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
4667 restriction No_Direct_Boolean_Operators.
4669 2009-06-22 Thomas Quinot <quinot@adacore.com>
4671 * bindusg.adb: Minor fixes to gnatbind usage message
4673 * sem_eval.adb: Minor reformatting
4675 2009-06-22 Javier Miranda <miranda@adacore.com>
4677 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
4678 freezing point the check on the use of abstract types in object
4679 declarations. Done to allow the declaration of C++ imported variables
4680 or constants whose type corresponds with an imported C++ classes for
4681 which the constructor is not imported.
4683 2009-06-22 Thomas Quinot <quinot@adacore.com>
4685 * sem_ch6.adb: Minor reformatting
4687 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4689 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
4690 component is constrained with an expression rather than with a
4691 discriminant of the enclosing type, use that expression when building
4692 the call to default-initialize the component, when the call is part of
4693 an aggregate with box initialization.
4695 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4697 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
4698 unconditional rather than a style check, because a formal name out of
4699 order is suspicious.
4701 2009-06-22 Vincent Celier <celier@adacore.com>
4703 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
4704 creating a directory automatically.
4706 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
4708 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
4709 untagged derived type, add a hidden component for every constrained
4710 discriminant of the parent type to keep record layout consistent.
4712 2009-06-22 Thomas Quinot <quinot@adacore.com>
4714 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
4717 2009-06-22 Matthew Gingell <gingell@adacore.com>
4719 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
4720 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
4721 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
4722 a-swuwha.adb: New unit System.String_Hash.
4723 Refactor redundant cut and pasted hash functions with instances of a
4724 new generic hash function.
4725 Implement a new string hashing algorithm which appears in testing to
4726 be move effective than to previous approach.
4728 2009-06-22 Ed Falis <falis@adacore.com>
4730 * sysdep.c: remove include for nfsLib.h and an NFS specific error
4731 message for VxWorks 653 vThreads: not supported by the OS.
4733 * gsocket.h: disable sockets for VxWorks 653 vThreads.
4735 2009-06-22 Robert Dewar <dewar@adacore.com>
4737 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
4739 2009-06-22 Robert Dewar <dewar@adacore.com>
4741 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
4744 * freeze.adb: Minor comment updates
4746 * s-valrea.adb (Bad_Based_Value): New procedure
4747 (Scan_Real): Raise exceptions with messages
4749 2009-06-22 Matthew Gingell <gingell@adacore.com>
4751 * adaint.h: Complete previous change.
4753 2009-06-22 Thomas Quinot <quinot@adacore.com>
4755 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
4757 2009-06-22 Ed Schonberg <schonberg@adacore.com>
4759 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
4760 enabled, emit warning when a non-controlling argument of the overriding
4761 operation appears out of place vis-a-vis of the formal of the
4762 overridden operation.
4764 2009-06-22 Vincent Celier <celier@adacore.com>
4766 * gnatcmd.adb (Check_Files): Close temporary files after all file names
4767 have been written into it.
4769 2009-06-22 Matthew Gingell <gingell@adacore.com>
4771 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
4774 2009-06-22 Thomas Quinot <quinot@adacore.com>
4776 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
4777 view of the root type is visible at the point of the call.
4779 2009-06-22 Pat Rogers <rogers@adacore.com>
4781 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
4783 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
4785 * freeze.adb: Add comments.
4787 2009-06-21 Thomas Quinot <quinot@adacore.com>
4789 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
4790 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
4791 Factor out code to new subprogram...
4792 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
4793 for a default initialized variable.
4794 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
4795 entity that has an associated freeze node.
4796 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
4797 If there is an init call for the object, defer it to the object freeze
4799 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
4800 name clash with new subprogram introduced in Exp_Util.
4802 2009-06-21 Robert Dewar <dewar@adacore.com>
4804 * einfo.ads: Minor reformatting
4806 2009-06-21 Ed Falis <falis@adacore.com>
4808 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
4810 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
4812 * einfo.ads: Update comments.
4814 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
4816 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
4817 where the controlling formal is of private class-wide type whose
4818 completion is a synchronized type can be converted into direct calls.
4820 2009-06-21 Vincent Celier <celier@adacore.com>
4822 * gnatcmd.adb (Check_Files): When all sources of the project are to be
4823 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
4824 of sources using -files=, so that the distinction can be made by the
4825 tool of a call with no source (to display the usage) from a call with
4826 a project file that contains no source.
4828 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
4830 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
4831 case of VM convention arrays.
4833 2009-06-20 Robert Dewar <dewar@adacore.com>
4835 * a-nudira.adb: Minor reformatting
4837 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4839 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
4840 expressions (possibly from a parent type) indicate that the scope of
4841 the new itypes is the initialization procedure being built.
4843 2009-06-20 Robert Dewar <dewar@adacore.com>
4845 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
4846 Needs_64, and now computed without anomolies for some dynamic types.
4848 2009-06-20 Thomas Quinot <quinot@adacore.com>
4850 * sem_prag.adb: Minor reformatting
4852 * exp_disp.ads: Minor reformatting
4854 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4856 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
4857 function call is a legal expression to initialize a limited object.
4859 * exp_ch3.adb: Rename various freeze operations that perform expansion
4860 actions, to prevent confusion with subprograms in the freeze package.
4862 2009-06-20 Ed Schonberg <schonberg@adacore.com>
4864 * sem.adb (Walk_Library_Units): Check instantiations first.
4866 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
4867 private primitive if it is a function with a controlling result that is
4868 a type extension with progenitors.
4870 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
4871 a primitive operation of a synchronized tagged type that has a
4874 2009-06-20 Thomas Quinot <quinot@adacore.com>
4876 * einfo.ads: Fix typo.
4878 2009-06-20 Ed Falis <falis@adacore.com>
4880 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
4882 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4884 * gcc-interface/trans.c (emit_check): Do not wrap up the result
4886 (protect_multiple_eval): Always protect complex expressions.
4888 2009-06-19 Emmanuel Briot <briot@adacore.com>
4890 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
4891 make sure we always return a name ending with a path separator.
4893 2009-06-19 Javier Miranda <miranda@adacore.com>
4895 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
4896 Save and restore the visibility of the parent when installed.
4898 2009-06-19 Jose Ruiz <ruiz@adacore.com>
4900 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
4901 by Common which contains all these fields.
4903 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
4904 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
4905 Remove code duplication in this package by means of calling the
4906 equivalent code in s-taprob.
4908 2009-06-19 Robert Dewar <dewar@adacore.com>
4910 * a-einuoc.ads: Minor reformatting
4912 2009-06-19 Ed Falis <falis@adacore.com>
4914 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
4915 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
4917 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4919 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
4921 2009-06-19 Robert Dewar <dewar@adacore.com>
4923 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
4926 * checks.adb (Determine_Range): Move the test for generic types later.
4928 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
4930 (Eval_Relational_Op): Fold more cases including string compares
4932 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
4935 2009-06-19 Robert Dewar <dewar@adacore.com>
4937 * sem_type.ads, sem_ch12.adb: Minor reformatting
4939 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
4941 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4943 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
4944 primitive operation of a rivate extension whose controlling argument
4945 is an out parameter.
4947 * sem.adb (Walk_Library_Units): exclude generic package declarations
4950 2009-06-19 Thomas Quinot <quinot@adacore.com>
4952 * i-vxwoio.ads: Add comments
4954 2009-06-19 Thomas Quinot <quinot@adacore.com>
4956 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4957 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4958 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
4959 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
4960 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
4961 Thin_Common.Socket_Ioctl.
4962 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
4963 __gnat_socket_ioctl.
4964 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
4965 argument after the file descriptor and request code.
4967 2009-06-19 Robert Dewar <dewar@adacore.com>
4969 * checks.adb: Minor reformatting
4971 2009-06-19 Jose Ruiz <ruiz@adacore.com>
4973 * env.c (__gnat_environ): RTX does not support this functionality.
4975 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4977 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
4978 traverse, to account for front-end inlining and instantiations in a
4979 spec or in the main unit.
4981 2009-06-19 Robert Dewar <dewar@adacore.com>
4983 * checks.adb (Determine_Range): Do not attempt to get range of generic
4986 2009-06-19 Sergey Rybin <rybin@adacore.com>
4988 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
4989 gnatmetric option for generating the schema file for gnatmetric XML
4990 output. Add corresponding VMS qualifier.
4992 2009-06-19 Robert Dewar <dewar@adacore.com>
4994 * g-cgi.adb: Minor reformatting
4996 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4998 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
4999 signal code for SIGFPE and raise Program_Error for SIGILL.
5001 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
5003 2009-06-19 Ed Schonberg <schonberg@adacore.com>
5005 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
5006 generic package if there is a visibility candidate that is declared in
5009 2009-06-18 Olivier Hainque <hainque@adacore.com>
5011 * system-aix64.ads: New file.
5012 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
5013 64bit system.ads for ppc64 multilib variants.
5015 2009-06-16 Robert Dewar <dewar@adacore.com>
5016 Olivier Hainque <hainque@adacore.com>
5018 Relax constraints on Machine_Attribute argument types:
5019 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
5021 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
5022 * gcc-interface/decl.c (prepend_attributes): Accept static
5023 expressions of any type as attribute arguments, not only string
5025 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
5026 the relaxation of the restriction on the Info argument type.
5028 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
5030 * gcc-interface/utils.c (record_builtin_type): Pass location
5031 argument to build_decl.
5032 (create_type_stub_decl): Same.
5033 (create_type_decl): Same.
5034 (create_var_decl_1): Same.
5035 (create_field_decl): Same.
5036 (create_param_decl): Same.
5037 (create_label_decl): Same.
5038 (create_subprog_decl): Same.
5039 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
5040 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
5041 argument to create_artificial_label.
5042 (Loop_Statement_to_gnu): Same.
5043 (Subprogram_Body_to_gnu): Same.
5044 (gnat_gimplify_stmt): Same.
5046 2009-06-11 Richard Henderson <rth@redhat.com>
5048 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
5051 2009-06-11 Ed Schonberg <schonberg@adacore.com>
5053 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
5054 accessibiliy check on access_to_subprogram in the context of an
5055 anonymous access that is not an access parameter.
5057 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
5059 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
5061 2009-06-11 Quentin Ochem <ochem@adacore.com>
5063 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
5064 comments for message handled by GPS.
5066 2009-06-11 Matthew Gingell <gingell@adacore.com>
5068 * adaint.c: Use fopen64 instead of fopen on platforms where we know
5071 2009-06-11 Pascal Obry <obry@adacore.com>
5073 * g-cgi.ads: Fix comment typo.
5075 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
5077 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
5079 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
5080 a reference to the original type for the type of the field of the
5082 (maybe_pad_type): Likewise.
5084 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
5085 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
5086 Pass correctly typed arguments to create_field_decl.
5087 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
5088 case of contrained discriminants as well. Use the padded base type
5089 in the other case as well. Rename temporary variable. Tweak test.
5090 Factor common access pattern. Set GNU_SIZE only once.
5092 2009-06-09 Olivier Hainque <hainque@adacore.com>
5094 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
5095 helper for build_call_alloc_dealloc with arguments to be interpreted
5096 identically. Process the case where a GNAT_PROC to call is provided.
5097 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
5098 and return an allocator for DATA_SIZE bytes aimed at containing a
5099 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
5100 DATA_TYPE alignments greater than what the latter offers.
5101 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
5102 release a DATA_TYPE object designated by DATA_PTR using the
5103 __gnat_free entry point.
5104 (build_call_alloc_dealloc): Expect object data type instead of naked
5105 alignment constraint. Use the new helpers.
5106 (build_allocator): Remove special processing for the super-aligned
5107 case, now handled by build_call_alloc_dealloc. Pass data
5108 type instead of the former alignment argument, as expected by the new
5110 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
5112 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
5113 Remove special processing for the super-aligned case, now handled
5114 by build_call_alloc_dealloc. Pass data type instead of the former
5115 alignment argument, as expected by the new interface.
5117 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
5119 * lib-writ.adb (flag_compare_debug): Import.
5120 (Write_ALI): Skip during -fcompare-debug-second.
5122 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5124 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
5125 adjusting the discriminant nodes in an extension, use the full view
5126 of the parent subtype if it is of a private kind.
5128 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5130 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
5131 _Parent field, if any, to the record before adding the other fields.
5132 <E_Record_Subtype>: Put the _Controller field before the other fields
5133 except for the _Tag or _Parent fields.
5134 (components_to_record): Likewise. Retrieve the _Parent field from the
5137 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
5139 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
5140 remove unused parameter and simplify.
5141 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
5142 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
5143 as context for all discriminants. Fix formatting nits.
5144 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
5145 before Discriminant_Constraint. Adjust for above renaming. Do not
5146 set GNU_TYPE more than once.
5147 (elaborate_entity): Test Has_Discriminants on the entity and use
5148 Implementation_Base_Type.
5149 (components_to_record): Rename component_list to gnat_component_list.
5150 Retrieve the _Parent field from the list. Fix nits in comments.
5151 Clarify logic in loop. Pass correct arguments to create_field_decl.
5153 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
5155 * gcc-interface/Make-lang.in: Fix formatting.
5157 2009-06-01 Olivier Hainque <hainque@adacore.com>
5158 Eric Botcazou <ebotcazou@adacore.com>
5160 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
5161 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
5162 on the result if at least one of the input fields couldn't be output
5163 as a static constant any more.
5165 2009-06-01 Olivier Hainque <hainque@adacore.com>
5166 Eric Botcazou <ebotcazou@adacore.com>
5168 * gcc-interface/utils2.c (gnat_build_constructor): Factor
5169 out code. Use initializer_constant_valid_for_bitfield_p and
5170 CONSTRUCTOR_BITFIELD_P for bit-fields.
5172 2009-05-26 Ian Lance Taylor <iant@google.com>
5174 * gcc-interface/Makefile.in (COMPILER): Define.
5175 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
5176 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
5177 (seh_init.o, tracebak.o): Likewise.
5178 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
5179 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
5180 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
5181 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
5182 (ada/utils2.o): Likewise.
5184 2009-05-24 Olivier Hainque <hainque@adacore.com>
5186 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
5187 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
5188 Add -auxbase variants to the list of recognized internal switches.
5189 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
5191 * lib.ads: Make comment on internal GCC switches more general.
5192 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
5195 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5197 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
5199 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5201 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
5204 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
5206 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
5207 original type because of the alignment when there is an address clause.
5209 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
5211 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
5212 discriminants affect the shape of the subtype, retrieve the GCC type
5213 directly from the original field if the GNAT types for the field and
5214 the original field are the same.
5216 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
5218 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
5220 (TYPE_RM_VALUES): Likewise.
5221 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
5222 (SET_TYPE_RM_SIZE): New macro.
5223 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
5224 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
5225 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
5226 * gcc-interface/gigi.h (create_range_type): Declare.
5227 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
5228 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
5229 <E_Signed_Integer_Subtype>: Build a regular integer type first and
5230 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5231 <E_Floating_Point_Subtype>: Build a regular floating-point type first
5232 and then set the RM bounds.
5233 <E_Array_Type>: Use create_range_type instead of build_range_type.
5234 <E_Array_Subtype>: Build a regular integer type first and then set
5235 the RM bounds for the extra subtype.
5236 <E_String_Literal_Subtype>: Use create_range_type instead of
5238 <all>: Set the RM bounds for enumeration types and the GCC bounds for
5239 floating-point types.
5240 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
5241 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
5242 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
5243 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
5244 types and with RM bounds for subtypes.
5245 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
5246 (gnat_print_type) <REAL_TYPE>: New case.
5247 <ENUMERAL_TYPE>: Fall through to above case.
5248 (gnat_get_subrange_bounds): New function.
5249 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
5250 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
5251 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
5252 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
5253 (create_range_type): New function.
5254 (create_param_decl): Build a regular integer type first and then set
5255 the RM bounds for the extra subtype.
5256 (unchecked_convert): Remove kludge for 'Valid.
5257 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
5258 the index to sizetype instead of TYPE_DOMAIN.
5260 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
5262 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
5263 parameter and move check for static expression to...
5264 (elaborate_expression): ...here. Adjust call to above function.
5265 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
5266 in calls to elaborate_expression.
5267 (elaborate_entity): Likewise.
5268 (substitution_list): Likewise.
5269 (maybe_variable): Fix formatting.
5270 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
5272 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
5274 2009-05-07 Arnaud Charlet <charlet@adacore.com>
5276 * gcc-interface/Make-lang.in: Update dependencies.
5278 2009-05-06 Laurent GUERBY <laurent@guerby.net>
5280 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
5281 Define sa_handler_pos.
5282 * s-osinte-linux.ads: Use it.
5283 * s-linux-mipsel.ads: New.
5284 * system-linux-mips64el.ads: New.
5285 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
5288 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5290 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
5291 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
5292 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
5293 (Tagged_Type_Expansion): New flag.
5294 Replace use of VM_Target related to tagged types expansion by
5295 Tagged_Type_Expansion, since tagged type expansion is not necessarily
5296 linked to VM targets.
5298 2009-05-06 Robert Dewar <dewar@adacore.com>
5300 * sem_attr.adb: Add processing for Standard'Compiler_Version
5302 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
5304 (Expr_First_Char): Add ??? comment that paren skipping needs work
5305 (Expr_Last_Char): Add ??? comment that paren skipping needs work
5307 * exp_attr.adb: Add processing for Compiler_Version
5309 * sem_attr.adb: New attribute Compiler_Version
5311 * snames.ads-tmpl: Add entries for Compiler_Version attribute
5313 * gnat_rm.texi: Document Compiler_Version attribute
5315 2009-05-06 Robert Dewar <dewar@adacore.com>
5317 * errout.adb: Minor reformatting
5319 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
5320 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
5321 styleg.adb: Add stylized comments to error messages that are included
5322 in the codefix circuitry of IDE's such as GPS.
5324 2009-05-06 Sergey Rybin <rybin@adacore.com>
5326 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
5327 new form of the rule parameter that allows to specify the suffix for
5328 access-to-access type names.
5330 2009-05-06 Robert Dewar <dewar@adacore.com>
5332 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
5333 out parameter assigned when exception handlers are present.
5335 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
5336 assignments on exit.
5338 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
5339 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
5340 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
5341 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
5342 messages that are included in the codefix circuitry of IDE's such as
5345 * sinput.ads, sinput.adb (Expr_First_Char): New function
5346 (Expr_Last_Char): New function
5348 2009-05-06 Sergey Rybin <rybin@adacore.com>
5350 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
5351 Add formal definition for extra exit point metric
5353 2009-05-06 Pascal Obry <obry@adacore.com>
5355 * adaint.c: Support for setting attributes on unicode filename on
5358 2009-05-06 Robert Dewar <dewar@adacore.com>
5360 * sem_warn.adb: Minor reformatting
5362 2009-05-06 Javier Miranda <miranda@adacore.com>
5364 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
5365 not have discriminants or components with default expressions.
5366 (Analyze_Pragma): For pragma CPP_Class check that imported types
5367 have no discriminants and components have no default expression.
5369 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
5370 class-wide types in the expression of a record component association.
5372 2009-05-06 Sergey Rybin <rybin@adacore.com>
5374 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
5376 * gnat_ugn.texi: Add description for the new extra exit points metric
5377 (gnatmetric section).
5379 2009-05-06 Robert Dewar <dewar@adacore.com>
5381 * s-fileio.adb: Minor comment update
5383 * sem_ch8.adb: Minor reformatting
5385 * exp_ch3.adb: Update comments.
5387 2009-05-06 Tristan Gingold <gingold@adacore.com>
5389 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
5391 2009-05-06 Arnaud Charlet <charlet@adacore.com>
5393 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
5394 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
5396 * gcc-interface/Make-lang.in: Update dependencies
5398 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5400 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
5401 change. The context clause of a generic instance declaration must be
5402 preserved until the end of the compilation, because it may have to be
5403 installed/removed repeatedly.
5404 The latest change to sem.adb ensures that the context of both spec and
5405 body of an instance is traversed before the instance itself, making
5406 this patch redundant.
5408 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5410 * sem_aggr.adb: Fix typo.
5412 2009-05-06 Thomas Quinot <quinot@adacore.com>
5414 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
5415 declaration, do not adjust if the declaration is to be rewritten into
5418 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5420 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
5423 2009-05-06 Bob Duff <duff@adacore.com>
5425 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
5426 otherwise the compiler would be allowed to optimize away the cleanup
5429 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5431 * gnat_ugn.texi: Fix typo.
5433 2009-05-06 Thomas Quinot <quinot@adacore.com>
5435 * g-debuti.adb: Minor reformatting
5437 * exp_attr.adb: Minor reformatting
5439 2009-05-06 Robert Dewar <dewar@adacore.com>
5441 * sem_aggr.adb: Minor reformatting.
5443 * g-socthi-vms.adb: Minor reformatting
5445 2009-05-06 Bob Duff <duff@adacore.com>
5447 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
5448 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
5450 2009-05-06 Bob Duff <duff@adacore.com>
5452 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
5455 2009-05-06 Javier Miranda <miranda@adacore.com>
5457 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
5458 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
5459 extension aggregates.
5460 (Resolve_Record_Aggregate): Add support for C++ constructors in
5461 extension aggregates.
5463 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
5464 constructors in extension aggregates.
5466 2009-05-06 Robert Dewar <dewar@adacore.com>
5468 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
5471 2009-05-06 Thomas Quinot <quinot@adacore.com>
5473 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
5474 packed type, since on OpenVMS, struct msghdr is packed.
5476 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5478 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5479 call returning an unconstrained composite value, create the proper
5480 subtype for it, as is done for object dclarations with unconstrained
5481 nominal subtypes. Perform this transformation regarless of whether
5482 call comes from source.
5484 2009-05-06 Robert Dewar <dewar@adacore.com>
5486 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
5490 Add documentation for pragma Implicit_Packing applied to record
5493 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5495 * sem.adb (Walk_Library_Items): Place all with_clauses of an
5496 instantiation on the spec, because late instance bodies may generate
5497 with_clauses for the instance body but are inserted in the instance
5500 2009-05-06 Emmanuel Briot <briot@adacore.com>
5502 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
5503 support for returning the directory even if it doesn't exist. This is
5504 used for the object directory, since we are always setting it to a
5505 non-null value, and we should set it to an absolute name rather than a
5506 relative name for the sake of external tools that might depend on it.
5507 (Check_Library_Attributes): When Project.Library_Dir is known, check
5508 that the directory exists.
5510 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5512 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
5513 reference is an implicit dereference, do not freeze the designated type
5514 if within a default expression or when preanalyzing a pre/postcondtion.
5516 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5518 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
5519 call returning an unconstrained composite value, create the proper
5520 subtype for it, as is done for object dclarations with unconstrained
5523 2009-05-06 Robert Dewar <dewar@adacore.com>
5525 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
5528 * freeze.adb: Minor reformatting
5530 2009-05-06 Thomas Quinot <quinot@adacore.com>
5532 * sem_ch3.adb (Access_Type_Declaration): An access type whose
5533 designated type is a limited view from a limited with clause (flagged
5534 From_With_Type) is not itself such a limited view.
5536 2009-05-06 Emmanuel Briot <briot@adacore.com>
5538 * prj-nmsc.adb: Remove unused variable.
5540 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
5541 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
5542 makeutl.ads, since not all users of prj.ads need this.
5544 2009-05-06 Javier Miranda <miranda@adacore.com>
5546 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
5547 constructor in case of aggregates whose type is a CPP_Class type.
5549 2009-05-06 Robert Dewar <dewar@adacore.com>
5551 * sem_ch13.adb: Minor comment additions
5553 * osint.adb: Minor reformatting
5555 2009-05-06 Pascal Obry <obry@adacore.com>
5557 * initialize.c: On Windows, keep full pathname to expanded command
5560 2009-05-06 Ed Schonberg <schonberg@adacore.com>
5562 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
5563 an aggregate with box default is of a discriminated private type, do
5564 not build a subaggregate for it.
5565 A proper call to the initialization procedure is generated for it.
5567 2009-05-06 Thomas Quinot <quinot@adacore.com>
5569 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
5570 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
5571 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
5572 use standard array code for Standard.String.
5573 (Exp_Dist): Bump PolyORB s-parint API version to 3.
5574 (Rtsfind): New entities TA_Std_String, Unbounded_String.
5576 2009-05-06 Robert Dewar <dewar@adacore.com>
5578 * g-comlin.ads: Minor reformatting
5580 * xoscons.adb: Minor reformatting
5582 2009-05-06 Gary Dismukes <dismukes@adacore.com>
5584 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
5585 Underlying_Type before retrieving the type definition for gathering
5586 components, to account for the case where the type is private.
5588 2009-05-06 Tristan Gingold <gingold@adacore.com>
5590 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
5592 2009-05-06 Thomas Quinot <quinot@adacore.com>
5594 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5595 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
5596 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
5597 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
5598 Windows versions): Fix incorrect base
5599 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
5600 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
5601 System.Address for the To parameter instead of a Sockaddr_In_Access, to
5602 achieve independance from AF_INET family, and also to allow this
5603 parameter to be retrieved from a Msghdr for the Windows case where
5604 these routines are used to implement C_Sendmsg and C_Recvmsg.
5606 2009-05-06 Bob Duff <duff@adacore.com>
5608 * g-expect.adb, g-expect.ads: Minor reformatting
5610 * sdefault.ads: Minor comment fix
5612 * g-expect-vms.adb: Minor reformatting
5614 * table.ads, table.adb (Append_All): New convenience procedure for
5615 appending a whole array.
5617 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
5618 box message. Call Osint.Dump_Source_File_Names to print out the file
5619 list, instead of rummaging around in various data structures.
5621 * debug.adb: New switch -gnatd.n, to print source file names as they
5624 * alloc.ads: Add parameters for Osint.File_Name_Chars.
5626 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
5627 out source file names during a "bug box".
5628 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
5629 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
5630 If it's not part of the runtimes, store it for later printing by
5631 Dump_Source_File_Names.
5633 2009-05-06 Javier Miranda <miranda@adacore.com>
5635 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
5636 documentation and add reference to the GNAT user guide for further
5639 2009-05-06 Javier Miranda <miranda@adacore.com>
5641 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
5642 also wrong examples that use extension aggregates.
5644 2009-05-06 Albert Lee <lee@adacore.com>
5646 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
5647 of Msg_Iovlen_T for VMS.
5649 2009-05-04 Laurent GUERBY <laurent@guerby.net>
5652 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
5654 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5656 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
5657 box-defaulted operator in an instantiation, when the type of the
5658 operands is not directly visible.
5660 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5662 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
5663 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
5664 analysis of the ancestor part. Remove prohibition against limited
5665 interpretations of the ancestor expression in the case of Ada 2005.
5666 Revise error message in overloaded case, adding a message to cover
5669 2009-04-29 Thomas Quinot <quinot@adacore.com>
5671 * xoscons.adb: Minor reformatting
5673 2009-04-29 Bob Duff <duff@adacore.com>
5675 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
5676 attribute_definition_clauses for the following attributes when the
5677 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
5678 Storage_Size, Write. Otherwise, we get spurious errors (for example,
5679 missing Read attribute on remote types).
5681 * gnat_ugn.texi: Document the change, and add a stern warning.
5683 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5685 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
5686 disabled not just for the current scope, but for the innermost dynamic
5689 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5691 * gcc-interface/Make-lang.in: Update dependencies
5693 2009-04-29 Vincent Celier <celier@adacore.com>
5695 * prj-part.adb: Minor comment update
5697 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5699 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
5700 box-initialized records with discriminated subcomponents that are
5701 constrained by discriminants of enclosing components. New subsidiary
5702 procedures Add_Discriminant_Values, Propagate_Discriminants.
5704 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5706 * g-socket.adb: Code clean up.
5708 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5710 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
5711 function entity, to cover the case of a parameterless function call
5712 that has not been resolved.
5714 2009-04-29 Robert Dewar <dewar@adacore.com>
5716 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
5717 reformatting and comment updates.
5719 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5721 * gnat_ugn.texi: Update some documentation about interfacing with C++
5722 Mention -fkeep-inline-functions.
5724 * gnat_ugn.texi: Minor edits
5726 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5728 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
5729 for a defaulted component of an enclosing aggregate, inherit the type
5730 from the component declaration of the enclosing type.
5732 2009-04-29 Albert Lee <lee@adacore.com>
5734 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
5735 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
5736 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
5737 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
5738 Relocate the Msghdr record type from GNAT.Sockets.Thin to
5739 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
5740 type for the Msg_Iovlen field.
5742 2009-04-29 Vincent Celier <celier@adacore.com>
5744 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
5745 Source_File_Index_Table entries for the source, to avoid crash when
5748 * gnatcmd.adb (Test_If_Relative_Path): Use
5749 Makeutl.Test_If_Relative_Path.
5751 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
5752 Including_RTS is True.
5754 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
5755 Including_RTS defaulted to False.
5757 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
5760 2009-04-29 Javier Miranda <miranda@adacore.com>
5762 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
5764 2009-04-29 Javier Miranda <miranda@adacore.com>
5766 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
5767 associated with dyamically tagged expressions if the expression
5768 initializing a tagged type corresponds with a non default CPP
5770 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
5771 of limited type objects.
5773 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
5774 when a CPP constructor is called in an assignment. Disable also the
5775 error message associated with dyamically tagged expressions if the
5776 exporession initializing a tagged type corresponds with a non default
5779 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
5780 non-default C++ constructors.
5782 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
5784 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
5785 non-default constructors.
5786 (Init_Proc): Add support for non-default constructors.
5788 * exp_disp.adb (Set_Default_Constructor): Removed.
5789 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
5790 but extending its functionality to handle non-default constructors.
5792 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
5793 constructors. Minor code cleanup removing unrequired label and goto
5796 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
5798 (Build_Init_Statements): Add support for non-default constructors.
5799 (Expand_N_Object_Declaration): Add support for non-default constructors.
5800 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
5801 to Set_CPP_Constructors.
5803 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
5804 non-default constructors.
5805 Required to handle its use in build-in-place statements.
5807 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
5808 pragma for non-default C++ constructors and the new compiler support
5809 that allows the use of these constructors in record components, limited
5810 aggregates, and extended return statements.
5812 2009-04-29 Vincent Celier <celier@adacore.com>
5814 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
5815 project extending an abstract project.
5817 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5819 * targparm.ads: Fix oversight.
5821 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5823 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
5824 derivation when necessary, to find the user-subprogram that is actally
5827 2009-04-29 Robert Dewar <dewar@adacore.com>
5829 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
5832 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5834 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
5835 primitive operation, rather than source line of synchronized type, when
5836 building the wrapper for a primitive operation that overrides an
5837 operation inherited from a progenitor, to improve the error message on
5838 duplicate declarations.
5840 * sem_ch3.adb (Process_Full_View): Use new signature of
5843 2009-04-29 Robert Dewar <dewar@adacore.com>
5845 * prj-nmsc.ads: Minor reformatting
5847 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5849 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
5850 expression on the existing parent If statement.
5852 2009-04-29 Robert Dewar <dewar@adacore.com>
5854 * prj-proc.adb, prj.ads: Minor reformatting
5856 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
5858 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
5859 existing parent If statement on the newly created one.
5861 2009-04-29 Emmanuel Briot <briot@adacore.com>
5863 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
5864 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
5865 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
5866 (Set_In_Configuration, In_Configuration): Removed.
5867 Replaced by an extra parameter Is_Config_File in several parameter to
5868 avoid global variables to store the state of the parser.
5870 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5872 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
5873 with_clauses generated for the same unit through rtsfind, and that
5874 appear in the context of different units.
5876 * rtsfind.adb: New attribute First_Implicit_With, component of the
5877 Unit_Record that stores information about a unit loaded through rtsfind.
5879 2009-04-29 Gary Dismukes <dismukes@adacore.com>
5881 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
5882 (other conditions permitting), so that abstract stream subprograms will
5883 be declared for them.
5885 2009-04-29 Bob Duff <duff@adacore.com>
5887 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
5889 * g-expect.ads: Minor comment fixes.
5891 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5893 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
5894 dispatching operation is a body without previous spec, update the list
5895 of primitive operations to ensure that cross-reference information is
5898 2009-04-29 Albert Lee <lee@adacore.com>
5900 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5901 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5902 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
5903 (GNAT.Sockets.Thin.C_Readv,
5904 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
5905 (GNAT.Sockets.Thin.C_Recvmsg,
5906 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
5908 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
5909 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
5911 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5913 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
5914 operation is a body without previous spec, update the list of
5915 primitive operations to ensure that cross-reference information is
5918 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
5919 new compilation unit node for the instance declaration, keep the
5920 context items of the original unit on it, so that the context of the
5921 instance body only holds the context inherited from the generic body.
5923 2009-04-29 Bob Duff <duff@adacore.com>
5925 * sem_res.adb: Minor comment fix.
5927 2009-04-29 Thomas Quinot <quinot@adacore.com>
5929 * sem_elim.adb: Minor reformatting
5931 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5933 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
5934 predefined unit, allow arbitrary number of components in static
5935 aggregate, to ensure that the same level of constant folding applies
5936 for Ada 95 and Ada 05 versions of the file.
5938 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5940 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
5941 information: no need for full scope check.
5942 (Eliminate_Error): Do not emit error in a generic context.
5944 2009-04-29 Ed Falis <falis@adacore.com>
5946 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
5947 VxWorks 653 POS does not support rmdir.
5949 2009-04-29 Matteo Bordin <bordin@adacore.com>
5951 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
5952 results are printed.
5954 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5956 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
5959 2009-04-29 Thomas Quinot <quinot@adacore.com>
5961 * make.adb: Minor reformatting.
5962 Minor code reorganization throughout.
5964 2009-04-29 Matteo Bordin <bordin@adacore.com>
5966 * s-stausa.ads: Changed visibility of type Task_Result: moved to
5967 public part to give application visibility over it.
5968 This is for future improvement and to build a public API on top of it.
5969 Changed record components name of type Task_Result to reflect the new
5972 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
5973 reporting Stack usage.
5975 * gnat_ugn.texi: Update doc of stack usage report.
5977 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
5979 * Makefile.rtl: Add new run-time files.
5981 2009-04-29 Pascal Obry <obry@adacore.com>
5983 * initialize.c: Do not expand quoted arguments.
5985 2009-04-29 Emmanuel Briot <briot@adacore.com>
5987 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
5989 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
5990 Prj.Ultimate_Extending_Project_Of
5992 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5994 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
5995 Amendment type, add the with_clause for Finalization.List_Controller
5996 only if the current context is a package body.
5998 2009-04-29 Thomas Quinot <quinot@adacore.com>
6000 * sem_ch12.adb: Minor reformatting
6002 * sem_aggr.adb: Minor reformatting
6004 * sem_ch6.adb, sem_cat.ads: Minor reformatting
6006 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
6008 2009-04-29 Quentin Ochem <ochem@adacore.com>
6010 * prj.ads (Source_Id): Now general pointer type.
6012 2009-04-29 Thomas Quinot <quinot@adacore.com>
6014 * exp_ch7.adb, rtsfind.adb: Minor reformatting
6016 * sem_res.adb: Minor reformatting
6018 2009-04-29 Thomas Quinot <quinot@adacore.com>
6020 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
6021 operands is static only if it is a predefined concatenation operator.
6023 * sem_util.adb: Minor reformatting
6025 * sem_ch12.adb (Save_References): When propagating semantic information
6026 from generic copy back to generic template, for the case of an
6027 identifier that has been rewritten to an explicit dereference whose
6028 prefix is either an object name or a parameterless funcion call
6029 denoting a global object or function, properly capture the denoted
6030 global entity: perform the corresponding rewriting in the template,
6031 and point the rewritten identifier to the correct global entity (not
6032 to the associated identifier in the generic copy).
6034 2009-04-29 Robert Dewar <dewar@adacore.com>
6036 * rtsfind.adb, prj-env.adb: Minor reformatting
6037 Minor code reorganization
6039 2009-04-29 Emmanuel Briot <briot@adacore.com>
6041 * make.adb: Fix comment
6043 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
6044 is given as argument, as might happen in gnatmake.
6046 2009-04-29 Ed Schonberg <schonberg@adacore.com>
6048 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
6049 an abstract operation of a progenitor is not properly overridden by an
6050 operation of a derived synchronized type.
6052 2009-04-29 Robert Dewar <dewar@adacore.com>
6054 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
6055 prj-proc.adb: Minor reformatting
6056 Minor code reorganization
6058 2009-04-29 Bob Duff <duff@adacore.com>
6060 * exp_ch7.adb (Build_Final_List): For an access type that designates a
6061 Taft Amendment type, if the access type needs finalization, make sure
6062 the implicit with clause for List_Controller occurs on the package spec.
6064 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
6065 with's created for the pseudo-children of Text_IO and friends. In
6066 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
6067 Ada.Text_IO.Integer_IO both with-ing each other.
6069 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
6070 oddball cases when pragma Extend_System is used.
6072 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
6073 the case where a package spec instantiates a generic whose body with's
6074 this package, so Walk_Library_Items won't complain about cyclic with's.
6076 2009-04-29 Emmanuel Briot <briot@adacore.com>
6078 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
6079 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
6080 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
6081 (Project_Id): now a real pointer to Project_Data, instead of an index
6082 into the Projects_Table. This simplifies the API significantly, avoiding
6083 extra lookups in this table and the need to pass the Project_Tree_Ref
6084 parameter in several cases
6086 2009-04-29 Nicolas Setton <setton@adacore.com>
6088 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
6091 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
6093 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
6096 2009-04-24 Robert Dewar <dewar@adacore.com>
6098 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
6099 clean.adb: Minor reformatting.
6100 Minor code reorganization and message improvement.
6102 2009-04-24 Emmanuel Briot <briot@adacore.com>
6104 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
6105 (Alternate_Languages): now implemented as a malloc-ed list rather
6106 than through a table.
6108 2009-04-24 Thomas Quinot <quinot@adacore.com>
6110 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
6111 accurately handle cases such as "lit" & "lit" and
6112 "lit" & static_string_constant
6114 2009-04-24 Emmanuel Briot <briot@adacore.com>
6116 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
6117 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
6118 removed. Lists of projects are now implemented via standard malloc
6119 rather than through the table.
6121 2009-04-24 Thomas Quinot <quinot@adacore.com>
6123 * sem_ch12.adb: Minor reformatting
6125 * g-trasym.adb: Minor reformatting
6127 * exp_ch6.adb: Minor reformatting
6129 2009-04-24 Robert Dewar <dewar@adacore.com>
6131 * layout.adb (Layout_Type): For packed array type, copy unset
6132 size/alignment fields from the referenced Packed_Array_Type.
6134 2009-04-24 Bob Duff <duff@adacore.com>
6136 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
6137 longer needed after sem_ch12 changes.
6139 * sem.adb (Walk_Library_Items): Include with's in some debugging
6142 2009-04-24 Emmanuel Briot <briot@adacore.com>
6144 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
6145 only ever using the Project field.
6147 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6149 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
6150 Body_Required on the generated compilation node. The new node is linked
6151 to its body, but both share the same file, so we do not set this flag
6152 on the new unit so as not to create a spurious dependency on a
6153 non-existent body in the ali file for the instance.
6155 2009-04-24 Robert Dewar <dewar@adacore.com>
6157 * make.adb: Minor reformatting
6159 2009-04-24 Emmanuel Briot <briot@adacore.com>
6161 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
6162 Add_Source): merge some code between those. In particular change where
6163 file normalization is done to avoid a few extra calls to
6164 Canonicalize_File_Name. This also removes the need for passing
6165 Current_Dir in a number of subprograms.
6167 2009-04-24 Bob Duff <duff@adacore.com>
6169 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
6170 False, assign the correct unit to the Cunit field of the new table
6171 entry. We want the spec unit, not the body unit.
6173 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
6174 interface for these.
6175 (Maybe_Add_With): Check whether we're trying to a with on the current
6176 unit, and avoid creating such directly self-referential with clauses.
6177 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
6178 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
6179 and matches existing comments in the spec.
6181 * sem.adb (Walk_Library_Items): Add various special cases to make the
6184 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
6185 instead of Parent (N), for uniformity.
6187 2009-04-24 Robert Dewar <dewar@adacore.com>
6189 * errout.ads: Minor reformatting
6191 2009-04-24 Emmanuel Briot <briot@adacore.com>
6193 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
6194 behavior when the project includes sources from multiple languages
6196 2009-04-24 Vincent Celier <celier@adacore.com>
6198 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
6199 is a language other than Ada declared.
6201 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
6202 Imported_First set to True.
6204 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6206 * sem_res.adb: additional optimization to inhibit creation of
6207 redundant transient scopes.
6209 2009-04-24 Bob Duff <duff@adacore.com>
6211 * rtsfind.ads: Minor comment fix
6213 2009-04-24 Emmanuel Briot <briot@adacore.com>
6215 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
6216 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
6217 basically doing the same work (for explicit or implicit sources).
6218 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
6219 role. Rewritten to share some code (testing that all explicit sources
6220 have been found) between ada_only and multi_language modes.
6222 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
6224 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
6225 for CLI imported types.
6226 (Analyze_Pragma): Allow CIL or Java imported functions returning
6227 access-to-subprogram types.
6229 2009-04-24 Emmanuel Briot <briot@adacore.com>
6231 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
6232 (Project_Data.Dir_Path): field removed, since it can be computed
6233 directly from .Directory, and is needed only once when processing the
6234 project is buildgpr.adb or make.adb
6236 2009-04-24 Robert Dewar <dewar@adacore.com>
6238 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
6239 rtsfind.adb: Minor reformatting.
6240 Minor code reorganization
6242 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6244 * mlib-prj.adb: Use friendlier english identifier.
6246 * gnatcmd.adb, make.adb: Use better english identifiers.
6248 2009-04-24 Robert Dewar <dewar@adacore.com>
6250 * clean.adb: Minor reformatting
6252 2009-04-24 Robert Dewar <dewar@adacore.com>
6254 * einfo.adb (OK_To_Rename): New flag
6256 * einfo.ads (OK_To_Rename): New flag
6258 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
6261 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
6263 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
6266 2009-04-24 Emmanuel Briot <briot@adacore.com>
6268 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
6269 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
6270 field removed. This is not a property of the
6271 project, just a boolean used to traverse the project tree, and storing
6272 it in the structure prevents doing multiple traversal in parallel.
6273 (Project_Data.Checked): also removed, since it was playing the same role
6274 as Seen when we had two nested loops, and this is no longer necessary
6275 (For_All_Imported_Projects): removed, since in fact there was already
6276 the equivalent in For_Every_Project_Imported. The latter was rewritten
6277 to use a local hash table instead of Project_Data.Seen
6278 Various loops were rewritten to use For_Every_Project_Imported, thus
6279 removing the need for Project_Data.Seen. This avoids a lot of code
6282 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6284 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
6285 statements, even though the actual of the call is a concatenation,
6286 because the argument is static, and we want to preserve warning
6287 messages about sequences of code statements that are not marked
6290 * sem_warn.adb: remove obsolete comment about warning being obsolete
6292 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
6293 requeued and the delay has expired while within the accept statement
6294 that executes the requeue, do not perform the requeue and indicate that
6295 the timed call has been aborted.
6297 2009-04-24 Emmanuel Briot <briot@adacore.com>
6299 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6300 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
6301 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
6302 since they can be computed from the above.
6304 2009-04-24 Vincent Celier <celier@adacore.com>
6306 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
6308 * prj-env.adb: Move all global variables to the private part of the
6310 Access these new components instead of the global variables no longer
6312 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
6313 components that were previously global variables.
6315 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
6316 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
6319 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
6320 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
6322 * prj.adb (Initialize): Do not call Prj.Env.Initialize
6323 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
6324 components in the private part of the project tree data.
6326 * prj.ads (Private_Project_Tree_Data): new components moved from
6327 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
6328 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
6329 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
6331 2009-04-24 Vincent Celier <celier@adacore.com>
6333 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
6335 * prj-nmsc.adb (Check_Library): No error for imports by shared library
6336 projects, when --unchecked-shared-lib-imports is used.
6338 2009-04-24 Robert Dewar <dewar@adacore.com>
6340 * sem_ch7.adb: Minor reformatting
6342 2009-04-24 Tristan Gingold <gingold@adacore.com>
6344 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
6347 2009-04-24 Emmanuel Briot <briot@adacore.com>
6349 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
6350 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
6351 (For_All_Imported_Projects): new procedure
6352 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
6353 above rather than duplicating code.
6355 2009-04-24 Emmanuel Briot <briot@adacore.com>
6357 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6358 (Source_Id, Source_Data): use a real list to store sources rather than
6359 using an external table to store the elements. This makes code more
6360 efficient and more readable.
6362 2009-04-24 Emmanuel Briot <briot@adacore.com>
6364 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
6365 (Source_Iterator): new type.
6366 This removes the need for having the sources on three different
6367 lists at the project tree, project and language level. They are now
6370 2009-04-24 Emmanuel Briot <briot@adacore.com>
6372 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
6374 2009-04-24 Ed Schonberg <schonberg@adacore.com>
6376 * sem_warn.adb: Add comment on obsolete warning
6378 2009-04-24 Arnaud Charlet <charlet@adacore.com>
6380 * s-tassta.adb (Create_Task): Fix violation of locking rule.
6382 2009-04-24 Emmanuel Briot <briot@adacore.com>
6384 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
6385 to Language_Ptr to better reflect its new implementation.
6386 (Project_Data.First_Languages_Processing): renamed to Languages now
6387 that the field with that name is no longer used
6388 (Project_Data.Languages): removed, no longer used, and duplicates
6389 information already available through First_Language_Processing.
6390 (Prj.Language_Index): now an actual pointer, instead of an index into
6391 a table. This makes the list somewhat more obvious, but more importantly
6392 removes the need to pass a pointer to the project_tree_data in a few
6393 places, and makes accessing the attributes of a languages more
6396 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6397 Thomas Quinot <quinot@adacore.com>
6399 * fe.h (Set_Identifier_Casing): Add const to second parameter.
6400 * gcc-interface/misc.c (internal_error_function): Make copy of return
6401 from pp_formatted_text before assigning BUFFER to it.
6402 (gnat_init): Likewise for main_input_filename and gnat_argv.
6403 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
6405 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6407 * ttypes.ads (Target_Double_Float_Alignment): New variable.
6408 (Target_Double_Scalar_Alignment): Likewise.
6409 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
6410 (Get_Double_Float_Alignment): New imported function.
6411 (Get_Double_Scalar_Alignment): Likewise.
6412 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
6413 the alignment of "double" floating-point types and "double" or larger
6414 scalar types, as parameterized by Target_Double_Float_Alignment and
6415 Target_Double_Scalar_Alignment respectively.
6416 * gcc-interface/gigi.h (double_float_alignment): Declare.
6417 (double_scalar_alignment): Likewise.
6418 (is_double_float_or_array): Likewise.
6419 (is_double_scalar_or_array): Likewise.
6420 (get_target_double_float_alignment): Likewise.
6421 (get_target_double_scalar_alignment): Likewise.
6422 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
6423 (get_target_strict_alignment): ...this.
6424 (get_target_double_float_alignment): New function.
6425 (get_target_double_scalar_alignment): Likewise.
6426 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6427 Test the presence of an alignment clause for under-aligned integer
6428 types. Take into account specific caps for the alignment of "double"
6429 floating-point types and "double" or larger scalar types, as
6430 parameterized by Target_Double_Float_Alignment and
6431 Target_Double_Scalar_Alignment respectively.
6432 (validate_alignment): Likewise.
6433 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
6434 (gigi): Initialize double_float_alignment and double_scalar_alignment.
6435 * gcc-interface/utils.c (double_float_alignment): New global variable.
6436 (double_scalar_alignment): Likewise.
6437 (is_double_float_or_array): New predicate.
6438 (is_double_scalar_or_array): Likewise.
6440 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6442 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
6443 the conditional expression only if it is common to both arms.
6445 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6447 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
6448 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
6449 arguments to build_allocator.
6450 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
6451 Remove code handling special allocator and assert its uselessness.
6453 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
6455 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
6456 alignment is specified, do not promote that of the component type
6458 <E_Array_Subtype>: Likewise.
6460 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6462 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
6463 * sinfo.ads (Object Declaration): Likewise.
6464 (Assignment Statement): Likewise.
6465 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
6466 Do not force Is_True_Constant to false on the temporary.
6467 (Freeze_Entity): Do not force Is_True_Constant to false on names on
6468 the RHS of object declarations.
6469 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
6470 New case. Return 1 if the object is atomic.
6471 <N_Assignment_Statement>: Likewise.
6473 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6475 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
6476 For packed array types, make the original array type a parallel type
6477 for the modular type and its JM wrapper if the type is bit-packed.
6478 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
6479 record type for packed array types. Remove kludge.
6481 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6483 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
6484 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6485 Use front-end predicates to compute signedness and precision.
6486 <E_String_Literal_Subtype>: Fold range type.
6487 Make sure to set longest_float_type_node to a scalar type.
6488 (elaborate_entity): Use consistent Constraint_Error spelling.
6489 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
6490 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
6491 output for the modulus, if any.
6492 <ENUMERAL_TYPE>: Likewise for the RM size.
6493 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
6495 * gcc-interface/utils.c (finish_record_type): Really test the alignment
6496 of BLKmode bit-fields to compute their addressability.
6497 (create_index_type): Adjust comments.
6498 (create_param_decl): Create the biased subtype manually.
6499 * gcc-interface/utils2.c (build_component_ref): Use consistent
6500 Constraint_Error spelling.
6502 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6504 * gcc-interface/cuintp.c: Clean up include directives.
6505 * gcc-interface/targtyps.c: Likewise.
6506 * gcc-interface/decl.c: Likewise.
6507 * gcc-interface/misc.c: Likewise.
6508 * gcc-interface/trans.c: Likewise.
6509 * gcc-interface/utils.c: Likewise.
6510 * gcc-interface/utils2.c: Likewise.
6511 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
6513 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6515 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
6516 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
6517 (SET_DECL_LANG_SPECIFIC): Likewise.
6519 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6520 Update comment about use of build_range_type.
6521 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
6522 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
6523 check for other cases of overloading.
6524 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
6525 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
6526 Use size_int in lieu of build_int_cst.
6527 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
6530 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6532 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
6533 type is an enumeral or a boolean type, change it to an integer type
6534 with the same mode and signedness.
6536 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6538 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
6539 for an external constant whose initializer is not absolute.
6541 2009-04-22 Taras Glek <tglek@mozilla.com>
6543 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
6544 * gcc-interface/trans.c: Likewise.
6545 * gcc-interface/utils.c: Likewise.
6547 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6549 * sem_res.adb: Create block around procedure call when actual is a
6552 2009-04-22 Thomas Quinot <quinot@adacore.com>
6554 * s-soflin.ads: Fix typos
6556 2009-04-22 Vincent Celier <celier@adacore.com>
6558 * prj-env.adb: Minor comment change
6560 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
6561 Get_Name_String with No_File.
6563 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
6564 cannot be created even when not in verbose mode.
6566 2009-04-22 Emmanuel Briot <briot@adacore.com>
6568 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
6569 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
6570 Multi_Language modes, to avoid code duplication.
6571 (Project_Data.Include_Language): Removed.
6573 2009-04-22 Vincent Celier <celier@adacore.com>
6575 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
6576 the temporary file cannot be created, indicating the directory when the
6577 creation was attempted.
6579 2009-04-22 Emmanuel Briot <briot@adacore.com>
6581 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
6582 the language names, not their indices.
6584 2009-04-22 Emmanuel Briot <briot@adacore.com>
6586 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
6587 (Source_Data.Language_Name): Field removed.
6589 2009-04-22 Emmanuel Briot <briot@adacore.com>
6591 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
6594 2009-04-22 Emmanuel Briot <briot@adacore.com>
6596 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
6597 separate_suffix to the same value as the body_suffix.
6599 2009-04-22 Robert Dewar <dewar@adacore.com>
6601 * prj.adb: Minor code reorganization
6604 * prj-proc.adb: Minor code reorganization, clean up.
6606 * prj-nmsc.adb: Minor reformatting
6607 Minor code reorganization
6609 * gnat_ugn.texi: Add to doc on strict aliasing
6611 2009-04-22 Pascal Obry <obry@adacore.com>
6613 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
6616 * s-tasini.adb: Minor reformatting.
6618 * s-tassta.adb: Minor reformatting.
6620 2009-04-22 Emmanuel Briot <briot@adacore.com>
6622 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
6623 smaller subprograms.
6624 Renamed to Check_File_Naming_Schemes to avoid confusion with the
6625 other Check_Naming_Schemes functions that plays a totally different
6627 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
6628 extracted from the above. These were partially rewritten to avoid
6629 unnecessary code and temporary variables.
6630 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
6631 and Get_Unit (which for now still exist since they contain mode-specific
6634 2009-04-22 Emmanuel Briot <briot@adacore.com>
6636 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
6637 Remove duplicated code.
6638 (Canonical_Case_File_Name): new subprogram
6639 (Check_And_Normalize_Unit_Names): new subprogram
6640 (Write_Attr): new subprogram
6641 Better sharing of code
6642 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
6643 split Check_Naming and help find duplicated code
6644 (Check_Common): new subprogram, sharing code between ada_only and
6645 multi_language mode.
6646 (Naming_Data.Dot_Repl_Loc): field removed
6648 2009-04-22 Emmanuel Briot <briot@adacore.com>
6650 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
6651 Minor refactoring to reduce the size of
6652 Process_Sources_In_Multi_Language_Mode.
6653 Avoid extra copied of Source_Data, which we found in the past could be
6655 (Mark_Excluded_Sources): new subprogram.
6656 (Remove_Locally_Removed_Files_From_Units): merged into the above
6657 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
6658 and allow better sharing of code between multi_lang and ada_only modes
6659 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
6661 2009-04-22 Emmanuel Briot <briot@adacore.com>
6663 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
6664 Removed, since unused.
6666 2009-04-22 Vincent Celier <celier@adacore.com>
6668 * prj-attr.adb: New single project level attribute
6669 Separate_Run_Path_Options.
6671 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6672 attribute Seperate_Run_Path_Options.
6674 * prj.ads: (Project_Configuration): New Boolean component
6675 Separate_Run_Path_Options, defaulted to False.
6677 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
6679 2009-04-22 Robert Dewar <dewar@adacore.com>
6681 * sem_type.adb: Minor reformatting
6683 * mlib.adb: Minor reformatting
6685 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
6688 2009-04-22 Nicolas Setton <setton@adacore.com>
6690 * link.c: Add flag __gnat_separate_run_path_options.
6692 * mlib.adb (Separate_Run_Path_Options): New subprogram.
6694 * mlib.ads (Separate_Run_Path_Options): Declare.
6696 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
6697 switch per directory, rather than one "rpath" switch listing all
6700 * gnatlink.adb (Process_Binder_File): Likewise.
6702 * make.adb (Gnatmake): Likewise.
6704 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
6706 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
6707 Add a call to Move_Final_List when the target of the assignment is a
6708 return object that needs finalization and the expression is a
6709 controlled build-in-place function.
6711 2009-04-22 Vincent Celier <celier@adacore.com>
6713 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
6714 Including_Libraries set to True.
6716 2009-04-22 Ed Schonberg <schonberg@adacore.com>
6718 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
6719 create a unit table entry for the subprogram declaration created for a
6720 child suprogram body that has no separate specification.
6722 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
6723 subprogram body, call Make_Child_Decl_Unit.
6725 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
6726 table can only be the created specification of a child subprogram body
6727 that is the main unit, which has not been entered in the table yet.
6729 * errout.adb (Output_Messages): Ignore created specification of a
6730 child subprogram body to prevent repeated listing of error messages.
6732 * gnat1drv.adb (gnat1drv): The generated specification for a child
6733 subprogram body does not generate code.
6735 2009-04-22 Arnaud Charlet <charlet@adacore.com>
6737 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
6738 since this unit is now part of bootstrap units, so must use Ada 95
6741 2009-04-22 Thomas Quinot <quinot@adacore.com>
6743 * a-tasatt.adb: Minor reformatting
6745 2009-04-22 Bob Duff <duff@adacore.com>
6747 * s-stalib.ads: Remove "with System;" since we're inside System, so
6750 2009-04-22 Vincent Celier <celier@adacore.com>
6752 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
6753 the source record, as there may be a dependency file even if no object
6756 2009-04-22 Robert Dewar <dewar@adacore.com>
6758 * lib-load.adb: Minor reformatting
6760 * lib-load.ads: Minor reformatting
6762 * sinfo.ads: Minor reformatting
6764 2009-04-22 Bob Duff <duff@adacore.com>
6766 * exp_pakd.adb: Minor comment fixes.
6768 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
6769 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
6770 include units containing instantiations, as well as units that are
6771 generic instantiations.
6773 * sem.adb: Include dependents and corresponding specs/bodies in the
6776 * gcc-interface/Make-lang.in:
6777 sem now depends on s-bitops, because of the packed array of Booleans.
6779 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6781 * gcc-interface/ada-tree.def: Fix formatting nits.
6782 (REGION_STMT): Delete.
6783 (HANDLER_STMT): Likewise.
6784 * gcc-interface/ada-tree.h: Fix formatting nits.
6786 (REGION_STMT_BODY): Likewise.
6787 (REGION_STMT_HANDLE): Likewise.
6788 (REGION_STMT_BLOCK): Likewise.
6789 (HANDLER_STMT_ARG): Likewise.
6790 (HANDLER_STMT_LIST): Likewise.
6791 (HANDLER_STMT_BLOCK): Likewise.
6792 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
6793 (fp_size_to_prec): Likewise.
6794 (largest_move_alignment): Delete.
6795 (gnat_compute_largest_alignment): Likewise.
6797 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
6798 Remove redundant code.
6799 <E_Array_Type>: Remove redundant assert.
6800 <E_Array_Subtype>: Exit early from index computation in pathological
6802 Rewrite conditional assignment.
6803 (make_type_from_size): Likewise.
6804 * gcc-interface/misc.c (largest_move_alignment): Delete.
6805 (gnat_finish_incomplete_decl): Likewise.
6806 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
6807 (asm_out_file): Likewise
6808 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
6809 (gnat_dwarf_name): Move around.
6810 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
6811 (gigi): Remove call to gnat_compute_largest_alignment.
6812 * utils.c (create_field_decl): Rewrite conditional assignment.
6815 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6817 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
6818 on entry. Defer common processing for types. Reorder and clean up.
6819 Compute the equivalent GNAT node and the default size for types only.
6820 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
6821 <E_Access_Type>: For an unconstrained designated type, do not pretend
6822 that a dummy type is always made.
6823 <all> Fix nits in comments.
6824 (validate_size): Fix formatting nits and comments.
6825 (set_rm_size): Likewise.
6826 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
6827 passed to TARGET_PROMOTE_PROTOTYPES hook.
6829 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
6831 * fe.h (Get_External_Name): Declare.
6832 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
6833 (concat_name): ...this.
6834 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
6835 gnu_entity_name and adjust for above renaming.
6836 <E_Access_Type>: Use create_concat_name to get the name of the various
6837 types associated with unconstrained array types.
6838 (make_aligning_type): Adjust for above renaming.
6839 (maybe_pad_type): Likewise.
6840 (components_to_record): Likewise. Use get_identifier_with_length for
6841 the encoding of the variant.
6842 (get_entity_name): Use get_identifier_with_length.
6843 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
6844 Do not fiddle with Name_Buffer.
6845 (concat_id_with_name): Rename to...
6846 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
6848 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
6851 2009-04-21 Joseph Myers <joseph@codesourcery.com>
6853 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
6856 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6858 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
6860 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6862 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
6863 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
6864 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
6865 Remove useless support code for packed array types and assert its
6867 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
6868 adjust for TYPE_RM_SIZE change.
6869 <all> Fix nits in comments. Use Original_Array_Type accessor instead
6870 of Associated_Node_For_Itype accessor for packed array types.
6871 (make_packable_type): Likewise.
6872 (maybe_pad_type): Likewise.
6873 (set_rm_size): Likewise. Rework conditional statement. Adjust for
6874 TYPE_RM_SIZE change.
6875 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
6876 (rm_size): Fix nits in comments. Rework conditional statements.
6877 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
6879 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
6880 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
6881 appropriate function to initialize the size_type_node. Adjust for
6882 TYPE_RM_SIZE change.
6884 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6886 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
6887 for imported subprograms.
6889 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6891 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
6892 constant objects covered by 13.3(19) volatile.
6894 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6896 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
6897 of dummy fat pointer types to the debug back-end.
6899 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6901 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
6902 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
6903 before wrapping it up in the record type. Do not overwrite the
6904 Ada size of the record type with the Esize.
6906 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6908 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
6909 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
6910 if the conversion is on the LHS of an assignment and a no-op.
6911 <all> Do not convert the result to the result type if the Parent
6912 node is such a conversion.
6914 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6916 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
6917 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
6918 of types with unknown discriminants.
6919 (substitute_in_type): Rewrite and restrict to formal substitutions.
6920 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
6921 (update_pointer_to): Update comment.
6923 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6925 * sem_ch8.adb (Use_One_Package): In an instance, if two
6926 potentially_use_visible and non-overloadable homonyms are available
6927 from the actuals of distinct formal packages, retain the current one,
6928 which was visible in the generic, to prevent spurious visibility
6930 (End_Use_Package): Restore use_visibility when needed.
6932 2009-04-20 Sergey Rybin <rybin@adacore.com>
6934 * gnat_ugn.texi, vms_data.ads: Update doc.
6936 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6938 * gcc-interface/Make-lang.in: Update dependencies
6940 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
6943 2009-04-20 Robert Dewar <dewar@adacore.com>
6945 * checks.ads: Fix documentation of range check handling
6947 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6949 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
6950 a redundant use_type clause.
6952 2009-04-20 Robert Dewar <dewar@adacore.com>
6954 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
6955 this attribute can be evaluated at compile time.
6956 (Eval_Attribute, case Range_Length): Same improvement
6958 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
6960 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6962 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
6963 for better handling of null procedures.
6964 (Check_Overriding_Indicator): Do not emit a warning on a missing
6965 overriding indicator on an operator when the type of which the operator
6966 is a primitive is private.
6968 2009-04-20 Bob Duff <duff@adacore.com>
6970 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
6973 2009-04-20 Robert Dewar <dewar@adacore.com>
6975 * sem_attr.adb: Minor reformatting
6977 * gnatcmd.adb: Minor reformatting
6979 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6981 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
6982 overloaded and one interpretation matches the context, label the
6983 operand with the type of first formal.
6985 2009-04-20 Bob Duff <duff@adacore.com>
6987 * debug.ads: Minor comment fix.
6989 * debug.adb: Minor comment fixes.
6991 2009-04-20 Javier Miranda <miranda@adacore.com>
6993 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
6995 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
6997 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
6998 is expanded into a call to Raise_Exception, avoid passing the
6999 exception-name'identity in runtimes in which this argument
7002 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
7004 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
7005 generated bindings for cil.
7007 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7009 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
7010 discriminants, collect components from the Underlying_Record_View,
7011 which will be used in the expansion of the aggregate into assignments.
7013 * sem_ch3.adb: Do not label derived type with unknown discriminants as
7014 having a private declaration.
7016 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7018 * exp_util.adb (Expand_Subtype_From_Expr): use the
7019 underlying_record_view when available, to create the proper constrained
7020 subtype for an object of a derived type with unknown discriminants.
7022 2009-04-20 Javier Miranda <miranda@adacore.com>
7024 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
7025 formals that have pragma unreferenced.
7027 2009-04-20 Pascal Obry <obry@adacore.com>
7029 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
7030 Remove all calls to To_Lower_If_Case_Insensitive to preserve
7031 the pathname original casing.
7033 2009-04-20 Robert Dewar <dewar@adacore.com>
7035 * g-trasym.adb: Minor reformatting
7037 * s-os_lib.adb: Minor reformatting
7039 * sem.adb: Minor reformatting
7040 Minor code reorganization
7042 * sem_ch3.adb: Minor reformatting
7044 * sem_ch4.adb: Minor reformatting
7046 * sem_ch8.adb: Minor reformatting
7048 * sem_type.adb: Minor reformatting
7050 2009-04-20 Javier Miranda <miranda@adacore.com>
7052 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
7053 generated by derivations of tagged types use the aliased subprogram a
7054 reference to locate their controlling type.
7056 2009-04-20 Tristan Gingold <gingold@adacore.com>
7058 * g-trasym.adb: Set size of result buffer before calling
7061 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7063 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
7064 to a function returning an array can be interpreted as a call with
7065 defaulted parameters whose result is indexed, take into account the
7066 types of all the indices of the array result type.
7068 2009-04-20 Pascal Obry <obry@adacore.com>
7070 * a-direct.adb, s-os_lib.adb: Minor reformatting.
7072 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7074 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
7075 null exclusion qualifiers for object renaming declarations.
7077 2009-04-20 Nicolas Roche <roche@adacore.com>
7079 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
7080 unsigned long long. So compare local_time and utc_time before computing
7083 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7085 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7086 of the Underlying_Record_View before that of the derived type.
7088 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
7089 with unknown discriminants with regard to the parent subtype.
7091 2009-04-20 Bob Duff <duff@adacore.com>
7093 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
7094 that are not included. This is necessary if the main unit is a generic
7097 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
7098 because it doesn't work if -gnatn is used.
7100 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7102 * rtsfind.adb (RTE, RTE_Record_Component): In
7103 Configurable_Run_Time_Mode, do not enable front-end inlining.
7105 2009-04-20 Thomas Quinot <quinot@adacore.com>
7107 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
7108 System.Address_To_Access_Conversions.
7110 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7112 * sem.adb: Guard against ill-formed subunits.
7114 2009-04-20 Bob Duff <duff@adacore.com>
7116 * output.adb (Flush_Buffer): Do not indent blank lines.
7117 (Ignore_Output): New procedure for output suppression.
7119 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7121 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
7122 when it is positive. This avoids a potential constraint error raised
7123 by the conversion to Natural.
7125 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7127 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
7128 involves a target that has a specified address, don't set Forward_OK
7129 and Backward_OK to False if the rhs is an aggregate, since overlap
7132 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7134 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
7135 in an object renaming declaration when the expected type is an
7136 anonymous access type.
7138 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
7139 ambiguity when one interpretation is an anonymous access type and the
7140 other is a named access type, and the context itself is anonymous
7142 2009-04-20 Thomas Quinot <quinot@adacore.com>
7144 * einfo.ads: Minor comment rewording
7146 * sem_aggr.adb: Minor comment rewording
7148 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
7150 2009-04-20 Pascal Obry <obry@adacore.com>
7152 * adaint.c (__gnat_is_readable_file): Check for file existence
7153 when not using ACL (always the case on remote drives).
7155 2009-04-20 Robert Dewar <dewar@adacore.com>
7157 * sinfo.ads: Minor comment fixes
7159 * exp_disp.adb: Minor reformatting
7161 * gnat1drv.adb: Minor reformatting
7163 * output.adb: Minor reformatting
7165 * s-vxwext-kernel.ads: Minor reformatting
7167 * sem.ads: Minor reformatting
7169 * sem.adb: Minor reformatting
7171 * sem_elim.adb: Minor reformatting
7173 * uname.ads: Minor reformatting
7175 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7177 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
7178 a small dope of 4 words to the adjustment to the stack pointer.
7180 2009-04-20 Thomas Quinot <quinot@adacore.com>
7182 * xoscons.adb: generate C header s-oscons.h in
7183 addition to s-oscons.ads.
7185 * socket.c: On VMS, use s-oscons.h.
7187 * sem_ch3.adb: Minor reformatting
7189 * exp_ch9.adb: Minor reformatting
7191 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7193 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
7194 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
7195 (call_to_gnu): Likewise.
7197 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7199 * gcc-interface/trans.c (gigi): Declare the name of the compilation
7200 unit as the first global name at the very beginning.
7202 2009-04-20 Thomas Quinot <quinot@adacore.com>
7204 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7205 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
7206 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
7207 since HP-UX supports neither inet_aton nor inet_pton (altough the
7208 latter is part of the Single UNIX Specification!).
7209 So reorganize code, and share C implementation based on inet_addr(3)
7210 with VMS (instead of having a VMS specific Ada implementation in
7213 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7215 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
7216 to return the object file name saved by Set_Object_Output_File_Name.
7218 2009-04-20 Emmanuel Briot <briot@adacore.com>
7220 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
7221 for the standard command line, when argc has been modified since the
7222 start of the application.
7224 2009-04-20 Thomas Quinot <quinot@adacore.com>
7226 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
7227 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
7229 2009-04-20 Bob Duff <duff@adacore.com>
7231 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
7234 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7236 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
7237 subprogram as Eliminated when source operation is.
7238 (Expand_N_Protected_Type_Declaration): Generate protected and
7239 unprotected specs for the internal operations, even if the source
7240 operation is eliminated.
7242 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7244 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
7245 Predefined_Primitive_Bodies): Do not create the declarations and bodies
7246 of the primitive subprograms associated with dispatching select
7247 statements when the runtime is in configurable mode.
7249 2009-04-20 Ed Falis <falis@adacore.com>
7251 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
7253 2009-04-20 Thomas Quinot <quinot@adacore.com>
7255 * s-oscons-tmplt.c: Add support for generating a dummy version of
7256 s-oscons.ads providing all possible constants.
7258 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
7260 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
7261 ANSI version (not the UNICODE version) of WSAStringToAddress.
7263 2009-04-20 Pascal Obry <obry@adacore.com>
7265 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
7266 allocated for the security descriptor and make sure all
7267 handles are closed before leaving this procedure.
7269 2009-04-20 Javier Miranda <miranda@adacore.com>
7271 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
7272 (Set_Is_Underlying_Record_View): New subprogram
7274 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
7275 private types with unknown discriminants use the underlying record view
7278 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
7279 underlying record view in the full view of private types whose parent
7280 has unknown discriminants.
7281 (Build_Derived_Record_Type): Avoid generating the class-wide entity
7282 associated with an underlying record view.
7283 (Derived_Type_Declaration): Avoid deriving parent primitives in
7284 underlying record views.
7286 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
7287 records with unknown discriminants.
7289 * sem_type.adb (Covers): Handle underlying record views.
7290 (Is_Ancestor): Add support for underlying record views.
7292 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
7293 dispatching call if the type of the target object is tagged and has
7294 unknown discriminants.
7296 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
7297 unknown discriminants.
7299 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
7300 tables for internally built underlying record views.
7302 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
7303 empty list of component associations.
7305 2009-04-20 Thomas Quinot <quinot@adacore.com>
7307 * sem_ch10.adb: Minor reformatting
7309 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
7310 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
7311 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
7312 standard inet_pton API (and emulate it on platforms that do not
7314 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
7315 DECC$INET_ADDR, imported in Ada.
7316 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
7317 implementation provided by GNAT runtime.
7318 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
7321 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7323 * gnat_ugn.texi: Add documentation for -fno-ivopts.
7325 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7327 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
7328 with_clause if it is the main unit.
7330 2009-04-20 Thomas Quinot <quinot@adacore.com>
7332 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
7333 (no behaviour change): Use Append instead of Increment_Last followed
7336 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7338 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
7339 declarations of all primitives associated with dispatching asynchronous,
7340 conditional and timed selects when dispaching calls are forbidden and
7341 select statements are not allowed (such as in Ravenscar).
7342 (Predefined_Primitive_Bodies): Ditto for bodies.
7344 * exp_disp.ad (Make_DT): Do not create and populate the
7345 Select_Specific_Data of the dispatch table when dispatching calls are
7346 forbidden and select statements are not allowed (such as in Ravenscar).
7348 2009-04-20 Robert Dewar <dewar@adacore.com>
7350 * a-tifiio.adb: Minor reformatting
7352 2009-04-20 Thomas Quinot <quinot@adacore.com>
7354 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
7355 other C library functions, report *failure* with a zero status, and
7356 success with a non-zero status.
7358 2009-04-20 Bob Duff <duff@adacore.com>
7360 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
7361 (Semantics): After analyzing each unit, Append it to the
7362 Comp_Unit_List, if appropriate.
7364 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
7366 (Gnat1drv): Correct comment regarding Back_End_Mode.
7368 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7370 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
7372 2009-04-20 Thomas Quinot <quinot@adacore.com>
7374 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7375 output.adb, output.ads, s-taprop-hpux-dce.adb,
7376 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
7379 2009-04-20 Thomas Quinot <quinot@adacore.com>
7381 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
7382 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
7383 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
7384 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
7385 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
7386 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
7388 * debug.adb: Fix typo
7390 * gnat_rm.texi: Minor doc fix.
7392 * sem_ch7.adb, freeze.adb: Minor reformatting
7394 2009-04-20 Thomas Quinot <quinot@adacore.com>
7396 * g-socket.ads: Add new constants:
7398 Unspecified_Group_Inet_Addr
7399 All_Hosts_Group_Inet_Addr
7400 All_Routers_Group_Inet_Addr
7402 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
7403 ERANGE (Result too large).
7404 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
7405 propagation of errno to caller.
7407 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7409 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
7410 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
7413 2009-04-20 Gary Dismukes <dismukes@adacore.com>
7415 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
7416 checking for references to eliminated subprograms that should be
7418 (Eliminate_Error_Message): Update comment to say "references" rather
7419 than "calls" (since attribute cases are handled here as well).
7421 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
7422 checking for references to eliminated subprograms that should be
7423 flagged. Add with and use of Sem and Sem_Util.
7425 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
7426 Add with and use of Sem_Elim.
7428 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
7429 applied to eliminated subprograms.
7430 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
7431 eliminated subprograms.
7432 Add with and use of Sem_Elim.
7434 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
7435 to eliminated subprograms, now handled during Resolve_Call.
7436 Remove with and use of Sem_Elim.
7438 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
7439 testing Is_Eliminated, for proper handling of primitive derived from
7440 eliminated subprograms.
7442 2009-04-20 Vincent Celier <celier@adacore.com>
7444 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
7445 has been declared (Library_GCC or Linker'Driver), for the driver name.
7447 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
7448 Linker'Driver is, use Linker'Driver as the shared library linker.
7449 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
7450 Library_GCC is declared.
7451 (Check_Library_Attributes): Set up the shared linker driver: either
7452 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
7455 2009-04-20 Thomas Quinot <quinot@adacore.com>
7457 * g-socket.ads (Send_Socket): Fix misleading comment.
7459 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7461 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
7464 2009-04-20 Geert Bosch <bosch@adacore.com>
7466 * a-tifiio.adb (Put): Avoid generating too many digits for certain
7467 fixed types with smalls that are neither integer or the reciprocal
7470 2009-04-20 Bob Duff <duff@adacore.com>
7472 * uname.ads: Minor comment fix.
7474 * types.ads: Minor comment fix.
7476 2009-04-20 Pascal Obry <obry@adacore.com>
7478 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
7479 avoid warning. At the same time fix a memory leak.
7481 * osint.adb (Get_Libraries_From_Registry): Properly free memory
7482 returned by the above routine.
7484 2009-04-20 Robert Dewar <dewar@adacore.com>
7486 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
7487 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
7488 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
7489 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
7491 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
7493 2009-04-20 Pascal Obry <obry@adacore.com>
7495 * initialize.c (__gnat_initialize): Add braces to kill warning.
7497 * adaint.c: Minor reformatting, remove trailing spaces.
7499 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7501 * gcc-interface/Make-lang.in: Update dependencies.
7503 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7505 * adaint.h (__gnat_lwp_self): Declare on Linux.
7507 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
7509 2009-04-20 Robert Dewar <dewar@adacore.com>
7511 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
7512 front-end part of -fpreserve-control-flow switch.
7514 2009-04-20 Bob Duff <duff@adacore.com>
7516 * rtsfind.adb: Minor comment fix
7518 2009-04-20 Robert Dewar <dewar@adacore.com>
7520 * exp_aggr.adb: Minor reformatting
7521 Minor code reorganization (use Nkind_In)
7523 * g-socket.adb: Minor reformatting
7525 * g-socket.ads: Minor comment fix
7527 * s-auxdec.ads: Minor comment and organization update.
7529 * s-auxdec-vms_64.ads: Minor comment and organization update.
7531 * sem_ch10.adb: Minor addition of ??? comment
7533 * sem_disp.adb: Minor reformatting
7535 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7537 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
7538 list a caller of an inlined subprogram, if the caller itself is not
7541 2009-04-20 Pascal Obry <obry@adacore.com>
7543 * adaint.c: Disable use of ACL on network drives.
7545 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7547 * gnat_ugn.texi: Add examples.
7549 2009-04-20 Thomas Quinot <quinot@adacore.com>
7551 * g-socket.ads (Abort_Selector): Clarify documentation.
7553 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7555 * opt.ads (Inspector_Mode): Update documentation of this flag.
7557 2009-04-20 Thomas Quinot <quinot@adacore.com>
7559 * g-socket.ads: Minor reformatting
7561 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
7562 consider S_resolvLib error codes since we only use the hostLib wrappers.
7564 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7566 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
7567 of the Underlying_Record_View after that of the derived type.
7569 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7571 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
7574 2009-04-20 Javier Miranda <miranda@adacore.com>
7576 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
7578 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
7581 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
7584 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
7585 in internally built overriding subprograms.
7587 2009-04-20 Doug Rupp <rupp@adacore.com>
7589 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
7591 * s-auxdec.ads: Likewise
7593 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7595 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
7596 type by an interface.
7598 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
7599 minimze difference in expanded tree when compiled as spec of the main
7600 unit, or as a spec in the context of another unit.
7602 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
7604 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
7605 (localtime_tzoff): This routine no longer accepts an actual of type
7607 (UTC_Time_Offset): Remove local variable Secs_TM.
7609 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
7610 actual of type struct tm*. Add local variable of type struct tm for all
7611 targets that provide localtime_r and need to invoke it.
7613 2009-04-20 Thomas Quinot <quinot@adacore.com>
7615 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
7616 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
7617 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
7619 2009-04-20 Robert Dewar <dewar@adacore.com>
7621 * sem_ch3.adb: Minor reformatting
7623 * lib-load.adb: Minor reformatting
7625 * sem_ch4.adb: Minor reformatting
7627 2009-04-20 Robert Dewar <dewar@adacore.com>
7629 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
7630 (equal values => False).
7632 2009-04-20 Ed Schonberg <schonberg@adacore.com>
7634 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
7635 to null procedures can be inlined unconditionally.
7637 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
7639 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
7640 non-addressable parameter passed by reference, do not convert the
7641 actual if its type is already the nominal type, unless it is of
7642 self-referential size.
7644 2009-04-20 Arnaud Charlet <charlet@adacore.com>
7646 * gnat_ugn.texi: Fix typos.
7648 2009-04-20 Robert Dewar <dewar@adacore.com>
7650 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
7651 Validate_Unchecked_Warnings to suppress warnings about size or
7652 alignment or extra bits if either type involved has pragma Warnings
7653 (Off) set for the type entity.
7655 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
7657 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
7658 a builtin type and give it a name.
7660 2009-04-17 Diego Novillo <dnovillo@google.com>
7662 * gcc-interface/misc.c (gnat_expand_expr): Remove.
7663 (LANG_HOOKS_EXPAND_EXPR): Remove.
7665 2009-04-17 Robert Dewar <dewar@adacore.com>
7667 * sem_ch3.adb: Minor reformatting
7669 2009-04-17 Pascal Obry <obry@adacore.com>
7671 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
7673 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7675 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
7676 illegal constraints on type derived from formal discrete types.
7678 2009-04-17 Thomas Quinot <quinot@adacore.com>
7682 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7683 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7684 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
7685 g-socket.ads (GNAT.Sockets.Thin.C_Send,
7686 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
7687 Replace calls to send(2) with equivalent sendto(2) calls.
7688 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
7689 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
7690 report an error in that case. Factor code common to the two versions
7691 (datagram and stream) in common routine Stream_Write.
7693 2009-04-17 Robert Dewar <dewar@adacore.com>
7695 * exp_disp.adb: Minor reformatting
7696 Minor code reorganization (use Nkind_In)
7698 * prepcomp.adb: Minor reformatting
7700 * sem_ch3.adb: Minor reformatting
7702 * sem_res.adb: Minor comment addition
7704 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
7707 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
7708 setting Is_Referenced
7710 * types.ads: Minor reformatting
7712 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7714 * gnat_ugn.texi: Initial documentation on binding generator.
7716 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7718 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
7719 type extensions whose parent is a type with unknown discriminants.
7721 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
7722 aggregate has unknown discriminants, use the Underlying_Record_View to
7723 obtain the discriminants of the ancestor part.
7725 * exp_disp.adb (Build_Dispatch_Tables): Types that are
7726 Underlying_Record_Views share the dispatching information of the
7727 original record extension.
7729 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
7730 discriminants, propagate dispach table information to the
7731 Underlying_Record_View.
7733 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
7734 discriminants and declaration is not a completion, generate
7735 Underlying_Record_View to provide proper discriminant information to
7736 the front-end and to gigi.
7738 2009-04-17 Robert Dewar <dewar@adacore.com>
7740 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
7741 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
7742 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
7743 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
7744 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
7745 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
7746 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
7747 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
7748 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
7749 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
7750 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
7751 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
7752 s-conca3.ads: Remove unneeded pragma Warnings
7754 2009-04-17 Robert Dewar <dewar@adacore.com>
7756 * g-moreex.adb: Add comments.
7758 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
7760 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
7763 * prepcomp.adb: Add ??? comment
7765 * a-tasatt.adb: Minor reformatting
7767 * g-trasym-vms-alpha.adb: Add ??? comment
7769 * g-trasym-vms-ia64.adb: Add ??? comment
7771 * xoscons.adb: Minor reformatting
7773 * s-tassta.adb: Minor reformatting
7775 * s-scaval.adb: Add ??? comment
7777 * stand.ads: Minor code clean up (remove junk with of Namet)
7779 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
7780 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
7781 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
7782 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
7783 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
7784 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
7785 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
7786 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
7787 Warnings off pragmas.
7789 2009-04-17 Pascal Obry <obry@adacore.com>
7791 * initialize.c: Fix test for reallocating the arguments array.
7793 2009-04-17 Geert Bosch <bosch@adacore.com>
7795 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
7796 conversion truncate only for decimal fixed point types.
7798 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
7800 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
7803 2009-04-17 Robert Dewar <dewar@adacore.com>
7805 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
7806 Backwards_OK if either operand has an address clause.
7808 2009-04-17 Pascal Obry <obry@adacore.com>
7810 * initialize.c: Code clean up, use realloc.
7812 2009-04-17 Pascal Obry <obry@adacore.com>
7814 * initialize.c: Do not get Unicode command line if Unicode support not
7816 Add support for wildcard expansion for Unicode parameters on Win32.
7818 * mingw32.h: Add missing macros when Unicode support not activated.
7820 2009-04-17 Javier Miranda <miranda@adacore.com>
7822 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
7823 avoid generating code that references the Current_Master
7824 when compiling without tasks.
7826 2009-04-17 Vincent Celier <celier@adacore.com>
7828 * prj-attr.adb: New project level attribute Target
7830 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
7833 * prj.ads (Project_Configuration): New component Target
7835 2009-04-17 Thomas Quinot <quinot@adacore.com>
7837 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
7838 case for the case of an aggregate component, the attach call for the
7839 result is actually needed.
7841 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
7842 an array aggregate must be disabled if the component type requires
7845 * exp_ch3.adb: Minor reformatting
7847 2009-04-17 Bob Duff <duff@adacore.com>
7849 * output.ads (Indent,Outdent): New procedures for indenting the output.
7850 (Write_Char): Correct comment -- LF _is_ allowed.
7852 * output.adb (Indent,Outdent): New procedures for indenting the output.
7853 Keep track of the indentation level, and make sure it doesn't get too
7855 (Flush_Buffer): Insert spaces at the beginning of each line, if
7856 indentation level is nonzero.
7857 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
7859 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
7860 "Next_Col := 1;". Flush_Buffer does that.
7862 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
7863 controlled by the -gnatdc switch. It now occurs on entry/exit to the
7864 relevant analysis routines, and calls Indent/Outdent to make the
7865 indentation reflect the nesting level. Add "helper" routines, since
7866 otherwise lots of "return;" statements would skip the debugging output.
7868 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7870 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
7871 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
7872 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
7874 2009-04-17 Thomas Quinot <quinot@adacore.com>
7876 * exp_aggr.adb: Minor code reorganization, no behaviour change.
7878 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7880 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
7881 clause in a unit that is a package body or a subunit, when the previous
7882 clause appears in a spec or a parent.
7884 2009-04-17 Thomas Quinot <quinot@adacore.com>
7886 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
7888 * exp_ch7.adb: Minor reformatting
7890 2009-04-17 Bob Duff <duff@adacore.com>
7892 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
7893 allocator, check that the expression of the qualified expression obeys
7894 the constraints of the subtype of the qualified expression.
7896 2009-04-17 Thomas Quinot <quinot@adacore.com>
7898 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
7900 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7902 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
7903 aggregate, using context imposed by subtype mark in allocator.
7905 2009-04-17 Pascal Obry <obry@adacore.com>
7907 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
7909 2009-04-17 Nicolas Roche <roche@adacore.com>
7911 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
7914 2009-04-17 Gary Dismukes <dismukes@adacore.com>
7916 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
7917 cover both calls and attribute references ("call" => "reference").
7919 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7921 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
7922 type for which Storage_Size is set to 0 is legal in a pure unit.
7924 2009-04-17 Thomas Quinot <quinot@adacore.com>
7926 * exp_ch7.adb: Minor reformatting
7928 2009-04-17 Robert Dewar <dewar@adacore.com>
7930 * restrict.adb (Check_Restriction_No_Dependence): Don't check
7931 restriction if outside main extended source unit.
7933 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
7934 for parents of child units as well as the child unit itself.
7936 2009-04-17 Bob Duff <duff@adacore.com>
7938 * checks.ads: Minor comment fix
7940 * exp_aggr.ads: Minor comment fix
7942 2009-04-17 Nicolas Roche <roche@adacore.com>
7944 * adaint.c: Improve cross compiler detection and handling.
7946 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
7948 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
7950 2009-04-17 Pascal Obry <obry@adacore.com>
7952 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
7955 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
7956 value when no encoding form paramter is set on Text_IO services.
7958 * adaint.c: CurrentCodePage new variable on Windows.
7959 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7962 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7965 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
7966 environment variable value. Default is UTF-8.
7968 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
7969 fopen and freopen encoding parameter is now set to Unspecified.
7970 The default value is in this case UTF-8 (as it was before) but
7971 use the new macros that convert to/from the code page set
7972 at runtime (CurrentCodePage).
7974 * s-fileio.adb: When no encoding specified use Unspecified value.
7976 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7978 * atree.adb, atree.ads: Remove dead code.
7980 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7982 * gcc-interface/Make-lang.in: Update dependencies.
7984 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7986 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
7987 illegal uses of incomplete types in formal parts and return types.
7989 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
7990 access to subprograms.
7992 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
7993 Taft-amendment types as the return type of an access_to_function type.
7995 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7996 type for access_to_subprograms. The check is performed on package exit.
7998 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8000 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
8002 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
8004 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
8006 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
8007 semantic units, because the handling of itypes in the copied tree
8008 requires semantic information that does not belong in atree.
8010 2009-04-17 Robert Dewar <dewar@adacore.com>
8012 * par-ch6.adb: Minor reformatting
8014 * prj.adb: Minor reformatting
8016 2009-04-17 Gary Dismukes <dismukes@adacore.com>
8018 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
8019 on protected subprogram bodies, so exclude the case where Pf_Flags is
8020 Pf_Decl_Pbod from the error check.
8022 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
8023 indicators on subprograms in protected bodies, and proceed with parsing
8026 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
8027 subprograms from the check for primitiveness on subprograms with
8028 overriding indicators.
8029 (Check_Overriding_Indicator): Include protected subprograms in the
8030 style check for missing overriding indicators.
8032 2009-04-17 Tristan Gingold <gingold@adacore.com>
8034 * init.c: Fix stack checking for x86 Darwin.
8036 2009-04-17 Vincent Celier <celier@adacore.com>
8038 * prj-attr.adb: New project level attribute Object_File_Suffix
8041 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
8043 (Process_Compiler): Process attribute Object_File_Suffix
8045 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
8046 platform suffix, when specified.
8048 * prj.ads (Language_Config): New component Object_File_Suffix,
8049 defaulted to No_Name.
8050 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
8052 * snames.ads-tmpl: New standard name Object_File_Suffix
8054 2009-04-17 Robert Dewar <dewar@adacore.com>
8056 * gnat_rm.texi: Add documentation about No_Streams restriction
8058 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
8059 attributes when checking No_Streams restriction.
8061 2009-04-17 Thomas Quinot <quinot@adacore.com>
8063 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
8065 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
8066 missing calls to RE_Request_Destroy to deallocate request objects after
8069 2009-04-17 Nicolas Setton <setton@adacore.com>
8071 * link.c: Fix support for passing a response file under Darwin.
8073 2009-04-17 Emmanuel Briot <briot@adacore.com>
8075 * prj.adb (Free): new subprogram.
8077 2009-04-17 Ed Schonberg <schonberg@adacore.com>
8079 * sem_ch3.adb: additional initialization on incomplete subtypes.
8081 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
8082 part and one of the formals is an incomplete tagged type, attach to
8083 list of private dependends of the type for later validation.
8085 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
8086 primitive operations of a Taft-amendmment type.
8088 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
8089 type. The check is performed on package exit, possibly after the
8090 subprogram is frozen.
8092 2009-04-17 Vincent Celier <celier@adacore.com>
8094 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
8095 before looking for source directories, but make sure that there are nil
8096 if they are not explicitely declared and there is explicitely no
8097 sources in the project.
8099 2009-04-17 Pascal Obry <obry@adacore.com>
8101 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
8103 * init.c: Fix minor typo and style fix.
8105 2009-04-17 Robert Dewar <dewar@adacore.com>
8107 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
8109 * sem_attr.adb (Analyze_Attribute, case Address): Use
8110 PE_Address_Of_Intrinsic.
8112 * types.ads: Add PE_Address_Of_Intrinsic
8114 * types.h: Add PE_Address_Of_Intrinsic
8116 2009-04-17 Nicolas Setton <setton@adacore.com>
8118 * gcc-interface/Makefile.in: Under darwin, build shared libraries
8119 with install_name starting with "@rpath/".
8121 2009-04-17 Nicolas Setton <setton@adacore.com>
8123 * link.c: Add darwin section
8125 2009-04-16 Robert Dewar <dewar@adacore.com>
8127 * g-pehage.adb: Minor reformatting
8129 * sem_ch12.adb: Minor reformatting
8131 * exp_dist.adb: Minor reformatting
8133 * bindgen.adb: Minor style fixes.
8135 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8137 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
8138 indexed components to the case where the prefix is a static string
8141 2009-04-16 Javier Miranda <miranda@adacore.com>
8143 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
8144 objects avoid any further expansion of the expression initializing the
8147 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8149 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
8150 that hides an outer homograph, make that homograph invisible when
8151 analyzing the actuals, to to prevent illegal direct visibility on it.
8153 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8155 * g-pehage.adb (Initialize): Fix off-by-one error.
8157 2009-04-16 Tristan Gingold <gingold@adacore.com>
8159 * init.c: Detect real stack overflow on Darwin.
8161 * system-darwin-x86.ads: Use stack probing on darwin x86.
8163 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8165 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
8166 take the address of an intrinsic subprogram.
8168 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8170 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
8171 for the targets where GNAT.Traceback.Symbolic is not supported.
8173 2009-04-16 Vincent Celier <celier@adacore.com>
8175 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
8177 * g-trasym.ads: Update comments.
8179 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8181 * tracebak.c (STOP_FRAME): Verify validity of the current address
8182 before dereferencing.
8184 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8186 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
8187 the original location of the index expressions and the index subtypes,
8188 to prevent spurious out-of-scope references in gigi.
8190 2009-04-16 Tristan Gingold <gingold@adacore.com>
8192 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
8193 Add support for stack checking on darwin.
8195 2009-04-16 Vincent Celier <celier@adacore.com>
8197 * prj-attr.adb: New attribute Runtime_Source_Dir
8199 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
8200 attribute Runtime_Source_Dir.
8201 (Check_Naming_Schemes): Give default values to out parameters to avoid
8204 * prj.ads (Language_Config): New component Runtime_Source_Dir
8206 * snames.ads-tmpl: New standard name Runtime_Source_Dir
8208 2009-04-16 Pascal Obry <obry@adacore.com>
8210 * adaint.h, adaint.c (__gnat_rmdir): New routine.
8211 Simple wrapper routines used to convert to proper encoding on
8214 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
8216 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
8219 2009-04-16 Pascal Obry <obry@adacore.com>
8221 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
8223 2009-04-16 Thomas Quinot <quinot@adacore.com>
8225 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
8226 integrated preprocessor.
8228 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
8229 (Initialize): Split into two subprograms, Initialize (to be called
8230 prior to compiler command line processing) and Setup_Hooks (to be called
8231 later on when the first source file is loaded).
8233 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
8234 Add call to Prep.Initialize.
8236 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
8237 to Prep.Setup_Hooks.
8239 2009-04-16 Pascal Obry <obry@adacore.com>
8241 * adaint.h, adaint.c (__gnat_chdir): New routine.
8242 Simple wrapper routines used to convert to proper encoding on
8245 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
8247 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
8249 2009-04-16 Quentin Ochem <ochem@adacore.com>
8251 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
8254 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8256 * a-convec.ads (Is_Empty): Mark inline.
8258 2009-04-16 Nicolas Roche <roche@adacore.com>
8260 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
8262 2009-04-16 Thomas Quinot <quinot@adacore.com>
8264 * prepcomp.adb: Minor reformatting
8266 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8268 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
8269 Access_Subprogram types can also be imported.
8270 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
8273 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8275 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8276 preserve homonym chain when the declaration is rewritten into a
8277 renaming declaration, in order to preserve visibility structure.
8279 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
8281 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
8282 taken into account for VM targets.
8284 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8286 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
8288 (Year_Week_In_Year): New routine which contains the original code from
8289 Week_In_Year. Add the missing special case for January 1st falling on
8292 2009-04-16 Thomas Quinot <quinot@adacore.com>
8294 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
8295 actual type, use the base type to build the To_Any function.
8296 (Build_From_Any_Function): Remove junk, useless subtype conversion.
8298 2009-04-16 Thomas Quinot <quinot@adacore.com>
8300 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
8301 restrict.adb: Minor code reorganization (use
8302 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
8304 2009-04-16 Bob Duff <duff@adacore.com>
8306 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
8309 2009-04-16 Thomas Quinot <quinot@adacore.com>
8311 * sem_ch4.adb: Minor reformatting
8313 * adaint.c: Remove junk duplicated code.
8315 * sem_ch3.adb: Minor reformatting
8317 * exp_dist.adb: Minor comment rewording
8319 2009-04-16 Robert Dewar <dewar@adacore.com>
8321 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
8324 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8326 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
8327 usable before calling Add_One_Interp, to resolve spurious ambiguities.
8329 2009-04-16 Robert Dewar <dewar@adacore.com>
8331 * Make-lang.in: Add entries for s-conca?.o
8333 * Makefile.rtl: Add entries for s-conca?
8335 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
8336 of concatenation expansion
8338 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
8339 string cases instead of expanding assignments inline.
8341 * opt.ads (Optimize_Size): New flag
8343 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
8344 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
8345 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
8346 s-conca9.adb, s-conca9.ads: New file.
8348 2009-04-16 Robert Dewar <dewar@adacore.com>
8350 * exp_ch6.adb: Add comments
8352 * rtsfind.ads: Add entries for s-conca? routines
8354 2009-04-16 Arnaud Charlet <charlet@adacore.com>
8356 * gcc-interface/Make-lang.in: Update dependencies.
8358 * gcc-interface/Makefile.in: Update translation for vms.
8360 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8362 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
8363 and made global, to be used when installing parents of a child
8364 instance, to provide mappings for entities declared in formal packages
8365 of ancestor units. Now called from Install_Formal_Packages.
8367 2009-04-16 Doug Rupp <rupp@adacore.com>
8369 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
8370 notation for clarity.
8372 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8373 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
8374 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
8375 (Initialize): Initialize Known_Tasks with Environment task.
8377 * s-taskin.ads (Task_States): Move new states to end for the sake of
8380 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
8382 2009-04-16 Ed Schonberg <schonberg@adacore.com>
8384 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
8385 operation has an inline pragma, propagate the flag to the internal
8386 unprotected subprogram.
8388 2009-04-16 Doug Rupp <rupp@adacore.com>
8390 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
8391 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
8392 s-taprop-hpux-dce.adb, s-taprop-posix.adb
8393 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
8395 * s-taprop-vms.adb (Enter_Task): Likewise.
8396 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
8398 * s-tassta.adb (Activate_Tasks): After task creation set state to
8399 Activating, vice Runnable. Initialize Known_Tasks, moved here from
8400 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
8401 Set state to Runnable after above.
8402 (Task_Wrapper): Set Debug_Event_Run. In exception block set
8403 Debug_Event_Terminated.
8405 * s-taskin.ads (Task_States): Add new states Activiting and
8406 Activator_Delay_Sleep.
8407 (Bit_Array, Debug_Event_Array): New types.
8408 (Global_Task_Debug_Event_Set: New flag.
8409 (Common_ATCB): New field Debug_Events.
8411 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
8413 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
8416 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
8417 Activating and when Acceptor_Delay_Sleep.
8419 * s-tasdeb.ads: Add constants for Debug_Events.
8420 (Debug_Event_Kind_Type): New subtype.
8421 (Signal_Debug_Event): New subprogram.
8423 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
8425 2009-04-16 Thomas Quinot <quinot@adacore.com>
8427 * sem_elim.adb: Minor reformatting
8429 * freeze.adb: Minor reformatting
8431 * exp_ch4.adb: Minor reformatting
8433 2009-04-16 Emmanuel Briot <briot@adacore.com>
8435 * prj-nmsc.adb (Path_Name_Of): fix memory leak
8437 2009-04-16 Robert Dewar <dewar@adacore.com>
8439 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
8441 2009-04-16 Vincent Celier <celier@adacore.com>
8443 * fmap.adb (Initialize): Show the current line when the mapping file
8444 is detected as "incorrectly formatted".
8446 2009-04-16 Robert Dewar <dewar@adacore.com>
8448 * sem_ch12.adb: Minor reformatting
8450 * sem_ch5.adb: Minor comment addition
8452 * sem_util.adb: Minor reformatting
8454 * sinput-p.adb: Minor reformatting
8455 Add missing pragma Warnings (On)
8457 2009-04-16 Ed Falis <falis@adacore.com>
8459 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
8461 2009-04-16 Vincent Celier <celier@adacore.com>
8463 * ali-util.adb: Minor comment spelling error fix
8465 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
8467 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
8468 generate an assignment loop in case of overlap.
8470 2009-04-16 Olivier Hainque <hainque@adacore.com>
8472 * gnat_ugn.texi (gnatmem description): Make it explicit that
8473 gnatmem is designed to work in association with static runtime
8476 2009-04-16 Thomas Quinot <quinot@adacore.com>
8478 * sem_type.adb: Minor reformatting
8480 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
8482 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
8483 concerning return codes of gettimeofday and return value check.
8485 2009-04-16 Ed Falis <falis@adacore.com>
8487 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
8488 body can be renaming of imported routines.
8490 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
8492 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
8495 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8497 * exp_ch9.adb: Comment improvements.
8498 (Build_Entry_Family_Name): Add parentheses around the index of a entry
8501 2009-04-15 Bob Duff <duff@adacore.com>
8503 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
8504 "while X /= null loop" where X is unchanged inside the loop. We were
8505 not warning in this case, because of the pointers -- we feared that the
8506 loop variable could be updated via a pointer, if there are any pointers
8507 around the place. But that is impossible in this case.
8509 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
8510 the case of dereferences. In X.all, X cannot be an l-value. We now
8511 catch that case (and implicit dereferences, too).
8513 2009-04-15 Vincent Celier <celier@adacore.com>
8515 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
8517 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8519 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
8521 (Analyze_Package_Instantiation): If generic unit in child instance is
8522 the same as generic unit in parent instance, look for an outer homonym
8523 to locate the desired generic.
8525 2009-04-15 Bob Duff <duff@adacore.com>
8527 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
8528 warnings unless the loop comes from source, because checking generated
8529 loops is a waste of time, and makes it harder to debug
8530 Check_Infinite_Loop_Warning.
8532 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
8533 tested in the while loop is a renaming, do not warn. Otherwise, we get
8534 false alarms, because it's usually renaming something that we can't
8535 deal with (an indexed component, a global variable, ...).
8537 * gnat_rm.texi: Fix typo
8539 2009-04-15 Thomas Quinot <quinot@adacore.com>
8541 * sem_ch6.adb: Minor reformatting
8543 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8545 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
8546 immediate parent of the controlled function call is a component
8549 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8551 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
8552 corresponding class-wide type is also in use.
8554 2009-04-15 Thomas Quinot <quinot@adacore.com>
8556 * frontend.adb: Minor comment fix
8558 2009-04-15 Robert Dewar <dewar@adacore.com>
8560 * gnatchop.adb (BOM_Length): New global variable
8561 (Write_Unit): Add new parameter Write_BOM
8562 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
8565 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
8567 2009-04-15 Geert Bosch <bosch@adacore.com>
8569 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
8570 (Backend_Overflow_Checks): Set to True.
8572 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8574 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
8575 keyword is given in a record extension.
8577 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8579 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
8580 of a controlled function call in the context of a record aggregate.
8581 This does not apply to array aggregates since the call will be expanded
8584 2009-04-15 Ed Falis <falis@adacore.com>
8586 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
8587 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
8588 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
8589 s-osinte-vxworks* and s-vxwext*.
8591 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8593 * gcc-interface/Make-lang.in: Update dependencies.
8595 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
8598 2009-04-15 Robert Dewar <dewar@adacore.com>
8600 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
8601 of node for location for warning messages.
8603 * gnatchop.adb: Minor reformatting
8605 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8607 * exp_ch6.adb: additional guard for renaming declarations for in
8608 parameters of an array type.
8610 2009-04-15 Robert Dewar <dewar@adacore.com>
8612 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
8613 in case they were rewritten by expander (Force_Evaluation).
8615 * targparm.adb (Get_Target_Parameters): Correct check for
8616 Suppress_Exception_Locations.
8618 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8620 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
8621 inlined is of an array type that is not bit-packed, use a renaming
8622 declaration to capture its value, rather than a constant declaration.
8624 2009-04-15 Robert Dewar <dewar@adacore.com>
8626 * rtsfind.adb: Minor reformatting.
8628 2009-04-15 Emmanuel Briot <briot@adacore.com>
8630 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
8631 Restore, and free the saved context.
8633 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8635 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
8636 for illegal private extension from a synchronized interface parent in
8637 front of check for illegal limited extension so that limited extension
8638 from a synchronized interface will be rejected.
8639 (Check_Ifaces): Check that a private extension that has a synchronized
8640 interface as a progenitor must be explicitly declared synchronized.
8641 Also check that a record extension cannot derive from a synchronized
8644 2009-04-15 Pascal Obry <obry@adacore.com>
8646 * adaint.h (__gnat_unlink): Add spec.
8647 (__gnat_rename): Likewise.
8649 2009-04-15 Vincent Celier <celier@adacore.com>
8651 * prj-nmsc.adb: Minor spelling error corrections in error messages
8653 2009-04-15 Robert Dewar <dewar@adacore.com>
8655 * sinfo.ads: Minor comment update
8657 * opt.ads: Minor comment updates
8659 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
8662 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8664 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
8665 that generates the code needed to update a dispatch table when a
8666 primitive operation is declared with a subprogram body without previous
8667 spec. Insertion of the generated code is responsibility of the caller.
8668 (Make_DT): When building static tables, append the code created by
8669 Register_Primitive to update a secondary table after it has been
8672 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
8674 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
8675 on an overriding operation that implements an interface operation only
8676 if not building static dispatch tables.
8678 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8680 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
8681 does not cause overflow when converted to Duration. Use the safe value
8682 as the maximum allowable time delay..
8684 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
8686 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
8687 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
8688 translated to "-j 2".
8690 2009-04-15 Bob Duff <duff@adacore.com>
8692 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
8693 with_clauses, to avoid code duplication. Change this processing so we
8694 always add a with_clause on the main unit if needed.
8696 2009-04-15 Pascal Obry <obry@adacore.com>
8698 Add support for Win32 native encoding for delete/rename routines.
8700 * adaint.c (__gnat_unlink): New routine.
8701 (__gnat_rename): New routine.
8702 Simple wrapper routines used to convert to proper encoding on
8705 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
8706 call to the C library.
8708 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
8710 2009-04-15 Robert Dewar <dewar@adacore.com>
8712 * s-tassta.adb: Minor reformatting
8714 2009-04-15 Robert Dewar <dewar@adacore.com>
8716 * frontend.adb (Frontend): Set proper default for
8717 Warn_On_Non_Local_Exception.
8719 * opt.ads (Exception_Handler_Encountered): New flag
8720 (No_Warn_On_Non_Local_Exception): New flag
8722 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
8724 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8725 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
8727 2009-04-15 Cyrille Comar <comar@adacore.com>
8729 * s-tassta.adb, a-exextr.adb, a-elchha.adb
8730 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
8731 message when exception traces are active since it would generate
8732 redundant information.
8733 (Exception_Traces.Notify_Exception): put message output by a critical
8734 section to avoid unsynchronized output.
8735 (Trace_Unhandled_Exception_In_Task): put message output by a critical
8736 section to avoid unsynchronized output.
8738 2009-04-15 Emmanuel Briot <briot@adacore.com>
8740 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
8741 (Free): New subprogram.
8743 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8745 * a-calend.adb: Add new constant Nanos_In_Four_Years.
8746 (Formatting_Operations.Time_Of): Change the way four year chunks of
8747 nanoseconds are added to the intermediate result.
8749 2009-04-15 Nicolas Setton <setton@adacore.com>
8751 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
8752 does not need to wait for a carriage return.
8754 2009-04-15 Tristan Gingold <gingold@adacore.com>
8756 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
8759 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8761 * freeze.adb (Freeze_Entity): improve error message for improper use of
8763 Diagnose additional illegal uses of incomplete types in formal parts.
8764 appearing in formal parts.
8766 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
8768 2009-04-15 Robert Dewar <dewar@adacore.com>
8770 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
8772 2009-04-15 Nicolas Roche <roche@adacore.com>
8774 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
8777 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
8779 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
8781 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8783 * sem_ch4.adb: improve error message on exponentiation.
8785 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
8787 * a-calend.adb: Move constant Epoch_Offset from package
8788 Conversion_Operations to top level.
8789 (Delay_Operations.To_Duration): Define a constant which represents
8790 "end of time" and use it as a guard against very distant delay dates.
8791 Protect the code against overflow when performing the origin shift to
8794 2009-04-15 Robert Dewar <dewar@adacore.com>
8796 * sem_prag.adb: Minor reformatting.
8798 * sem_type.adb: Minor reformatting
8800 2009-04-15 Javier Miranda <miranda@adacore.com>
8802 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
8803 support to check eliminated subprograms.
8805 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
8807 * sem_elim.adb (Set_Eliminated): Add support for elimination of
8808 dispatching subprograms.
8810 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
8811 operations. Initialize with "null" the slots of eliminated dispaching
8813 (Write_DT): Add output for eliminated primitives.
8815 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
8817 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8819 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
8820 the second is redundant, regardless of scopes.
8822 2009-04-15 Vincent Celier <celier@adacore.com>
8824 * prj-nmsc.adb (Get_Directories): Check for sources before checking
8825 the object directory as when there are no sources, they may not be any
8828 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
8829 directory, when there are no exec directory.
8831 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8833 * sem_type.adb (Remove_Conversions): In order to resolve spurious
8834 ambiguities, refine removal of universal interpretations from complex
8835 expressions with literal arguments, when some numeric operators have
8836 been declared abstract.
8838 2009-04-15 Ed Falis <falis@adacore.com>
8840 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
8841 and backward compatibility for targets using probing for stack overflow
8843 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8845 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
8846 after any declaration, including renaming declarations.
8848 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8850 * gcc-interface/Make-lang.in: Update dependencies.
8852 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
8853 Update xenomai target pairs.
8855 2009-04-15 Javier Miranda <miranda@adacore.com>
8857 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
8859 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
8860 functions returning anonymous access to class-wide limited types. Mark
8861 also the containing scope as a task master.
8863 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
8864 limited-withed packages. Required to restore their visibility after
8865 processing packages associated with implicit with-clauses.
8867 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
8868 associated with return statements because this work is now done by
8869 Check_Anonymous_Return.
8870 (Build_Master): Code cleanup.
8872 2009-04-15 Thomas Quinot <quinot@adacore.com>
8874 * sem_warn.ads: Minor reformatting
8876 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8878 * sem_ch3.adb: better error message for illegal interfaces
8880 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
8881 formal is an incomplete type from a limited_with clause.
8883 2009-04-15 Vincent Celier <celier@adacore.com>
8885 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
8886 Externally_Built indicating if the project is externally built. If it
8887 is, and --subdirs is specified, but the subdir does not exist, look
8888 for the specified directory, without the subdir.
8890 2009-04-15 Gary Dismukes <dismukes@adacore.com>
8892 * a-tasatt.adb: Fix typo, plus minor reformatting
8894 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
8896 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
8898 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8900 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
8901 private extension whose parent is a synchronized interface carries an
8902 explicit synchronized keyword.
8904 2009-04-15 Thomas Quinot <quinot@adacore.com>
8906 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
8907 instantiate generic shared object package with the corresponding
8910 2009-04-15 Arnaud Charlet <charlet@adacore.com>
8912 * system-linux-sparc.ads: Remove obsolete entries.
8914 2009-04-15 Thomas Quinot <quinot@adacore.com>
8916 * s-tasuti.ads: Add ??? comment
8918 2009-04-15 Ed Schonberg <schonberg@adacore.com>
8920 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
8921 type even if the designated type comes from a limited_with clause, to
8922 ensure that the symbol for the finalization list of the access type is
8925 2009-04-10 Robert Dewar <dewar@adacore.com>
8927 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
8928 for warning suppression.
8930 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8932 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
8933 identical, there is no redudancy to check.
8935 2009-04-10 Gary Dismukes <dismukes@adacore.com>
8937 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
8938 calls initializing SS_Allocator (which is initialized in following
8940 (Expand_Simple_Function_Return): Add comment about False value for
8941 Comes_From_Source on secondary-stack allocator.
8943 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
8944 (Build_Entry_Name): Add comment.
8946 2009-04-10 Robert Dewar <dewar@adacore.com>
8948 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
8950 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
8951 bound tested, since this is now done more generally in Sem_Res.
8953 * sem_res.adb (Resolve_Comparison_Op): Add call to
8954 Check_Lower_Bound_Tested.
8955 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
8957 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
8958 (Low_Bound_Tested): New name for Low_Bound_Known flag
8960 * exp_ch5.adb: Minor reformatting
8963 Add comments on copying the Comes_From_Source flag for allocators
8966 Add comments on copying the Comes_From_Source flag for allocators
8968 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
8969 Comes_From_Source flag from old allocator to new one.
8971 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8973 * sem_ch6.ads: Address missing documentation query
8975 2009-04-10 Vincent Celier <celier@adacore.com>
8978 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
8979 and Response_File_Switches.
8981 * prj-nmsc.adb (Process_Linker): Process new attributes
8982 Max_Command_Line_Length, Response_File_Format and
8983 Response_File_Switches.
8985 * prj.ads (Response_File_Format): New enumeration type
8986 (Project_Configuration): New componants Max_Command_Line_Length,
8987 Resp_File_Format and Resp_File_Options.
8989 * snames.ads-tmpl: Add new standard names for linking response files
8990 for gprbuild: GNU, None, Object_List, Option_List,
8991 Max_Command_Line_Length, Response_File_Format and
8992 Response_File_Switches.
8994 2009-04-10 Geert Bosch <bosch@adacore.com>
8996 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
8997 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
8998 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
8999 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
9000 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
9001 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
9002 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
9003 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
9004 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
9005 system-vxworks-arm.ads, system-vxworks-m68k.ads,
9006 system-vxworks-mips.ads, system-vxworks-ppc.ads,
9007 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
9008 (Backend_Overflow_Checks): Set to True.
9010 2009-04-10 Thomas Quinot <quinot@adacore.com>
9012 * exp_attr.adb: Minor reformatting
9014 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9016 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
9017 analyze the expression for a postcondition, even if the compiler mode
9020 2009-04-10 Robert Dewar <dewar@adacore.com>
9022 * sem_aux.adb: Minor reformatting
9024 2009-04-10 Ed Falis <falis@adacore.com>
9026 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
9028 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
9030 2009-04-10 Thomas Quinot <quinot@adacore.com>
9032 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
9033 undocumented formal.
9036 * a-direio.ads: Fix typo in comment
9038 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
9039 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
9040 Use uniform phrasing for comment at start of subprogram body.
9042 * xsnamest.adb: Add note to explain why we use specific names for the
9043 newly generated files instead of generating snames.{ads,adb,h} directly
9045 2009-04-10 Sergey Rybin <rybin@adacore.com>
9048 Add qualifier for new gnatstub option '--no-exception'
9051 Add the description of the new gnatstub option '--no-exception'
9053 2009-04-10 Robert Dewar <dewar@adacore.com>
9055 * rtsfind.adb: Minor reformatting
9057 2009-04-10 Thomas Quinot <quinot@adacore.com>
9059 * sem_disp.adb: Minor reformatting.
9060 Add comment pointing to RM clause for the case of warning against a
9061 (failed) attempt at declaring a primitive operation elsewhere than in a
9064 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9066 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
9067 an actual for a previous formal package of the current instance.
9069 2009-04-10 Bob Duff <duff@adacore.com>
9071 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
9072 them first, rather than on the extended main unit.
9074 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9076 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
9077 specification of full view carries a null exclusion indicator, create
9078 an itype for it, to check for conformance with partial view.
9080 2009-04-10 Bob Duff <duff@adacore.com>
9082 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
9084 * rtsfind.adb: Minor comment changes, and remove useless code.
9086 * sinfo.ads: Add ??? comment.
9088 2009-04-10 Vincent Celier <celier@adacore.com>
9090 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
9092 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9094 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
9095 type is a synchronized type, retrieve tag information from the
9096 corresponding record, which has the dispatch table link.
9098 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
9100 * g-comlin.adb (Group_Analysis): Take care of switches that might be
9101 decomposed afterwards, but are present as-is in the command line
9102 configuration, and thus should be kept as-is.
9104 2009-04-10 Robert Dewar <dewar@adacore.com>
9106 * gnat_rm.texi: Document that postconditions are tested on implicit
9109 * sem_aux.adb: Minor reformatting
9111 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9113 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
9116 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
9117 Null_Exclusion_In_Return_Present when an access-to-function type has a
9118 result type with an explicit not null.
9120 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
9121 given on the result type, then create a null-excluding itype for the
9124 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
9125 the case where a null exclusion is imposed on a named access type.
9126 (Analyze_Subprogram_Specification): Push and pop the scope of the
9127 function around the call to Analyze_Return_Type in the case of no
9128 formals, for consistency with handling when formals are present
9129 (Process_Formals does this). Ensures that any itype created for the
9130 return type will be associated with the proper scope.
9132 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
9133 exclusion is given on a generic function's result type, then create a
9134 null-excluding itype for the generic function.
9135 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
9136 for an actual for a formal in object according to the setting on the
9137 formal. Ensures null exclusion checks are done when the association is
9140 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
9141 N_Access_Function_Definition.
9143 * sinfo.adb: Add Get_ and Set_ operations for
9144 Null_Exclusion_In_Return_Present.
9146 2009-04-10 Bob Duff <duff@adacore.com>
9148 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
9149 call to the _Postconditions procedure in the case of implicit returns
9150 from analysis to expansion. This eliminates some duplicated code. Use
9151 the Postcondition_Proc to find the identity of this procedure during
9154 2009-04-10 Robert Dewar <dewar@adacore.com>
9156 * sem_ch6.adb: Minor code clean up.
9158 * einfo.ads, sem_attr.adb: Minor comment fixes.
9160 2009-04-10 Robert Dewar <dewar@adacore.com>
9162 * sem_ch8.adb: Minor reformatting
9164 2009-04-10 Robert Dewar <dewar@adacore.com>
9166 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
9169 * sem_ch6.adb: Minor code clean up.
9171 2009-04-10 Robert Dewar <dewar@adacore.com>
9173 * mlib-tgt-specific-xi.adb: Minor reformatting
9175 2009-04-10 Bob Duff <duff@adacore.com>
9177 * einfo.ads: Minor comment fixes
9179 2009-04-10 Vincent Celier <celier@adacore.com>
9181 * snames.ads-tmpl: Remove names that are no longer used in the
9183 Mark specifically those that are used only in gprbuild
9185 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
9187 * init.c: Adjust EH support code on Alpha/Tru64.
9189 2009-04-10 Bob Duff <duff@adacore.com>
9191 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
9192 procedure on every path that could return implicitly (not via a return
9193 statement) from a procedure.
9195 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9197 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
9198 valid scope for a task declarations and therefore for a master id.
9200 2009-04-10 Robert Dewar <dewar@adacore.com>
9202 * sem_aux.adb: Minor reformatting
9204 2009-04-10 Vincent Celier <celier@adacore.com>
9206 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
9208 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
9209 (Set_Obsolescent_Check): New procedure to change the value of
9210 Obsolescent_Check_Flag.
9212 * scn.ads (Set_Obsolescent_Check): New procedure to control
9215 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
9216 obsolescent features while preprocessing.
9218 2009-04-10 Thomas Quinot <quinot@adacore.com>
9220 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
9221 generated files on all platforms.
9223 2009-04-10 Robert Dewar <dewar@adacore.com>
9225 * sem_aux.adb: Minor reformatting
9227 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9229 * sem_ch3.adb (Access_Definition): Handle properly the case of a
9230 protected function with formals that returns an anonymous access type.
9232 2009-04-10 Thomas Quinot <quinot@adacore.com>
9234 * sem_disp.adb: Minor reformatting
9236 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
9238 * seh_init.c: Do not use the 32-bit specific implementation of
9239 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
9242 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9244 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
9245 a '/' at the end so we better use the complete target name to determine
9246 whether it is a PowerPC 55xx target.
9248 2009-04-10 Thomas Quinot <quinot@adacore.com>
9250 * sem_eval.adb: Minor reformatting
9252 2009-04-10 Thomas Quinot <quinot@adacore.com>
9254 * snames.h, snames.ads, snames.adb: Remove files, now generated from
9257 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
9260 * xsnamest.adb: New file.
9262 * gcc-interface/Make-lang.in: New target for automated generation of
9263 snames.ads, snames.adb and snames.h
9265 2009-04-10 Tristan Gingold <gingold@adacore.com>
9267 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
9268 avoid compile time warnings.
9269 Do not add gcc/config in include search list while compiling the RTS.
9270 Pragma Thread_Local_Storage is available on any target.
9272 2009-04-10 Bob Duff <duff@adacore.com>
9274 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
9276 2009-04-10 Tristan Gingold <gingold@adacore.com>
9278 * init.c: Install signal handler on Darwin.
9280 2009-04-10 Robert Dewar <dewar@adacore.com>
9282 * sem_prag.adb: Minor reformatting
9284 * exp_util.adb (Make_Non_Empty_Check): New function
9285 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
9286 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
9288 2009-04-10 Arnaud Charlet <charlet@adacore.com>
9290 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
9292 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9294 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
9295 tool prefix for AVR and PowerPC 55xx targets.
9297 2009-04-10 Robert Dewar <dewar@adacore.com>
9299 * sem_warn.adb (Within_Postcondition): New function
9300 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
9302 2009-04-10 Robert Dewar <dewar@adacore.com>
9304 * sem_warn.adb: Minor reformatting
9306 * make.adb: Minor reformatting.
9308 2009-04-10 Gary Dismukes <dismukes@adacore.com>
9310 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
9311 entity and the scope is a subprogram, retrieve the Sloc of the
9312 subprogram's body rather than using the sloc of the spec, for better
9313 line-stepping behavior in gdb.
9314 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
9315 controller, use the Sloc of the first declaration of the containing list
9316 rather than that of the node that triggered creation of the list
9319 2009-04-10 Vincent Celier <celier@adacore.com>
9321 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
9322 to avoid gcc warning.
9324 2009-04-10 Robert Dewar <dewar@adacore.com>
9326 * g-comlin.adb: Add ??? comment
9328 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9330 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
9331 unreferenced entities for a package with no visible declarations.
9333 2009-04-10 Robert Dewar <dewar@adacore.com>
9335 * exp_ch9.adb: Minor reformatting
9337 2009-04-10 Thomas Quinot <quinot@adacore.com>
9339 * sem_prag.adb: Minor reformatting
9341 2009-04-10 Vincent Celier <celier@adacore.com>
9344 (Check_Library_Attributes): For a project qualified as a library project
9345 that is not a library project, indicate in the error message which
9346 attributes are missing (Library_Dir and/or Library_Name).
9348 2009-04-10 Bob Duff <duff@adacore.com>
9350 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
9351 generated nodes, because it might confuse various circuits in the FE.
9353 2009-04-10 Ed Schonberg <schonberg@adacore.com>
9355 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
9356 of pragma. It will be recopied and analyzed when used in call to
9359 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
9360 initialization operations and recognize use of it in procedure calls
9363 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
9364 argument, because it may have side-effects.
9366 * exp_ch2.adb: Remove obsolete comments on default functions
9368 2009-04-10 Jose Ruiz <ruiz@adacore.com>
9370 * adaint.c (RTX section): Do for RTX the same thing as we do for
9371 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
9373 2009-04-10 Robert Dewar <dewar@adacore.com>
9375 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
9377 * sem_res.adb (Resolve_Call): Fix test for
9378 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
9379 a non-dynamic scope).
9381 2009-04-10 Robert Dewar <dewar@adacore.com>
9383 * make.adb: Add comment.
9386 2009-04-10 Nicolas Setton <setton@adacore.com>
9388 * s-osprim-darwin.adb: New file.
9390 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
9392 2009-04-10 Thomas Quinot <quinot@adacore.com>
9394 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
9396 2009-04-09 Nick Clifton <nickc@redhat.com>
9398 * adadecode.h: Change copyright header to refer to version
9399 3 of the GNU General Public License with version 3.1 of the
9400 GCC Runtime Library Exception and to point readers at the
9401 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
9403 * 9drpc.adb: Likewise.
9404 * a-assert.adb: Likewise.
9405 * a-astaco.adb: Likewise.
9406 * a-calari.adb: Likewise.
9407 * a-calcon.adb: Likewise.
9408 * a-calcon.ads: Likewise.
9409 * a-caldel.ads: Likewise.
9410 * a-calend-vms.adb: Likewise.
9411 * a-calend-vms.ads: Likewise.
9412 * a-calend.adb: Likewise.
9413 * a-calend.ads: Likewise.
9414 * a-calfor.adb: Likewise.
9415 * a-catizo.adb: Likewise.
9416 * a-cdlili.adb: Likewise.
9417 * a-cdlili.ads: Likewise.
9418 * a-cgaaso.adb: Likewise.
9419 * a-cgaaso.ads: Likewise.
9420 * a-cgarso.adb: Likewise.
9421 * a-cgcaso.adb: Likewise.
9422 * a-chacon.adb: Likewise.
9423 * a-chacon.ads: Likewise.
9424 * a-chahan.adb: Likewise.
9425 * a-chahan.ads: Likewise.
9426 * a-chlat9.ads: Likewise.
9427 * a-chtgke.adb: Likewise.
9428 * a-chtgke.ads: Likewise.
9429 * a-chtgop.adb: Likewise.
9430 * a-chtgop.ads: Likewise.
9431 * a-chzla1.ads: Likewise.
9432 * a-chzla9.ads: Likewise.
9433 * a-cidlli.adb: Likewise.
9434 * a-cidlli.ads: Likewise.
9435 * a-cihama.adb: Likewise.
9436 * a-cihama.ads: Likewise.
9437 * a-cihase.adb: Likewise.
9438 * a-cihase.ads: Likewise.
9439 * a-ciorma.adb: Likewise.
9440 * a-ciorma.ads: Likewise.
9441 * a-ciormu.adb: Likewise.
9442 * a-ciormu.ads: Likewise.
9443 * a-ciorse.adb: Likewise.
9444 * a-ciorse.ads: Likewise.
9445 * a-clrefi.adb: Likewise.
9446 * a-clrefi.ads: Likewise.
9447 * a-cohama.adb: Likewise.
9448 * a-cohama.ads: Likewise.
9449 * a-cohase.adb: Likewise.
9450 * a-cohase.ads: Likewise.
9451 * a-cohata.ads: Likewise.
9452 * a-coinve.adb: Likewise.
9453 * a-coinve.ads: Likewise.
9454 * a-colien.adb: Likewise.
9455 * a-colien.ads: Likewise.
9456 * a-colire.adb: Likewise.
9457 * a-colire.ads: Likewise.
9458 * a-comlin.adb: Likewise.
9459 * a-comlin.ads: Likewise.
9460 * a-convec.adb: Likewise.
9461 * a-convec.ads: Likewise.
9462 * a-coorma.adb: Likewise.
9463 * a-coorma.ads: Likewise.
9464 * a-coormu.adb: Likewise.
9465 * a-coormu.ads: Likewise.
9466 * a-coorse.adb: Likewise.
9467 * a-coorse.ads: Likewise.
9468 * a-coprnu.adb: Likewise.
9469 * a-coprnu.ads: Likewise.
9470 * a-crbltr.ads: Likewise.
9471 * a-crbtgk.adb: Likewise.
9472 * a-crbtgk.ads: Likewise.
9473 * a-crbtgo.adb: Likewise.
9474 * a-crbtgo.ads: Likewise.
9475 * a-crdlli.adb: Likewise.
9476 * a-crdlli.ads: Likewise.
9477 * a-cwila1.ads: Likewise.
9478 * a-cwila9.ads: Likewise.
9479 * a-decima.adb: Likewise.
9480 * a-decima.ads: Likewise.
9481 * a-diocst.adb: Likewise.
9482 * a-diocst.ads: Likewise.
9483 * a-direct.adb: Likewise.
9484 * a-direct.ads: Likewise.
9485 * a-direio.adb: Likewise.
9486 * a-direio.ads: Likewise.
9487 * a-dirval-mingw.adb: Likewise.
9488 * a-dirval-vms.adb: Likewise.
9489 * a-dirval.adb: Likewise.
9490 * a-dirval.ads: Likewise.
9491 * a-dynpri.adb: Likewise.
9492 * a-einuoc.adb: Likewise.
9493 * a-einuoc.ads: Likewise.
9494 * a-elchha.adb: Likewise.
9495 * a-elchha.ads: Likewise.
9496 * a-envvar.adb: Likewise.
9497 * a-excach.adb: Likewise.
9498 * a-except-2005.adb: Likewise.
9499 * a-except-2005.ads: Likewise.
9500 * a-except.adb: Likewise.
9501 * a-except.ads: Likewise.
9502 * a-excpol-abort.adb: Likewise.
9503 * a-excpol.adb: Likewise.
9504 * a-exctra.adb: Likewise.
9505 * a-exctra.ads: Likewise.
9506 * a-exetim-mingw.adb: Likewise.
9507 * a-exetim-mingw.ads: Likewise.
9508 * a-exexda.adb: Likewise.
9509 * a-exexpr-gcc.adb: Likewise.
9510 * a-exexpr.adb: Likewise.
9511 * a-exextr.adb: Likewise.
9512 * a-exstat.adb: Likewise.
9513 * a-filico.adb: Likewise.
9514 * a-filico.ads: Likewise.
9515 * a-finali.adb: Likewise.
9516 * a-finali.ads: Likewise.
9517 * a-interr.ads: Likewise.
9518 * a-intnam-aix.ads: Likewise.
9519 * a-intnam-darwin.ads: Likewise.
9520 * a-intnam-dummy.ads: Likewise.
9521 * a-intnam-freebsd.ads: Likewise.
9522 * a-intnam-hpux.ads: Likewise.
9523 * a-intnam-irix.ads: Likewise.
9524 * a-intnam-linux.ads: Likewise.
9525 * a-intnam-lynxos.ads: Likewise.
9526 * a-intnam-mingw.ads: Likewise.
9527 * a-intnam-rtems.ads: Likewise.
9528 * a-intnam-solaris.ads: Likewise.
9529 * a-intnam-tru64.ads: Likewise.
9530 * a-intnam-vms.ads: Likewise.
9531 * a-intnam-vxworks.ads: Likewise.
9532 * a-intsig.adb: Likewise.
9533 * a-intsig.ads: Likewise.
9534 * a-ngcefu.adb: Likewise.
9535 * a-ngcoar.adb: Likewise.
9536 * a-ngcoty.adb: Likewise.
9537 * a-ngcoty.ads: Likewise.
9538 * a-ngelfu.adb: Likewise.
9539 * a-ngrear.adb: Likewise.
9540 * a-ngrear.ads: Likewise.
9541 * a-nudira.adb: Likewise.
9542 * a-nudira.ads: Likewise.
9543 * a-nuflra.adb: Likewise.
9544 * a-nuflra.ads: Likewise.
9545 * a-numaux-darwin.adb: Likewise.
9546 * a-numaux-darwin.ads: Likewise.
9547 * a-numaux-libc-x86.ads: Likewise.
9548 * a-numaux-vxworks.ads: Likewise.
9549 * a-numaux-x86.adb: Likewise.
9550 * a-numaux-x86.ads: Likewise.
9551 * a-numaux.ads: Likewise.
9552 * a-rbtgso.adb: Likewise.
9553 * a-rbtgso.ads: Likewise.
9554 * a-reatim.ads: Likewise.
9555 * a-retide.adb: Likewise.
9556 * a-retide.ads: Likewise.
9557 * a-rttiev.adb: Likewise.
9558 * a-rttiev.ads: Likewise.
9559 * a-secain.adb: Likewise.
9560 * a-secain.ads: Likewise.
9561 * a-sequio.adb: Likewise.
9562 * a-sequio.ads: Likewise.
9563 * a-shcain.adb: Likewise.
9564 * a-shcain.ads: Likewise.
9565 * a-siocst.adb: Likewise.
9566 * a-siocst.ads: Likewise.
9567 * a-slcain.adb: Likewise.
9568 * a-slcain.ads: Likewise.
9569 * a-ssicst.adb: Likewise.
9570 * a-ssicst.ads: Likewise.
9571 * a-stboha.adb: Likewise.
9572 * a-stmaco.ads: Likewise.
9573 * a-storio.adb: Likewise.
9574 * a-strbou.adb: Likewise.
9575 * a-strbou.ads: Likewise.
9576 * a-stream.ads: Likewise.
9577 * a-strfix.adb: Likewise.
9578 * a-strhas.adb: Likewise.
9579 * a-strmap.adb: Likewise.
9580 * a-strmap.ads: Likewise.
9581 * a-strsea.adb: Likewise.
9582 * a-strsea.ads: Likewise.
9583 * a-strsup.adb: Likewise.
9584 * a-strsup.ads: Likewise.
9585 * a-strunb.adb: Likewise.
9586 * a-strunb.ads: Likewise.
9587 * a-ststio.adb: Likewise.
9588 * a-ststio.ads: Likewise.
9589 * a-stunau.adb: Likewise.
9590 * a-stunau.ads: Likewise.
9591 * a-stunha.adb: Likewise.
9592 * a-stwibo.adb: Likewise.
9593 * a-stwibo.ads: Likewise.
9594 * a-stwifi.adb: Likewise.
9595 * a-stwiha.adb: Likewise.
9596 * a-stwima.adb: Likewise.
9597 * a-stwima.ads: Likewise.
9598 * a-stwise.adb: Likewise.
9599 * a-stwise.ads: Likewise.
9600 * a-stwisu.adb: Likewise.
9601 * a-stwisu.ads: Likewise.
9602 * a-stwiun.adb: Likewise.
9603 * a-stwiun.ads: Likewise.
9604 * a-stzbou.adb: Likewise.
9605 * a-stzbou.ads: Likewise.
9606 * a-stzfix.adb: Likewise.
9607 * a-stzhas.adb: Likewise.
9608 * a-stzmap.adb: Likewise.
9609 * a-stzmap.ads: Likewise.
9610 * a-stzsea.adb: Likewise.
9611 * a-stzsea.ads: Likewise.
9612 * a-stzsup.adb: Likewise.
9613 * a-stzsup.ads: Likewise.
9614 * a-stzunb.adb: Likewise.
9615 * a-stzunb.ads: Likewise.
9616 * a-suteio.adb: Likewise.
9617 * a-suteio.ads: Likewise.
9618 * a-swbwha.adb: Likewise.
9619 * a-swmwco.ads: Likewise.
9620 * a-swunau.adb: Likewise.
9621 * a-swunau.ads: Likewise.
9622 * a-swuwha.adb: Likewise.
9623 * a-swuwti.adb: Likewise.
9624 * a-swuwti.ads: Likewise.
9625 * a-sytaco.adb: Likewise.
9626 * a-sytaco.ads: Likewise.
9627 * a-szbzha.adb: Likewise.
9628 * a-szmzco.ads: Likewise.
9629 * a-szunau.adb: Likewise.
9630 * a-szunau.ads: Likewise.
9631 * a-szuzha.adb: Likewise.
9632 * a-szuzti.adb: Likewise.
9633 * a-szuzti.ads: Likewise.
9634 * a-tags.adb: Likewise.
9635 * a-tags.ads: Likewise.
9636 * a-tasatt.ads: Likewise.
9637 * a-taside.adb: Likewise.
9638 * a-taside.ads: Likewise.
9639 * a-taster.adb: Likewise.
9640 * a-teioed.adb: Likewise.
9641 * a-teioed.ads: Likewise.
9642 * a-textio.adb: Likewise.
9643 * a-textio.ads: Likewise.
9644 * a-tiboio.adb: Likewise.
9645 * a-ticoau.adb: Likewise.
9646 * a-ticoau.ads: Likewise.
9647 * a-ticoio.adb: Likewise.
9648 * a-ticoio.ads: Likewise.
9649 * a-tideau.adb: Likewise.
9650 * a-tideau.ads: Likewise.
9651 * a-tideio.adb: Likewise.
9652 * a-tideio.ads: Likewise.
9653 * a-tienau.adb: Likewise.
9654 * a-tienau.ads: Likewise.
9655 * a-tienio.adb: Likewise.
9656 * a-tienio.ads: Likewise.
9657 * a-tifiio.adb: Likewise.
9658 * a-tifiio.ads: Likewise.
9659 * a-tiflau.adb: Likewise.
9660 * a-tiflau.ads: Likewise.
9661 * a-tiflio.adb: Likewise.
9662 * a-tiflio.ads: Likewise.
9663 * a-tigeau.adb: Likewise.
9664 * a-tigeau.ads: Likewise.
9665 * a-tiinau.adb: Likewise.
9666 * a-tiinau.ads: Likewise.
9667 * a-tiinio.adb: Likewise.
9668 * a-tiinio.ads: Likewise.
9669 * a-timoau.adb: Likewise.
9670 * a-timoau.ads: Likewise.
9671 * a-timoio.adb: Likewise.
9672 * a-timoio.ads: Likewise.
9673 * a-tiocst.adb: Likewise.
9674 * a-tiocst.ads: Likewise.
9675 * a-titest.adb: Likewise.
9676 * a-wichun.adb: Likewise.
9677 * a-wichun.ads: Likewise.
9678 * a-witeio.adb: Likewise.
9679 * a-witeio.ads: Likewise.
9680 * a-wtcoau.adb: Likewise.
9681 * a-wtcoau.ads: Likewise.
9682 * a-wtcoio.adb: Likewise.
9683 * a-wtcstr.adb: Likewise.
9684 * a-wtcstr.ads: Likewise.
9685 * a-wtdeau.adb: Likewise.
9686 * a-wtdeau.ads: Likewise.
9687 * a-wtdeio.adb: Likewise.
9688 * a-wtdeio.ads: Likewise.
9689 * a-wtedit.adb: Likewise.
9690 * a-wtedit.ads: Likewise.
9691 * a-wtenau.adb: Likewise.
9692 * a-wtenau.ads: Likewise.
9693 * a-wtenio.adb: Likewise.
9694 * a-wtenio.ads: Likewise.
9695 * a-wtfiio.adb: Likewise.
9696 * a-wtfiio.ads: Likewise.
9697 * a-wtflau.adb: Likewise.
9698 * a-wtflau.ads: Likewise.
9699 * a-wtflio.adb: Likewise.
9700 * a-wtflio.ads: Likewise.
9701 * a-wtgeau.adb: Likewise.
9702 * a-wtgeau.ads: Likewise.
9703 * a-wtinau.adb: Likewise.
9704 * a-wtinau.ads: Likewise.
9705 * a-wtinio.adb: Likewise.
9706 * a-wtmoau.adb: Likewise.
9707 * a-wtmoau.ads: Likewise.
9708 * a-wtmoio.adb: Likewise.
9709 * a-wtmoio.ads: Likewise.
9710 * a-wttest.adb: Likewise.
9711 * a-wwboio.adb: Likewise.
9712 * a-zchuni.adb: Likewise.
9713 * a-zchuni.ads: Likewise.
9714 * a-ztcoau.adb: Likewise.
9715 * a-ztcoau.ads: Likewise.
9716 * a-ztcoio.adb: Likewise.
9717 * a-ztcstr.adb: Likewise.
9718 * a-ztcstr.ads: Likewise.
9719 * a-ztdeau.adb: Likewise.
9720 * a-ztdeau.ads: Likewise.
9721 * a-ztdeio.adb: Likewise.
9722 * a-ztdeio.ads: Likewise.
9723 * a-ztedit.adb: Likewise.
9724 * a-ztedit.ads: Likewise.
9725 * a-ztenau.adb: Likewise.
9726 * a-ztenau.ads: Likewise.
9727 * a-ztenio.adb: Likewise.
9728 * a-ztenio.ads: Likewise.
9729 * a-ztexio.adb: Likewise.
9730 * a-ztexio.ads: Likewise.
9731 * a-ztfiio.adb: Likewise.
9732 * a-ztfiio.ads: Likewise.
9733 * a-ztflau.adb: Likewise.
9734 * a-ztflau.ads: Likewise.
9735 * a-ztflio.adb: Likewise.
9736 * a-ztflio.ads: Likewise.
9737 * a-ztgeau.adb: Likewise.
9738 * a-ztgeau.ads: Likewise.
9739 * a-ztinau.adb: Likewise.
9740 * a-ztinau.ads: Likewise.
9741 * a-ztinio.adb: Likewise.
9742 * a-ztmoau.adb: Likewise.
9743 * a-ztmoau.ads: Likewise.
9744 * a-ztmoio.adb: Likewise.
9745 * a-ztmoio.ads: Likewise.
9746 * a-zttest.adb: Likewise.
9747 * a-zzboio.adb: Likewise.
9748 * adadecode.c: Likewise.
9749 * adaint.c: Likewise.
9750 * adaint.h: Likewise.
9751 * alloc.ads: Likewise.
9753 * arit64.c: Likewise.
9754 * atree.adb: Likewise.
9755 * atree.ads: Likewise.
9756 * aux-io.c: Likewise.
9758 * casing.adb: Likewise.
9759 * casing.ads: Likewise.
9761 * csets.adb: Likewise.
9762 * csets.ads: Likewise.
9763 * cstreams.c: Likewise.
9764 * ctrl_c.c: Likewise.
9765 * debug.adb: Likewise.
9766 * debug.ads: Likewise.
9767 * dec.ads: Likewise.
9768 * einfo.adb: Likewise.
9769 * einfo.ads: Likewise.
9770 * elists.adb: Likewise.
9771 * elists.ads: Likewise.
9774 * errno.c: Likewise.
9777 * final.c: Likewise.
9778 * fname.adb: Likewise.
9779 * fname.ads: Likewise.
9780 * g-allein.ads: Likewise.
9781 * g-alleve.adb: Likewise.
9782 * g-alleve.ads: Likewise.
9783 * g-altcon.adb: Likewise.
9784 * g-altcon.ads: Likewise.
9785 * g-altive.ads: Likewise.
9786 * g-alveop.adb: Likewise.
9787 * g-alveop.ads: Likewise.
9788 * g-alvety.ads: Likewise.
9789 * g-alvevi.ads: Likewise.
9790 * g-arrspl.adb: Likewise.
9791 * g-arrspl.ads: Likewise.
9792 * g-calend.ads: Likewise.
9793 * g-comlin.adb: Likewise.
9794 * g-debpoo.adb: Likewise.
9795 * g-debpoo.ads: Likewise.
9796 * g-eacodu-vms.adb: Likewise.
9797 * g-eacodu.adb: Likewise.
9798 * g-excact.adb: Likewise.
9799 * g-excact.ads: Likewise.
9800 * g-locfil.adb: Likewise.
9801 * g-os_lib.ads: Likewise.
9802 * g-rannum.adb: Likewise.
9803 * g-rannum.ads: Likewise.
9804 * g-regist.adb: Likewise.
9805 * g-regist.ads: Likewise.
9806 * g-signal.adb: Likewise.
9807 * g-signal.ads: Likewise.
9808 * g-soccon.ads: Likewise.
9809 * g-string.adb: Likewise.
9810 * g-string.ads: Likewise.
9811 * g-strspl.ads: Likewise.
9812 * g-timsta.adb: Likewise.
9813 * g-timsta.ads: Likewise.
9814 * g-trasym-vms-alpha.adb: Likewise.
9815 * g-trasym-vms-ia64.adb: Likewise.
9816 * g-utf_32.adb: Likewise.
9817 * g-utf_32.ads: Likewise.
9818 * g-wistsp.ads: Likewise.
9819 * g-zstspl.ads: Likewise.
9821 * gnatvsn.adb: Likewise.
9822 * gnatvsn.ads: Likewise.
9823 * gsocket.h: Likewise.
9824 * hostparm.ads: Likewise.
9825 * i-c.adb: Likewise.
9826 * i-cexten.ads: Likewise.
9827 * i-cobol.adb: Likewise.
9828 * i-cobol.ads: Likewise.
9829 * i-cpoint.adb: Likewise.
9830 * i-cpoint.ads: Likewise.
9831 * i-cpp.adb: Likewise.
9832 * i-cpp.ads: Likewise.
9833 * i-cstrea-vms.adb: Likewise.
9834 * i-cstrea.adb: Likewise.
9835 * i-cstrea.ads: Likewise.
9836 * i-cstrin.adb: Likewise.
9837 * i-cstrin.ads: Likewise.
9838 * i-forbla-darwin.adb: Likewise.
9839 * i-forbla-unimplemented.ads: Likewise.
9840 * i-forbla.adb: Likewise.
9841 * i-forbla.ads: Likewise.
9842 * i-forlap.ads: Likewise.
9843 * i-fortra.adb: Likewise.
9844 * i-pacdec.adb: Likewise.
9845 * i-pacdec.ads: Likewise.
9846 * i-vxwoio.adb: Likewise.
9847 * i-vxwoio.ads: Likewise.
9848 * indepsw-aix.adb: Likewise.
9849 * indepsw-gnu.adb: Likewise.
9850 * indepsw-mingw.adb: Likewise.
9851 * indepsw.adb: Likewise.
9852 * indepsw.ads: Likewise.
9854 * initialize.c: Likewise.
9855 * interfac.ads: Likewise.
9856 * krunch.adb: Likewise.
9857 * krunch.ads: Likewise.
9858 * lib-list.adb: Likewise.
9859 * lib-sort.adb: Likewise.
9860 * lib.adb: Likewise.
9861 * lib.ads: Likewise.
9863 * math_lib.adb: Likewise.
9864 * memtrack.adb: Likewise.
9865 * mingw32.h: Likewise.
9866 * mkdir.c: Likewise.
9867 * namet-sp.adb: Likewise.
9868 * namet-sp.ads: Likewise.
9869 * namet.adb: Likewise.
9870 * namet.ads: Likewise.
9871 * nlists.adb: Likewise.
9872 * nlists.ads: Likewise.
9873 * opt.adb: Likewise.
9874 * opt.ads: Likewise.
9875 * output.adb: Likewise.
9876 * output.ads: Likewise.
9877 * raise-gcc.c: Likewise.
9878 * raise.c: Likewise.
9879 * raise.h: Likewise.
9880 * repinfo.adb: Likewise.
9881 * repinfo.ads: Likewise.
9882 * repinfo.h: Likewise.
9883 * rident.ads: Likewise.
9884 * s-addima.adb: Likewise.
9885 * s-addima.ads: Likewise.
9886 * s-addope.adb: Likewise.
9887 * s-addope.ads: Likewise.
9888 * s-arit64.adb: Likewise.
9889 * s-arit64.ads: Likewise.
9890 * s-assert.adb: Likewise.
9891 * s-assert.ads: Likewise.
9892 * s-asthan-vms-alpha.adb: Likewise.
9893 * s-asthan.adb: Likewise.
9894 * s-asthan.ads: Likewise.
9895 * s-atacco.adb: Likewise.
9896 * s-atacco.ads: Likewise.
9897 * s-auxdec-empty.adb: Likewise.
9898 * s-auxdec-empty.ads: Likewise.
9899 * s-auxdec-vms_64.ads: Likewise.
9900 * s-auxdec.adb: Likewise.
9901 * s-auxdec.ads: Likewise.
9902 * s-bitops.adb: Likewise.
9903 * s-bitops.ads: Likewise.
9904 * s-boarop.ads: Likewise.
9905 * s-carsi8.adb: Likewise.
9906 * s-carsi8.ads: Likewise.
9907 * s-carun8.adb: Likewise.
9908 * s-carun8.ads: Likewise.
9909 * s-casi16.adb: Likewise.
9910 * s-casi16.ads: Likewise.
9911 * s-casi32.adb: Likewise.
9912 * s-casi32.ads: Likewise.
9913 * s-casi64.adb: Likewise.
9914 * s-casi64.ads: Likewise.
9915 * s-casuti.ads: Likewise.
9916 * s-caun16.adb: Likewise.
9917 * s-caun16.ads: Likewise.
9918 * s-caun32.adb: Likewise.
9919 * s-caun32.ads: Likewise.
9920 * s-caun64.adb: Likewise.
9921 * s-caun64.ads: Likewise.
9922 * s-chepoo.ads: Likewise.
9923 * s-crc32.adb: Likewise.
9924 * s-crc32.ads: Likewise.
9925 * s-crtl.ads: Likewise.
9926 * s-direio.adb: Likewise.
9927 * s-direio.ads: Likewise.
9928 * s-dsaser.ads: Likewise.
9929 * s-except.adb: Likewise.
9930 * s-except.ads: Likewise.
9931 * s-exctab.adb: Likewise.
9932 * s-exctab.ads: Likewise.
9933 * s-exnint.adb: Likewise.
9934 * s-exnint.ads: Likewise.
9935 * s-exnllf.adb: Likewise.
9936 * s-exnllf.ads: Likewise.
9937 * s-exnlli.adb: Likewise.
9938 * s-exnlli.ads: Likewise.
9939 * s-expint.adb: Likewise.
9940 * s-expint.ads: Likewise.
9941 * s-explli.adb: Likewise.
9942 * s-explli.ads: Likewise.
9943 * s-expllu.adb: Likewise.
9944 * s-expllu.ads: Likewise.
9945 * s-expmod.adb: Likewise.
9946 * s-expmod.ads: Likewise.
9947 * s-expuns.adb: Likewise.
9948 * s-expuns.ads: Likewise.
9949 * s-fatflt.ads: Likewise.
9950 * s-fatgen.adb: Likewise.
9951 * s-fatgen.ads: Likewise.
9952 * s-fatlfl.ads: Likewise.
9953 * s-fatllf.ads: Likewise.
9954 * s-fatsfl.ads: Likewise.
9955 * s-ficobl.ads: Likewise.
9956 * s-fileio.adb: Likewise.
9957 * s-fileio.ads: Likewise.
9958 * s-filofl.ads: Likewise.
9959 * s-finimp.adb: Likewise.
9960 * s-finimp.ads: Likewise.
9961 * s-finroo.adb: Likewise.
9962 * s-finroo.ads: Likewise.
9963 * s-fishfl.ads: Likewise.
9964 * s-fore.adb: Likewise.
9965 * s-fore.ads: Likewise.
9966 * s-fvadfl.ads: Likewise.
9967 * s-fvaffl.ads: Likewise.
9968 * s-fvagfl.ads: Likewise.
9969 * s-gearop.adb: Likewise.
9970 * s-gearop.ads: Likewise.
9971 * s-gecobl.adb: Likewise.
9972 * s-gecobl.ads: Likewise.
9973 * s-gecola.adb: Likewise.
9974 * s-gecola.ads: Likewise.
9975 * s-gerebl.adb: Likewise.
9976 * s-gerebl.ads: Likewise.
9977 * s-gerela.adb: Likewise.
9978 * s-gerela.ads: Likewise.
9979 * s-geveop.adb: Likewise.
9980 * s-geveop.ads: Likewise.
9981 * s-gloloc.adb: Likewise.
9982 * s-gloloc.ads: Likewise.
9983 * s-hibaen.ads: Likewise.
9984 * s-imenne.adb: Likewise.
9985 * s-imenne.ads: Likewise.
9986 * s-imgbiu.adb: Likewise.
9987 * s-imgbiu.ads: Likewise.
9988 * s-imgboo.adb: Likewise.
9989 * s-imgboo.ads: Likewise.
9990 * s-imgcha.adb: Likewise.
9991 * s-imgcha.ads: Likewise.
9992 * s-imgdec.adb: Likewise.
9993 * s-imgdec.ads: Likewise.
9994 * s-imgenu.adb: Likewise.
9995 * s-imgenu.ads: Likewise.
9996 * s-imgint.adb: Likewise.
9997 * s-imgint.ads: Likewise.
9998 * s-imgllb.adb: Likewise.
9999 * s-imgllb.ads: Likewise.
10000 * s-imglld.adb: Likewise.
10001 * s-imglld.ads: Likewise.
10002 * s-imglli.adb: Likewise.
10003 * s-imglli.ads: Likewise.
10004 * s-imgllu.adb: Likewise.
10005 * s-imgllu.ads: Likewise.
10006 * s-imgllw.adb: Likewise.
10007 * s-imgllw.ads: Likewise.
10008 * s-imgrea.adb: Likewise.
10009 * s-imgrea.ads: Likewise.
10010 * s-imguns.adb: Likewise.
10011 * s-imguns.ads: Likewise.
10012 * s-imgwch.adb: Likewise.
10013 * s-imgwch.ads: Likewise.
10014 * s-imgwiu.adb: Likewise.
10015 * s-imgwiu.ads: Likewise.
10016 * s-inmaop-dummy.adb: Likewise.
10017 * s-inmaop-vms.adb: Likewise.
10018 * s-inmaop.ads: Likewise.
10019 * s-interr-hwint.adb: Likewise.
10020 * s-interr-sigaction.adb: Likewise.
10021 * s-interr-vms.adb: Likewise.
10022 * s-interr.adb: Likewise.
10023 * s-interr.ads: Likewise.
10024 * s-intman-dummy.adb: Likewise.
10025 * s-intman-mingw.adb: Likewise.
10026 * s-intman-posix.adb: Likewise.
10027 * s-intman-solaris.adb: Likewise.
10028 * s-intman-vms.adb: Likewise.
10029 * s-intman-vms.ads: Likewise.
10030 * s-intman-vxworks.adb: Likewise.
10031 * s-intman-vxworks.ads: Likewise.
10032 * s-intman.ads: Likewise.
10033 * s-io.adb: Likewise.
10034 * s-io.ads: Likewise.
10035 * s-linux-alpha.ads: Likewise.
10036 * s-linux-hppa.ads: Likewise.
10037 * s-linux.ads: Likewise.
10038 * s-maccod.ads: Likewise.
10039 * s-mantis.adb: Likewise.
10040 * s-mantis.ads: Likewise.
10041 * s-mastop-irix.adb: Likewise.
10042 * s-mastop.adb: Likewise.
10043 * s-mastop.ads: Likewise.
10044 * s-memcop.ads: Likewise.
10045 * s-memory-mingw.adb: Likewise.
10046 * s-memory.adb: Likewise.
10047 * s-memory.ads: Likewise.
10048 * s-os_lib.ads: Likewise.
10049 * s-oscons-tmplt.c: Likewise.
10050 * s-osinte-aix.adb: Likewise.
10051 * s-osinte-darwin.adb: Likewise.
10052 * s-osinte-freebsd.adb: Likewise.
10053 * s-osinte-irix.adb: Likewise.
10054 * s-osinte-lynxos-3.adb: Likewise.
10055 * s-osinte-rtems.ads: Likewise.
10056 * s-osinte-tru64.adb: Likewise.
10057 * s-osinte-vxworks-kernel.adb: Likewise.
10058 * s-osinte-vxworks.adb: Likewise.
10059 * s-osprim-mingw.adb: Likewise.
10060 * s-osprim-posix.adb: Likewise.
10061 * s-osprim-solaris.adb: Likewise.
10062 * s-osprim-unix.adb: Likewise.
10063 * s-osprim-vms.adb: Likewise.
10064 * s-osprim-vms.ads: Likewise.
10065 * s-osprim-vxworks.adb: Likewise.
10066 * s-osprim.ads: Likewise.
10067 * s-pack03.adb: Likewise.
10068 * s-pack03.ads: Likewise.
10069 * s-pack05.adb: Likewise.
10070 * s-pack05.ads: Likewise.
10071 * s-pack06.adb: Likewise.
10072 * s-pack06.ads: Likewise.
10073 * s-pack07.adb: Likewise.
10074 * s-pack07.ads: Likewise.
10075 * s-pack09.adb: Likewise.
10076 * s-pack09.ads: Likewise.
10077 * s-pack10.adb: Likewise.
10078 * s-pack10.ads: Likewise.
10079 * s-pack11.adb: Likewise.
10080 * s-pack11.ads: Likewise.
10081 * s-pack12.adb: Likewise.
10082 * s-pack12.ads: Likewise.
10083 * s-pack13.adb: Likewise.
10084 * s-pack13.ads: Likewise.
10085 * s-pack14.adb: Likewise.
10086 * s-pack14.ads: Likewise.
10087 * s-pack15.adb: Likewise.
10088 * s-pack15.ads: Likewise.
10089 * s-pack17.adb: Likewise.
10090 * s-pack17.ads: Likewise.
10091 * s-pack18.adb: Likewise.
10092 * s-pack18.ads: Likewise.
10093 * s-pack19.adb: Likewise.
10094 * s-pack19.ads: Likewise.
10095 * s-pack20.adb: Likewise.
10096 * s-pack20.ads: Likewise.
10097 * s-pack21.adb: Likewise.
10098 * s-pack21.ads: Likewise.
10099 * s-pack22.adb: Likewise.
10100 * s-pack22.ads: Likewise.
10101 * s-pack23.adb: Likewise.
10102 * s-pack23.ads: Likewise.
10103 * s-pack24.adb: Likewise.
10104 * s-pack24.ads: Likewise.
10105 * s-pack25.adb: Likewise.
10106 * s-pack25.ads: Likewise.
10107 * s-pack26.adb: Likewise.
10108 * s-pack26.ads: Likewise.
10109 * s-pack27.adb: Likewise.
10110 * s-pack27.ads: Likewise.
10111 * s-pack28.adb: Likewise.
10112 * s-pack28.ads: Likewise.
10113 * s-pack29.adb: Likewise.
10114 * s-pack29.ads: Likewise.
10115 * s-pack30.adb: Likewise.
10116 * s-pack30.ads: Likewise.
10117 * s-pack31.adb: Likewise.
10118 * s-pack31.ads: Likewise.
10119 * s-pack33.adb: Likewise.
10120 * s-pack33.ads: Likewise.
10121 * s-pack34.adb: Likewise.
10122 * s-pack34.ads: Likewise.
10123 * s-pack35.adb: Likewise.
10124 * s-pack35.ads: Likewise.
10125 * s-pack36.adb: Likewise.
10126 * s-pack36.ads: Likewise.
10127 * s-pack37.adb: Likewise.
10128 * s-pack37.ads: Likewise.
10129 * s-pack38.adb: Likewise.
10130 * s-pack38.ads: Likewise.
10131 * s-pack39.adb: Likewise.
10132 * s-pack39.ads: Likewise.
10133 * s-pack40.adb: Likewise.
10134 * s-pack40.ads: Likewise.
10135 * s-pack41.adb: Likewise.
10136 * s-pack41.ads: Likewise.
10137 * s-pack42.adb: Likewise.
10138 * s-pack42.ads: Likewise.
10139 * s-pack43.adb: Likewise.
10140 * s-pack43.ads: Likewise.
10141 * s-pack44.adb: Likewise.
10142 * s-pack44.ads: Likewise.
10143 * s-pack45.adb: Likewise.
10144 * s-pack45.ads: Likewise.
10145 * s-pack46.adb: Likewise.
10146 * s-pack46.ads: Likewise.
10147 * s-pack47.adb: Likewise.
10148 * s-pack47.ads: Likewise.
10149 * s-pack48.adb: Likewise.
10150 * s-pack48.ads: Likewise.
10151 * s-pack49.adb: Likewise.
10152 * s-pack49.ads: Likewise.
10153 * s-pack50.adb: Likewise.
10154 * s-pack50.ads: Likewise.
10155 * s-pack51.adb: Likewise.
10156 * s-pack51.ads: Likewise.
10157 * s-pack52.adb: Likewise.
10158 * s-pack52.ads: Likewise.
10159 * s-pack53.adb: Likewise.
10160 * s-pack53.ads: Likewise.
10161 * s-pack54.adb: Likewise.
10162 * s-pack54.ads: Likewise.
10163 * s-pack55.adb: Likewise.
10164 * s-pack55.ads: Likewise.
10165 * s-pack56.adb: Likewise.
10166 * s-pack56.ads: Likewise.
10167 * s-pack57.adb: Likewise.
10168 * s-pack57.ads: Likewise.
10169 * s-pack58.adb: Likewise.
10170 * s-pack58.ads: Likewise.
10171 * s-pack59.adb: Likewise.
10172 * s-pack59.ads: Likewise.
10173 * s-pack60.adb: Likewise.
10174 * s-pack60.ads: Likewise.
10175 * s-pack61.adb: Likewise.
10176 * s-pack61.ads: Likewise.
10177 * s-pack62.adb: Likewise.
10178 * s-pack62.ads: Likewise.
10179 * s-pack63.adb: Likewise.
10180 * s-pack63.ads: Likewise.
10181 * s-parame-ae653.ads: Likewise.
10182 * s-parame-hpux.ads: Likewise.
10183 * s-parame-rtems.adb: Likewise.
10184 * s-parame-vms-alpha.ads: Likewise.
10185 * s-parame-vms-ia64.ads: Likewise.
10186 * s-parame-vms-restrict.ads: Likewise.
10187 * s-parame-vxworks.adb: Likewise.
10188 * s-parame-vxworks.ads: Likewise.
10189 * s-parame.adb: Likewise.
10190 * s-parame.ads: Likewise.
10191 * s-parint.adb: Likewise.
10192 * s-parint.ads: Likewise.
10193 * s-pooglo.adb: Likewise.
10194 * s-pooglo.ads: Likewise.
10195 * s-pooloc.adb: Likewise.
10196 * s-pooloc.ads: Likewise.
10197 * s-poosiz.adb: Likewise.
10198 * s-poosiz.ads: Likewise.
10199 * s-powtab.ads: Likewise.
10200 * s-proinf-irix-athread.adb: Likewise.
10201 * s-proinf-irix-athread.ads: Likewise.
10202 * s-proinf.adb: Likewise.
10203 * s-proinf.ads: Likewise.
10204 * s-purexc.ads: Likewise.
10205 * s-rannum.adb: Likewise.
10206 * s-rannum.ads: Likewise.
10207 * s-restri.adb: Likewise.
10208 * s-restri.ads: Likewise.
10209 * s-rident.ads: Likewise.
10210 * s-rpc.adb: Likewise.
10211 * s-rpc.ads: Likewise.
10212 * s-scaval.adb: Likewise.
10213 * s-scaval.ads: Likewise.
10214 * s-secsta.adb: Likewise.
10215 * s-secsta.ads: Likewise.
10216 * s-sequio.adb: Likewise.
10217 * s-sequio.ads: Likewise.
10218 * s-shasto.adb: Likewise.
10219 * s-shasto.ads: Likewise.
10220 * s-soflin.adb: Likewise.
10221 * s-soflin.ads: Likewise.
10222 * s-solita.adb: Likewise.
10223 * s-solita.ads: Likewise.
10224 * s-sopco3.adb: Likewise.
10225 * s-sopco3.ads: Likewise.
10226 * s-sopco4.adb: Likewise.
10227 * s-sopco4.ads: Likewise.
10228 * s-sopco5.adb: Likewise.
10229 * s-sopco5.ads: Likewise.
10230 * s-stache.adb: Likewise.
10231 * s-stache.ads: Likewise.
10232 * s-stalib.adb: Likewise.
10233 * s-stalib.ads: Likewise.
10234 * s-stausa.adb: Likewise.
10235 * s-stausa.ads: Likewise.
10236 * s-stchop-limit.ads: Likewise.
10237 * s-stchop-rtems.adb: Likewise.
10238 * s-stchop-vxworks.adb: Likewise.
10239 * s-stchop.adb: Likewise.
10240 * s-stchop.ads: Likewise.
10241 * s-stoele.adb: Likewise.
10242 * s-stoele.ads: Likewise.
10243 * s-stopoo.adb: Likewise.
10244 * s-stopoo.ads: Likewise.
10245 * s-stratt.adb: Likewise.
10246 * s-stratt.ads: Likewise.
10247 * s-strcom.adb: Likewise.
10248 * s-strcom.ads: Likewise.
10249 * s-string.adb: Likewise.
10250 * s-string.ads: Likewise.
10251 * s-strops.adb: Likewise.
10252 * s-strops.ads: Likewise.
10253 * s-strxdr.adb: Likewise.
10254 * s-ststop.adb: Likewise.
10255 * s-ststop.ads: Likewise.
10256 * s-taasde.adb: Likewise.
10257 * s-taasde.ads: Likewise.
10258 * s-tadeca.adb: Likewise.
10259 * s-tadeca.ads: Likewise.
10260 * s-tadert.adb: Likewise.
10261 * s-tadert.ads: Likewise.
10262 * s-taenca.adb: Likewise.
10263 * s-taenca.ads: Likewise.
10264 * s-taprob.ads: Likewise.
10265 * s-taprop-dummy.adb: Likewise.
10266 * s-taprop-hpux-dce.adb: Likewise.
10267 * s-taprop-irix.adb: Likewise.
10268 * s-taprop-linux.adb: Likewise.
10269 * s-taprop-lynxos.adb: Likewise.
10270 * s-taprop-mingw.adb: Likewise.
10271 * s-taprop-posix.adb: Likewise.
10272 * s-taprop-solaris.adb: Likewise.
10273 * s-taprop-tru64.adb: Likewise.
10274 * s-taprop-vms.adb: Likewise.
10275 * s-taprop-vxworks.adb: Likewise.
10276 * s-taprop.ads: Likewise.
10277 * s-tarest.adb: Likewise.
10278 * s-tarest.ads: Likewise.
10279 * s-tasdeb.adb: Likewise.
10280 * s-tasdeb.ads: Likewise.
10281 * s-tasinf-irix.ads: Likewise.
10282 * s-tasinf-linux.adb: Likewise.
10283 * s-tasinf-linux.ads: Likewise.
10284 * s-tasinf-mingw.adb: Likewise.
10285 * s-tasinf-mingw.ads: Likewise.
10286 * s-tasinf-solaris.adb: Likewise.
10287 * s-tasinf-solaris.ads: Likewise.
10288 * s-tasinf-tru64.ads: Likewise.
10289 * s-tasinf.adb: Likewise.
10290 * s-tasinf.ads: Likewise.
10291 * s-tasini.adb: Likewise.
10292 * s-tasini.ads: Likewise.
10293 * s-taskin.adb: Likewise.
10294 * s-taskin.ads: Likewise.
10295 * s-taspri-dummy.ads: Likewise.
10296 * s-taspri-hpux-dce.ads: Likewise.
10297 * s-taspri-mingw.ads: Likewise.
10298 * s-taspri-solaris.ads: Likewise.
10299 * s-taspri-tru64.ads: Likewise.
10300 * s-taspri-vms.ads: Likewise.
10301 * s-taspri-vxworks.ads: Likewise.
10302 * s-tasque.adb: Likewise.
10303 * s-tasque.ads: Likewise.
10304 * s-tasren.adb: Likewise.
10305 * s-tasren.ads: Likewise.
10306 * s-tasres.ads: Likewise.
10307 * s-tassta.adb: Likewise.
10308 * s-tassta.ads: Likewise.
10309 * s-tasuti.adb: Likewise.
10310 * s-tasuti.ads: Likewise.
10311 * s-tfsetr-default.adb: Likewise.
10312 * s-tfsetr-vxworks.adb: Likewise.
10313 * s-tpinop.adb: Likewise.
10314 * s-tpinop.ads: Likewise.
10315 * s-tpoben.adb: Likewise.
10316 * s-tpoben.ads: Likewise.
10317 * s-tpobop.adb: Likewise.
10318 * s-tpobop.ads: Likewise.
10319 * s-tpopde-vms.adb: Likewise.
10320 * s-tpopde-vms.ads: Likewise.
10321 * s-tpopsp-lynxos.adb: Likewise.
10322 * s-tpopsp-posix-foreign.adb: Likewise.
10323 * s-tpopsp-posix.adb: Likewise.
10324 * s-tpopsp-solaris.adb: Likewise.
10325 * s-tpopsp-vxworks.adb: Likewise.
10326 * s-tporft.adb: Likewise.
10327 * s-tposen.adb: Likewise.
10328 * s-tposen.ads: Likewise.
10329 * s-traceb.adb: Likewise.
10330 * s-traceb.ads: Likewise.
10331 * s-traces-default.adb: Likewise.
10332 * s-traces.adb: Likewise.
10333 * s-traces.ads: Likewise.
10334 * s-traent-vms.adb: Likewise.
10335 * s-traent-vms.ads: Likewise.
10336 * s-traent.adb: Likewise.
10337 * s-traent.ads: Likewise.
10338 * s-trafor-default.adb: Likewise.
10339 * s-trafor-default.ads: Likewise.
10340 * s-tratas-default.adb: Likewise.
10341 * s-tratas.adb: Likewise.
10342 * s-tratas.ads: Likewise.
10343 * s-unstyp.ads: Likewise.
10344 * s-utf_32.adb: Likewise.
10345 * s-utf_32.ads: Likewise.
10346 * s-vaflop-vms-alpha.adb: Likewise.
10347 * s-vaflop.adb: Likewise.
10348 * s-vaflop.ads: Likewise.
10349 * s-valboo.adb: Likewise.
10350 * s-valboo.ads: Likewise.
10351 * s-valcha.adb: Likewise.
10352 * s-valcha.ads: Likewise.
10353 * s-valdec.adb: Likewise.
10354 * s-valdec.ads: Likewise.
10355 * s-valenu.adb: Likewise.
10356 * s-valenu.ads: Likewise.
10357 * s-valint.adb: Likewise.
10358 * s-valint.ads: Likewise.
10359 * s-vallld.adb: Likewise.
10360 * s-vallld.ads: Likewise.
10361 * s-vallli.adb: Likewise.
10362 * s-vallli.ads: Likewise.
10363 * s-valllu.adb: Likewise.
10364 * s-valllu.ads: Likewise.
10365 * s-valrea.adb: Likewise.
10366 * s-valrea.ads: Likewise.
10367 * s-valuns.adb: Likewise.
10368 * s-valuns.ads: Likewise.
10369 * s-valuti.adb: Likewise.
10370 * s-valuti.ads: Likewise.
10371 * s-valwch.adb: Likewise.
10372 * s-valwch.ads: Likewise.
10373 * s-veboop.adb: Likewise.
10374 * s-veboop.ads: Likewise.
10375 * s-vector.ads: Likewise.
10376 * s-vercon.adb: Likewise.
10377 * s-vercon.ads: Likewise.
10378 * s-vmexta.adb: Likewise.
10379 * s-vmexta.ads: Likewise.
10380 * s-vxwext-kernel.ads: Likewise.
10381 * s-vxwext-rtp.adb: Likewise.
10382 * s-vxwext-rtp.ads: Likewise.
10383 * s-vxwext.ads: Likewise.
10384 * s-vxwork-arm.ads: Likewise.
10385 * s-vxwork-m68k.ads: Likewise.
10386 * s-vxwork-mips.ads: Likewise.
10387 * s-vxwork-ppc.ads: Likewise.
10388 * s-vxwork-sparcv9.ads: Likewise.
10389 * s-vxwork-x86.ads: Likewise.
10390 * s-wchcnv.adb: Likewise.
10391 * s-wchcnv.ads: Likewise.
10392 * s-wchcon.adb: Likewise.
10393 * s-wchcon.ads: Likewise.
10394 * s-wchjis.adb: Likewise.
10395 * s-wchjis.ads: Likewise.
10396 * s-wchstw.adb: Likewise.
10397 * s-wchstw.ads: Likewise.
10398 * s-wchwts.adb: Likewise.
10399 * s-wchwts.ads: Likewise.
10400 * s-widboo.adb: Likewise.
10401 * s-widboo.ads: Likewise.
10402 * s-widcha.adb: Likewise.
10403 * s-widcha.ads: Likewise.
10404 * s-widenu.adb: Likewise.
10405 * s-widenu.ads: Likewise.
10406 * s-widlli.adb: Likewise.
10407 * s-widlli.ads: Likewise.
10408 * s-widllu.adb: Likewise.
10409 * s-widllu.ads: Likewise.
10410 * s-widwch.adb: Likewise.
10411 * s-widwch.ads: Likewise.
10412 * s-win32.ads: Likewise.
10413 * s-winext.ads: Likewise.
10414 * s-wwdcha.adb: Likewise.
10415 * s-wwdcha.ads: Likewise.
10416 * s-wwdenu.adb: Likewise.
10417 * s-wwdenu.ads: Likewise.
10418 * s-wwdwch.adb: Likewise.
10419 * s-wwdwch.ads: Likewise.
10420 * scans.adb: Likewise.
10421 * scans.ads: Likewise.
10422 * seh_init.c: Likewise.
10423 * sfn_scan.adb: Likewise.
10424 * sinfo.adb: Likewise.
10425 * sinfo.ads: Likewise.
10426 * sinput.adb: Likewise.
10427 * sinput.ads: Likewise.
10428 * snames.adb: Likewise.
10429 * snames.ads: Likewise.
10430 * socket.c: Likewise.
10431 * stand.adb: Likewise.
10432 * stand.ads: Likewise.
10433 * stringt.adb: Likewise.
10434 * stringt.ads: Likewise.
10435 * sysdep.c: Likewise.
10436 * system-aix.ads: Likewise.
10437 * system-darwin-ppc.ads: Likewise.
10438 * system-darwin-x86.ads: Likewise.
10439 * system-darwin-x86_64.ads: Likewise.
10440 * system-freebsd-x86.ads: Likewise.
10441 * system-hpux-ia64.ads: Likewise.
10442 * system-hpux.ads: Likewise.
10443 * system-irix-n32.ads: Likewise.
10444 * system-irix-n64.ads: Likewise.
10445 * system-irix-o32.ads: Likewise.
10446 * system-linux-alpha.ads: Likewise.
10447 * system-linux-hppa.ads: Likewise.
10448 * system-linux-ia64.ads: Likewise.
10449 * system-linux-mips.ads: Likewise.
10450 * system-linux-mipsel.ads: Likewise.
10451 * system-linux-ppc.ads: Likewise.
10452 * system-linux-ppc64.ads: Likewise.
10453 * system-linux-s390.ads: Likewise.
10454 * system-linux-s390x.ads: Likewise.
10455 * system-linux-sh4.ads: Likewise.
10456 * system-linux-sparc.ads: Likewise.
10457 * system-linux-sparcv9.ads: Likewise.
10458 * system-linux-x86.ads: Likewise.
10459 * system-linux-x86_64.ads: Likewise.
10460 * system-lynxos-ppc.ads: Likewise.
10461 * system-lynxos-x86.ads: Likewise.
10462 * system-mingw-x86_64.ads: Likewise.
10463 * system-mingw.ads: Likewise.
10464 * system-rtems.ads: Likewise.
10465 * system-solaris-sparc.ads: Likewise.
10466 * system-solaris-sparcv9.ads: Likewise.
10467 * system-solaris-x86.ads: Likewise.
10468 * system-solaris-x86_64.ads: Likewise.
10469 * system-tru64.ads: Likewise.
10470 * system-vms-ia64.ads: Likewise.
10471 * system-vms-zcx.ads: Likewise.
10472 * system-vms.ads: Likewise.
10473 * system-vms_64.ads: Likewise.
10474 * system-vxworks-arm.ads: Likewise.
10475 * system-vxworks-m68k.ads: Likewise.
10476 * system-vxworks-mips.ads: Likewise.
10477 * system-vxworks-ppc.ads: Likewise.
10478 * system-vxworks-sparcv9.ads: Likewise.
10479 * system-vxworks-x86.ads: Likewise.
10480 * system.ads: Likewise.
10481 * table.adb: Likewise.
10482 * table.ads: Likewise.
10483 * targext.c: Likewise.
10484 * targparm.ads: Likewise.
10485 * tree_in.adb: Likewise.
10486 * tree_in.ads: Likewise.
10487 * tree_io.adb: Likewise.
10488 * tree_io.ads: Likewise.
10489 * types.adb: Likewise.
10490 * types.ads: Likewise.
10491 * uintp.adb: Likewise.
10492 * uintp.ads: Likewise.
10493 * uname.adb: Likewise.
10494 * uname.ads: Likewise.
10495 * urealp.adb: Likewise.
10496 * urealp.ads: Likewise.
10497 * vx_stack_info.c: Likewise.
10498 * widechar.adb: Likewise.
10499 * widechar.ads: Likewise.
10500 * exp_attr.adb: Change copyright header to refer to version
10501 3 of the GNU General Public License and to point readers at the
10502 COPYING3 file and the FSF's license web page.
10503 * sem.adb: Likewise.
10504 * sem_attr.ads: Likewise.
10505 * freeze.adb: Likewise.
10506 * freeze.ads: Likewise.
10507 * errout.ads: Likewise.
10508 * erroutc.adb: Likewise.
10509 * exp_ch11.ads: Likewise.
10511 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10513 * config-lang.in: Change copyright header to refer to version
10514 3 of the GNU General Public License and to point readers at the
10515 COPYING3 file and the FSF's license web page.
10516 * gcc-interface/trans.c: Likewise.
10517 * gnathtml.pl: Likewise.
10518 * gcc-interface/ada.h: Likewise. Remove runtime exception.
10519 * gcc-interface/gigi.h: Likewise.
10520 * gcc-interface/misc.c: Likewise.
10521 * gcc-interface/targtyps.c: Likewise.
10523 2009-04-09 Nicolas Setton <setton@adacore.com>
10525 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
10527 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
10530 2009-04-09 Bob Duff <duff@adacore.com>
10532 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
10533 internally-generated nodes related to select statements to avoid
10534 confusing the debugger.
10536 2009-04-09 Pascal Obry <obry@adacore.com>
10538 * make.adb: Ensure that all linker arguments are duplicated.
10540 2009-04-09 Robert Dewar <dewar@adacore.com>
10542 * sem_ch5.adb: Minor reformatting
10544 2009-04-09 Vincent Celier <celier@adacore.com>
10547 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
10548 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
10549 New qualifier /LXDEBUG=nnn for -gnatDnnn
10553 Update documentation for VMS qualifiers equivalent to -gnatGnn and
10556 2009-04-09 Nicolas Setton <setton@adacore.com>
10558 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
10559 to match layout of siginfo_t in sys/signal.h.
10561 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
10563 2009-04-09 Thomas Quinot <quinot@adacore.com>
10565 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
10567 2009-04-09 Nicolas Setton <setton@adacore.com>
10569 * s-oscons-tmplt.c: Allow long lines in the generated spec.
10570 Add generation of Darwin-specific constants needed when binding to the
10573 2009-04-09 Robert Dewar <dewar@adacore.com>
10576 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
10577 when no invalid values exist, Avoid duplicate read of atomic variable.
10579 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
10580 (Standard_Unsigned): Set Is_Known_Valid
10582 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
10583 subtype declaration if no constraint.
10584 (Set_Modular_Size): Set Is_Known_Valid if appropriate
10585 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
10587 2009-04-09 Robert Dewar <dewar@adacore.com>
10589 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
10590 switch.ads: for numeric switches, an optional equal sign is always
10593 2009-04-09 Vincent Celier <celier@adacore.com>
10595 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
10596 the case of file names is not significant.
10598 2009-04-09 Vincent Celier <celier@adacore.com>
10600 * errout.adb: Remove dependency on package Style
10602 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
10605 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
10608 * errutil.adb, par.adb: Import Stylesw
10610 2009-04-09 Arnaud Charlet <charlet@adacore.com>
10612 * opt.ads: Fix typos.
10614 2009-04-09 Robert Dewar <dewar@adacore.com>
10616 * einfo.adb: Minor reformatting
10618 2009-04-09 Robert Dewar <dewar@adacore.com>
10620 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
10623 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
10625 2009-04-09 Robert Dewar <dewar@adacore.com>
10627 * g-comver.adb: Minor reformatting.
10629 2009-04-09 Thomas Quinot <quinot@adacore.com>
10631 * lib-load.ads (Load_Unit): Update documentation.
10633 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10635 * lib-load.adb (Load_Unit): When loading the parent of a child unit
10636 named in a with_clause, retain the with_clause to preserve a
10637 limited_with indication.
10639 2009-04-09 Robert Dewar <dewar@adacore.com>
10641 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
10642 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
10643 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
10644 possible to replace an OR of two separate tests.
10646 2009-04-09 Robert Dewar <dewar@adacore.com>
10648 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
10651 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
10652 warning status as well.
10654 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
10656 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
10659 * bindusg.adb, usage.adb: Update line for -gnatm switch
10661 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
10662 -mnn binder switch.
10664 2009-04-09 Robert Dewar <dewar@adacore.com>
10666 * sem_ch10.adb: Minor reformatting.
10668 2009-04-09 Bob Duff <duff@adacore.com>
10670 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
10671 Set Sloc of generated nodes for calls to Undefer_Aborts and
10672 Save_Occurrence to No_Location, so the debugger ignores them and
10673 therefore does not jump back and forth when single stepping.
10675 2009-04-09 Robert Dewar <dewar@adacore.com>
10677 * switch-b.adb: Minor reformatting.
10679 2009-04-09 Robert Dewar <dewar@adacore.com>
10681 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
10682 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
10683 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
10684 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
10685 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
10686 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
10687 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
10688 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
10689 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
10690 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
10691 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
10693 2009-04-09 Robert Dewar <dewar@adacore.com>
10695 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
10697 * atree.h: Add Elist26
10699 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
10702 2009-04-09 Javier Miranda <miranda@adacore.com>
10704 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
10705 retrieve from the Dispatch_Table_Wrappers list the external name.
10706 Addition of documentation.
10707 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
10708 used to export secondary dispatch tables (in the previous version of
10709 the frontend only primary dispatch tables were exported). Addition of
10711 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
10712 dispatch table of a given tagged type.
10713 (Make_Tags): Modified to import secondary dispatch tables.
10715 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
10716 (Constant_Redeclaration): Code cleanup.
10718 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
10719 Dispatch_Table_Wrappers. Update documentation.
10721 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
10722 Renamed to Dispatch_Table_Wrappers.
10724 * sem_util.adb (Collect_Interface_Components): Improve handling of
10727 * atree.ads (Elist26, Set_Elist26): New subprograms
10729 * atree.adb (Elist26, Set_Elist26): New subprograms
10731 2009-04-09 Javier Miranda <miranda@adacore.com>
10733 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
10734 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
10737 2009-04-09 Robert Dewar <dewar@adacore.com>
10739 * s-direio.adb: Minor reformatting
10741 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
10743 2009-04-09 Robert Dewar <dewar@adacore.com>
10745 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
10747 2009-04-09 Pascal Obry <obry@adacore.com>
10749 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
10750 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
10751 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
10752 a-filico.ads: Add some missing overriding keywords.
10754 2009-04-09 Pascal Obry <obry@adacore.com>
10756 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
10757 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
10758 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
10761 2009-04-09 Ed Schonberg <schonberg@adacore.com>
10763 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
10764 missing overriding indicator if the new declaration is not seen as
10767 2009-04-09 Thomas Quinot <quinot@adacore.com>
10769 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
10770 overflows in computation of bounds.
10772 2009-04-09 Pascal Obry <obry@adacore.com>
10774 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
10777 2009-04-09 Robert Dewar <dewar@adacore.com>
10779 * sem_attr.adb (Check_Stream_Attribute): Check violation of
10780 restriction No_Streams
10782 * gnat_rm.texi: Clarify No_Streams restriction
10784 * g-socket.adb: Minor reformatting.
10786 2009-04-09 Thomas Quinot <quinot@adacore.com>
10788 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
10790 2009-04-09 Geert Bosch <bosch@adacore.com>
10792 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
10793 (Set_Result): Likewise.
10794 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
10795 conversion, as required by RM 4.6(31).
10797 2009-04-08 Robert Dewar <dewar@adacore.com>
10799 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
10802 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
10805 2009-04-08 Robert Dewar <dewar@adacore.com>
10807 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
10808 No_Local_Allocators restriction preventing local instantiation.
10810 2009-04-08 Thomas Quinot <quinot@adacore.com>
10812 * sem_eval.adb: Minor comment fix
10814 2009-04-08 Thomas Quinot <quinot@adacore.com>
10816 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
10817 New limited controlled type used to automate the initialization and
10818 finalization of the sockets implementation.
10819 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
10821 2009-04-08 Vincent Celier <celier@adacore.com>
10823 * prj-attr.adb: New read-only project-level attribute Project_Dir
10825 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
10826 read-only attribute of the same name.
10827 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
10828 (Recursive_Process): Ditto
10830 * snames.adb: Add new standard name Project_Dir
10832 * snames.ads: Add new standard name Project_Dir
10834 2009-04-08 Thomas Quinot <quinot@adacore.com>
10836 * checks.adb: Minor reformatting
10838 2009-04-08 Vincent Celier <celier@adacore.com>
10840 * vms_data.ads: Add documentation for new style keyword
10841 OVERRIDING_INDICATORS
10843 2009-04-08 Robert Dewar <dewar@adacore.com>
10845 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
10846 spec is in the current unit.
10848 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10850 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
10851 presence of entity.
10853 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
10855 2009-04-08 Vincent Celier <celier@adacore.com>
10857 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
10859 2009-04-08 Thomas Quinot <quinot@adacore.com>
10861 * checks.ads: Minor reformatting
10863 2009-04-08 Robert Dewar <dewar@adacore.com>
10865 * gnat_rm.texi: Update documentation of pragma Obsolescent
10867 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
10868 be omitted, and allow Entity parameter to be omitted.
10870 2009-04-08 Thomas Quinot <quinot@adacore.com>
10872 * exp_util.adb: Minor comment fix
10874 2009-04-08 Robert Dewar <dewar@adacore.com>
10876 * g-socket.ads: Fix bad syntax in pragma Obsolescent
10878 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
10879 argument with no identifier following one that has an identifier. Was
10880 missed in some cases.
10882 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
10884 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
10886 * snames.adb: Add Name_Policy
10888 * snames.ads: Add Name_Policy
10890 2009-04-08 Robert Dewar <dewar@adacore.com>
10892 * gnat_rm.texi: Minor reformatting
10894 * par-ch2.adb: Minor reformatting
10896 2009-04-08 Robert Dewar <dewar@adacore.com>
10898 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
10900 2009-04-08 Robert Dewar <dewar@adacore.com>
10902 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
10903 properly in the presence of Remote_Types or Remote_Call_Interface.
10905 * sem_util.adb: Add comment.
10907 2009-04-08 Robert Dewar <dewar@adacore.com>
10909 * ug_words: Add /ASSUME_VALID for -gnatB
10911 * vms_data.ads: Add /ASSUME_VALID for -gnatB
10913 * sem_cat.adb: Add clarifying commment
10915 * a-direio.ads (Bytes): Make sure value is non-zero
10917 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10919 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
10920 that does not come from source, check for a rewritten function call in
10921 prefixed notation before other forms of rewriting.
10923 2009-04-08 Robert Dewar <dewar@adacore.com>
10925 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
10926 these are now obsolescent units used only for bootrapping with an
10929 2009-04-08 Robert Dewar <dewar@adacore.com>
10931 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
10933 * sem_ch3.adb: Minor comment updates
10935 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10937 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
10938 that come from source.
10940 2009-04-08 Tristan Gingold <gingold@adacore.com>
10942 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
10943 * gcc-interface/decl.c (prepend_attributes): New case
10944 Pragma_Thread_Local_Storage.
10945 * gcc-interface/utils.c (process_attributes): New case
10946 ATTR_THREAD_LOCAL_STORAGE.
10948 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10950 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
10951 by the back-end if it contains a call to a subprogram without a
10952 previous spec that is declared in the same unit.
10954 * errout.ads: Update comments on uses of dirs
10956 2009-04-08 Robert Dewar <dewar@adacore.com>
10958 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
10960 2009-04-08 Tristan Gingold <gingold@adacore.com>
10962 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
10964 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
10966 2009-04-08 Vincent Celier <celier@adacore.com>
10969 (Add_Source): Add the mapping of the unit name to source file name in
10970 the Unit_Sources_HT hash table, if the unit name is not null.
10972 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
10974 * prj.ads (Unit_Sources_Htable): New hash table instantiation
10975 (Project_Tree_Data): New component Unit_Sources_HT
10977 2009-04-08 Thomas Quinot <quinot@adacore.com>
10979 * sem_ch8.adb: Minor reformatting.
10980 Minor code reorganization.
10982 2009-04-08 Robert Dewar <dewar@adacore.com>
10984 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
10985 snames.ads, freeze.adb, par-prag.adb: Add implementation of
10986 pragma Thread_Local_Storage, setting new flag
10987 Has_Pragma_Thread_Local_Storage in corresponding entities.
10989 2009-04-08 Emmanuel Briot <briot@adacore.com>
10991 * prj.ads: Update comment on switches file
10993 * prj-nmsc.adb: Code clean up. Use renaming clauses.
10995 2009-04-08 Robert Dewar <dewar@adacore.com>
10997 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
10999 2009-04-08 Thomas Quinot <quinot@adacore.com>
11001 * ali-util.adb: Minor comment fix
11003 2009-04-08 Ed Schonberg <schonberg@adacore.com>
11005 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
11006 appears in a context clause, and the enclosing package is mentioned in
11007 a limited_with_clause.
11008 (Use_One_Type): Reject clause if type is still incomplete.
11010 2009-04-08 Emmanuel Briot <briot@adacore.com>
11012 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
11013 avoid copies of Source_Data variables when possible, since these
11014 involve calls to memcpy() which are done too many times.
11016 2009-04-08 Robert Dewar <dewar@adacore.com>
11018 * exp_ch4.adb (Expand_Concatenate): Clean up code
11020 2009-04-07 Thomas Quinot <quinot@adacore.com>
11022 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
11023 type for the case of concatenating a constrained array indexed by an
11026 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11028 * sem_ch6.adb (Check_Conformance): when checking conformance of an
11029 operation that overrides an abstract operation inherited from an
11030 interface, return False if only one of the controlling formals is an
11033 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11035 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
11036 mandated by AI05-105.
11038 2009-04-07 Vincent Celier <celier@adacore.com>
11040 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
11042 2009-04-07 Thomas Quinot <quinot@adacore.com>
11044 * usage.adb: Minor fix in usage message.
11046 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
11047 match declaration; the correct subtype is Node_Id, not Entity_Id,
11048 because the expected node kind is an identifier, not a defining
11051 * switch-c.adb: Minor reformatting.
11053 * uintp.adb: Minor reformatting.
11055 2009-04-07 Robert Dewar <dewar@adacore.com>
11057 * exp_ch13.adb: Minor reformatting
11059 2009-04-07 Robert Dewar <dewar@adacore.com>
11061 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
11062 against missing parent.
11064 2009-04-07 Thomas Quinot <quinot@adacore.com>
11066 * xoscons.adb: Minor reformatting
11068 2009-04-07 Robert Dewar <dewar@adacore.com>
11070 * rtsfind.ads: Remove obsolete string concatenation entries
11072 2009-04-07 Robert Dewar <dewar@adacore.com>
11074 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
11076 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11078 * sem_ch10.adb (Check_Body_Required): Handle properly imported
11081 2009-04-07 Gary Dismukes <dismukes@adacore.com>
11083 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
11084 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
11085 is of a scalar or string type then suppress the setting of the
11086 expression to Empty.
11088 * freeze.adb (Warn_Overlay): Also emit the warnings about default
11089 initialization for the cases of scalar and string objects when
11090 Init_Or_Norm_Scalars is True.
11092 2009-04-07 Bob Duff <duff@adacore.com>
11094 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
11096 2009-04-07 Bob Duff <duff@adacore.com>
11098 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
11099 Form parameter of Text_Translation=No allows binary mode for Text_IO
11102 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
11104 2009-04-07 Javier Miranda <miranda@adacore.com>
11106 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
11107 processing the bounds for bit packed arrays or VM target machines.
11109 2009-04-07 Thomas Quinot <quinot@adacore.com>
11111 * g-sothco.ads (Int_Access): Remove extraneous access type (use
11112 anonymous access instead).
11113 (Get_Socket_From_Set): Fix incorrectly reverted formals
11114 Last and Socket to match the underlying C routine.
11116 * g-socket.adb, g-socket.ads
11117 (Get): Use named parameter associations instead of positional ones in
11118 call go Get_Socket_From_Set, since this routine has two formals of the
11120 (Image): New procedure.
11122 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11123 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
11124 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
11125 for type of Arg formal.
11127 * sem_warn.adb: Minor reformatting
11129 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11131 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
11132 over record components.
11134 2009-04-07 Nicolas Roche <roche@adacore.com>
11137 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
11138 has disappeared between VxWorks 6.4 and VxWorks 6.5
11139 In RTP mode use time.h instead of times.h
11141 2009-04-07 Robert Dewar <dewar@adacore.com>
11143 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
11145 2009-04-07 Kevin Pouget <pouget@adacore.com>
11147 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
11148 expanded code for constrained types.
11150 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11152 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
11153 AI05-105: in an object renaming declaration, anonymousness is a name
11156 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
11158 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11160 * g-comlin.adb (Expansion): Fix old regression: also return directory
11161 names when matching.
11163 2009-04-07 Robert Dewar <dewar@adacore.com>
11166 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
11167 (Expand_Concatenate): New name for Expand_Concatenate_String which has
11168 been rewritten to handle all types.
11169 (Expand_Concatenate_Other): Remove
11171 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11173 * lib-xref.adb (Generate_Reference): A default subprogram in an
11174 instance appears within the tree for the instance, but generates an
11175 implicit reference in the ALI.
11177 2009-04-07 Javier Miranda <miranda@adacore.com>
11179 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
11180 derived type that has discriminants, propagate the list of interfaces
11181 to the corresponding new base type. In addition, propagate also
11182 attribute Limited_Present (found working in this patch).
11184 2009-04-07 Robert Dewar <dewar@adacore.com>
11186 * exp_ch4.adb: Rewrite concatenation expansion.
11188 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11190 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
11191 relevant to packages.
11193 2009-04-07 Robert Dewar <dewar@adacore.com>
11195 * sem_attr.adb: Minor reformatting
11197 * sem_ch6.adb: Minor reformatting
11199 2009-04-07 Tristan Gingold <gingold@adacore.com>
11201 * socket.c: Add more protections against S_resolvLib_ macros.
11203 2009-04-07 Thomas Quinot <quinot@adacore.com>
11205 * sem_attr.adb: Minor reformatting
11207 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11209 * sem_ch6.adb (New_Overloaded_Entity): New predicate
11210 Is_Overriding_Alias to handle properly types that inherit two homonym
11211 operations that have distinct dispatch table entries.
11213 2009-04-07 Emmanuel Briot <briot@adacore.com>
11215 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
11216 looking for the end of a parenthesis group
11218 2009-04-07 Tristan Gingold <gingold@adacore.com>
11220 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
11222 * socket.c Don't use resolvLib_ macros if not defined.
11224 2009-04-07 Robert Dewar <dewar@adacore.com>
11226 * g-socket.adb: Minor reformatting.
11228 * g-socthi-mingw.adb: Minor reformatting
11230 * g-sothco.ads: Minor reformatting
11233 (Expand_Concatenate_String): Complete rewrite to generate efficient code
11234 inline instead of relying on external library routines.
11236 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
11237 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
11240 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11243 (Eval_Attribute): for attributes of array objects that are not strings,
11244 attributes are not static if nominal subtype of object is unconstrained.
11246 2009-04-07 Ed Schonberg <schonberg@adacore.com>
11248 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
11249 operations for a type T in an instance do not override each other,
11250 when T is derived from a formal private type, the corresponding
11251 operations inherited by a type derived from T outside
11252 of the instance do not override each other either.
11254 2009-04-07 Robert Dewar <dewar@adacore.com>
11256 (Osint.Fail): Change calling sequence to have one string arg
11257 (Make.Make_Failed): Same change
11258 All callers are adjusted to use concatenation
11260 2009-04-07 Robert Dewar <dewar@adacore.com>
11262 * exp_ch4.adb: Fix documentation typo
11264 2009-04-07 Robert Dewar <dewar@adacore.com>
11266 * tbuild.ads: Minor reformatting
11268 2009-04-07 Javier Miranda <miranda@adacore.com>
11270 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
11271 when compiling under ZFP runtime.
11273 2009-04-07 Robert Dewar <dewar@adacore.com>
11275 * g-comlin.adb: Minor reformatting
11277 2009-04-07 Thomas Quinot <quinot@adacore.com>
11279 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11280 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
11281 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
11282 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
11284 2009-04-07 Robert Dewar <dewar@adacore.com>
11286 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
11288 * opt.ads (Sprint_Line_Limit): New parameter
11290 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
11292 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
11294 * usage.adb: Output information for -gnatGnn -gnatDnn
11296 2009-04-07 Robert Dewar <dewar@adacore.com>
11298 * make.adb: Minor reformatting
11300 2009-04-07 Robert Dewar <dewar@adacore.com>
11302 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
11304 2009-04-07 Robert Dewar <dewar@adacore.com>
11306 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
11308 2009-04-07 Robert Dewar <dewar@adacore.com>
11311 Remove Assume_Valid parameter from In_Subrange_Of calls
11314 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11315 (Is_In_Range): Remove incorrect use of Assume_Valid
11316 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
11319 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
11320 (Is_In_Range): Documentation cleanup
11321 (Is_Out_Of_Range): Documentation cleanup
11324 Add documentation for Assume_No_Invalid_Values pragma
11326 * sem_ch12.adb: Minor reformatting
11328 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
11330 * sem_prag.adb: Improve error message.
11332 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
11333 LF/CR no longer recognized as line terminator
11335 * switch.ads: Minor documentation improvement
11337 * vms_data.ads: Minor reformatting
11339 2009-04-07 Robert Dewar <dewar@adacore.com>
11341 * checks.adb (Determine_Range): Add Assume_Valid parameter
11343 * checks.ads (Determine_Range): Add Assume_Valid parameter
11345 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
11346 Is_Null_Loop to suppress warnings in a loop body.
11349 (Rewrite_Comparison): Major rewrite to accomodate invalid values
11352 (Expand_N_Loop_Statement): Delete loop known not to execute
11355 (Assume_No_Invalid_Values): Now set to False, and as documented, this
11356 fully enables the proper handling of invalid values.
11359 New calling sequence for Is_In_Range
11362 (Analyze_Iteration_Scheme): Accomodate possible invalid values
11363 in determining if a loop range is null.
11366 (Is_In_Range): Add Assume_Valid parameter
11367 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11368 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
11369 also to do more accurate and complete range analysis, catching more
11373 (Is_In_Range): Add Assume_Valid parameter
11374 (Is_Out_Of_Range): Add Assume_Valid_Parameter
11377 New calling sequence for Is_In_Range
11380 (Suppress_Loop_Warnings): New flag
11383 (Is_Null_Loop): Update documentation
11384 (Suppress_Loop_Warnings): New flag
11386 * gnat_ugn.texi: Document -gnatB switch
11388 2009-04-07 Arnaud Charlet <charlet@adacore.com>
11390 * gnatvsn.ads: Bump version number.
11392 2009-04-07 Thomas Quinot <quinot@adacore.com>
11394 * exp_ch3.adb: Minor rewording (comments)
11396 2009-04-07 Robert Dewar <dewar@adacore.com>
11398 * exp_disp.adb: Minor reformatting
11400 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11402 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
11404 * gcc-interface/trans.c (lvalue_required_p): Likewise.
11406 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11408 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
11409 Do not convert the result. Remove obsolete comment.
11411 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11413 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
11415 (Subprogram_Body_to_gnu): Fix pasto.
11417 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11419 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
11420 (void_type_decl_node): Remove.
11421 (init_gigi_decls): Likewise.
11422 (gnat_install_builtins): Declare.
11423 (record_builtin_type): Likewise.
11424 (create_type_stub_decl): Likewise.
11425 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
11426 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
11428 <E_Array_Subtype>: Use the index types, not only their name, in the
11429 record giving the names of the bounds, if any.
11430 For a packed array type, make it artificial only if the base type
11431 was artificial as well. Remove redundant statement.
11432 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
11434 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
11435 (rest_of_type_decl_compilation_no_defer): Likewise.
11436 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
11437 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
11438 and use create_type_stub_decl to build it.
11439 (gnat_pushdecl): Rewrite condition.
11440 (gnat_install_builtins): Remove bogus declaration.
11441 (record_builtin_type): New function.
11442 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
11444 (create_type_stub_decl): New function.
11445 (create_type_decl): Assert that the type is not dummy. If the type
11446 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
11447 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
11448 (build_vms_descriptor): Likewise.
11449 (init_gigi_decls): Delete and move bulk of code to...
11450 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
11451 (emit_range_check): Add gnat_node parameter.
11452 (emit_index_check): Likewise.
11453 (emit_check): Likewise.
11454 (build_unary_op_trapv): Likewise.
11455 (build_binary_op_trapv): Likewise.
11456 (convert_with_check): Likewise.
11457 (Attribute_to_gnu): Adjust calls for above changes.
11458 (call_to_gnu): Likewise.
11459 (gnat_to_gnu): Likewise.
11460 (assoc_to_constructor): Likewise.
11461 (pos_to_constructor): Likewise.
11462 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
11463 (process_type): Do not create TYPE_DECL for dummy types.
11465 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11467 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
11468 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
11469 * gcc-interface/utils.c: Fix comments.
11471 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11473 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
11475 (gnat_to_gnu_type): Move around.
11476 (get_unpadded_type): Likewise.
11477 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
11480 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
11482 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
11483 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
11484 (call_to_gnu): Invoke it instead of manually checking.
11486 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
11488 * gcc-interface/utils.c (finish_record_type): Force structural equality
11489 checks if the record type is discriminated.
11491 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
11493 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
11494 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
11495 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
11496 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
11497 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
11498 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
11499 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
11501 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
11503 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
11504 of TREE_CONSTANT_OVERFLOW.
11506 2009-03-30 Joseph Myers <joseph@codesourcery.com>
11508 PR rtl-optimization/323
11509 * gcc-interface/misc.c (gnat_post_options): Set
11510 flag_excess_precision_cmdline. Give an error for
11511 -fexcess-precision=standard for processors where the option is
11514 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11517 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
11520 2009-03-11 Olivier Hainque <hainque@adacore.com>
11522 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
11523 checks processing, remove unintended TREE_TYPE walk on index type.
11525 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
11528 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
11529 call make_packable_type on fat pointer types.
11530 <E_Array_Subtype>: Likewise.
11531 <E_Record_Subtype>: Call make_packable_type on all record types
11532 except for fat pointer types.
11533 (make_packable_type): Likewise.
11534 (gnat_to_gnu_field): Likewise.
11536 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
11538 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
11539 EH_MECHANISM change made on 2007-12-06.
11541 2009-02-26 Andreas Schwab <schwab@suse.de>
11544 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
11545 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
11546 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
11548 (target_cpu_default): Substitute.
11550 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11553 * a-teioed.adb (Expand): Fix Result overflow.
11555 2009-02-25 Laurent GUERBY <laurent@guerby.net>
11557 * gcc-interface/Makefile.in: Fix multilib handling for
11560 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11562 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
11564 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
11566 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
11568 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
11570 * gcc-interface/deftarg.c: Remove.
11572 2009-02-10 Olivier Hainque <hainque@adacore.com>
11573 Eric Botcazou <ebotcazou@adacore.com>
11575 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
11576 (copy_alias_set): Rename into...
11577 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
11578 underlying array of unconstrained arrays for the new type as well.
11579 If the old and new alias sets don't conflict, make one a subset of
11580 the other as per the OP parameter.
11581 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
11582 <E_Record_Type>: Do not copy the alias set for derived types.
11583 For all types, make the alias set of derived types a superset of
11584 that of their parent type.
11585 (make_aligning_type): Adjust calls to copy_alias_set.
11586 (make_packable_type): Likewise.
11587 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
11588 Check for alias set conflict instead of strict equality to issue the
11591 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
11593 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11594 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
11595 (copy_alias_set): Assert that arrays have the same aliasing settings.
11596 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
11598 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
11600 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
11601 Set TYPE_NONALIASED_COMPONENT on the array type.
11603 2009-01-31 Laurent GUERBY <laurent@guerby.net>
11605 * gcc-interface/Makefile.in: Fix mipsel linux handling.
11607 2009-01-16 Jakub Jelinek <jakub@redhat.com>
11609 * gcc-interface/Makefile.in: Fix multilib handling for
11612 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
11614 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
11615 only useless conversions around renamed objects.
11617 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
11619 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
11620 the _Tag field before any discriminants in the field list.
11621 (components_to_record): Remove obsolete comment.
11625 Copyright (C) 2009 Free Software Foundation, Inc.
11627 Copying and distribution of this file, with or without modification,
11628 are permitted in any medium without royalty provided the copyright
11629 notice and this notice are preserved.