1 2009-09-14 Richard Henderson <rth@redhat.com>
3 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
4 default_init_unwind_resume_libfunc.
5 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
7 * gcc-interface/utils.c (gnat_install_builtins): Update call
8 to build_common_builtin_nodes.
10 2009-09-13 Richard Guenther <rguenther@suse.de>
11 Rafael Avila de Espindola <espindola@google.com>
13 * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
14 eh_personality_libfunc and lang_eh_runtime_type.
15 (LANG_HOOKS_EH_PERSONALITY): Define.
16 (gnat_eh_personality_decl): New static variable.
17 (gnat_eh_personality): New static function.
18 Include gt-ada-misc.h.
19 * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
20 * gcc-interface/config-lang.in (gtfiles): Add misc.c.
22 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25 * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
27 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
29 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
31 Avoid useless work when processing the Treat_As_Volatile flag.
33 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
35 * gcc-interface/targtyps.c: Reorder include directives.
37 2009-09-07 Laurent GUERBY <laurent@guerby.net>
39 * gcc-interface/targtyps.c: Add missing include for tm_p.h.
40 * gcc-interface/Make-lang.in: Update dependencies.
42 2009-09-07 Laurent GUERBY <laurent@guerby.net>
44 * make.adb: Add missing documentation for multilib handling.
46 2009-09-03 Diego Novillo <dnovillo@google.com>
48 * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
50 2009-09-02 Richard Henderson <rth@redhat.com>
52 * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
54 2009-09-02 Olivier Hainque <hainque@adacore.com>
56 * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
59 2009-09-02 Olivier Hainque <hainque@adacore.com>
61 * gcc-interface/decl.c (cannot_be_superflat_p): Handle
62 Signed_Integer_Type_Definition Scalar_Ranges.
64 2009-09-02 Eric Botcazou <ebotcazou@adacore.com>
66 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
67 SAVE_EXPR built for misaligned arguments. Remove redundant stuff.
68 (addressable_p): Return true for more rvalues.
70 2009-09-01 Jakub Jelinek <jakub@redhat.com>
72 * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
73 POINTER_SIZE to HOST_WIDE_INT.
75 2009-09-01 Richard Guenther <rguenther@suse.de>
77 * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
79 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
81 * gcc-interface/trans.c (call_to_gnu): Tidy.
82 (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
83 non-constant size but the array itself has constant size.
84 * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
86 (convert_vms_descriptor32): Likewise.
88 2009-08-22 Aurelien Jarno <aurelien@aurel32.net>
90 * gcc-interface/Makefile.in: Add Ada support for
92 * system-freebsd-x86_64.ads: New file based on
93 system-freebsd-x86.ads.
95 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
97 * gcc-interface/utils.c (convert): In the padded case, do the final
98 conversion as an unchecked conversion if the underlying types are
99 array types with variable size.
101 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
103 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
105 * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
107 * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
109 (gnat_gimplify_expr) <DECL_EXPR>: New case.
111 2009-08-17 Aurelien Jarno <aurelien@aurel32.net>
113 * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
114 (stack_t): New record type.
115 (sigaltstack): New imported function.
116 (Alternate_Stack): New imported variable.
117 (Alternate_Stack_Size): New constant.
119 2009-08-17 Vasiliy Fofanov <fofanov@adacore.com>
121 * a-calend-vms.adb: Fix typo.
123 2009-08-17 Tristan Gingold <gingold@adacore.com>
125 * s-taprop-posix.adb: Round up the stack size to avoid failure on
128 2009-08-17 Gary Dismukes <dismukes@adacore.com>
130 * sem_cat.adb (Validate_Static_Object_Name): Update comment.
132 2009-08-17 Vincent Celier <celier@adacore.com>
134 * make.adb (Arguments_Collected): Unneeded, removed
135 (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
136 ensure caller does not pass in No_Project.
137 (Compile): Add new parameter Project. Let procedure
138 Collect_Arguments_And_Compile provide the proper value.
140 * switch-c.adb: Add documentation for -gnatea and -gnatez
142 2009-08-17 Ben Brosgol <brosgol@adacore.com>
144 * gnat_ugn.texi: Changed name of package in SAL example, to avoid
145 clash with Ada 2005 reserved word (interface).
147 2009-08-17 Robert Dewar <dewar@adacore.com>
149 * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
150 a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
151 a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
152 (use conditional expressions).
154 2009-08-17 Robert Dewar <dewar@adacore.com>
156 * make.adb: Add ??? comment
157 * tbuild.adb: Minor reformatting
159 2009-08-17 Thomas Quinot <quinot@adacore.com>
161 * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
162 Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
163 Use Tbuild.Make_Temporary to create entity for the temporary.
165 2009-08-17 Arnaud Charlet <charlet@adacore.com>
167 * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
168 and ignore -mieee switch to avoid spawning an extra gcc in this case.
170 2009-08-17 Thomas Quinot <quinot@adacore.com>
172 * tbuild.adb: Minor reformatting
174 2009-08-17 Ed Schonberg <schonberg@adacore.com>
176 * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
177 exist, as is the case for synchronized types, use the type of the
178 discriminal in the parameter specification, to prevent a spurious
179 subtype mismatch in gigi.
181 2009-08-17 Robert Dewar <dewar@adacore.com>
183 * prj-env.adb: Minor reformatting
184 * make.adb: Minor reformatting
187 2009-08-17 Javier Miranda <miranda@adacore.com>
189 * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
191 2009-08-17 Emmanuel Briot <briot@adacore.com>
193 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
194 (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
195 object directories must be present. In the case of gprclean at least,
196 these are optional (if they do not exist there is nothing to clean)
198 2009-08-17 Robert Dewar <dewar@adacore.com>
200 * prj-env.adb: Minor reformatting
201 * sem_ch3.adb: Minor reformatting
203 2009-08-17 Hristian Kirtchev <kirtchev@adacore.com>
205 * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
206 the time zone since VxWorks chose positive values to represent west
207 time zones and negative for east zones.
209 2009-08-17 Ed Schonberg <schonberg@adacore.com>
211 * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
212 an anonymous access type whose designated type is generic.
214 2009-08-17 Arnaud Charlet <charlet@adacore.com>
216 * comperr.adb (Compiler_Abort): Do not generate a bug box when in
217 codepeer mode, friendlier.
219 2009-08-10 Laurent GUERBY <laurent@guerby.net>
221 * make.adb: Handle multilib
223 2009-08-10 Vincent Celier <celier@adacore.com>
225 * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
226 the temporary file name in the error message when the temporary file
229 2009-08-10 Yannick Moy <moy@adacore.com>
231 * gnat_ugn.texi: Fix typo
233 2009-08-10 Robert Dewar <dewar@adacore.com>
235 * exp_ch7.adb: Add ??? comment for last change
237 2009-08-10 Vincent Celier <celier@adacore.com>
239 * prj-env.adb (Add_To_Buffer): New procedure
240 (Create_Config_Pragmas_File): Write to temporary file in one shot
241 (Create_Mapping_File): Ditto
242 (Set_Ada_Paths): Ditto
244 2009-08-10 Vincent Celier <celier@adacore.com>
247 * xref_lib.adb (Print_Xref): Make sure that there is at least one space
248 between a declaration name and its type.
250 2009-08-07 Javier Miranda <miranda@adacore.com>
252 * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
255 2009-08-07 Robert Dewar <dewar@adacore.com>
257 * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
259 2009-08-07 Vincent Celier <celier@adacore.com>
261 * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
262 specified on the command line and there are switches in the Compiler
263 package of the project file, use these compilation switches to invoke
266 2009-08-07 Ben Brosgol <brosgol@adacore.com>
268 * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
270 2009-08-07 Ed Schonberg <schonberg@adacore.com>
272 * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
273 even if not in main unit, to simplify debugging.
275 2009-08-07 Arnaud Charlet <charlet@adacore.com>
277 * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
278 * gcc-interface/Make-lang.in: Update dependencies.
280 2009-08-07 Robert Dewar <dewar@adacore.com>
282 * types.ads: Minor reformatting
283 * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
284 * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
285 Output_Non_Modified_In_Out_Warnings.
286 * sem_ch13.adb: Remove ??? comment.
288 2009-08-07 Vincent Celier <celier@adacore.com>
290 * mlib-prj.adb (Build_Library): Include binder generate object file
291 for SAL when library name is only one character.
293 2009-08-07 Thomas Quinot <quinot@adacore.com>
295 * targparm.adb: Minor reformatting
296 * sem.adb: Minor reformatting
297 * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
299 2009-08-07 Emmanuel Briot <briot@adacore.com>
301 * prj-conf.adb: Remove duplicate directory separator in the output when
302 an object directory does not exist.
304 2009-08-07 Robert Dewar <dewar@adacore.com>
306 * exp_util.adb: Minor reformatting
308 2009-08-07 Vincent Celier <celier@adacore.com>
310 * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
313 2009-08-07 Ed Schonberg <schonberg@adacore.com>
315 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
316 detect non-static private components that will violate restriction
317 No_Implicit_Heap_Allocation.
319 2009-08-07 Ben Brosgol <brosgol@adacore.com>
321 * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
323 2009-08-02 Eric Botcazou <ebotcazou@adacore.com>
325 * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
326 * gcc-interface/utils.c (end_subprog_body): Likewise.
327 * gcc-interface/trans.c (gigi): Likewise.
328 (gnat_to_gnu): Likewise.
330 2009-07-30 Ben Brosgol <brosgol@adacore.com>
332 * gnat_ugn.texi: Correct minor texi glitch.
334 2009-07-30 Ed Schonberg <schonberg@adacore.com>
336 * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
337 expression has an underlying representation that is an unchecked union,
338 there is no subtype to build.
340 2009-07-30 Robert Dewar <dewar@adacore.com>
342 * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
343 s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
344 sem_ch7.adb, adaint.c: Minor reformatting
346 2009-07-29 Javier Miranda <miranda@adacore.com>
348 * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
349 moved from the expander to the semantic analyzer to allow the
350 generation of these internal entities when compiling with no code
351 generation. Required by ASIS.
352 * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
353 * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
354 * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
355 (Expand_Freeze_Record_Type): Remove call to
356 Add_Internal_Interface_Entities because this routine is now called at
357 early stage --when the freezing node is analyzed.
359 2009-07-29 Robert Dewar <dewar@adacore.com>
361 * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
362 exp_disp.adb, g-socket.adb: Minor reformatting
364 2009-07-29 Ed Schonberg <schonberg@adacore.com>
366 * sem_ch7.adb (New_Private_Type): Create class-wide type after other
367 attributes have been established, so that they are all inherited by the
369 * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
370 properly named subtypes of class-wide types.
372 2009-07-29 Ed Schonberg <schonberg@adacore.com>
374 * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
375 indicators on user-defined operators.
377 2009-07-29 Vadim Godunko <godunko@adacore.com>
379 * g-socket.adb (Receive_Vector): Add comment.
381 2009-07-29 Javier Miranda <miranda@adacore.com>
383 * frontend.adb (Frontend): Code cleanup.
384 * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
385 Rewriten as a procedure because it a new out-mode parameters to
386 keep up-to-date the controlling tag node in the caller.
387 (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
388 new out-mode parameter to keep up-to-date the controlling tag node in
390 * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
391 exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
393 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
394 available in new package Sem_SCIL.
395 (Next_Non_SCIL_Node): Ditto.
396 * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
398 (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
399 plus complete decoration of SCIL dispatching node.
400 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
401 * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
403 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
404 * exp_ch3.adb (Build_Init_Procedure): Fix comment.
405 * sem_scil.ads, sem_scil.adb: New files.
406 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
409 2009-07-28 Robert Dewar <dewar@adacore.com>
411 * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
412 makeutl.adb: Minor reformatting & code reorganization
413 * sem_ch3.adb: Minor reformatting.
414 Fix spelling error (constraint for constrain) in error msg.
416 2009-07-28 Emmanuel Briot <briot@adacore.com>
418 * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
419 global variable that also exists in makeutl.ads, and that some routines
420 in that package use already.
421 (Check): Moved part of the code to makeutl.adb for better sharing with
424 2009-07-28 Arnaud Charlet <charlet@adacore.com>
426 * gcc-interface/Make-lang.in: Update dependencies.
428 2009-07-28 Emmanuel Briot <briot@adacore.com>
430 * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
431 importing project does not end up in the list, in the case of extending
433 * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
434 makeutl.ads, for better sharing with gprbuild.
436 2009-07-28 Arnaud Charlet <charlet@adacore.com>
438 * gnat_ugn.texi: Fix typo.
440 2009-07-28 Ed Schonberg <schonberg@adacore.com>
442 * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
443 derivation that renames some discriminants and constrain others.
444 * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
445 prefix is a derived untagged type, convert to the root type to conform
446 to the signature of the protected operations.
448 2009-07-28 Robert Dewar <dewar@adacore.com>
450 * sinfo.ads: Update comments.
451 * exp_attr.adb: Minor reformatting
453 2009-07-28 Ed Schonberg <schonberg@adacore.com>
455 * sem_aggr.adb (Get_Value): A named association in a record aggregate
456 should be treated as a modification of the named component, not as a
459 2009-07-28 Quentin Ochem <ochem@adacore.com>
461 * prj-tree.ads, prj-tree.adb (Free): Minor editing.
462 * prj.ads, prj.adb (Image): Ditto.
464 2009-07-28 Arnaud Charlet <charlet@adacore.com>
466 * frontend.adb: Minor reformatting.
467 (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
470 2009-07-28 Bob Duff <duff@adacore.com>
472 * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
473 'Address to get a pointer to the protected body wrapper.
475 2009-07-28 Javier Miranda <miranda@adacore.com>
477 * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
478 nodes if we are not generating code.
479 * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
480 attribute SCIL_Related_Node of SCIL dispatching nodes.
481 (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
482 * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
483 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
484 (SCIL_Entity): Update documentation.
485 (SCIL_Related_Node): Update documentation.
486 (SCIL_Controlling_Tag): New attribute.
487 (SCIL_Target_Prim): Update documentation.
488 (N_Null_Statement): Remove attributes associated with SCIL nodes.
489 (N_SCIL_Dispatch_Table_Object_Init): New node.
490 (N_SCIL_Dispatch_Table_Tag_Init): New node.
491 (N_SCIL_Dispatching_Call): New node.
492 (N_SCIL_Tag_Init): New node.
493 * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
494 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
495 (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
496 (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
497 (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
498 (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
499 N_SCIL_Dispatching_Call nodes.
500 * sem.adb (Analyze): No need to analyze SCIL nodes.
501 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
502 (Next_Non_SCIL_Node): New subprogram
503 * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
505 * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
507 * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
509 * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
510 null statement nodes.
511 (Build_Init_Procedure): Generate new SCIL node.
512 * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
514 * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
515 they are currently implemented as special N_Null_Statement nodes.
516 * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
517 procedure call then check if some SCIL node references it and needs
519 * exp_disp.ads (SCIL_Node_Kind): Removed.
520 (Adjust_SCIL_Node): New subprogram.
521 (Find_SCIL_Node): New subprogram.
522 (Get_SCIL_Node_Kind): Removed.
523 (New_SCIL_Node): Removed.
524 * exp_disp.adb (Adjust_SCIL_Node): New subprogram
525 (Expand_Dispatching_Call): Generate new SCIL dispatching node including
526 decoration of its new controlling_tag attribute.
527 (Get_SCIL_Node_Kind): Removed.
528 (Find_SCIL_Node): New subprogram.
529 (Make_Secondary_DT): Generate new SCIL nodes.
530 (Make_Tags): Generate new SCIL nodes.
531 (New_SCIL_Node): Removed.
532 * exp_util.adb (Insert_Actions): Handle SCIL nodes.
533 (Remove_Side_Effects): Check if relocated nodes require readjustment
534 of some SCIL dispatching node.
535 * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
537 2009-07-28 Robert Dewar <dewar@adacore.com>
539 * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
541 2009-07-28 Sergey Rybin <rybin@adacore.com>
543 * gnat_ugn.texi: Add section about gnatcheck rule exemption.
545 2009-07-28 Vadim Godunko <godunko@adacore.com>
547 * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
548 not defined by limits.h.
550 * g-socket.adb (Receive_Vector): Use minimum length from user's vector
551 length and maximum supported length of data vector.
553 2009-07-28 Gary Dismukes <dismukes@adacore.com>
555 * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
556 * make.adb: Call Get_Target_Parameters before calling Usage so that
557 VM_Target and AAMP_On_Target will be set.
559 2009-07-28 Olivier Hainque <hainque@adacore.com>
561 * g-ssinty.ads: Remove, pointless and just confusing at this stage.
562 * gnat_rm.texi: Remove documentation.
563 * g-sse.ads: Minor reorg along the way.
564 * gcc-interface/Makefile.in: Remove processing for g-ssinty.
565 * g-ssvety.ads: Minor comment updates.
567 2009-07-28 Sergey Rybin <rybin@adacore.com>
569 * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
570 for the new format of the report file.
572 2009-07-28 Sergey Rybin <rybin@adacore.com>
574 * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
576 2009-07-28 Pascal Obry <obry@adacore.com>
578 * g-expect.adb: Record standard handles only on Windows.
580 2009-07-27 Emmanuel Briot <briot@adacore.com>
582 * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
585 2009-07-27 Sergey Rybin <rybin@adacore.com>
587 * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
588 rule definition the paragraph that explains that generic functions and
589 functions from generic packages are not checked.
591 2009-07-27 Gary Dismukes <dismukes@adacore.com>
593 * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
594 procedure when determining whether to set the Overridden_Operation
595 field of a subprogram overriding an inherited subprogram.
597 2009-07-27 Robert Dewar <dewar@adacore.com>
599 * a-except.adb, a-except-2005.ads: Minor reformatting
601 2009-07-27 Robert Dewar <dewar@adacore.com>
603 * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
605 2009-07-27 Javier Miranda <miranda@adacore.com>
607 * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
608 add some documentation explaining why the SCIL nodes must be generated
611 2009-07-27 Olivier Hainque <hainque@adacore.com>
613 * a-except.adb: Bind to __builtin_longjmp directly.
614 * a-except-2005.ads: Provide direct binding to __builtin_longjmp
616 * a-exexpr.adb: Use it.
617 * a-except-xi.adb: Likewise.
618 * raise.c (_gnat_builtin_longjmp): Remove and update comments.
619 * raise.h (_gnat_builtin_longjmp): Remove declaration.
621 2009-07-27 Ed Schonberg <schonberg@adacore.com>
623 * sem_eval.adb (Compile_Time_Compare): More precise handling of
624 Known_Valid flag, to prevent spurious range deductions when scalar
625 variables may be uninitialized. New predicate Is_Known_Valid_Operand.
627 2009-07-27 Robert Dewar <dewar@adacore.com>
629 * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
632 2009-07-27 Ed Schonberg <schonberg@adacore.com>
634 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
635 Ravenscar mode. Error has already been posted on specification.
637 * sem.adb: Further code clean ups.
639 2009-07-27 Robert Dewar <dewar@adacore.com>
641 * g-sse.ads: Minor reformatting
643 2009-07-27 Arnaud Charlet <charlet@adacore.com>
645 * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
646 alternate ali extension.
647 * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
648 account Osint.ALI_Suffix.
649 * osint.ads (ALI_Suffix): Make visible.
650 * gnatfind.adb (Gnatfind): Add support for --ext= switch.
651 * gnat_ugn.texi: Document new gnatfind --ext= switch.
653 2009-07-27 Ed Schonberg <schonberg@adacore.com>
655 * sem.adb (Walk_Library_Items): If main unit is an instance body, do
658 2009-07-27 Javier Miranda <miranda@adacore.com>
660 * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
661 the dispatching call has is expanded.
663 2009-07-27 Ed Schonberg <schonberg@adacore.com>
665 * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
666 Is_Known_Valid flag on the temporary created for the value whose
667 validity is being checked.
669 * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
670 handle properly main units that are package specifications.
672 2009-07-27 Geert Bosch <bosch@adacore.com>
674 * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
675 * sem_aux.ads: Fix typo in comment
676 * sem_util.ads (Is_LHS): Adjust comment to match body
678 2009-07-27 Sergey Rybin <rybin@adacore.com>
680 * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
683 2009-07-27 Olivier Hainque <hainque@adacore.com>
685 * g-sse.ads, g-ssvety.ads: Update comments.
687 2009-07-27 Sergey Rybin <rybin@adacore.com>
689 * gnat_ugn.texi: Update gnatcheck doc.
691 2009-07-27 Arnaud Charlet <charlet@adacore.com>
693 * lib-xref.ads: Allocate/document 'o' char for use by references to
694 spark 'own' variables.
696 2009-07-27 Gary Dismukes <dismukes@adacore.com>
698 * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
699 objects, since these are implicitly referenced by the return statement.
700 * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
701 Is_Return_Object in this procedure, as return objects will never make
702 it here since they're now marked as Referenced.
704 2009-07-27 Robert Dewar <dewar@adacore.com>
706 * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
708 2009-07-27 Robert Dewar <dewar@adacore.com>
710 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
712 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
714 2009-07-27 Geert Bosch <bosch@adacore.com>
716 * checks.adb (Find_Check): Minor streamlining of logic.
717 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
718 * debug.adb: Document -gnatdX debug flag
719 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
720 list information about reads from scalar entities.
721 Also slightly simplify condition for Expand_Current_Value.
722 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
725 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
728 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
729 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
731 (__gnat_stat): Adjust reference to STAT in prototype.
732 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
733 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
734 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
735 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
736 __gnat_is_writable_file, __gnat_is_executable_file,
737 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
738 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
739 __gnat_copy_attribs): Adjust all references to the above.
740 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
742 2009-07-23 Ed Schonberg <schonberg@adacore.com>
744 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
745 done at the same time, guard against listing a body more than once.
747 2009-07-23 Robert Dewar <dewar@adacore.com>
749 * exp_ch6.adb: Minor reformatting
751 2009-07-23 Ed Schonberg <schonberg@adacore.com>
753 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
754 static expression is known valid.
755 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
756 operands of a subtype with a single value.
758 2009-07-23 Ed Schonberg <schonberg@adacore.com>
760 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
761 are in the context of the main unit body.
763 2009-07-23 Sergey Rybin <rybin@adacore.com>
765 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
766 misprint in rule description.
768 2009-07-23 Gary Dismukes <dismukes@adacore.com>
770 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
771 test that the object declaration is within an extended return statement
772 with direct test of whether the declared object associated with the
773 build-in-place call is a return object, since the enclosing function
774 might not even be a build-in-place function.
776 2009-07-23 Robert Dewar <dewar@adacore.com>
778 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
779 Minor code reorganization
781 2009-07-23 Arnaud Charlet <charlet@adacore.com>
783 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
784 for static analysis, only packed arrays are causing troubles.
786 2009-07-23 Gary Dismukes <dismukes@adacore.com>
788 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
789 ancestor part is a call to a limited function with an unconstrained
790 result subtype unless the aggregate has a null extension type.
791 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
792 the parent type declaration to avoid blowups on subtype cases.
794 2009-07-23 Robert Dewar <dewar@adacore.com>
796 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
799 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
801 * s-regexp.adb: Minor reformatting
802 * scos.ads: Minor reformatting.
804 2009-07-23 Arnaud Charlet <charlet@adacore.com>
806 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
807 other similar messages.
808 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
809 messages/implicit packing in CodePeer mode.
810 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
811 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
814 2009-07-23 Pascal Obry <obry@adacore.com>
816 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
819 2009-07-23 Robert Dewar <dewar@adacore.com>
821 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
824 2009-07-23 Yannick Moy <moy@adacore.com>
826 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
828 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
830 (Raise_Exception): Ditto.
832 2009-07-23 Olivier Hainque <hainque@adacore.com>
834 * g-sse.ads: Simplify comment.
836 2009-07-23 Olivier Hainque <hainque@adacore.com>
838 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
839 low level internal type definitions for distinct higher level
840 binding development activities (user type definitions and
842 * gnat_rm.texi: Document it.
843 * g-ssvety.ads: Use it.
844 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
845 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
846 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
847 for the "may_alias" attribute.
849 2009-07-23 Thomas Quinot <quinot@adacore.com>
851 * scos.ads: Minor typo fix
853 * gcc-interface/decl.c (validate_alignment): For the case of an
854 implicit array base type, look for alignment clause on first subtype.
856 2009-07-23 Robert Dewar <dewar@adacore.com>
858 * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
859 with tagged parent if tagged parent is fully repped.
861 2009-07-23 Ed Schonberg <schonberg@adacore.com>
863 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
864 in the context depends on the spec of the main unit, by delaying
865 processing of the main unit body until all other units have been
868 2009-07-23 Arnaud Charlet <charlet@adacore.com>
870 * a-convec.adb: Add comments about suspicious/subtle code.
872 2009-07-23 Ed Schonberg <schonberg@adacore.com>
874 * einfo.ads: Document use of Alias in private overriding
876 2009-07-23 Thomas Quinot <quinot@adacore.com>
878 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
879 an array type, propagate alignment from first subtype to implicit base
880 type so that other subtypes (such as the itypes for aggregates of the
881 type) also receive the expected alignment.
883 * g-comlin.ads: Minor documentation clarification/rewording.
884 * scos.ads: Minor comments update.
885 * lib-writ.ads: Minor reformatting
887 2009-07-23 Gary Dismukes <dismukes@adacore.com>
889 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
890 of a class-wide interface type that is a return object of a
891 build-in-place function, bypass the interface-related expansions into
892 renamings with displacement conversions, etc.
893 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
894 for the case where a renaming occurs in a build-in-place context, to
895 assert that the bypassing of the build-in-place treatment only occurs
896 in the case of a renaming that is an expansion of a return expression
897 that is itself a build-in-place function call.
899 2009-07-23 Ed Schonberg <schonberg@adacore.com>
901 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
902 valid candidate interpretation in a prefixed view if it is hidden, but
903 overrides an inherited operation declared in the visible part.
905 2009-07-23 Robert Dewar <dewar@adacore.com>
907 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
908 division operands to 64-bit at all in any circumstances.
910 2009-07-23 Robert Dewar <dewar@adacore.com>
912 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
913 checking ranges for mod/rem to see if conditional jump will be
915 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
916 generating special -1 test for rem, generate it whenever both
917 operands can be negative (match circuit in Sem_Res).
918 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
919 destroys memory of positive range.
920 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
921 checking ranges for mod/rem to see if conditional jump will be generated
923 2009-07-23 Ed Schonberg <schonberg@adacore.com>
925 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
926 scalar components has non-static bounds, the equivalent aggregate
927 cannot be built, even if the expression is static, because range checks
930 2009-07-23 Robert Dewar <dewar@adacore.com>
932 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
933 division operands to 64-bit inside a conversion if 64-bit division not
936 2009-07-23 Sergey Rybin <rybin@adacore.com>
938 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
940 2009-07-23 Javier Miranda <miranda@adacore.com>
942 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
943 (Entity/Set_Entity): not available in N_Null_Statement nodes
944 (Is_Scil_Node): renamed as Is_SCIL_Node
945 (Scil_Nkind): renamed as SCIL_Nkind
946 (Scil_Related_Node): renamed as SCIL_Related_Node
947 (Scil_Target_Prim): renamed as SCIL_Target_Prim
948 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
949 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
950 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
952 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
953 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
954 (New_Scil_Node): Renamed as New_SCIL_Node
955 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
956 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
957 (New_Scil_Node): Renamed as New_SCIL_Node
958 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
960 2009-07-23 Robert Dewar <dewar@adacore.com>
962 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
963 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
964 * einfo.adb: Minor reformatting
966 2009-07-23 Robert Dewar <dewar@adacore.com>
968 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
969 cross-referencing the new related code in
970 Exp_Ch4.Expand_N_Type_Conversion.
971 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
973 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
976 2009-07-23 Javier Miranda <miranda@adacore.com>
978 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
979 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
980 * exp_disp.ads (Scil_Node_Kind): Ditto.
981 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
982 * exp_ch3.adb (Build_Init_Procedure): Ditto.
984 2009-07-23 Javier Miranda <miranda@adacore.com>
986 * einfo.adb (Component_Type): Add missing assertion.
987 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
988 reading attribute Component_Size.
989 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
990 before reading attributes Component_Size and Component_Type.
991 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
992 before reading attribute Component_Type.
994 2009-07-23 Olivier Hainque <hainque@adacore.com>
996 * gnat_rm.texi: Document the GNAT.SSE units.
998 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1000 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
1001 not null return if it appears on a subunit.
1003 2009-07-23 Robert Dewar <dewar@adacore.com>
1005 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
1006 check right away so it does not get skipped for early returns, e.g.
1008 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
1009 left-side unless we really know the value is valid.
1011 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
1012 reformatting. Minor code reorganization. Add comments.
1014 2009-07-23 Robert Dewar <dewar@adacore.com>
1016 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
1019 2009-07-23 Gary Dismukes <dismukes@adacore.com>
1021 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
1022 with test of coverage, to allow specific type objects in extended
1023 returns of class-wide functions. Remove now-unnecessary special-case
1024 tests that allowed this in certain cases of expanded extended returns.
1026 2009-07-23 Javier Miranda <miranda@adacore.com>
1028 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
1029 N_Null_Statements (for SCIL nodes).
1030 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
1031 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
1032 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
1034 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
1035 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
1036 associated with dispatching call.
1037 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
1038 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
1039 initialization of dispatch tables and initialization of tags.
1040 (New_Scil_Node): New function that creates a new SCIL node.
1041 (Build_Init_Procedure): Add generation of SCIL node associated with the
1042 initialization of tags done in the IP subprogram.
1044 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1046 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
1047 Warnings_Off, do not emit continuation messages.
1049 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
1052 2009-07-23 Emmanuel Briot <briot@adacore.com>
1054 * ali.adb: Minor comment update
1056 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
1058 * s-win32.ads (HANDLE): Define to be the same size as address type.
1061 2009-07-23 Olivier Hainque <hainque@adacore.com>
1063 * g-sse.ads: New file. Root of the SSE facilities trees, with
1064 general description and common declarations.
1065 * g-ssvety.ads: New file. Expose user level SSE vector types.
1066 * impunit.adb (Non_Imp_File_Names_95): Register new units.
1067 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
1068 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
1070 2009-07-23 Ben Brosgol <brosgol@adacore.com>
1072 * gnat_ugn.texi: Wordsmithing.
1074 2009-07-23 Arnaud Charlet <charlet@adacore.com>
1076 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
1078 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
1080 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
1081 they are already of the base type of the index.
1083 2009-07-22 Brett Porter <porter@adacore.com>
1085 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
1087 2009-07-22 Robert Dewar <dewar@adacore.com>
1089 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
1090 * gnat_ugn.texi: Add documentation for -gnateS switch
1091 * ug_words: Add entry for -gnateS /SCO_OUTPUT
1092 * gcc-interface/Make-lang.in: Update dependencies.
1094 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
1095 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
1096 complete information for SCO input/output.
1098 2009-07-22 Sergey Rybin <rybin@adacore.com>
1100 * gnat_ugn.texi: Update doc for some gnatcheck rules.
1102 2009-07-22 Robert Dewar <dewar@adacore.com>
1104 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
1105 contents of SCO tables.
1106 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
1107 scos.adb, scos.ads: New files.
1108 * gcc-interface/Make-lang.in: Update dependencies.
1110 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
1111 fixes and reformatting.
1113 2009-07-22 Robert Dewar <dewar@adacore.com>
1115 * g-socket.ads: Minor reformatting
1117 2009-07-22 Gary Dismukes <dismukes@adacore.com>
1119 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
1120 include the entity kind for following cases of unreferenced entities:
1121 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
1123 2009-07-22 Ed Falis <falis@adacore.com>
1125 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
1128 2009-07-22 Arnaud Charlet <charlet@adacore.com>
1130 * adadecode.c: Make this file compilable outside of GCC.
1132 2009-07-22 Thomas Quinot <quinot@adacore.com>
1134 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
1135 (partially) default-initialized socket sets are handled properly by
1136 clearing their Set component.
1138 2009-07-22 Bob Duff <duff@adacore.com>
1140 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
1142 2009-07-22 Robert Dewar <dewar@adacore.com>
1144 * gnat_ugn.texi: Minor reformatting
1146 2009-07-22 Ed Schonberg <schonberg@adacore.com>
1148 * errout.adb (Error_Msg): A style message within an instantiation
1149 should not be labelled as an error.
1151 2009-07-22 Ed Schonberg <schonberg@adacore.com>
1153 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
1154 in initialization expression if function does not have convention Ada.
1156 2009-07-22 Sergey Rybin <rybin@adacore.com>
1158 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
1159 '--separate-label' to control label layout.
1161 2009-07-22 Robert Dewar <dewar@adacore.com>
1163 * exp_tss.ads, sem_eval.adb: Minor reformatting
1165 2009-07-22 Bob Duff <duff@adacore.com>
1167 * exp_dist.adb, exp_dist.ads: Update comments.
1169 2009-07-22 Brett Porter <porter@adacore.com>
1171 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
1173 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
1175 2009-07-22 Gary Dismukes <dismukes@adacore.com>
1177 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
1178 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
1180 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
1181 used poor terminology.
1183 2009-07-22 Robert Dewar <dewar@adacore.com>
1185 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
1186 * sem_eval.adb, exp_tss.adb: Minor comment update.
1187 * stylesw.adb: Code clean up.
1189 2009-07-22 Ed Schonberg <schonberg@adacore.com>
1191 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
1192 component size is an exact number of bytes, an array type can have a
1193 size clause that forces packing even though the array type itself is
1196 2009-07-22 Thomas Quinot <quinot@adacore.com>
1198 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
1199 if there is a previous entity with the same name in the scope, ignore
1200 it if it is the renaming declaration for a generic package introduced
1203 2009-07-22 Nicolas Roche <roche@adacore.com>
1205 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
1206 handler on x86_64 windows.
1208 2009-07-22 Arnaud Charlet <charlet@adacore.com>
1210 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
1211 false positives in CodePeer, so ignore this pragma in this mode.
1213 2009-07-22 Thomas Quinot <quinot@adacore.com>
1215 * sem_util.adb, sem_ch10.adb: Minor reformatting
1217 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
1218 special handling for the case of no data received and Item'First =
1219 Stream_Element_Offset'First.
1220 (Last_Index): New subprogram factoring the above special handling
1221 over the various locations where it is required.
1223 2009-07-22 Arnaud Charlet <charlet@adacore.com>
1225 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
1226 checks in CodePeer_Mode.
1227 * gcc-interface/Make-lang.in: Update dependencies.
1229 2009-07-22 Ed Schonberg <schonberg@adacore.com>
1231 * sem_aggr.adb: Improve error message.
1233 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
1234 of an address representation clause.
1235 * freeze.adb (Freeze_Static_Object): An local imported object is legal
1236 if it has an address clause.
1238 2009-07-22 Thomas Quinot <quinot@adacore.com>
1240 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
1241 expression to insert an elab check using a conditional expression, be
1242 sure to carry the original list of interpretations to the new location.
1244 2009-07-22 Gary Dismukes <dismukes@adacore.com>
1246 * gnat1drv.adb: Fix spelling error.
1248 2009-07-22 Javier Miranda <miranda@adacore.com>
1250 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
1251 at the library level and fix a hidden bug in its implementation: its
1252 functionality for renaming objects was broken because
1253 N_Object_Renaming_Declarations nodes are not a subclass of
1254 N_Declaration nodes (as documented in sinfo.ads).
1255 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
1256 check nodes that are actuals of generic instantiations.
1258 2009-07-22 Ed Schonberg <schonberg@adacore.com>
1260 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
1261 context of a compilation unit is being analyzed. Used to detect
1262 circularities created by with_clauses that are not detected by the
1264 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
1265 analyzing the context of the current compilation unit, to detect
1266 possible circularities created by with_clauses.
1268 2009-07-22 Thomas Quinot <quinot@adacore.com>
1270 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
1272 2009-07-22 Robert Dewar <dewar@adacore.com>
1274 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
1275 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
1277 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
1278 * gnat_ugn.texi: Add documentation of -gnatyB
1279 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
1281 2009-07-22 Robert Dewar <dewar@adacore.com>
1283 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
1284 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
1285 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
1286 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
1287 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
1288 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
1289 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
1290 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
1291 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
1292 obey short-circuit style rule.
1294 2009-07-20 Bob Duff <duff@adacore.com>
1296 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
1297 instead of "and", because otherwise Parent_Last_Bit is read
1298 uninitialized in the case where it's not a tagged type, or the tagged
1299 parent does not have a complete rep clause.
1301 2009-07-20 Robert Dewar <dewar@adacore.com>
1303 * stylesw.ads: Minor documentation change.
1305 * types.ads: Minor reformatting
1307 2009-07-20 Javier Miranda <miranda@adacore.com>
1309 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
1310 generating the tag checks associated with dispatching calls.
1311 * exp_disp.adb (Apply_Access_Checks): New subprogram.
1312 (New_Value): This routine was previously local to expand dispatching
1313 calls but it is now used also by Apply_Access_Checks.
1314 (Expand_Dispatching_Calls): Cleanup code because the functionality of
1315 tag checks is now provided by Apply_Access_Checks.
1316 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
1317 case of dispatching calls.
1319 2009-07-20 Arnaud Charlet <charlet@adacore.com>
1321 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
1324 2009-07-20 Gary Dismukes <dismukes@adacore.com>
1326 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
1327 for VMS, only rewrite the first component of the associated exception's
1328 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
1329 and third components that were being replaced with 'M' and 'S'.
1331 2009-07-20 Arnaud Charlet <charlet@adacore.com>
1333 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
1334 Also do not generate error when parsing a spec in CodePeer mode.
1336 2009-07-20 Javier Miranda <miranda@adacore.com>
1338 * checks.adb (Apply_Access_Check): Avoid checks on availability of
1339 runtime function Offset_To_Top_Ptr when compiling with no tagged
1341 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
1342 adding code to the init proc when compiling for VM backends.
1344 2009-07-20 Vincent Celier <celier@adacore.com>
1346 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
1347 account switches -gnatw.?
1349 2009-07-20 Thomas Quinot <quinot@adacore.com>
1351 * sem_dist.adb, exp_dist.adb: Minor reformatting
1353 * Make-generated.in: New file.
1355 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
1357 2009-07-20 Javier Miranda <miranda@adacore.com>
1359 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
1361 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
1362 dynamically tagged expression.
1363 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
1365 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
1366 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
1368 2009-07-20 Arnaud Charlet <charlet@adacore.com>
1370 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
1371 CodePeer_Mode is set, to benefit from full front-end expansion
1374 2009-07-20 Ed Schonberg <schonberg@adacore.com>
1376 * sem_res.adb: Add guard.
1378 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
1379 for possible attribute definition of External_Tag, in case clause
1380 appears in the private part of a package.
1382 2009-07-20 Jerome Guitton <guitton@adacore.com>
1384 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
1386 2009-07-20 Vadim Godunko <godunko@adacore.com>
1388 * a-coorma.adb: Minor reformatting.
1390 2009-07-20 Ed Schonberg <schonberg@adacore.com>
1392 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
1393 access return types.
1394 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
1395 provide an itype reference to gigi to force elaboration of the subtype
1396 at the proper point.
1398 2009-07-20 Tristan Gingold <gingold@adacore.com>
1400 * g-expect.adb: Avoid closeing already closed handle.
1402 2009-07-20 Robert Dewar <dewar@adacore.com>
1404 * sprint.adb (Write_Subprogram_Name): New procedure to output
1405 subprogram name with possible preceding $ (replaces
1406 Note_Implicit_Run_Time_Call).
1408 2009-07-20 Robert Dewar <dewar@adacore.com>
1410 * vms_data.ads: Minor reformatting
1412 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
1413 applies to base type.
1414 (Parent_Subtype): Now allowed on record subtype, applies to base type
1415 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
1416 for case of fully repped tagged type.
1417 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
1418 tag save/restore for fully repped tagged type case.
1419 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
1420 * fe.h (Is_Fully_Repped_Tagged_Type): New function
1421 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
1422 overlap of tagged type components with parent type if parent type is
1424 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
1426 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
1428 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
1429 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
1431 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
1432 logical operators (AND/OR/XOR), not comparison operators.
1434 * sprint.ads: Minor reformatting
1436 2009-07-20 Ed Schonberg <schonberg@adacore.com>
1438 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
1439 intrinsics, check that argument is a string literal, rather than
1440 checking for staticness.
1442 2009-07-20 Robert Dewar <dewar@adacore.com>
1444 * sem_ch13.adb: Minor reformatting
1446 * einfo.ads: Minor reformatting
1447 Component_Bit_Offset is no longer considered obsolescent
1449 2009-07-20 Nicolas Roche <roche@adacore.com>
1451 * a-calend.adb: Redefine time_t as signed integer with same size as
1453 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
1455 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
1458 2009-07-20 Javier Miranda <miranda@adacore.com>
1460 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
1461 constructors that have anonymous access type formals.
1463 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
1464 class-wide arguments in case of imported C++ subprograms.
1466 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
1468 2009-07-20 Sergey Rybin <rybin@adacore.com>
1470 * vms_data.ads: Update qualifiers.
1472 2009-07-20 Robert Dewar <dewar@adacore.com>
1474 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
1477 2009-07-17 Richard Guenther <rguenther@suse.de>
1480 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
1481 state. Remove unused parameter.
1482 (gnat_gimplify_function): Do not gimplify here.
1483 Fold into its only caller and remove.
1484 (gnat_builtin_function): Adjust for end_subprog_body signature change.
1485 (gnat_write_global_declarations): Also finalize the CU.
1486 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
1487 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
1488 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
1490 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
1492 2009-07-15 Arnaud Charlet <charlet@adacore.com>
1494 * gcc-interface/Make-lang.in: Update dependencies
1496 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
1498 2009-07-15 Robert Dewar <dewar@adacore.com>
1500 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
1501 N_Label. Remove SCO table entry for entry point (not used).
1503 * par_sco.ads: Remove SCO entry point type (not used)
1505 * switch.adb: Minor code clean up.
1507 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
1509 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
1511 2009-07-15 Thomas Quinot <quinot@adacore.com>
1513 * gnatls.adb: Minor reformatting
1515 * gnatcmd.adb: Minor code reorganization
1517 2009-07-15 Ed Schonberg <schonberg@adacore.com>
1519 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
1520 determine whether a component of a private type has a composite type.
1522 2009-07-15 Robert Dewar <dewar@adacore.com>
1524 * sem_ch10.adb: Minor reformatting throughout
1525 Minor code reorganization (put nested subprograms in alpha order)
1527 2009-07-15 Ed Schonberg <schonberg@adacore.com>
1529 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
1530 when compiling a call to a protected function that returns a controlled
1533 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
1535 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
1536 one. Add task locking and unlocking around the critical region which
1537 mentions localtime_r and global variable timezone for various targets.
1538 Comment reformatting.
1540 2009-07-15 Robert Dewar <dewar@adacore.com>
1542 * gnat_rm.texi: Document s-ststop.ads
1544 * impunit.ad: (Map_Array): New table of alternative names
1545 (Get_Kind_Of_Unit): Return possible suggested alternative name
1547 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
1550 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
1551 alternative unit if an implementation unit is with'ed.
1553 2009-07-15 Robert Dewar <dewar@adacore.com>
1555 * gnat_ugn.texi: Minor updates.
1557 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
1559 2009-07-15 Ed Schonberg <schonberg@adacore.com>
1561 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
1562 conditions of a derived boolean type.
1565 2009-07-15 Robert Dewar <dewar@adacore.com>
1567 * gnat1drv.adb: Initialize SCO tables
1569 * par-load.adb: Call SCO_Record for main unit spec
1571 * par.adb: Make call to SCO_Record for main unit
1573 * par_sco.adb (Unit_Table): Change format to facilitate sort
1574 (Process_Decisions): New procedure with list argument
1575 (Traverse_Generic_Package_Declaration): New procedure
1576 (Initialize): New procedure, replaces Init
1577 (SCO_Output): Sort unit table before output
1578 (SCO_Record): Avoid duplications
1579 (SCO_Record): Handle remaining cases of units
1580 (Traverse_Declarations_Or_Statements): Handle generics
1582 * par_sco.ads (Initialize): New peocedure (replaces Init)
1584 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
1587 2009-07-15 Arnaud Charlet <charlet@adacore.com>
1589 * debug.adb: Add -gnatd.J switch for now to support scil generation in
1590 parallel. Add missing doc for -gnatd.I and -gnatd.O
1592 2009-07-15 Robert Dewar <dewar@adacore.com>
1594 * lib-load.adb: Minor reformatting
1596 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
1598 2009-07-15 Robert Dewar <dewar@adacore.com>
1600 * par.adb: Minor reformatting
1601 Add ??? comment for possible bad comment
1603 * par-ch10.adb: Minor reformatting
1605 2009-07-15 Ed Schonberg <schonberg@adacore.com>
1607 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
1608 is a literal of a derived boolean type, it appears as an unchecked
1609 conversion. Retrieve actual value from expression of conversion.
1611 2009-07-15 Robert Dewar <dewar@adacore.com>
1613 * sem_ch3.adb: Minor reformatting
1615 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
1616 lib-writ.ads, lib-writ.adb: Minor reformatting.
1617 Fix problem with SCO format in ALI files
1619 2009-07-15 Robert Dewar <dewar@adacore.com>
1621 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
1622 exp_aggr.adb: Minor code reorganization (better calling sequence for
1625 2009-07-15 Thomas Quinot <quinot@adacore.com>
1627 * opt.ads: Minor comment edits
1629 2009-07-15 Tristan Gingold <gingold@adacore.com>
1631 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
1634 2009-07-15 Robert Dewar <dewar@adacore.com>
1636 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
1639 * lib-writ.ads: Document addition of SCO lines to ALI file
1641 * par_sco.ads, par_sco.adb: New files.
1643 * opt.ads (Generate_SCO): New switch
1645 * par.adb (Par): Call SCO_Record to record SCO information
1647 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
1649 * switch-c.adb: Recognize -gnateS to generate SCO information
1651 * usage.adb: Add line for -gnateS
1653 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
1655 2009-07-15 Robert Dewar <dewar@adacore.com>
1657 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
1660 2009-07-15 Thomas Quinot <quinot@adacore.com>
1662 * g-socthi-mingw.adb: Minor comment addition
1664 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
1666 2009-07-15 Robert Dewar <dewar@adacore.com>
1668 * g-htable.ads, s-htable.ads: Minor reformatting
1670 2009-07-15 Robert Dewar <dewar@adacore.com>
1672 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
1673 new switch -gnatw.g.
1674 (Set_GNAT_Mode_Warnings): New procedure.
1676 * lib-xref.adb: Minor reformatting
1678 2009-07-15 Robert Dewar <dewar@adacore.com>
1680 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
1681 Minor code reorganization
1683 2009-07-14 Taras Glek <tglek@mozilla.com>
1684 Rafael Espindola <espindola@google.com>
1686 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
1687 installing plugin headers.
1689 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1691 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
1692 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
1693 and link it to the expression whose value it captures.
1695 2009-07-13 Robert Dewar <dewar@adacore.com>
1697 * output.adb: Minor comment addition for last change
1699 * sinfo.ads: Minor reformatting
1701 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
1703 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
1704 spawn failed like on all other targets.
1706 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1708 * exp_ch7.adb: Indicate origin of temporary for transient expression.
1710 2009-07-13 Thomas Quinot <quinot@adacore.com>
1712 * s-oscons-tmplt.c: Add comment.
1714 2009-07-13 Robert Dewar <dewar@adacore.com>
1716 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
1717 reformatting. Minor code reorganization (add 9 argument version of
1720 * impunit.adb: Remove s-os_lib from list of system extensions.
1722 * sem_util.ads: Minor reformatting
1724 * output.adb: Add warnings off/on around System.OS_Lib.
1726 2009-07-13 Bob Duff <duff@adacore.com>
1728 * exp_dist.adb: Minor comment updates.
1730 2009-07-13 Gary Dismukes <dismukes@adacore.com>
1732 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
1733 several references to CodePeer.
1735 2009-07-13 Bob Duff <duff@adacore.com>
1737 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
1738 Build_TypeCode_Function_All): Do not recurse if the type is the base
1741 2009-07-13 Robert Dewar <dewar@adacore.com>
1743 * exp_ch4.adb: Minor comment change
1745 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1747 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
1748 type of iteration, to prevent spurious warnings.
1750 2009-07-13 Nicolas Roche <roche@adacore.com>
1752 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
1755 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1757 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
1758 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
1760 (CodePeer_Mode): New -gnatC switch.
1761 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
1764 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
1766 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
1767 integer bound forces the check if it is compared to its subtype range.
1769 2009-07-13 Robert Dewar <dewar@adacore.com>
1771 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
1772 prj-strt.ads: Minor reformatting
1774 2009-07-13 Thomas Quinot <quinot@adacore.com>
1776 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
1777 set the type of the From_Any call to the base type.
1779 2009-07-13 Doug Rupp <rupp@adacore.com>
1781 * symbols-processing-vms-ia64.adb (Process): Add variables and
1782 constants to retrieve and check for symbol visibility.
1784 2009-07-13 Javier Miranda <miranda@adacore.com>
1786 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
1787 the identical type we remove the conversion completely because
1790 2009-07-13 Emmanuel Briot <briot@adacore.com>
1792 * prj-err.adb (Error_Msg): One more case where a message should be
1793 considered as a warning.
1795 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
1797 2009-07-13 Thomas Quinot <quinot@adacore.com>
1799 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
1800 calling stubs in the (library level) scope of the RCI locator, where it
1801 is attached, not in the caller's scope.
1803 2009-07-13 Javier Miranda <miranda@adacore.com>
1805 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
1806 interface object declarations we delay the generation of the equivalent
1807 record type declarations until its expansion because there are cases in
1808 which they are not required.
1810 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
1812 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
1813 addition of assertion.
1815 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
1816 interface types require no equivalent constrained type declarations
1817 because the expanded code only references the tag component associated
1819 (Find_Interface_Tag): Improve management of interfaces that are
1820 ancestors of tagged types.
1822 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
1823 class-wide object declarations to add missing support to statically
1824 displace the pointer to the object to reference the tag component
1825 associated with the interface.
1827 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
1828 auxiliary types associated with user-defined dispatching calls if the
1829 type has no user-defined primitives.
1831 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
1833 * mingw32.h: Make it explicit that we need XP or later.
1835 * initialize.c: Remove useless extern symbol declaration.
1837 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
1838 code reuse in expect.c.
1840 * adaint.c: Changes throughout the Windows section to redesign storage
1841 of the child process list and the process identification.
1843 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
1844 for interfacing, fix errors.
1845 (__gnat_expect_portable_execvp): use function in adaint.c
1847 2009-07-13 Emmanuel Briot <briot@adacore.com>
1849 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
1850 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
1851 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
1852 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
1853 (Prj.Nmsc.Report_Error): Removed, no longer needed.
1854 Always use Prj.Err.Report_Message.
1856 2009-07-13 Robert Dewar <dewar@adacore.com>
1858 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
1861 2009-07-13 Robert Dewar <dewar@adacore.com>
1863 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1864 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
1866 2009-07-13 Emmanuel Briot <briot@adacore.com>
1868 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
1869 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
1870 Ada_Prj_Include_File_Set): Removed, since not needed
1873 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1875 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
1876 Analyze_Membership_Op.
1878 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
1879 Resolve_Membership_Op.
1881 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
1884 2009-07-13 Robert Dewar <dewar@adacore.com>
1886 * clean.adb: Minor reformattting
1888 2009-07-13 Emmanuel Briot <briot@adacore.com>
1890 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
1891 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
1892 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
1893 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
1894 and attributes in a project tree.
1895 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
1896 Remove last remaining mode-specific code (ada_only or
1897 multi_language). This was duplicating code
1898 (Get_Mode, Set_Mode): removed, no longer used.
1899 (Initialize_Project_Path): all tools will now take into account both
1900 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
1901 Remove some global variables and subprograms no longer used
1902 Make temporary files tree-specific, to avoid interferences between
1903 trees loaded in memory at the same time.
1904 (Prj.Delete_Temporary_File): new subprogram
1905 (Object_Paths, Source_Paths): fields no longer stored in the project
1906 tree, since they are only needed locally in Set_Ada_Paths.
1907 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
1909 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
1910 by local variables in the appropriate subprograms
1911 (Has_Foreign_Sources): removed.
1913 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
1915 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1917 * gnat1drv.adb (Adjust_Global_Switches): No longer set
1918 Back_Annotate_Rep_Info in inspector mode.
1919 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
1921 * opt.ads: Update comment.
1923 2009-07-13 Robert Dewar <dewar@adacore.com>
1925 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
1926 prj.ads: Minor reformatting and code reorganization.
1928 * par-ch3.adb (Check_Restricted_Expression): New procedure
1930 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1932 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
1933 attribute into a call of the corresponding suprogram, create extra
1934 formals for the subprogram, because it may be a renaming whose
1935 analysis does not create extra formals.
1937 2009-07-13 Emmanuel Briot <briot@adacore.com>
1939 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
1940 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1941 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
1942 prj-tree.ads: Minor reformatting.
1943 (Processing_Flags): new record to encapsulate the set of common
1944 parameters to several subprograms in the project manager.
1945 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
1946 Remove the need for the Current_Dir parameter in subprograms.
1947 (Look_For_Sources): minor refactoring, now that we no longer need to
1948 share subprograms between the two Ada_Only and Multi_Language modes
1949 (Processing_Flags): New field Error_On_Unknown_Language.
1950 Merge tests for library project between gnatmake and gprbuild.
1952 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1954 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
1957 2009-07-13 Emmanuel Briot <briot@adacore.com>
1959 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
1962 2009-07-13 Thomas Quinot <quinot@adacore.com>
1964 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
1965 Write,Input,Output} from private view to full view.
1967 * sem_type.adb, sem_type.ads: Minor reformatting
1969 2009-07-13 Nicolas Setton <setton@adacore.com>
1971 * exp_dbug.ads: Add documentation note on the utility of
1972 DW_AT_GNAT_encoding for IDEs.
1974 2009-07-13 Robert Dewar <dewar@adacore.com>
1976 * g-socthi-vxworks.adb: Minor reformatting
1978 * gnatcmd.adb: Minor reformatting
1980 2009-07-13 Thomas Quinot <quinot@adacore.com>
1982 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
1983 removed, not used anymore.
1984 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
1985 New subprogram, implements copy of an Any value into a limited object.
1986 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
1987 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
1988 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
1989 of parameters of a limited type, use the above new subprogram.
1991 2009-07-13 Emmanuel Briot <briot@adacore.com>
1993 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
1995 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
1997 (Error_Report): Remove global variable, replaced by parameters.
1999 2009-07-13 Thomas Quinot <quinot@adacore.com>
2001 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
2002 standard sendto(2) interface for connected sockets (passing a null
2003 destination address). Use send(2) instead for that case.
2005 2009-07-13 Pascal Obry <obry@adacore.com>
2007 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
2009 2009-07-13 Emmanuel Briot <briot@adacore.com>
2011 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
2012 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
2013 variables and tables in prj-nmsc.adb.
2014 (Tree_Processing_Data): Renames Processing_Data, some new fields added
2015 (Project_Processing_Data): New record
2016 Simplify/unify check for missing sources.
2018 2009-07-13 Emmanuel Briot <briot@adacore.com>
2020 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
2021 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
2022 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
2023 prj-tree.ads (Immediate_Directory_Of): Removed.
2024 (Prj.Pars): Now parse the project simulating a default config file.
2025 (Add_Default_GNAT_Naming_Scheme): New subprogram
2026 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
2027 Remove gnatmake-specific parsing of source files.
2028 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
2029 the error itself to provide more precise diagnostics.
2030 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
2031 a unit belongs to several projects.
2032 (Copy_Interface_Sources): Search the full path of files to copy in the
2033 list of sources of the application rather than in the list of units.
2034 (Parse_Project_And_Apply_Config): Do not reset the name of the main
2036 (Check_File): Use htables to find out whether a source is duplicated.
2037 (Add_Source): check whether the source or unit were already seen earlier
2039 * gcc-interface/Makefile.in: Update gnatmake dependencies.
2041 2009-07-13 Robert Dewar <dewar@adacore.com>
2043 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
2044 expression if extensions permitted.
2046 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
2048 (P_Relation): Use P_Membership_Test
2050 * par.adb (P_Membership_Test): New procedure (implement membership set
2053 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
2055 * sprint.adb (Sprint_Node): Handle set form for membership tests.
2057 2009-07-13 Thomas Quinot <quinot@adacore.com>
2059 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
2060 Do not attempt to generate stubs for predefined primitives of
2061 synchronized interfaces.
2062 (Add_Stub_Type): Factor some code from the PCS-specific variants of
2065 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2067 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
2068 Controlling_Result flag from the operation they override.
2070 2009-07-13 Arnaud Charlet <charlet@adacore.com>
2072 * gcc-interface/Make-lang.in: Update dependencies
2074 2009-07-13 Robert Dewar <dewar@adacore.com>
2076 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
2077 details on unsupported constructs.
2079 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
2082 * s-trafor-default.adb: Correct some warnings
2084 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
2085 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
2088 * par-ch4.adb (Conditional_Expression): Capture proper location for
2089 conditional expression, should point to IF.
2091 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
2092 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
2093 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
2094 reorganization (use conditional expressions).
2096 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2098 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
2099 build-in-place function that returns an inherently limited type (not
2100 just a task type) create proper object declaration so that extra
2101 build-in-place actuals are properly added to the call.
2103 2009-07-13 Robert Dewar <dewar@adacore.com>
2105 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
2107 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
2109 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
2111 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
2112 Warn_On_Suspicious_Modulus_Value.
2114 * ug_words: Add entries for -gnatw.m/-gnatw.M.
2116 * usage.adb: Add lines for -gnatw.m/.M switches.
2118 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
2120 2009-07-13 Javier Miranda <miranda@adacore.com>
2122 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
2123 reading the Is_Interface attribute of the dispatching type.
2125 2009-07-13 Robert Dewar <dewar@adacore.com>
2127 * a-convec.adb: Minor code reorganization (use conditional expressions)
2129 2009-07-13 Robert Dewar <dewar@adacore.com>
2131 * freeze.adb (Check_Suspicious_Modulus): New procedure.
2133 2009-07-13 Robert Dewar <dewar@adacore.com>
2135 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
2138 * par-ch4.adb: Minor reformatting
2140 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2142 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
2143 => Is_Atomic_Aggregate
2145 2009-07-13 Emmanuel Briot <briot@adacore.com>
2147 * prj-nmsc.adb: Avoid traversing the list of source files if
2148 we have already processed all locally removed files.
2150 2009-07-13 Jose Ruiz <ruiz@adacore.com>
2152 * gnat_ugn.texi: Fix typo.
2154 2009-07-13 Robert Dewar <dewar@adacore.com>
2156 * freeze.adb: Minor reformatting
2157 Minor code reorganization (use Nkind_In)
2159 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
2161 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
2163 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
2164 local variable and do not test it in Compile_Time_Bad_Alignment.
2165 Do not issue size or alignment warnings for the X'Address form.
2166 * sem_util.ads (Find_Overlaid_Object): Delete.
2167 (Find_Overlaid_Entity): New procedure.
2168 * sem_util.adb (Find_Overlaid_Object): Rename to...
2169 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
2170 whether the address is offseted within the overlaid entity.
2171 (Has_Compatible_Alignment): Track the offset globally instead of
2172 passing it to Check_Offset. For an indexed component, compute the
2173 full offset when possible. If the resulting offset is zero, only
2175 (Check_Offset): Delete.
2176 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
2177 (Address_Aliased_Entity): Delete.
2178 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
2179 Find_Overlaid_Entity to find the overlaid entity and the offset.
2180 Adjust throughout for above change.
2181 (Validate_Address_Clauses): Always use attributes of entities, not of
2182 their type. Tweak message for warning. Call Has_Compatible_Alignment
2183 if the address is offseted to warn about incompatible alignments.
2184 * gcc-interface/gigi.h (annotate_object): Declare.
2185 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
2186 entity. Call annotate_object instead of annotating manually objects.
2187 (annotate_object): New function.
2188 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
2191 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
2193 * gcc-interface/ada-tree.h: Minor reorganization.
2194 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
2195 (gnat_print_type): Likewise.
2197 2009-07-11 Thomas Quinot <quinot@adacore.com>
2199 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
2202 * exp_ch6.adb: Minor reformatting
2204 2009-07-11 Ed Schonberg <schonberg@adacore.com>
2206 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
2207 account possible type qualification to determine whether aggregate
2208 needs a target temporary to respect atomic type or object.
2210 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
2211 Expand_Atomic_Aggregate.
2213 2009-07-11 Emmanuel Briot <briot@adacore.com>
2215 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
2217 (Excluded_Sources_Htable): No longer a global table.
2218 Change error message to indicate which files are illegal in the list
2219 of excluded files, as opposed to only the location in the project
2221 (Find_Source): New subprogram.
2223 2009-07-10 Thomas Quinot <quinot@adacore.com>
2225 * exp_ch7.adb: Update comments.
2227 2009-07-10 Arnaud Charlet <charlet@adacore.com>
2229 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
2230 clause if -gnatI is set instead of crashing.
2232 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2234 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
2235 Additional work to remove redundant successive raise statements, in
2236 this case access checks.
2238 2009-07-10 Vincent Celier <celier@adacore.com>
2240 * make.adb (Compile): Always create a deep copy of the mapping file
2241 argument (-gnatem=...) as it may be deallocate/reallocate by
2242 Normalize_Arguments.
2244 2009-07-10 Javier Miranda <miranda@adacore.com>
2246 * einfo.adb (Directly_Designated_Type): Add assertion.
2248 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
2249 access types before using attribute Directly_Designated_Type.
2251 2009-07-10 Emmanuel Briot <briot@adacore.com>
2253 * prj.ads: Minor typo fix
2255 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2257 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
2260 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
2261 subprogram is a function call, resolve properly, to ensure that extra
2262 actuals are added as needed.
2264 2009-07-10 Thomas Quinot <quinot@adacore.com>
2266 * sem_aggr.adb: Minor comments editing
2268 * exp_tss.adb, exp_ch3.adb: Minor reformatting
2270 2009-07-10 Robert Dewar <dewar@adacore.com>
2272 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
2274 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
2277 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
2278 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
2279 case of conditional expressions that may not be elaborated.
2281 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
2282 conditional expression where we may not execute then then or else
2285 2009-07-10 Arnaud Charlet <charlet@adacore.com>
2287 * i-cexten.ads (bool): New type.
2289 2009-07-10 Robert Dewar <dewar@adacore.com>
2291 * sinfo.ads (N_Short_Circuit): New definition
2293 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
2294 treepr.adb: Minor code reorganization (use N_Short_Circuit)
2296 2009-07-10 Javier Miranda <miranda@adacore.com>
2298 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
2299 non-tagged record types.
2302 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
2303 with non-tagged types. Required to import C++ classes that have no
2305 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
2306 returning non-tagged types. For backward compatibility, if the
2307 constructor returns a class wide type we internally change the
2308 returned type to the corresponding non class-wide type.
2311 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
2312 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
2313 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
2314 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
2317 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
2319 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
2321 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
2323 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
2325 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
2328 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
2331 (pragma CPP_Class): Document that it can be used now with non-tagged
2333 (pragma CPP_Constructor): Document that it can be used now with
2334 functions returning specific types. For backward compatibility
2335 we also support functions returning class-wide types.
2338 (Interfacing with C++ constructors): Update the examples to incorporate
2339 the new syntax in which the functions used to import C++ constructors
2340 return specific types.
2341 (Interfacing with C++ at the Class Level): Update the examples to
2342 incorporate the new syntax in which the functions used to import
2343 C++ constructors return specific types.
2345 2009-07-10 Thomas Quinot <quinot@adacore.com>
2347 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
2348 Make_Disp_Conditional_Select_Body,
2349 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
2350 interface nor a concurrent type, the primitive body is empty. Generate
2351 a null statement so that it remains well formed.
2353 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2355 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
2356 replace references to them in defaulted component expressions with
2357 references to the values of the discriminants of the target object.
2359 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2361 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
2362 pragma, to capture global references if the context is generic.
2364 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
2365 appears within the initialization procedure for the corresponding
2366 record, replace it with the proper discriminal.
2368 2009-07-10 Vincent Celier <celier@adacore.com>
2370 * make.adb: Do not include object directories or library ALI
2371 directories of library projects in the object path.
2373 2009-07-10 Javier Miranda <miranda@adacore.com>
2375 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
2376 Typ argument to ensure proper management of access types.
2378 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2380 * exp_ch7.adb (Build_Final_List): If the list is being built for a
2381 Taft-Amendment type, place the finalization list in the package body,
2382 to ensure that the tree for the spec is identical whenever it is
2385 2009-07-10 Javier Miranda <miranda@adacore.com>
2387 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
2388 inheriting attributes from a private Parent_Base.
2390 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2392 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
2393 statements with the same condition.
2395 2009-07-10 Robert Dewar <dewar@adacore.com>
2397 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
2399 2009-07-09 Tom Tromey <tromey@redhat.com>
2401 * raise-gcc.c: Include dwarf2h (unconditionally).
2403 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2405 * sem_ch10.adb (Install_Context): If the unit is a package body,
2406 install the private with_clauses of the corresponding package
2409 2009-07-09 Robert Dewar <dewar@adacore.com>
2411 * checks.adb: Minor reformatting
2413 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
2415 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
2418 2009-07-09 Thomas Quinot <quinot@adacore.com>
2420 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
2421 Do not warn for a constant overlaying any constant object
2423 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2425 * sem_ch10.adb (Install_Context): If the unit is a package body,
2426 install the private with_clauses of the corresponding package
2429 2009-07-09 Robert Dewar <dewar@adacore.com>
2431 * checks.adb: Minor reformatting
2433 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
2435 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
2438 2009-07-09 Thomas Quinot <quinot@adacore.com>
2440 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
2441 Do not warn for a constant overlaying any constant object
2443 2009-07-09 Arnaud Charlet <charlet@adacore.com>
2445 * gcc-interface/Make-lang.in: Update dependencies
2447 2009-07-09 Thomas Quinot <quinot@adacore.com>
2449 * g-socket.adb (Check_Selector): Do not create local copies of the
2450 socket sets on the stack.
2452 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
2454 * gnat_ugn.texi: Add missing VMS translations.
2456 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2458 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
2459 condition, to prevent generation of visible code during expansion,
2460 when Check is not enabled.
2462 2009-07-09 Gary Dismukes <dismukes@adacore.com>
2464 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
2465 the check gets registered for any available local handler
2468 * sem_util.adb: Add with and use of Exp_Ch11.
2469 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
2470 that the check gets registered for any available local handler.
2472 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
2475 2009-07-09 Steve Baird <baird@adacore.com>
2477 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
2479 (Expand_N_Exception_Declaration): Fix handling of exceptions
2480 declared in a subprogram.
2482 2009-07-09 Emmanuel Briot <briot@adacore.com>
2484 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
2487 2009-07-09 Thomas Quinot <quinot@adacore.com>
2489 * freeze.adb: Minor reformatting
2491 * exp_ch3.adb: Minor comment fix.
2493 * sinfo.ads: Minor comment fix
2495 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2497 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
2499 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2501 * freeze.adb (Freeze_Expression): If the expression is the name of a
2502 function in a call, and the function has not been frozen yet, create
2503 extra formals for it to ensure that the proper actuals are created
2504 when expanding the call.
2506 2009-07-09 Emmanuel Briot <briot@adacore.com>
2508 * prj-pp.adb (Print): Fix handling of source index when set on a
2511 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2513 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
2514 a temporary to the source expression whose value it captures.
2516 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
2518 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2520 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
2523 2009-07-07 Gary Dismukes <dismukes@adacore.com>
2525 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
2526 parameters when the subtype of the actual is not known to be a subrange
2527 of the formal's subtype.
2528 (Expand_Call): Generate a range check only in the E_In_parameter case
2529 (in out parameter range checks are now handled in Expand_Actuals).
2531 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
2534 2009-07-07 Robert Dewar <dewar@adacore.com>
2536 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
2538 2009-07-07 Javier Miranda <miranda@adacore.com>
2540 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
2541 designated type comes from a limited views.
2543 2009-07-07 Emmanuel Briot <briot@adacore.com>
2545 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
2546 locally removed files that are later made visible again in an importing
2549 2009-07-07 Robert Dewar <dewar@adacore.com>
2551 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
2553 2009-07-07 Sergey Rybin <rybin@adacore.com>
2555 * gnat_ugn.texi: Add an example to the description of gnatcheck
2556 'Style_Checks' rule option.
2558 2009-07-07 Tristan Gingold <gingold@adacore.com>
2560 * seh_init.c: Fix inline assembly statement in seh_init.c
2562 2009-07-07 Ed Schonberg <schonberg@adacore.com>
2564 * sem_warn.adb (Check_References): Do not emit warnings on formals of
2565 an entry body. Only the formals of the entry declaration are traced.
2567 2009-07-07 Robert Dewar <dewar@adacore.com>
2569 * s-osprim-mingw.adb: Minor code reorganization
2571 2009-07-07 Robert Dewar <dewar@adacore.com>
2573 * prj-nmsc.adb: Minor reformatting
2575 2009-07-07 Pascal Obry <obry@adacore.com>
2577 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
2578 cases where Pattern is longer than Source.
2580 2009-07-07 Pascal Obry <obry@adacore.com>
2582 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
2584 2009-07-07 Emmanuel Briot <briot@adacore.com>
2586 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
2589 2009-07-07 Ed Schonberg <schonberg@adacore.com>
2591 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
2592 primitive operations, in case one of them is called in the
2593 initialization procedure for the type.
2595 2009-07-07 Robert Dewar <dewar@adacore.com>
2597 * a-calend.adb: Minor code reorganization (use conditional expressions)
2599 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
2600 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
2601 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
2602 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
2603 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
2604 g-comlin.adb, exp_ch11.adb: Minor reformatting.
2606 2009-07-07 Gary Dismukes <dismukes@adacore.com>
2608 * checks.adb (Generate_Range_Check): Replace type conversions with
2609 unchecked conversions to support the case of performing range checks
2610 on Enum'Val (permits integer values to be converted to enumeration).
2612 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
2613 Attribute_Succ): Set Do_Range_Check to False before calling
2614 Expand_Pred_Succ, to prevent gigi from generating any range checks.
2615 (Expand_N_Attribute_Reference, case Attribute_Val):
2616 Generate a range check when needed (and set Do_Range_Check to False).
2618 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
2619 scalar object initialization if needed.
2621 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
2622 when needed on scalar allocators.
2623 (Expand_N_Qualified_Expression): Generate range check when needed.
2624 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
2625 Checks on slice ranges handled in Resolve_Slice.
2627 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
2628 when needed, for all scalar assignments, not just discrete.
2629 (Expand_Simple_Function_Return): Resolve the conversion created for a
2630 scalar function return so that the conversion will get expanded to
2631 generate a possible constraint check.
2633 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
2634 in out scalar actuals when subtypes don't match, to ensure generation
2635 of return checks (and set Do_Range_Check to False).
2636 (Expand_Call): Uncomment code to perform range checks, but make it apply
2637 only to in and in out parameters (checks on parameter returns are
2638 handled in Expand_Actuals). If a scalar actual for a call to a derived
2639 subprogram is marked as needing a range check, peform it here (and set
2640 Do_Range_Check to False).
2642 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
2643 range check on scalar component associations when needed.
2645 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
2646 infinities but the second type does not, as these aren't compatible
2647 floating-point types.
2649 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
2650 slice is itself a slice, pick up the Etype of the prefix. This handles
2651 the case where the prefix was an Image attribute expanded to a slice,
2652 and ensures that we get the subtype with the slice constraint rather
2653 than the unconstrained subbtype of the 'Image.
2655 2009-07-07 Ed Schonberg <schonberg@adacore.com>
2657 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
2658 overloaded expressions in a conditional expressions.
2660 * sem_res.adb (Resolve): Handle properly overloaded conditional
2663 2009-07-07 Robert Dewar <dewar@adacore.com>
2665 * scng.adb: Minor reformattting
2667 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
2668 association allows conditional expression without parens.
2670 * par-ch4.adb (P_Name): Attribute arguments can be conditional
2671 expressions without enclosing parentheses, and also as parameters,
2672 indexing expressions etc.
2673 (P_Conditional_Expression): New procedure
2674 (P_Expression_If_OK): New procedure
2676 * par.adb (P_Conditional_Expression): New procedure
2677 (P_Expression_If_OK): New procedure
2679 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
2680 form of conditional expression.
2682 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
2683 missing True argument if ELSE argument missing.
2685 * sinfo.adb (Is_Elsif): New flag
2687 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
2688 part of the language, and the documentation is modified accordingly.
2689 (Is_Elsif): New flag
2691 2009-07-06 Olivier Hainque <hainque@adacore.com>
2693 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
2694 setjmp_longjmp): Attach the exception propagation reraise fallback
2695 to the sequence end label location when we have it.
2697 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2700 * init.c (APPLE): Include <mach/mach_init.h>.
2701 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
2703 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
2705 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
2706 (SET_DECL_LANG_SPECIFIC): Likewise.
2707 (TYPE_RM_VALUE): New macro.
2708 (SET_TYPE_RM_VALUE): Likewise.
2709 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
2710 (TYPE_RM_MIN_VALUE): Likewise.
2711 (TYPE_RM_MAX_VALUE): Likewise.
2712 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
2713 (SET_TYPE_RM_MIN_VALUE): Likewise.
2714 (SET_TYPE_RM_MAX_VALUE): Likewise.
2715 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
2717 2009-07-04 Laurent GUERBY <laurent@guerby.net>
2720 * tracebak.c (__gnat_backtrace): Fix old-style definition.
2722 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2724 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
2726 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2729 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
2732 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
2734 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
2736 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2738 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
2739 the type of the left operand if it pads a self-referential type when
2740 the right operand is a constructor.
2742 * gcc-interface/lang-specs.h: Fix copyright date.
2744 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2746 * gcc-interface/decl.c: Include tree-inline.h.
2747 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
2748 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
2749 * gcc-interface/utils2.c: Include tree-inline.
2750 (known_alignment) <CALL_EXPR>: Likewise.
2752 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2754 * raise-gcc.c: Include dwarf2.h conditionally.
2756 2009-06-29 Tom Tromey <tromey@redhat.com>
2758 * raise-gcc.c: Include elf/dwarf2.h.
2760 2009-06-27 Laurent GUERBY <laurent@guerby.net>
2762 * tb-gcc.c (trace_callback): Add casts to silence warning.
2764 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
2766 * tb-gcc.c: Fix copyright notice.
2768 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
2770 * init.c (__gnat_set_globals): Add prototype.
2771 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
2772 (__gnat_sals_init_using_constructors): Likewise.
2773 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
2774 (get_block_jmpbuf_decl): Likewise.
2775 (gnat_poplevel): Likewise.
2776 (merge_sizes): Rename local variable.
2777 (copy_type): Likewise.
2778 (build_vms_descriptor32): Likewise.
2779 (build_vms_descriptor): Likewise.
2780 (convert_vms_descriptor64): Likewise.
2781 (convert_vms_descriptor32): Likewise.
2782 (convert_to_fat_pointer): Likewise.
2783 (maybe_unconstrained_array): Likewise.
2784 (def_fn_type): Use promoted type with va_arg.
2785 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
2786 (substitute_in_type): Rename local variable.
2787 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
2789 2009-06-26 Laurent GUERBY <laurent@guerby.net>
2791 * tb-gcc.c (trace_callback): Use char* instead of void*.
2792 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
2793 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
2794 (Attribute_to_gnu): Adjust for above change.
2795 (Subprogram_Body_to_gnu): Likewise.
2796 * gcc-interface/utils.c (merge_sizes): Rename local variable.
2797 (copy_type): Likewise.
2798 (build_vms_descriptor32): Likewise.
2799 (build_vms_descriptor): Likewise.
2800 (convert_vms_descriptor64): Likewise.
2801 (convert_vms_descriptor32): Likewise.
2802 (convert_to_fat_pointer): Likewise.
2803 (maybe_unconstrained_array): Likewise.
2804 * gcc-interface/decl.c (substitute_in_type): Likewise.
2806 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2808 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
2809 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
2810 of the upper bound of the index types.
2812 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2814 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
2815 out common predicate. Use the maximum to compute the upper bound of
2816 the index type only when it is not wider than sizetype. Perform the
2817 comparison in the index type for the generic expression. Use real
2818 precision to decide whether to generate special types for debugging
2821 2009-06-26 Matthew Gingell <gingell@adacore.com>
2823 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
2825 2009-06-26 Vincent Celier <celier@adacore.com>
2827 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
2830 2009-06-26 Robert Dewar <dewar@adacore.com>
2832 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
2834 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2836 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
2837 correct arguments to create_field_decl. Remove redundant iteration.
2838 Rewrite computation of the maximum size.
2839 <E_Array_Subtype>: Reorder and simplify handling of special cases.
2840 Rewrite computation of the maximum size. Use consistent naming.
2841 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
2842 comparison order for consistency. Use generic integer node to
2843 build the operator and fold the result.
2845 2009-06-25 Vincent Celier <celier@adacore.com>
2847 * vms_data.ads: Minor comment change
2849 2009-06-25 Gary Dismukes <dismukes@adacore.com>
2851 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
2852 assignment statement to targeting a caller-provided object when the
2853 result type is an interface type.
2855 * exp_ch6.adb (Expand_Call): Remove redundant test of
2856 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
2857 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
2859 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
2860 to OK_For_Limited_Init.
2862 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
2863 condition so that True is returned for all limited interfaces, not
2864 just synchronized ones. Ignore components of an interface type when
2865 checking for limited components (such a component can be a parent
2868 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
2869 (OK_For_Limited_Init): Add type parameter.
2871 * sem_ch3.adb (Check_Initialization): Add type in call to
2872 OK_For_Limited_Init.
2873 (OK_For_Limited_Init): Add new type param in call to
2874 OK_For_Limited_Init_In_05.
2875 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
2876 nonlimited type when the context type is a limited interface. Add type
2879 * sem_ch4.adb (Analyze_Allocator): Add type in call to
2880 OK_For_Limited_Init.
2882 * sem_ch6.adb (Check_Limited_Return): Add type in call to
2883 OK_For_Limited_Init.
2885 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
2886 OK_For_Limited_Init.
2887 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
2889 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
2890 class-wide interface, get the base type before applying Etype, in order
2891 to account for class-wide subtypes.
2893 2009-06-25 Emmanuel Briot <briot@adacore.com>
2895 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
2896 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
2897 between gnatmake and gprbuild.
2898 (Naming_Data): Removed, no longer used
2899 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
2900 needed locally in one subprogram, no need to store forever in the
2902 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
2904 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
2905 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
2906 Spec_Suffix_Id_Of): removed, no longer used.
2908 2009-06-25 Javier Miranda <miranda@adacore.com>
2910 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
2911 types on qualified expression in calls to imported C++ constructors.
2913 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
2914 imported C++ constructors.
2916 2009-06-25 Sergey Rybin <rybin@adacore.com>
2918 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
2920 2009-06-25 Vincent Celier <celier@adacore.com>
2922 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
2923 provided, on Windows change all '/' to '\'.
2925 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
2926 used. Minor comment changes
2928 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
2929 Remove_Forbidden_File_Name.
2931 2009-06-25 Quentin Ochem <ochem@adacore.com>
2933 * prj.ads (Unit_Index): Now general access type.
2935 2009-06-25 Pascal Obry <obry@adacore.com>
2937 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
2939 2009-06-25 Emmanuel Briot <briot@adacore.com>
2941 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
2942 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
2943 computed efficiently from the other fields.
2944 (Object_To_Global_Archive): New subprogram
2945 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
2946 (Override_Kind): Fix handling of separates in Ada.
2947 (Create_Mapping_File): Remove duplicate code
2948 (Naming_Data.Implementation_Exception, Specification_Exception):
2949 field removed, since never used.
2950 (Naming_Data.Specs, .Bodies): field removed, since this is only
2951 used while processing the project and is not needed once the tree
2952 is in memory. This brings Naming_Data and Lang_Naming_Data
2953 closer (same content now, but different use still).
2955 2009-06-25 Pascal Obry <obry@adacore.com>
2957 * sem_ch4.adb: Minor reformatting.
2959 * a-strsea.adb: Fix confusion between 'Length and 'Last.
2961 2009-06-25 Ed Schonberg <schonberg@adacore.com>
2963 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
2964 Unchecked_Access): If the context is an interface type, and the prefix
2965 is of the corresponding class-wide type, do not insert a conversion
2966 because the pointer displacement has already taken place, and we must
2967 retain the class-wide type in a dispatching context.
2969 2009-06-25 Emmanuel Briot <briot@adacore.com>
2971 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
2972 the previous source file.
2973 (Create_Mapping): Iterate on sources rather than on units.
2975 2009-06-25 Emmanuel Briot <briot@adacore.com>
2977 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
2978 prj-env.adb, prj-env.ads (Slash): removed, no longer used
2979 (Source_Data): no longer use Path.Name to point to a locally removed
2980 file. Instead we use the field Locally_Removed which is clearer
2982 2009-06-25 Arnaud Charlet <charlet@adacore.com>
2984 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
2986 * sem_maps.adb, sem_maps.ads: Removed, not used.
2988 2009-06-25 Ed Falis <falis@adacore.com>
2990 * s-vxwext-rtp.ads: Add missing declaration
2992 2009-06-25 Matthew Gingell <gingell@adacore.com>
2994 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
2995 speed up unmapped case.
2997 2009-06-25 Vincent Celier <celier@adacore.com>
2999 * prj-nmsc.adb (Check): Change error message for illegal abstract
3002 2009-06-25 Robert Dewar <dewar@adacore.com>
3004 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
3006 2009-06-25 Emmanuel Briot <briot@adacore.com>
3008 * fmap.ads: Add documentation on mapping files
3010 2009-06-25 Robert Dewar <dewar@adacore.com>
3012 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
3015 2009-06-24 Robert Dewar <dewar@adacore.com>
3017 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
3019 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
3023 2009-06-24 Ed Schonberg <schonberg@adacore.com>
3025 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
3026 present when checking whether a call may be interpreted as an indexing
3027 of the result of a call.
3029 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
3030 body for a null procedure on the freeze actions for the procedure, so
3031 that it will be analyzed at the proper place without premature freezing
3034 * sem_ch3.adb (Check_Completion): Code cleanup.
3035 Do not diagnose a null procedure without a body, if previous errors
3036 have disabled expansion.
3038 2009-06-24 Doug Rupp <rupp@adacore.com>
3040 * init.c [VMS] Resignal C$_SIGKILL
3042 2009-06-24 Ed Falis <falis@adacore.com>
3044 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
3045 Define ERROR in body for VxWorks 6 kernel
3047 2009-06-24 Pascal Obry <obry@adacore.com>
3049 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
3050 in [Send/Receive]_Socket.
3052 2009-06-24 Emmanuel Briot <briot@adacore.com>
3054 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3055 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
3056 to several subprograms.
3057 (Source_Data.Other_Part): Removed, since can be computed from the
3059 (Other_Part): New subprogram.
3061 2009-06-24 Emmanuel Briot <briot@adacore.com>
3063 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
3064 the full base name of the file when the suffix doesn't start with a '.'.
3066 2009-06-24 Vincent Celier <celier@adacore.com>
3068 * prj-nmsc.adb (Check): A project declared abstract is legal if no
3069 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
3072 2009-06-24 Robert Dewar <dewar@adacore.com>
3074 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
3075 prj-env.adb: Minor reformatting
3077 2009-06-24 Ed Falis <falis@adacore.com>
3079 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
3080 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
3081 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
3082 support for VxWorks SMP.
3084 * gcc-interface/Make-lang.in: Update dependencies
3086 2009-06-24 Emmanuel Briot <briot@adacore.com>
3088 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
3089 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
3091 (Source_Data.Lang_Kind): Removed, since it duplicates information
3092 already available through Language.Config.
3093 (Source_Data.Compile): Removed, since information is already available
3094 through the language.
3095 (Is_Compilable): New subprogram.
3096 (Source_Data.Dependency): Removed, since already available through
3098 (Source_Data.Object_Exist, Object_Linked): Removed since available
3099 through the language already.
3100 (Unit_Data.File_Names): Is now also set in multi_language mode, to
3101 bring the two modes closer in the resulting data structures.
3102 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
3103 just the name that would point into a hash table.
3104 (Get_Language_From_Name): New subprogram.
3106 2009-06-24 Javier Miranda <miranda@adacore.com>
3108 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
3109 visible through limited-with context clauses. In addition, avoid an
3110 extra tag check that is not required when the class-wide
3111 designated types of the operand and target types are
3113 (Tagged_Membership): Handle entities from the limited view.
3115 2009-06-24 Emmanuel Briot <briot@adacore.com>
3117 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
3118 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
3119 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
3120 different vocabularies for similar concepts (Impl/Body_Part and
3121 Spec/Specification).
3122 (Unit_Data): now points directly to a Source_Id, rather than duplicating
3123 some of the information in File_Name_Data. This also saves a bit of
3124 memory. However, since we are now using a pointer we need to test
3125 for null explicitly in several places of the code
3127 2009-06-24 Javier Miranda <miranda@adacore.com>
3129 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
3130 from processing the type conversion when the node is
3131 replaced by an N_Raise_Program_Error node.
3133 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
3135 * sem_ch6.adb (Designates_From_With_Type): New routine.
3136 (Process_Formals): Since anonymous access types are no longer flagged
3137 as from with types, traverse the designated type to determine whether
3138 it is coming from a limited view.
3140 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
3141 (Full_Designated_Type): Use Available_View to extract the non-limited /
3142 full view of a type.
3144 2009-06-24 Robert Dewar <dewar@adacore.com>
3146 * exp_ch6.adb: Minor reformatting
3148 * layout.adb: Minor reformatting
3150 * make.adb: Minor reformatting
3152 2009-06-24 Thomas Quinot <quinot@adacore.com>
3154 * sem_ch10.adb: Minor code reorganization.
3156 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
3158 * ttypes.ads: Minor editing.
3160 2009-06-24 Robert Dewar <dewar@adacore.com>
3162 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
3163 in deciding to do call-by-copy code.
3165 2009-06-24 Vincent Celier <celier@adacore.com>
3167 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
3168 check if an externally built library file is more current than the
3171 2009-06-23 Olivier Hainque <hainque@adacore.com>
3173 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
3174 c-common.c and populate in gnat_internal_attribute_table.
3176 2009-06-23 Ed Schonberg <schonberg@adacore.com>
3178 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
3179 Available_View only when designated type of an anonymous access type
3182 2009-06-23 Robert Dewar <dewar@adacore.com>
3184 * sem_ch10.adb: Minor reformatting
3186 * ali.ads: Mino reformatting.
3188 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
3189 turning off inlining if ASIS mode active).
3191 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
3192 This belongs in gnat1drv.adb after switches are scanned.
3194 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
3196 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
3197 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
3198 when dealing with class-wide types. Detect a legal shadow entity and
3199 retrieve its non-limited view.
3201 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
3202 subprogram to top package level from Intall_Limited_Withed_Unit.
3203 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
3204 Add check which prevents the installation of a limited view if the
3205 non-limited view is already visible through a with clause.
3206 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
3207 legal shadow entity which may occur in subprogram formals of anonymous
3210 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
3212 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
3213 From_With_Type from the designated type to the generated anonymous
3214 access type. Remove associated comment.
3216 * sem_res.adb Add with and use clauses for Sem_Ch10.
3217 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
3218 non-limited view. Since the shadow entity may replace a regular
3219 incomplete type, return the available full view.
3221 2009-06-23 Ed Schonberg <schonberg@adacore.com>
3223 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
3224 incomplete type declarations. Previous code was potentially quadratic
3225 in the number of visible declarations in any package appearing in a
3226 limited_with_clause.
3228 2009-06-23 Robert Dewar <dewar@adacore.com>
3230 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
3231 xref_lib.adb: Minor reformatting
3233 2009-06-23 Robert Dewar <dewar@adacore.com>
3235 * a-stzhas.adb: Provide dummy body to avoid build problems with old
3236 versions which did have a body for this unit.
3238 2009-06-23 Vincent Celier <celier@adacore.com>
3240 * prj-attr.adb: Attribute names Initial_Required_Switches and
3241 Final_Required_Switches changed to Leading_Required_Switches and
3242 Trailing_Required_Switches.
3244 * prj-nmsc.adb (Process_Compiler): Attribute names
3245 Initial_Required_Switches and Final_Required_Switches changed to
3246 Leading_Required_Switches and Trailing_Required_Switches.
3248 * prj.ads (Language_Config): Component Initial_Required_Switches and
3249 Final_Required_Switches changed to Leading_Required_Switches and
3250 Trailing_Required_Switches.
3252 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
3253 Final_Required_Switches; add standard names Leading_Required_Switches
3254 and Trailing_Required_Switches.
3256 2009-06-23 Thomas Quinot <quinot@adacore.com>
3258 * prj-conf.adb: Minor reformatting
3260 * xref_lib.adb: Minor cleanup
3262 2009-06-23 Emmanuel Briot <briot@adacore.com>
3264 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
3265 prj-conf.ads (Check_Configuration): New parameter
3266 Compiler_Driver_Mandatory.
3268 2009-06-23 Ed Schonberg <schonberg@adacore.com>
3270 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
3271 context of the current unit has an inline pragma, the instance is not
3272 rewritten as the declaration of the package wrapper. Handle both
3273 possibilities when retrieving the visible subprogram that renames the
3274 instantiation itself.
3276 2009-06-23 Javier Miranda <miranda@adacore.com>
3278 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
3279 designated types referencing entities from the limited view.
3281 2009-06-23 Robert Dewar <dewar@adacore.com>
3283 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
3285 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
3288 * prj-conf.ads: Minor reformatting
3290 * prj-conf.adb: Minor reformatting
3292 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
3294 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
3295 to correspond to the log format that gnatmem now expects.
3297 2009-06-23 Vincent Celier <celier@adacore.com>
3299 * prj-attr.adb: New attributes Initial_Required_Switches,
3300 Final_Required_Switches and Object_File_Switches
3302 * prj-nmsc.adb (Process_Compiler): Process new attributes
3303 Name_Final_Required_Switches, Name_Initial_Required_Switches and
3304 Name_Object_File_Switches.
3306 * prj.ads (Language_Config): New component
3307 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
3308 Compiler_Final_Required_Switches and Object_File_Switches.
3310 * snames.ads-tmpl: New standard names Initial_Required_Switches,
3311 Final_Required_Switches and Object_File_Switches
3313 2009-06-23 Pascal Obry <obry@adacore.com>
3315 * s-strhas.adb, s-strhas.ads: Minor reformatting.
3317 2009-06-23 Ed Schonberg <schonberg@adacore.com>
3319 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
3320 not indicate that the enclosing unit needs a body.
3322 2009-06-23 Emmanuel Briot <briot@adacore.com>
3324 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
3326 2009-06-23 Ed Schonberg <schonberg@adacore.com>
3328 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
3329 primitive equality include it with its source name even if the
3330 operation is currently invisible, to make sure that the corresponding
3331 slot in the dispatch table is reserved for the internal equality
3332 subsequently generated during expansion.
3334 2009-06-23 Matthew Gingell <gingell@adacore.com>
3336 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
3338 2009-06-22 Jose Ruiz <ruiz@adacore.com>
3340 * sysdep.c (__gnat_localtime_tzoff for RTX):
3341 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
3342 GetTimeZoneInformation instead.
3344 2009-06-22 Robert Dewar <dewar@adacore.com>
3346 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
3348 2009-06-22 Ed Schonberg <schonberg@adacore.com>
3350 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
3351 instantiations declared in a previous generic package body.
3353 2009-06-22 Robert Dewar <dewar@adacore.com>
3355 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
3356 restriction No_Direct_Boolean_Operators.
3358 2009-06-22 Thomas Quinot <quinot@adacore.com>
3360 * bindusg.adb: Minor fixes to gnatbind usage message
3362 * sem_eval.adb: Minor reformatting
3364 2009-06-22 Javier Miranda <miranda@adacore.com>
3366 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
3367 freezing point the check on the use of abstract types in object
3368 declarations. Done to allow the declaration of C++ imported variables
3369 or constants whose type corresponds with an imported C++ classes for
3370 which the constructor is not imported.
3372 2009-06-22 Thomas Quinot <quinot@adacore.com>
3374 * sem_ch6.adb: Minor reformatting
3376 2009-06-22 Ed Schonberg <schonberg@adacore.com>
3378 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
3379 component is constrained with an expression rather than with a
3380 discriminant of the enclosing type, use that expression when building
3381 the call to default-initialize the component, when the call is part of
3382 an aggregate with box initialization.
3384 2009-06-22 Ed Schonberg <schonberg@adacore.com>
3386 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
3387 unconditional rather than a style check, because a formal name out of
3388 order is suspicious.
3390 2009-06-22 Vincent Celier <celier@adacore.com>
3392 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
3393 creating a directory automatically.
3395 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
3397 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
3398 untagged derived type, add a hidden component for every constrained
3399 discriminant of the parent type to keep record layout consistent.
3401 2009-06-22 Thomas Quinot <quinot@adacore.com>
3403 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
3406 2009-06-22 Matthew Gingell <gingell@adacore.com>
3408 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
3409 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
3410 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
3411 a-swuwha.adb: New unit System.String_Hash.
3412 Refactor redundant cut and pasted hash functions with instances of a
3413 new generic hash function.
3414 Implement a new string hashing algorithm which appears in testing to
3415 be move effective than to previous approach.
3417 2009-06-22 Ed Falis <falis@adacore.com>
3419 * sysdep.c: remove include for nfsLib.h and an NFS specific error
3420 message for VxWorks 653 vThreads: not supported by the OS.
3422 * gsocket.h: disable sockets for VxWorks 653 vThreads.
3424 2009-06-22 Robert Dewar <dewar@adacore.com>
3426 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
3428 2009-06-22 Robert Dewar <dewar@adacore.com>
3430 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
3433 * freeze.adb: Minor comment updates
3435 * s-valrea.adb (Bad_Based_Value): New procedure
3436 (Scan_Real): Raise exceptions with messages
3438 2009-06-22 Matthew Gingell <gingell@adacore.com>
3440 * adaint.h: Complete previous change.
3442 2009-06-22 Thomas Quinot <quinot@adacore.com>
3444 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
3446 2009-06-22 Ed Schonberg <schonberg@adacore.com>
3448 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
3449 enabled, emit warning when a non-controlling argument of the overriding
3450 operation appears out of place vis-a-vis of the formal of the
3451 overridden operation.
3453 2009-06-22 Vincent Celier <celier@adacore.com>
3455 * gnatcmd.adb (Check_Files): Close temporary files after all file names
3456 have been written into it.
3458 2009-06-22 Matthew Gingell <gingell@adacore.com>
3460 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
3463 2009-06-22 Thomas Quinot <quinot@adacore.com>
3465 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
3466 view of the root type is visible at the point of the call.
3468 2009-06-22 Pat Rogers <rogers@adacore.com>
3470 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
3472 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
3474 * freeze.adb: Add comments.
3476 2009-06-21 Thomas Quinot <quinot@adacore.com>
3478 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
3479 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
3480 Factor out code to new subprogram...
3481 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
3482 for a default initialized variable.
3483 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
3484 entity that has an associated freeze node.
3485 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
3486 If there is an init call for the object, defer it to the object freeze
3488 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
3489 name clash with new subprogram introduced in Exp_Util.
3491 2009-06-21 Robert Dewar <dewar@adacore.com>
3493 * einfo.ads: Minor reformatting
3495 2009-06-21 Ed Falis <falis@adacore.com>
3497 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
3499 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
3501 * einfo.ads: Update comments.
3503 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
3505 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
3506 where the controlling formal is of private class-wide type whose
3507 completion is a synchronized type can be converted into direct calls.
3509 2009-06-21 Vincent Celier <celier@adacore.com>
3511 * gnatcmd.adb (Check_Files): When all sources of the project are to be
3512 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
3513 of sources using -files=, so that the distinction can be made by the
3514 tool of a call with no source (to display the usage) from a call with
3515 a project file that contains no source.
3517 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
3519 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
3520 case of VM convention arrays.
3522 2009-06-20 Robert Dewar <dewar@adacore.com>
3524 * a-nudira.adb: Minor reformatting
3526 2009-06-20 Ed Schonberg <schonberg@adacore.com>
3528 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
3529 expressions (possibly from a parent type) indicate that the scope of
3530 the new itypes is the initialization procedure being built.
3532 2009-06-20 Robert Dewar <dewar@adacore.com>
3534 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
3535 Needs_64, and now computed without anomolies for some dynamic types.
3537 2009-06-20 Thomas Quinot <quinot@adacore.com>
3539 * sem_prag.adb: Minor reformatting
3541 * exp_disp.ads: Minor reformatting
3543 2009-06-20 Ed Schonberg <schonberg@adacore.com>
3545 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
3546 function call is a legal expression to initialize a limited object.
3548 * exp_ch3.adb: Rename various freeze operations that perform expansion
3549 actions, to prevent confusion with subprograms in the freeze package.
3551 2009-06-20 Ed Schonberg <schonberg@adacore.com>
3553 * sem.adb (Walk_Library_Units): Check instantiations first.
3555 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
3556 private primitive if it is a function with a controlling result that is
3557 a type extension with progenitors.
3559 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
3560 a primitive operation of a synchronized tagged type that has a
3563 2009-06-20 Thomas Quinot <quinot@adacore.com>
3565 * einfo.ads: Fix typo.
3567 2009-06-20 Ed Falis <falis@adacore.com>
3569 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
3571 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
3573 * gcc-interface/trans.c (emit_check): Do not wrap up the result
3575 (protect_multiple_eval): Always protect complex expressions.
3577 2009-06-19 Emmanuel Briot <briot@adacore.com>
3579 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
3580 make sure we always return a name ending with a path separator.
3582 2009-06-19 Javier Miranda <miranda@adacore.com>
3584 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
3585 Save and restore the visibility of the parent when installed.
3587 2009-06-19 Jose Ruiz <ruiz@adacore.com>
3589 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
3590 by Common which contains all these fields.
3592 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
3593 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
3594 Remove code duplication in this package by means of calling the
3595 equivalent code in s-taprob.
3597 2009-06-19 Robert Dewar <dewar@adacore.com>
3599 * a-einuoc.ads: Minor reformatting
3601 2009-06-19 Ed Falis <falis@adacore.com>
3603 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
3604 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
3606 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
3608 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
3610 2009-06-19 Robert Dewar <dewar@adacore.com>
3612 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
3615 * checks.adb (Determine_Range): Move the test for generic types later.
3617 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
3619 (Eval_Relational_Op): Fold more cases including string compares
3621 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
3624 2009-06-19 Robert Dewar <dewar@adacore.com>
3626 * sem_type.ads, sem_ch12.adb: Minor reformatting
3628 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
3630 2009-06-19 Ed Schonberg <schonberg@adacore.com>
3632 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
3633 primitive operation of a rivate extension whose controlling argument
3634 is an out parameter.
3636 * sem.adb (Walk_Library_Units): exclude generic package declarations
3639 2009-06-19 Thomas Quinot <quinot@adacore.com>
3641 * i-vxwoio.ads: Add comments
3643 2009-06-19 Thomas Quinot <quinot@adacore.com>
3645 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3646 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3647 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
3648 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
3649 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
3650 Thin_Common.Socket_Ioctl.
3651 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
3652 __gnat_socket_ioctl.
3653 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
3654 argument after the file descriptor and request code.
3656 2009-06-19 Robert Dewar <dewar@adacore.com>
3658 * checks.adb: Minor reformatting
3660 2009-06-19 Jose Ruiz <ruiz@adacore.com>
3662 * env.c (__gnat_environ): RTX does not support this functionality.
3664 2009-06-19 Ed Schonberg <schonberg@adacore.com>
3666 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
3667 traverse, to account for front-end inlining and instantiations in a
3668 spec or in the main unit.
3670 2009-06-19 Robert Dewar <dewar@adacore.com>
3672 * checks.adb (Determine_Range): Do not attempt to get range of generic
3675 2009-06-19 Sergey Rybin <rybin@adacore.com>
3677 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
3678 gnatmetric option for generating the schema file for gnatmetric XML
3679 output. Add corresponding VMS qualifier.
3681 2009-06-19 Robert Dewar <dewar@adacore.com>
3683 * g-cgi.adb: Minor reformatting
3685 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
3687 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
3688 signal code for SIGFPE and raise Program_Error for SIGILL.
3690 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
3692 2009-06-19 Ed Schonberg <schonberg@adacore.com>
3694 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
3695 generic package if there is a visibility candidate that is declared in
3698 2009-06-18 Olivier Hainque <hainque@adacore.com>
3700 * system-aix64.ads: New file.
3701 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
3702 64bit system.ads for ppc64 multilib variants.
3704 2009-06-16 Robert Dewar <dewar@adacore.com>
3705 Olivier Hainque <hainque@adacore.com>
3707 Relax constraints on Machine_Attribute argument types:
3708 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
3710 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
3711 * gcc-interface/decl.c (prepend_attributes): Accept static
3712 expressions of any type as attribute arguments, not only string
3714 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
3715 the relaxation of the restriction on the Info argument type.
3717 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
3719 * gcc-interface/utils.c (record_builtin_type): Pass location
3720 argument to build_decl.
3721 (create_type_stub_decl): Same.
3722 (create_type_decl): Same.
3723 (create_var_decl_1): Same.
3724 (create_field_decl): Same.
3725 (create_param_decl): Same.
3726 (create_label_decl): Same.
3727 (create_subprog_decl): Same.
3728 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
3729 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
3730 argument to create_artificial_label.
3731 (Loop_Statement_to_gnu): Same.
3732 (Subprogram_Body_to_gnu): Same.
3733 (gnat_gimplify_stmt): Same.
3735 2009-06-11 Richard Henderson <rth@redhat.com>
3737 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
3740 2009-06-11 Ed Schonberg <schonberg@adacore.com>
3742 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
3743 accessibiliy check on access_to_subprogram in the context of an
3744 anonymous access that is not an access parameter.
3746 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
3748 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
3750 2009-06-11 Quentin Ochem <ochem@adacore.com>
3752 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
3753 comments for message handled by GPS.
3755 2009-06-11 Matthew Gingell <gingell@adacore.com>
3757 * adaint.c: Use fopen64 instead of fopen on platforms where we know
3760 2009-06-11 Pascal Obry <obry@adacore.com>
3762 * g-cgi.ads: Fix comment typo.
3764 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
3766 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
3768 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
3769 a reference to the original type for the type of the field of the
3771 (maybe_pad_type): Likewise.
3773 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
3774 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
3775 Pass correctly typed arguments to create_field_decl.
3776 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
3777 case of contrained discriminants as well. Use the padded base type
3778 in the other case as well. Rename temporary variable. Tweak test.
3779 Factor common access pattern. Set GNU_SIZE only once.
3781 2009-06-09 Olivier Hainque <hainque@adacore.com>
3783 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
3784 helper for build_call_alloc_dealloc with arguments to be interpreted
3785 identically. Process the case where a GNAT_PROC to call is provided.
3786 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
3787 and return an allocator for DATA_SIZE bytes aimed at containing a
3788 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
3789 DATA_TYPE alignments greater than what the latter offers.
3790 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
3791 release a DATA_TYPE object designated by DATA_PTR using the
3792 __gnat_free entry point.
3793 (build_call_alloc_dealloc): Expect object data type instead of naked
3794 alignment constraint. Use the new helpers.
3795 (build_allocator): Remove special processing for the super-aligned
3796 case, now handled by build_call_alloc_dealloc. Pass data
3797 type instead of the former alignment argument, as expected by the new
3799 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
3801 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
3802 Remove special processing for the super-aligned case, now handled
3803 by build_call_alloc_dealloc. Pass data type instead of the former
3804 alignment argument, as expected by the new interface.
3806 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
3808 * lib-writ.adb (flag_compare_debug): Import.
3809 (Write_ALI): Skip during -fcompare-debug-second.
3811 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3813 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
3814 adjusting the discriminant nodes in an extension, use the full view
3815 of the parent subtype if it is of a private kind.
3817 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3819 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
3820 _Parent field, if any, to the record before adding the other fields.
3821 <E_Record_Subtype>: Put the _Controller field before the other fields
3822 except for the _Tag or _Parent fields.
3823 (components_to_record): Likewise. Retrieve the _Parent field from the
3826 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3828 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
3829 remove unused parameter and simplify.
3830 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
3831 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
3832 as context for all discriminants. Fix formatting nits.
3833 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
3834 before Discriminant_Constraint. Adjust for above renaming. Do not
3835 set GNU_TYPE more than once.
3836 (elaborate_entity): Test Has_Discriminants on the entity and use
3837 Implementation_Base_Type.
3838 (components_to_record): Rename component_list to gnat_component_list.
3839 Retrieve the _Parent field from the list. Fix nits in comments.
3840 Clarify logic in loop. Pass correct arguments to create_field_decl.
3842 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
3844 * gcc-interface/Make-lang.in: Fix formatting.
3846 2009-06-01 Olivier Hainque <hainque@adacore.com>
3847 Eric Botcazou <ebotcazou@adacore.com>
3849 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
3850 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
3851 on the result if at least one of the input fields couldn't be output
3852 as a static constant any more.
3854 2009-06-01 Olivier Hainque <hainque@adacore.com>
3855 Eric Botcazou <ebotcazou@adacore.com>
3857 * gcc-interface/utils2.c (gnat_build_constructor): Factor
3858 out code. Use initializer_constant_valid_for_bitfield_p and
3859 CONSTRUCTOR_BITFIELD_P for bit-fields.
3861 2009-05-26 Ian Lance Taylor <iant@google.com>
3863 * gcc-interface/Makefile.in (COMPILER): Define.
3864 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
3865 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
3866 (seh_init.o, tracebak.o): Likewise.
3867 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
3868 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
3869 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
3870 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
3871 (ada/utils2.o): Likewise.
3873 2009-05-24 Olivier Hainque <hainque@adacore.com>
3875 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
3876 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
3877 Add -auxbase variants to the list of recognized internal switches.
3878 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
3880 * lib.ads: Make comment on internal GCC switches more general.
3881 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
3884 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3886 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
3888 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3890 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
3893 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3895 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
3896 original type because of the alignment when there is an address clause.
3898 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
3900 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
3901 discriminants affect the shape of the subtype, retrieve the GCC type
3902 directly from the original field if the GNAT types for the field and
3903 the original field are the same.
3905 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
3907 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
3909 (TYPE_RM_VALUES): Likewise.
3910 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
3911 (SET_TYPE_RM_SIZE): New macro.
3912 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
3913 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
3914 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
3915 * gcc-interface/gigi.h (create_range_type): Declare.
3916 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
3917 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
3918 <E_Signed_Integer_Subtype>: Build a regular integer type first and
3919 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3920 <E_Floating_Point_Subtype>: Build a regular floating-point type first
3921 and then set the RM bounds.
3922 <E_Array_Type>: Use create_range_type instead of build_range_type.
3923 <E_Array_Subtype>: Build a regular integer type first and then set
3924 the RM bounds for the extra subtype.
3925 <E_String_Literal_Subtype>: Use create_range_type instead of
3927 <all>: Set the RM bounds for enumeration types and the GCC bounds for
3928 floating-point types.
3929 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
3930 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
3931 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3932 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
3933 types and with RM bounds for subtypes.
3934 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
3935 (gnat_print_type) <REAL_TYPE>: New case.
3936 <ENUMERAL_TYPE>: Fall through to above case.
3937 (gnat_get_subrange_bounds): New function.
3938 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
3939 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
3940 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
3941 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
3942 (create_range_type): New function.
3943 (create_param_decl): Build a regular integer type first and then set
3944 the RM bounds for the extra subtype.
3945 (unchecked_convert): Remove kludge for 'Valid.
3946 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
3947 the index to sizetype instead of TYPE_DOMAIN.
3949 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
3951 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
3952 parameter and move check for static expression to...
3953 (elaborate_expression): ...here. Adjust call to above function.
3954 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
3955 in calls to elaborate_expression.
3956 (elaborate_entity): Likewise.
3957 (substitution_list): Likewise.
3958 (maybe_variable): Fix formatting.
3959 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
3961 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
3963 2009-05-07 Arnaud Charlet <charlet@adacore.com>
3965 * gcc-interface/Make-lang.in: Update dependencies.
3967 2009-05-06 Laurent GUERBY <laurent@guerby.net>
3969 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
3970 Define sa_handler_pos.
3971 * s-osinte-linux.ads: Use it.
3972 * s-linux-mipsel.ads: New.
3973 * system-linux-mips64el.ads: New.
3974 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
3977 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3979 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
3980 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
3981 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
3982 (Tagged_Type_Expansion): New flag.
3983 Replace use of VM_Target related to tagged types expansion by
3984 Tagged_Type_Expansion, since tagged type expansion is not necessarily
3985 linked to VM targets.
3987 2009-05-06 Robert Dewar <dewar@adacore.com>
3989 * sem_attr.adb: Add processing for Standard'Compiler_Version
3991 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
3993 (Expr_First_Char): Add ??? comment that paren skipping needs work
3994 (Expr_Last_Char): Add ??? comment that paren skipping needs work
3996 * exp_attr.adb: Add processing for Compiler_Version
3998 * sem_attr.adb: New attribute Compiler_Version
4000 * snames.ads-tmpl: Add entries for Compiler_Version attribute
4002 * gnat_rm.texi: Document Compiler_Version attribute
4004 2009-05-06 Robert Dewar <dewar@adacore.com>
4006 * errout.adb: Minor reformatting
4008 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
4009 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
4010 styleg.adb: Add stylized comments to error messages that are included
4011 in the codefix circuitry of IDE's such as GPS.
4013 2009-05-06 Sergey Rybin <rybin@adacore.com>
4015 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
4016 new form of the rule parameter that allows to specify the suffix for
4017 access-to-access type names.
4019 2009-05-06 Robert Dewar <dewar@adacore.com>
4021 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
4022 out parameter assigned when exception handlers are present.
4024 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
4025 assignments on exit.
4027 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
4028 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
4029 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
4030 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
4031 messages that are included in the codefix circuitry of IDE's such as
4034 * sinput.ads, sinput.adb (Expr_First_Char): New function
4035 (Expr_Last_Char): New function
4037 2009-05-06 Sergey Rybin <rybin@adacore.com>
4039 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
4040 Add formal definition for extra exit point metric
4042 2009-05-06 Pascal Obry <obry@adacore.com>
4044 * adaint.c: Support for setting attributes on unicode filename on
4047 2009-05-06 Robert Dewar <dewar@adacore.com>
4049 * sem_warn.adb: Minor reformatting
4051 2009-05-06 Javier Miranda <miranda@adacore.com>
4053 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
4054 not have discriminants or components with default expressions.
4055 (Analyze_Pragma): For pragma CPP_Class check that imported types
4056 have no discriminants and components have no default expression.
4058 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
4059 class-wide types in the expression of a record component association.
4061 2009-05-06 Sergey Rybin <rybin@adacore.com>
4063 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
4065 * gnat_ugn.texi: Add description for the new extra exit points metric
4066 (gnatmetric section).
4068 2009-05-06 Robert Dewar <dewar@adacore.com>
4070 * s-fileio.adb: Minor comment update
4072 * sem_ch8.adb: Minor reformatting
4074 * exp_ch3.adb: Update comments.
4076 2009-05-06 Tristan Gingold <gingold@adacore.com>
4078 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
4080 2009-05-06 Arnaud Charlet <charlet@adacore.com>
4082 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
4083 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
4085 * gcc-interface/Make-lang.in: Update dependencies
4087 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4089 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
4090 change. The context clause of a generic instance declaration must be
4091 preserved until the end of the compilation, because it may have to be
4092 installed/removed repeatedly.
4093 The latest change to sem.adb ensures that the context of both spec and
4094 body of an instance is traversed before the instance itself, making
4095 this patch redundant.
4097 2009-05-06 Gary Dismukes <dismukes@adacore.com>
4099 * sem_aggr.adb: Fix typo.
4101 2009-05-06 Thomas Quinot <quinot@adacore.com>
4103 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
4104 declaration, do not adjust if the declaration is to be rewritten into
4107 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4109 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
4112 2009-05-06 Bob Duff <duff@adacore.com>
4114 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
4115 otherwise the compiler would be allowed to optimize away the cleanup
4118 2009-05-06 Gary Dismukes <dismukes@adacore.com>
4120 * gnat_ugn.texi: Fix typo.
4122 2009-05-06 Thomas Quinot <quinot@adacore.com>
4124 * g-debuti.adb: Minor reformatting
4126 * exp_attr.adb: Minor reformatting
4128 2009-05-06 Robert Dewar <dewar@adacore.com>
4130 * sem_aggr.adb: Minor reformatting.
4132 * g-socthi-vms.adb: Minor reformatting
4134 2009-05-06 Bob Duff <duff@adacore.com>
4136 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
4137 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
4139 2009-05-06 Bob Duff <duff@adacore.com>
4141 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
4144 2009-05-06 Javier Miranda <miranda@adacore.com>
4146 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
4147 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
4148 extension aggregates.
4149 (Resolve_Record_Aggregate): Add support for C++ constructors in
4150 extension aggregates.
4152 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
4153 constructors in extension aggregates.
4155 2009-05-06 Robert Dewar <dewar@adacore.com>
4157 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
4160 2009-05-06 Thomas Quinot <quinot@adacore.com>
4162 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
4163 packed type, since on OpenVMS, struct msghdr is packed.
4165 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4167 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4168 call returning an unconstrained composite value, create the proper
4169 subtype for it, as is done for object dclarations with unconstrained
4170 nominal subtypes. Perform this transformation regarless of whether
4171 call comes from source.
4173 2009-05-06 Robert Dewar <dewar@adacore.com>
4175 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
4179 Add documentation for pragma Implicit_Packing applied to record
4182 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4184 * sem.adb (Walk_Library_Items): Place all with_clauses of an
4185 instantiation on the spec, because late instance bodies may generate
4186 with_clauses for the instance body but are inserted in the instance
4189 2009-05-06 Emmanuel Briot <briot@adacore.com>
4191 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
4192 support for returning the directory even if it doesn't exist. This is
4193 used for the object directory, since we are always setting it to a
4194 non-null value, and we should set it to an absolute name rather than a
4195 relative name for the sake of external tools that might depend on it.
4196 (Check_Library_Attributes): When Project.Library_Dir is known, check
4197 that the directory exists.
4199 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4201 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
4202 reference is an implicit dereference, do not freeze the designated type
4203 if within a default expression or when preanalyzing a pre/postcondtion.
4205 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4207 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4208 call returning an unconstrained composite value, create the proper
4209 subtype for it, as is done for object dclarations with unconstrained
4212 2009-05-06 Robert Dewar <dewar@adacore.com>
4214 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
4217 * freeze.adb: Minor reformatting
4219 2009-05-06 Thomas Quinot <quinot@adacore.com>
4221 * sem_ch3.adb (Access_Type_Declaration): An access type whose
4222 designated type is a limited view from a limited with clause (flagged
4223 From_With_Type) is not itself such a limited view.
4225 2009-05-06 Emmanuel Briot <briot@adacore.com>
4227 * prj-nmsc.adb: Remove unused variable.
4229 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
4230 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
4231 makeutl.ads, since not all users of prj.ads need this.
4233 2009-05-06 Javier Miranda <miranda@adacore.com>
4235 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
4236 constructor in case of aggregates whose type is a CPP_Class type.
4238 2009-05-06 Robert Dewar <dewar@adacore.com>
4240 * sem_ch13.adb: Minor comment additions
4242 * osint.adb: Minor reformatting
4244 2009-05-06 Pascal Obry <obry@adacore.com>
4246 * initialize.c: On Windows, keep full pathname to expanded command
4249 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4251 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
4252 an aggregate with box default is of a discriminated private type, do
4253 not build a subaggregate for it.
4254 A proper call to the initialization procedure is generated for it.
4256 2009-05-06 Thomas Quinot <quinot@adacore.com>
4258 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
4259 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
4260 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
4261 use standard array code for Standard.String.
4262 (Exp_Dist): Bump PolyORB s-parint API version to 3.
4263 (Rtsfind): New entities TA_Std_String, Unbounded_String.
4265 2009-05-06 Robert Dewar <dewar@adacore.com>
4267 * g-comlin.ads: Minor reformatting
4269 * xoscons.adb: Minor reformatting
4271 2009-05-06 Gary Dismukes <dismukes@adacore.com>
4273 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
4274 Underlying_Type before retrieving the type definition for gathering
4275 components, to account for the case where the type is private.
4277 2009-05-06 Tristan Gingold <gingold@adacore.com>
4279 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
4281 2009-05-06 Thomas Quinot <quinot@adacore.com>
4283 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4284 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
4285 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
4286 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
4287 Windows versions): Fix incorrect base
4288 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
4289 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
4290 System.Address for the To parameter instead of a Sockaddr_In_Access, to
4291 achieve independance from AF_INET family, and also to allow this
4292 parameter to be retrieved from a Msghdr for the Windows case where
4293 these routines are used to implement C_Sendmsg and C_Recvmsg.
4295 2009-05-06 Bob Duff <duff@adacore.com>
4297 * g-expect.adb, g-expect.ads: Minor reformatting
4299 * sdefault.ads: Minor comment fix
4301 * g-expect-vms.adb: Minor reformatting
4303 * table.ads, table.adb (Append_All): New convenience procedure for
4304 appending a whole array.
4306 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
4307 box message. Call Osint.Dump_Source_File_Names to print out the file
4308 list, instead of rummaging around in various data structures.
4310 * debug.adb: New switch -gnatd.n, to print source file names as they
4313 * alloc.ads: Add parameters for Osint.File_Name_Chars.
4315 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
4316 out source file names during a "bug box".
4317 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
4318 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
4319 If it's not part of the runtimes, store it for later printing by
4320 Dump_Source_File_Names.
4322 2009-05-06 Javier Miranda <miranda@adacore.com>
4324 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
4325 documentation and add reference to the GNAT user guide for further
4328 2009-05-06 Javier Miranda <miranda@adacore.com>
4330 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
4331 also wrong examples that use extension aggregates.
4333 2009-05-06 Albert Lee <lee@adacore.com>
4335 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
4336 of Msg_Iovlen_T for VMS.
4338 2009-05-04 Laurent GUERBY <laurent@guerby.net>
4341 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
4343 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4345 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
4346 box-defaulted operator in an instantiation, when the type of the
4347 operands is not directly visible.
4349 2009-04-29 Gary Dismukes <dismukes@adacore.com>
4351 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
4352 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
4353 analysis of the ancestor part. Remove prohibition against limited
4354 interpretations of the ancestor expression in the case of Ada 2005.
4355 Revise error message in overloaded case, adding a message to cover
4358 2009-04-29 Thomas Quinot <quinot@adacore.com>
4360 * xoscons.adb: Minor reformatting
4362 2009-04-29 Bob Duff <duff@adacore.com>
4364 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
4365 attribute_definition_clauses for the following attributes when the
4366 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
4367 Storage_Size, Write. Otherwise, we get spurious errors (for example,
4368 missing Read attribute on remote types).
4370 * gnat_ugn.texi: Document the change, and add a stern warning.
4372 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4374 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
4375 disabled not just for the current scope, but for the innermost dynamic
4378 2009-04-29 Arnaud Charlet <charlet@adacore.com>
4380 * gcc-interface/Make-lang.in: Update dependencies
4382 2009-04-29 Vincent Celier <celier@adacore.com>
4384 * prj-part.adb: Minor comment update
4386 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4388 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
4389 box-initialized records with discriminated subcomponents that are
4390 constrained by discriminants of enclosing components. New subsidiary
4391 procedures Add_Discriminant_Values, Propagate_Discriminants.
4393 2009-04-29 Arnaud Charlet <charlet@adacore.com>
4395 * g-socket.adb: Code clean up.
4397 2009-04-29 Gary Dismukes <dismukes@adacore.com>
4399 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
4400 function entity, to cover the case of a parameterless function call
4401 that has not been resolved.
4403 2009-04-29 Robert Dewar <dewar@adacore.com>
4405 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
4406 reformatting and comment updates.
4408 2009-04-29 Arnaud Charlet <charlet@adacore.com>
4410 * gnat_ugn.texi: Update some documentation about interfacing with C++
4411 Mention -fkeep-inline-functions.
4413 * gnat_ugn.texi: Minor edits
4415 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4417 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
4418 for a defaulted component of an enclosing aggregate, inherit the type
4419 from the component declaration of the enclosing type.
4421 2009-04-29 Albert Lee <lee@adacore.com>
4423 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
4424 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
4425 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
4426 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
4427 Relocate the Msghdr record type from GNAT.Sockets.Thin to
4428 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
4429 type for the Msg_Iovlen field.
4431 2009-04-29 Vincent Celier <celier@adacore.com>
4433 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
4434 Source_File_Index_Table entries for the source, to avoid crash when
4437 * gnatcmd.adb (Test_If_Relative_Path): Use
4438 Makeutl.Test_If_Relative_Path.
4440 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
4441 Including_RTS is True.
4443 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
4444 Including_RTS defaulted to False.
4446 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
4449 2009-04-29 Javier Miranda <miranda@adacore.com>
4451 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
4453 2009-04-29 Javier Miranda <miranda@adacore.com>
4455 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
4456 associated with dyamically tagged expressions if the expression
4457 initializing a tagged type corresponds with a non default CPP
4459 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
4460 of limited type objects.
4462 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
4463 when a CPP constructor is called in an assignment. Disable also the
4464 error message associated with dyamically tagged expressions if the
4465 exporession initializing a tagged type corresponds with a non default
4468 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
4469 non-default C++ constructors.
4471 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
4473 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
4474 non-default constructors.
4475 (Init_Proc): Add support for non-default constructors.
4477 * exp_disp.adb (Set_Default_Constructor): Removed.
4478 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
4479 but extending its functionality to handle non-default constructors.
4481 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
4482 constructors. Minor code cleanup removing unrequired label and goto
4485 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
4487 (Build_Init_Statements): Add support for non-default constructors.
4488 (Expand_N_Object_Declaration): Add support for non-default constructors.
4489 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
4490 to Set_CPP_Constructors.
4492 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
4493 non-default constructors.
4494 Required to handle its use in build-in-place statements.
4496 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
4497 pragma for non-default C++ constructors and the new compiler support
4498 that allows the use of these constructors in record components, limited
4499 aggregates, and extended return statements.
4501 2009-04-29 Vincent Celier <celier@adacore.com>
4503 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
4504 project extending an abstract project.
4506 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
4508 * targparm.ads: Fix oversight.
4510 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4512 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
4513 derivation when necessary, to find the user-subprogram that is actally
4516 2009-04-29 Robert Dewar <dewar@adacore.com>
4518 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
4521 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4523 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
4524 primitive operation, rather than source line of synchronized type, when
4525 building the wrapper for a primitive operation that overrides an
4526 operation inherited from a progenitor, to improve the error message on
4527 duplicate declarations.
4529 * sem_ch3.adb (Process_Full_View): Use new signature of
4532 2009-04-29 Robert Dewar <dewar@adacore.com>
4534 * prj-nmsc.ads: Minor reformatting
4536 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
4538 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
4539 expression on the existing parent If statement.
4541 2009-04-29 Robert Dewar <dewar@adacore.com>
4543 * prj-proc.adb, prj.ads: Minor reformatting
4545 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
4547 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
4548 existing parent If statement on the newly created one.
4550 2009-04-29 Emmanuel Briot <briot@adacore.com>
4552 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
4553 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
4554 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
4555 (Set_In_Configuration, In_Configuration): Removed.
4556 Replaced by an extra parameter Is_Config_File in several parameter to
4557 avoid global variables to store the state of the parser.
4559 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4561 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
4562 with_clauses generated for the same unit through rtsfind, and that
4563 appear in the context of different units.
4565 * rtsfind.adb: New attribute First_Implicit_With, component of the
4566 Unit_Record that stores information about a unit loaded through rtsfind.
4568 2009-04-29 Gary Dismukes <dismukes@adacore.com>
4570 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
4571 (other conditions permitting), so that abstract stream subprograms will
4572 be declared for them.
4574 2009-04-29 Bob Duff <duff@adacore.com>
4576 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
4578 * g-expect.ads: Minor comment fixes.
4580 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4582 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
4583 dispatching operation is a body without previous spec, update the list
4584 of primitive operations to ensure that cross-reference information is
4587 2009-04-29 Albert Lee <lee@adacore.com>
4589 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4590 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4591 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
4592 (GNAT.Sockets.Thin.C_Readv,
4593 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
4594 (GNAT.Sockets.Thin.C_Recvmsg,
4595 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
4597 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
4598 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
4600 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4602 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
4603 operation is a body without previous spec, update the list of
4604 primitive operations to ensure that cross-reference information is
4607 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
4608 new compilation unit node for the instance declaration, keep the
4609 context items of the original unit on it, so that the context of the
4610 instance body only holds the context inherited from the generic body.
4612 2009-04-29 Bob Duff <duff@adacore.com>
4614 * sem_res.adb: Minor comment fix.
4616 2009-04-29 Thomas Quinot <quinot@adacore.com>
4618 * sem_elim.adb: Minor reformatting
4620 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4622 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
4623 predefined unit, allow arbitrary number of components in static
4624 aggregate, to ensure that the same level of constant folding applies
4625 for Ada 95 and Ada 05 versions of the file.
4627 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4629 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
4630 information: no need for full scope check.
4631 (Eliminate_Error): Do not emit error in a generic context.
4633 2009-04-29 Ed Falis <falis@adacore.com>
4635 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
4636 VxWorks 653 POS does not support rmdir.
4638 2009-04-29 Matteo Bordin <bordin@adacore.com>
4640 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
4641 results are printed.
4643 2009-04-29 Arnaud Charlet <charlet@adacore.com>
4645 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
4648 2009-04-29 Thomas Quinot <quinot@adacore.com>
4650 * make.adb: Minor reformatting.
4651 Minor code reorganization throughout.
4653 2009-04-29 Matteo Bordin <bordin@adacore.com>
4655 * s-stausa.ads: Changed visibility of type Task_Result: moved to
4656 public part to give application visibility over it.
4657 This is for future improvement and to build a public API on top of it.
4658 Changed record components name of type Task_Result to reflect the new
4661 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
4662 reporting Stack usage.
4664 * gnat_ugn.texi: Update doc of stack usage report.
4666 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
4668 * Makefile.rtl: Add new run-time files.
4670 2009-04-29 Pascal Obry <obry@adacore.com>
4672 * initialize.c: Do not expand quoted arguments.
4674 2009-04-29 Emmanuel Briot <briot@adacore.com>
4676 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
4678 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
4679 Prj.Ultimate_Extending_Project_Of
4681 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4683 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
4684 Amendment type, add the with_clause for Finalization.List_Controller
4685 only if the current context is a package body.
4687 2009-04-29 Thomas Quinot <quinot@adacore.com>
4689 * sem_ch12.adb: Minor reformatting
4691 * sem_aggr.adb: Minor reformatting
4693 * sem_ch6.adb, sem_cat.ads: Minor reformatting
4695 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
4697 2009-04-29 Quentin Ochem <ochem@adacore.com>
4699 * prj.ads (Source_Id): Now general pointer type.
4701 2009-04-29 Thomas Quinot <quinot@adacore.com>
4703 * exp_ch7.adb, rtsfind.adb: Minor reformatting
4705 * sem_res.adb: Minor reformatting
4707 2009-04-29 Thomas Quinot <quinot@adacore.com>
4709 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
4710 operands is static only if it is a predefined concatenation operator.
4712 * sem_util.adb: Minor reformatting
4714 * sem_ch12.adb (Save_References): When propagating semantic information
4715 from generic copy back to generic template, for the case of an
4716 identifier that has been rewritten to an explicit dereference whose
4717 prefix is either an object name or a parameterless funcion call
4718 denoting a global object or function, properly capture the denoted
4719 global entity: perform the corresponding rewriting in the template,
4720 and point the rewritten identifier to the correct global entity (not
4721 to the associated identifier in the generic copy).
4723 2009-04-29 Robert Dewar <dewar@adacore.com>
4725 * rtsfind.adb, prj-env.adb: Minor reformatting
4726 Minor code reorganization
4728 2009-04-29 Emmanuel Briot <briot@adacore.com>
4730 * make.adb: Fix comment
4732 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
4733 is given as argument, as might happen in gnatmake.
4735 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4737 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
4738 an abstract operation of a progenitor is not properly overridden by an
4739 operation of a derived synchronized type.
4741 2009-04-29 Robert Dewar <dewar@adacore.com>
4743 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
4744 prj-proc.adb: Minor reformatting
4745 Minor code reorganization
4747 2009-04-29 Bob Duff <duff@adacore.com>
4749 * exp_ch7.adb (Build_Final_List): For an access type that designates a
4750 Taft Amendment type, if the access type needs finalization, make sure
4751 the implicit with clause for List_Controller occurs on the package spec.
4753 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
4754 with's created for the pseudo-children of Text_IO and friends. In
4755 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
4756 Ada.Text_IO.Integer_IO both with-ing each other.
4758 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
4759 oddball cases when pragma Extend_System is used.
4761 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
4762 the case where a package spec instantiates a generic whose body with's
4763 this package, so Walk_Library_Items won't complain about cyclic with's.
4765 2009-04-29 Emmanuel Briot <briot@adacore.com>
4767 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
4768 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
4769 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
4770 (Project_Id): now a real pointer to Project_Data, instead of an index
4771 into the Projects_Table. This simplifies the API significantly, avoiding
4772 extra lookups in this table and the need to pass the Project_Tree_Ref
4773 parameter in several cases
4775 2009-04-29 Nicolas Setton <setton@adacore.com>
4777 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
4780 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
4782 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
4785 2009-04-24 Robert Dewar <dewar@adacore.com>
4787 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
4788 clean.adb: Minor reformatting.
4789 Minor code reorganization and message improvement.
4791 2009-04-24 Emmanuel Briot <briot@adacore.com>
4793 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
4794 (Alternate_Languages): now implemented as a malloc-ed list rather
4795 than through a table.
4797 2009-04-24 Thomas Quinot <quinot@adacore.com>
4799 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
4800 accurately handle cases such as "lit" & "lit" and
4801 "lit" & static_string_constant
4803 2009-04-24 Emmanuel Briot <briot@adacore.com>
4805 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4806 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
4807 removed. Lists of projects are now implemented via standard malloc
4808 rather than through the table.
4810 2009-04-24 Thomas Quinot <quinot@adacore.com>
4812 * sem_ch12.adb: Minor reformatting
4814 * g-trasym.adb: Minor reformatting
4816 * exp_ch6.adb: Minor reformatting
4818 2009-04-24 Robert Dewar <dewar@adacore.com>
4820 * layout.adb (Layout_Type): For packed array type, copy unset
4821 size/alignment fields from the referenced Packed_Array_Type.
4823 2009-04-24 Bob Duff <duff@adacore.com>
4825 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
4826 longer needed after sem_ch12 changes.
4828 * sem.adb (Walk_Library_Items): Include with's in some debugging
4831 2009-04-24 Emmanuel Briot <briot@adacore.com>
4833 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
4834 only ever using the Project field.
4836 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4838 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
4839 Body_Required on the generated compilation node. The new node is linked
4840 to its body, but both share the same file, so we do not set this flag
4841 on the new unit so as not to create a spurious dependency on a
4842 non-existent body in the ali file for the instance.
4844 2009-04-24 Robert Dewar <dewar@adacore.com>
4846 * make.adb: Minor reformatting
4848 2009-04-24 Emmanuel Briot <briot@adacore.com>
4850 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
4851 Add_Source): merge some code between those. In particular change where
4852 file normalization is done to avoid a few extra calls to
4853 Canonicalize_File_Name. This also removes the need for passing
4854 Current_Dir in a number of subprograms.
4856 2009-04-24 Bob Duff <duff@adacore.com>
4858 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
4859 False, assign the correct unit to the Cunit field of the new table
4860 entry. We want the spec unit, not the body unit.
4862 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
4863 interface for these.
4864 (Maybe_Add_With): Check whether we're trying to a with on the current
4865 unit, and avoid creating such directly self-referential with clauses.
4866 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
4867 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
4868 and matches existing comments in the spec.
4870 * sem.adb (Walk_Library_Items): Add various special cases to make the
4873 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
4874 instead of Parent (N), for uniformity.
4876 2009-04-24 Robert Dewar <dewar@adacore.com>
4878 * errout.ads: Minor reformatting
4880 2009-04-24 Emmanuel Briot <briot@adacore.com>
4882 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
4883 behavior when the project includes sources from multiple languages
4885 2009-04-24 Vincent Celier <celier@adacore.com>
4887 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
4888 is a language other than Ada declared.
4890 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
4891 Imported_First set to True.
4893 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4895 * sem_res.adb: additional optimization to inhibit creation of
4896 redundant transient scopes.
4898 2009-04-24 Bob Duff <duff@adacore.com>
4900 * rtsfind.ads: Minor comment fix
4902 2009-04-24 Emmanuel Briot <briot@adacore.com>
4904 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
4905 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
4906 basically doing the same work (for explicit or implicit sources).
4907 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
4908 role. Rewritten to share some code (testing that all explicit sources
4909 have been found) between ada_only and multi_language modes.
4911 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
4913 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
4914 for CLI imported types.
4915 (Analyze_Pragma): Allow CIL or Java imported functions returning
4916 access-to-subprogram types.
4918 2009-04-24 Emmanuel Briot <briot@adacore.com>
4920 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
4921 (Project_Data.Dir_Path): field removed, since it can be computed
4922 directly from .Directory, and is needed only once when processing the
4923 project is buildgpr.adb or make.adb
4925 2009-04-24 Robert Dewar <dewar@adacore.com>
4927 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
4928 rtsfind.adb: Minor reformatting.
4929 Minor code reorganization
4931 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4933 * mlib-prj.adb: Use friendlier english identifier.
4935 * gnatcmd.adb, make.adb: Use better english identifiers.
4937 2009-04-24 Robert Dewar <dewar@adacore.com>
4939 * clean.adb: Minor reformatting
4941 2009-04-24 Robert Dewar <dewar@adacore.com>
4943 * einfo.adb (OK_To_Rename): New flag
4945 * einfo.ads (OK_To_Rename): New flag
4947 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
4950 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
4952 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
4955 2009-04-24 Emmanuel Briot <briot@adacore.com>
4957 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
4958 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
4959 field removed. This is not a property of the
4960 project, just a boolean used to traverse the project tree, and storing
4961 it in the structure prevents doing multiple traversal in parallel.
4962 (Project_Data.Checked): also removed, since it was playing the same role
4963 as Seen when we had two nested loops, and this is no longer necessary
4964 (For_All_Imported_Projects): removed, since in fact there was already
4965 the equivalent in For_Every_Project_Imported. The latter was rewritten
4966 to use a local hash table instead of Project_Data.Seen
4967 Various loops were rewritten to use For_Every_Project_Imported, thus
4968 removing the need for Project_Data.Seen. This avoids a lot of code
4971 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4973 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
4974 statements, even though the actual of the call is a concatenation,
4975 because the argument is static, and we want to preserve warning
4976 messages about sequences of code statements that are not marked
4979 * sem_warn.adb: remove obsolete comment about warning being obsolete
4981 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
4982 requeued and the delay has expired while within the accept statement
4983 that executes the requeue, do not perform the requeue and indicate that
4984 the timed call has been aborted.
4986 2009-04-24 Emmanuel Briot <briot@adacore.com>
4988 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4989 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
4990 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
4991 since they can be computed from the above.
4993 2009-04-24 Vincent Celier <celier@adacore.com>
4995 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
4997 * prj-env.adb: Move all global variables to the private part of the
4999 Access these new components instead of the global variables no longer
5001 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
5002 components that were previously global variables.
5004 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
5005 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
5008 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
5009 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
5011 * prj.adb (Initialize): Do not call Prj.Env.Initialize
5012 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
5013 components in the private part of the project tree data.
5015 * prj.ads (Private_Project_Tree_Data): new components moved from
5016 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
5017 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
5018 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
5020 2009-04-24 Vincent Celier <celier@adacore.com>
5022 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
5024 * prj-nmsc.adb (Check_Library): No error for imports by shared library
5025 projects, when --unchecked-shared-lib-imports is used.
5027 2009-04-24 Robert Dewar <dewar@adacore.com>
5029 * sem_ch7.adb: Minor reformatting
5031 2009-04-24 Tristan Gingold <gingold@adacore.com>
5033 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
5036 2009-04-24 Emmanuel Briot <briot@adacore.com>
5038 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
5039 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
5040 (For_All_Imported_Projects): new procedure
5041 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
5042 above rather than duplicating code.
5044 2009-04-24 Emmanuel Briot <briot@adacore.com>
5046 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5047 (Source_Id, Source_Data): use a real list to store sources rather than
5048 using an external table to store the elements. This makes code more
5049 efficient and more readable.
5051 2009-04-24 Emmanuel Briot <briot@adacore.com>
5053 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5054 (Source_Iterator): new type.
5055 This removes the need for having the sources on three different
5056 lists at the project tree, project and language level. They are now
5059 2009-04-24 Emmanuel Briot <briot@adacore.com>
5061 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
5063 2009-04-24 Ed Schonberg <schonberg@adacore.com>
5065 * sem_warn.adb: Add comment on obsolete warning
5067 2009-04-24 Arnaud Charlet <charlet@adacore.com>
5069 * s-tassta.adb (Create_Task): Fix violation of locking rule.
5071 2009-04-24 Emmanuel Briot <briot@adacore.com>
5073 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
5074 to Language_Ptr to better reflect its new implementation.
5075 (Project_Data.First_Languages_Processing): renamed to Languages now
5076 that the field with that name is no longer used
5077 (Project_Data.Languages): removed, no longer used, and duplicates
5078 information already available through First_Language_Processing.
5079 (Prj.Language_Index): now an actual pointer, instead of an index into
5080 a table. This makes the list somewhat more obvious, but more importantly
5081 removes the need to pass a pointer to the project_tree_data in a few
5082 places, and makes accessing the attributes of a languages more
5085 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5086 Thomas Quinot <quinot@adacore.com>
5088 * fe.h (Set_Identifier_Casing): Add const to second parameter.
5089 * gcc-interface/misc.c (internal_error_function): Make copy of return
5090 from pp_formatted_text before assigning BUFFER to it.
5091 (gnat_init): Likewise for main_input_filename and gnat_argv.
5092 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
5094 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
5096 * ttypes.ads (Target_Double_Float_Alignment): New variable.
5097 (Target_Double_Scalar_Alignment): Likewise.
5098 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
5099 (Get_Double_Float_Alignment): New imported function.
5100 (Get_Double_Scalar_Alignment): Likewise.
5101 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
5102 the alignment of "double" floating-point types and "double" or larger
5103 scalar types, as parameterized by Target_Double_Float_Alignment and
5104 Target_Double_Scalar_Alignment respectively.
5105 * gcc-interface/gigi.h (double_float_alignment): Declare.
5106 (double_scalar_alignment): Likewise.
5107 (is_double_float_or_array): Likewise.
5108 (is_double_scalar_or_array): Likewise.
5109 (get_target_double_float_alignment): Likewise.
5110 (get_target_double_scalar_alignment): Likewise.
5111 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
5112 (get_target_strict_alignment): ...this.
5113 (get_target_double_float_alignment): New function.
5114 (get_target_double_scalar_alignment): Likewise.
5115 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5116 Test the presence of an alignment clause for under-aligned integer
5117 types. Take into account specific caps for the alignment of "double"
5118 floating-point types and "double" or larger scalar types, as
5119 parameterized by Target_Double_Float_Alignment and
5120 Target_Double_Scalar_Alignment respectively.
5121 (validate_alignment): Likewise.
5122 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
5123 (gigi): Initialize double_float_alignment and double_scalar_alignment.
5124 * gcc-interface/utils.c (double_float_alignment): New global variable.
5125 (double_scalar_alignment): Likewise.
5126 (is_double_float_or_array): New predicate.
5127 (is_double_scalar_or_array): Likewise.
5129 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
5131 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
5132 the conditional expression only if it is common to both arms.
5134 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
5136 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
5137 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
5138 arguments to build_allocator.
5139 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
5140 Remove code handling special allocator and assert its uselessness.
5142 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
5144 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
5145 alignment is specified, do not promote that of the component type
5147 <E_Array_Subtype>: Likewise.
5149 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
5151 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
5152 * sinfo.ads (Object Declaration): Likewise.
5153 (Assignment Statement): Likewise.
5154 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
5155 Do not force Is_True_Constant to false on the temporary.
5156 (Freeze_Entity): Do not force Is_True_Constant to false on names on
5157 the RHS of object declarations.
5158 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
5159 New case. Return 1 if the object is atomic.
5160 <N_Assignment_Statement>: Likewise.
5162 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
5164 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
5165 For packed array types, make the original array type a parallel type
5166 for the modular type and its JM wrapper if the type is bit-packed.
5167 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
5168 record type for packed array types. Remove kludge.
5170 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
5172 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
5173 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5174 Use front-end predicates to compute signedness and precision.
5175 <E_String_Literal_Subtype>: Fold range type.
5176 Make sure to set longest_float_type_node to a scalar type.
5177 (elaborate_entity): Use consistent Constraint_Error spelling.
5178 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
5179 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
5180 output for the modulus, if any.
5181 <ENUMERAL_TYPE>: Likewise for the RM size.
5182 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
5184 * gcc-interface/utils.c (finish_record_type): Really test the alignment
5185 of BLKmode bit-fields to compute their addressability.
5186 (create_index_type): Adjust comments.
5187 (create_param_decl): Create the biased subtype manually.
5188 * gcc-interface/utils2.c (build_component_ref): Use consistent
5189 Constraint_Error spelling.
5191 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
5193 * gcc-interface/cuintp.c: Clean up include directives.
5194 * gcc-interface/targtyps.c: Likewise.
5195 * gcc-interface/decl.c: Likewise.
5196 * gcc-interface/misc.c: Likewise.
5197 * gcc-interface/trans.c: Likewise.
5198 * gcc-interface/utils.c: Likewise.
5199 * gcc-interface/utils2.c: Likewise.
5200 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
5202 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
5204 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
5205 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
5206 (SET_DECL_LANG_SPECIFIC): Likewise.
5208 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5209 Update comment about use of build_range_type.
5210 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
5211 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
5212 check for other cases of overloading.
5213 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
5214 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
5215 Use size_int in lieu of build_int_cst.
5216 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
5219 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
5221 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
5222 type is an enumeral or a boolean type, change it to an integer type
5223 with the same mode and signedness.
5225 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
5227 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
5228 for an external constant whose initializer is not absolute.
5230 2009-04-22 Taras Glek <tglek@mozilla.com>
5232 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
5233 * gcc-interface/trans.c: Likewise.
5234 * gcc-interface/utils.c: Likewise.
5236 2009-04-22 Ed Schonberg <schonberg@adacore.com>
5238 * sem_res.adb: Create block around procedure call when actual is a
5241 2009-04-22 Thomas Quinot <quinot@adacore.com>
5243 * s-soflin.ads: Fix typos
5245 2009-04-22 Vincent Celier <celier@adacore.com>
5247 * prj-env.adb: Minor comment change
5249 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
5250 Get_Name_String with No_File.
5252 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
5253 cannot be created even when not in verbose mode.
5255 2009-04-22 Emmanuel Briot <briot@adacore.com>
5257 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
5258 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
5259 Multi_Language modes, to avoid code duplication.
5260 (Project_Data.Include_Language): Removed.
5262 2009-04-22 Vincent Celier <celier@adacore.com>
5264 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
5265 the temporary file cannot be created, indicating the directory when the
5266 creation was attempted.
5268 2009-04-22 Emmanuel Briot <briot@adacore.com>
5270 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
5271 the language names, not their indices.
5273 2009-04-22 Emmanuel Briot <briot@adacore.com>
5275 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
5276 (Source_Data.Language_Name): Field removed.
5278 2009-04-22 Emmanuel Briot <briot@adacore.com>
5280 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
5283 2009-04-22 Emmanuel Briot <briot@adacore.com>
5285 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
5286 separate_suffix to the same value as the body_suffix.
5288 2009-04-22 Robert Dewar <dewar@adacore.com>
5290 * prj.adb: Minor code reorganization
5293 * prj-proc.adb: Minor code reorganization, clean up.
5295 * prj-nmsc.adb: Minor reformatting
5296 Minor code reorganization
5298 * gnat_ugn.texi: Add to doc on strict aliasing
5300 2009-04-22 Pascal Obry <obry@adacore.com>
5302 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
5305 * s-tasini.adb: Minor reformatting.
5307 * s-tassta.adb: Minor reformatting.
5309 2009-04-22 Emmanuel Briot <briot@adacore.com>
5311 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
5312 smaller subprograms.
5313 Renamed to Check_File_Naming_Schemes to avoid confusion with the
5314 other Check_Naming_Schemes functions that plays a totally different
5316 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
5317 extracted from the above. These were partially rewritten to avoid
5318 unnecessary code and temporary variables.
5319 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
5320 and Get_Unit (which for now still exist since they contain mode-specific
5323 2009-04-22 Emmanuel Briot <briot@adacore.com>
5325 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
5326 Remove duplicated code.
5327 (Canonical_Case_File_Name): new subprogram
5328 (Check_And_Normalize_Unit_Names): new subprogram
5329 (Write_Attr): new subprogram
5330 Better sharing of code
5331 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
5332 split Check_Naming and help find duplicated code
5333 (Check_Common): new subprogram, sharing code between ada_only and
5334 multi_language mode.
5335 (Naming_Data.Dot_Repl_Loc): field removed
5337 2009-04-22 Emmanuel Briot <briot@adacore.com>
5339 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
5340 Minor refactoring to reduce the size of
5341 Process_Sources_In_Multi_Language_Mode.
5342 Avoid extra copied of Source_Data, which we found in the past could be
5344 (Mark_Excluded_Sources): new subprogram.
5345 (Remove_Locally_Removed_Files_From_Units): merged into the above
5346 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
5347 and allow better sharing of code between multi_lang and ada_only modes
5348 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
5350 2009-04-22 Emmanuel Briot <briot@adacore.com>
5352 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
5353 Removed, since unused.
5355 2009-04-22 Vincent Celier <celier@adacore.com>
5357 * prj-attr.adb: New single project level attribute
5358 Separate_Run_Path_Options.
5360 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5361 attribute Seperate_Run_Path_Options.
5363 * prj.ads: (Project_Configuration): New Boolean component
5364 Separate_Run_Path_Options, defaulted to False.
5366 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
5368 2009-04-22 Robert Dewar <dewar@adacore.com>
5370 * sem_type.adb: Minor reformatting
5372 * mlib.adb: Minor reformatting
5374 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
5377 2009-04-22 Nicolas Setton <setton@adacore.com>
5379 * link.c: Add flag __gnat_separate_run_path_options.
5381 * mlib.adb (Separate_Run_Path_Options): New subprogram.
5383 * mlib.ads (Separate_Run_Path_Options): Declare.
5385 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
5386 switch per directory, rather than one "rpath" switch listing all
5389 * gnatlink.adb (Process_Binder_File): Likewise.
5391 * make.adb (Gnatmake): Likewise.
5393 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
5395 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
5396 Add a call to Move_Final_List when the target of the assignment is a
5397 return object that needs finalization and the expression is a
5398 controlled build-in-place function.
5400 2009-04-22 Vincent Celier <celier@adacore.com>
5402 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
5403 Including_Libraries set to True.
5405 2009-04-22 Ed Schonberg <schonberg@adacore.com>
5407 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
5408 create a unit table entry for the subprogram declaration created for a
5409 child suprogram body that has no separate specification.
5411 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
5412 subprogram body, call Make_Child_Decl_Unit.
5414 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
5415 table can only be the created specification of a child subprogram body
5416 that is the main unit, which has not been entered in the table yet.
5418 * errout.adb (Output_Messages): Ignore created specification of a
5419 child subprogram body to prevent repeated listing of error messages.
5421 * gnat1drv.adb (gnat1drv): The generated specification for a child
5422 subprogram body does not generate code.
5424 2009-04-22 Arnaud Charlet <charlet@adacore.com>
5426 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
5427 since this unit is now part of bootstrap units, so must use Ada 95
5430 2009-04-22 Thomas Quinot <quinot@adacore.com>
5432 * a-tasatt.adb: Minor reformatting
5434 2009-04-22 Bob Duff <duff@adacore.com>
5436 * s-stalib.ads: Remove "with System;" since we're inside System, so
5439 2009-04-22 Vincent Celier <celier@adacore.com>
5441 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
5442 the source record, as there may be a dependency file even if no object
5445 2009-04-22 Robert Dewar <dewar@adacore.com>
5447 * lib-load.adb: Minor reformatting
5449 * lib-load.ads: Minor reformatting
5451 * sinfo.ads: Minor reformatting
5453 2009-04-22 Bob Duff <duff@adacore.com>
5455 * exp_pakd.adb: Minor comment fixes.
5457 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
5458 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
5459 include units containing instantiations, as well as units that are
5460 generic instantiations.
5462 * sem.adb: Include dependents and corresponding specs/bodies in the
5465 * gcc-interface/Make-lang.in:
5466 sem now depends on s-bitops, because of the packed array of Booleans.
5468 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
5470 * gcc-interface/ada-tree.def: Fix formatting nits.
5471 (REGION_STMT): Delete.
5472 (HANDLER_STMT): Likewise.
5473 * gcc-interface/ada-tree.h: Fix formatting nits.
5475 (REGION_STMT_BODY): Likewise.
5476 (REGION_STMT_HANDLE): Likewise.
5477 (REGION_STMT_BLOCK): Likewise.
5478 (HANDLER_STMT_ARG): Likewise.
5479 (HANDLER_STMT_LIST): Likewise.
5480 (HANDLER_STMT_BLOCK): Likewise.
5481 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
5482 (fp_size_to_prec): Likewise.
5483 (largest_move_alignment): Delete.
5484 (gnat_compute_largest_alignment): Likewise.
5486 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5487 Remove redundant code.
5488 <E_Array_Type>: Remove redundant assert.
5489 <E_Array_Subtype>: Exit early from index computation in pathological
5491 Rewrite conditional assignment.
5492 (make_type_from_size): Likewise.
5493 * gcc-interface/misc.c (largest_move_alignment): Delete.
5494 (gnat_finish_incomplete_decl): Likewise.
5495 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
5496 (asm_out_file): Likewise
5497 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
5498 (gnat_dwarf_name): Move around.
5499 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
5500 (gigi): Remove call to gnat_compute_largest_alignment.
5501 * utils.c (create_field_decl): Rewrite conditional assignment.
5504 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
5506 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
5507 on entry. Defer common processing for types. Reorder and clean up.
5508 Compute the equivalent GNAT node and the default size for types only.
5509 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
5510 <E_Access_Type>: For an unconstrained designated type, do not pretend
5511 that a dummy type is always made.
5512 <all> Fix nits in comments.
5513 (validate_size): Fix formatting nits and comments.
5514 (set_rm_size): Likewise.
5515 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
5516 passed to TARGET_PROMOTE_PROTOTYPES hook.
5518 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
5520 * fe.h (Get_External_Name): Declare.
5521 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
5522 (concat_name): ...this.
5523 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
5524 gnu_entity_name and adjust for above renaming.
5525 <E_Access_Type>: Use create_concat_name to get the name of the various
5526 types associated with unconstrained array types.
5527 (make_aligning_type): Adjust for above renaming.
5528 (maybe_pad_type): Likewise.
5529 (components_to_record): Likewise. Use get_identifier_with_length for
5530 the encoding of the variant.
5531 (get_entity_name): Use get_identifier_with_length.
5532 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
5533 Do not fiddle with Name_Buffer.
5534 (concat_id_with_name): Rename to...
5535 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
5537 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
5540 2009-04-21 Joseph Myers <joseph@codesourcery.com>
5542 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
5545 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5547 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
5549 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5551 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
5552 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
5553 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
5554 Remove useless support code for packed array types and assert its
5556 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
5557 adjust for TYPE_RM_SIZE change.
5558 <all> Fix nits in comments. Use Original_Array_Type accessor instead
5559 of Associated_Node_For_Itype accessor for packed array types.
5560 (make_packable_type): Likewise.
5561 (maybe_pad_type): Likewise.
5562 (set_rm_size): Likewise. Rework conditional statement. Adjust for
5563 TYPE_RM_SIZE change.
5564 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
5565 (rm_size): Fix nits in comments. Rework conditional statements.
5566 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
5568 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
5569 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
5570 appropriate function to initialize the size_type_node. Adjust for
5571 TYPE_RM_SIZE change.
5573 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5575 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
5576 for imported subprograms.
5578 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5580 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
5581 constant objects covered by 13.3(19) volatile.
5583 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5585 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
5586 of dummy fat pointer types to the debug back-end.
5588 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5590 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
5591 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
5592 before wrapping it up in the record type. Do not overwrite the
5593 Ada size of the record type with the Esize.
5595 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5597 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
5598 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
5599 if the conversion is on the LHS of an assignment and a no-op.
5600 <all> Do not convert the result to the result type if the Parent
5601 node is such a conversion.
5603 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5605 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
5606 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
5607 of types with unknown discriminants.
5608 (substitute_in_type): Rewrite and restrict to formal substitutions.
5609 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
5610 (update_pointer_to): Update comment.
5612 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5614 * sem_ch8.adb (Use_One_Package): In an instance, if two
5615 potentially_use_visible and non-overloadable homonyms are available
5616 from the actuals of distinct formal packages, retain the current one,
5617 which was visible in the generic, to prevent spurious visibility
5619 (End_Use_Package): Restore use_visibility when needed.
5621 2009-04-20 Sergey Rybin <rybin@adacore.com>
5623 * gnat_ugn.texi, vms_data.ads: Update doc.
5625 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5627 * gcc-interface/Make-lang.in: Update dependencies
5629 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
5632 2009-04-20 Robert Dewar <dewar@adacore.com>
5634 * checks.ads: Fix documentation of range check handling
5636 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5638 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
5639 a redundant use_type clause.
5641 2009-04-20 Robert Dewar <dewar@adacore.com>
5643 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
5644 this attribute can be evaluated at compile time.
5645 (Eval_Attribute, case Range_Length): Same improvement
5647 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
5649 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5651 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
5652 for better handling of null procedures.
5653 (Check_Overriding_Indicator): Do not emit a warning on a missing
5654 overriding indicator on an operator when the type of which the operator
5655 is a primitive is private.
5657 2009-04-20 Bob Duff <duff@adacore.com>
5659 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
5662 2009-04-20 Robert Dewar <dewar@adacore.com>
5664 * sem_attr.adb: Minor reformatting
5666 * gnatcmd.adb: Minor reformatting
5668 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5670 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
5671 overloaded and one interpretation matches the context, label the
5672 operand with the type of first formal.
5674 2009-04-20 Bob Duff <duff@adacore.com>
5676 * debug.ads: Minor comment fix.
5678 * debug.adb: Minor comment fixes.
5680 2009-04-20 Javier Miranda <miranda@adacore.com>
5682 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
5684 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
5686 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
5687 is expanded into a call to Raise_Exception, avoid passing the
5688 exception-name'identity in runtimes in which this argument
5691 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
5693 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
5694 generated bindings for cil.
5696 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5698 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
5699 discriminants, collect components from the Underlying_Record_View,
5700 which will be used in the expansion of the aggregate into assignments.
5702 * sem_ch3.adb: Do not label derived type with unknown discriminants as
5703 having a private declaration.
5705 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5707 * exp_util.adb (Expand_Subtype_From_Expr): use the
5708 underlying_record_view when available, to create the proper constrained
5709 subtype for an object of a derived type with unknown discriminants.
5711 2009-04-20 Javier Miranda <miranda@adacore.com>
5713 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
5714 formals that have pragma unreferenced.
5716 2009-04-20 Pascal Obry <obry@adacore.com>
5718 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
5719 Remove all calls to To_Lower_If_Case_Insensitive to preserve
5720 the pathname original casing.
5722 2009-04-20 Robert Dewar <dewar@adacore.com>
5724 * g-trasym.adb: Minor reformatting
5726 * s-os_lib.adb: Minor reformatting
5728 * sem.adb: Minor reformatting
5729 Minor code reorganization
5731 * sem_ch3.adb: Minor reformatting
5733 * sem_ch4.adb: Minor reformatting
5735 * sem_ch8.adb: Minor reformatting
5737 * sem_type.adb: Minor reformatting
5739 2009-04-20 Javier Miranda <miranda@adacore.com>
5741 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
5742 generated by derivations of tagged types use the aliased subprogram a
5743 reference to locate their controlling type.
5745 2009-04-20 Tristan Gingold <gingold@adacore.com>
5747 * g-trasym.adb: Set size of result buffer before calling
5750 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5752 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
5753 to a function returning an array can be interpreted as a call with
5754 defaulted parameters whose result is indexed, take into account the
5755 types of all the indices of the array result type.
5757 2009-04-20 Pascal Obry <obry@adacore.com>
5759 * a-direct.adb, s-os_lib.adb: Minor reformatting.
5761 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5763 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
5764 null exclusion qualifiers for object renaming declarations.
5766 2009-04-20 Nicolas Roche <roche@adacore.com>
5768 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
5769 unsigned long long. So compare local_time and utc_time before computing
5772 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5774 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5775 of the Underlying_Record_View before that of the derived type.
5777 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
5778 with unknown discriminants with regard to the parent subtype.
5780 2009-04-20 Bob Duff <duff@adacore.com>
5782 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
5783 that are not included. This is necessary if the main unit is a generic
5786 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
5787 because it doesn't work if -gnatn is used.
5789 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5791 * rtsfind.adb (RTE, RTE_Record_Component): In
5792 Configurable_Run_Time_Mode, do not enable front-end inlining.
5794 2009-04-20 Thomas Quinot <quinot@adacore.com>
5796 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
5797 System.Address_To_Access_Conversions.
5799 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5801 * sem.adb: Guard against ill-formed subunits.
5803 2009-04-20 Bob Duff <duff@adacore.com>
5805 * output.adb (Flush_Buffer): Do not indent blank lines.
5806 (Ignore_Output): New procedure for output suppression.
5808 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5810 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
5811 when it is positive. This avoids a potential constraint error raised
5812 by the conversion to Natural.
5814 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5816 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
5817 involves a target that has a specified address, don't set Forward_OK
5818 and Backward_OK to False if the rhs is an aggregate, since overlap
5821 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5823 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
5824 in an object renaming declaration when the expected type is an
5825 anonymous access type.
5827 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
5828 ambiguity when one interpretation is an anonymous access type and the
5829 other is a named access type, and the context itself is anonymous
5831 2009-04-20 Thomas Quinot <quinot@adacore.com>
5833 * einfo.ads: Minor comment rewording
5835 * sem_aggr.adb: Minor comment rewording
5837 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
5839 2009-04-20 Pascal Obry <obry@adacore.com>
5841 * adaint.c (__gnat_is_readable_file): Check for file existence
5842 when not using ACL (always the case on remote drives).
5844 2009-04-20 Robert Dewar <dewar@adacore.com>
5846 * sinfo.ads: Minor comment fixes
5848 * exp_disp.adb: Minor reformatting
5850 * gnat1drv.adb: Minor reformatting
5852 * output.adb: Minor reformatting
5854 * s-vxwext-kernel.ads: Minor reformatting
5856 * sem.ads: Minor reformatting
5858 * sem.adb: Minor reformatting
5860 * sem_elim.adb: Minor reformatting
5862 * uname.ads: Minor reformatting
5864 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5866 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
5867 a small dope of 4 words to the adjustment to the stack pointer.
5869 2009-04-20 Thomas Quinot <quinot@adacore.com>
5871 * xoscons.adb: generate C header s-oscons.h in
5872 addition to s-oscons.ads.
5874 * socket.c: On VMS, use s-oscons.h.
5876 * sem_ch3.adb: Minor reformatting
5878 * exp_ch9.adb: Minor reformatting
5880 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5882 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
5883 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
5884 (call_to_gnu): Likewise.
5886 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5888 * gcc-interface/trans.c (gigi): Declare the name of the compilation
5889 unit as the first global name at the very beginning.
5891 2009-04-20 Thomas Quinot <quinot@adacore.com>
5893 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5894 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
5895 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
5896 since HP-UX supports neither inet_aton nor inet_pton (altough the
5897 latter is part of the Single UNIX Specification!).
5898 So reorganize code, and share C implementation based on inet_addr(3)
5899 with VMS (instead of having a VMS specific Ada implementation in
5902 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5904 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
5905 to return the object file name saved by Set_Object_Output_File_Name.
5907 2009-04-20 Emmanuel Briot <briot@adacore.com>
5909 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
5910 for the standard command line, when argc has been modified since the
5911 start of the application.
5913 2009-04-20 Thomas Quinot <quinot@adacore.com>
5915 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
5916 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
5918 2009-04-20 Bob Duff <duff@adacore.com>
5920 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
5923 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5925 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
5926 subprogram as Eliminated when source operation is.
5927 (Expand_N_Protected_Type_Declaration): Generate protected and
5928 unprotected specs for the internal operations, even if the source
5929 operation is eliminated.
5931 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5933 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
5934 Predefined_Primitive_Bodies): Do not create the declarations and bodies
5935 of the primitive subprograms associated with dispatching select
5936 statements when the runtime is in configurable mode.
5938 2009-04-20 Ed Falis <falis@adacore.com>
5940 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
5942 2009-04-20 Thomas Quinot <quinot@adacore.com>
5944 * s-oscons-tmplt.c: Add support for generating a dummy version of
5945 s-oscons.ads providing all possible constants.
5947 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
5949 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
5950 ANSI version (not the UNICODE version) of WSAStringToAddress.
5952 2009-04-20 Pascal Obry <obry@adacore.com>
5954 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
5955 allocated for the security descriptor and make sure all
5956 handles are closed before leaving this procedure.
5958 2009-04-20 Javier Miranda <miranda@adacore.com>
5960 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
5961 (Set_Is_Underlying_Record_View): New subprogram
5963 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
5964 private types with unknown discriminants use the underlying record view
5967 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
5968 underlying record view in the full view of private types whose parent
5969 has unknown discriminants.
5970 (Build_Derived_Record_Type): Avoid generating the class-wide entity
5971 associated with an underlying record view.
5972 (Derived_Type_Declaration): Avoid deriving parent primitives in
5973 underlying record views.
5975 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
5976 records with unknown discriminants.
5978 * sem_type.adb (Covers): Handle underlying record views.
5979 (Is_Ancestor): Add support for underlying record views.
5981 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
5982 dispatching call if the type of the target object is tagged and has
5983 unknown discriminants.
5985 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
5986 unknown discriminants.
5988 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
5989 tables for internally built underlying record views.
5991 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
5992 empty list of component associations.
5994 2009-04-20 Thomas Quinot <quinot@adacore.com>
5996 * sem_ch10.adb: Minor reformatting
5998 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5999 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
6000 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
6001 standard inet_pton API (and emulate it on platforms that do not
6003 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
6004 DECC$INET_ADDR, imported in Ada.
6005 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
6006 implementation provided by GNAT runtime.
6007 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
6010 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6012 * gnat_ugn.texi: Add documentation for -fno-ivopts.
6014 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6016 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
6017 with_clause if it is the main unit.
6019 2009-04-20 Thomas Quinot <quinot@adacore.com>
6021 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
6022 (no behaviour change): Use Append instead of Increment_Last followed
6025 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
6027 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
6028 declarations of all primitives associated with dispatching asynchronous,
6029 conditional and timed selects when dispaching calls are forbidden and
6030 select statements are not allowed (such as in Ravenscar).
6031 (Predefined_Primitive_Bodies): Ditto for bodies.
6033 * exp_disp.ad (Make_DT): Do not create and populate the
6034 Select_Specific_Data of the dispatch table when dispatching calls are
6035 forbidden and select statements are not allowed (such as in Ravenscar).
6037 2009-04-20 Robert Dewar <dewar@adacore.com>
6039 * a-tifiio.adb: Minor reformatting
6041 2009-04-20 Thomas Quinot <quinot@adacore.com>
6043 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
6044 other C library functions, report *failure* with a zero status, and
6045 success with a non-zero status.
6047 2009-04-20 Bob Duff <duff@adacore.com>
6049 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
6050 (Semantics): After analyzing each unit, Append it to the
6051 Comp_Unit_List, if appropriate.
6053 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
6055 (Gnat1drv): Correct comment regarding Back_End_Mode.
6057 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6059 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
6061 2009-04-20 Thomas Quinot <quinot@adacore.com>
6063 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6064 output.adb, output.ads, s-taprop-hpux-dce.adb,
6065 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
6068 2009-04-20 Thomas Quinot <quinot@adacore.com>
6070 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
6071 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
6072 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
6073 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
6074 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
6075 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
6077 * debug.adb: Fix typo
6079 * gnat_rm.texi: Minor doc fix.
6081 * sem_ch7.adb, freeze.adb: Minor reformatting
6083 2009-04-20 Thomas Quinot <quinot@adacore.com>
6085 * g-socket.ads: Add new constants:
6087 Unspecified_Group_Inet_Addr
6088 All_Hosts_Group_Inet_Addr
6089 All_Routers_Group_Inet_Addr
6091 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
6092 ERANGE (Result too large).
6093 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
6094 propagation of errno to caller.
6096 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
6098 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
6099 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
6102 2009-04-20 Gary Dismukes <dismukes@adacore.com>
6104 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
6105 checking for references to eliminated subprograms that should be
6107 (Eliminate_Error_Message): Update comment to say "references" rather
6108 than "calls" (since attribute cases are handled here as well).
6110 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
6111 checking for references to eliminated subprograms that should be
6112 flagged. Add with and use of Sem and Sem_Util.
6114 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
6115 Add with and use of Sem_Elim.
6117 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
6118 applied to eliminated subprograms.
6119 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
6120 eliminated subprograms.
6121 Add with and use of Sem_Elim.
6123 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
6124 to eliminated subprograms, now handled during Resolve_Call.
6125 Remove with and use of Sem_Elim.
6127 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
6128 testing Is_Eliminated, for proper handling of primitive derived from
6129 eliminated subprograms.
6131 2009-04-20 Vincent Celier <celier@adacore.com>
6133 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
6134 has been declared (Library_GCC or Linker'Driver), for the driver name.
6136 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
6137 Linker'Driver is, use Linker'Driver as the shared library linker.
6138 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
6139 Library_GCC is declared.
6140 (Check_Library_Attributes): Set up the shared linker driver: either
6141 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
6144 2009-04-20 Thomas Quinot <quinot@adacore.com>
6146 * g-socket.ads (Send_Socket): Fix misleading comment.
6148 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6150 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
6153 2009-04-20 Geert Bosch <bosch@adacore.com>
6155 * a-tifiio.adb (Put): Avoid generating too many digits for certain
6156 fixed types with smalls that are neither integer or the reciprocal
6159 2009-04-20 Bob Duff <duff@adacore.com>
6161 * uname.ads: Minor comment fix.
6163 * types.ads: Minor comment fix.
6165 2009-04-20 Pascal Obry <obry@adacore.com>
6167 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
6168 avoid warning. At the same time fix a memory leak.
6170 * osint.adb (Get_Libraries_From_Registry): Properly free memory
6171 returned by the above routine.
6173 2009-04-20 Robert Dewar <dewar@adacore.com>
6175 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
6176 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
6177 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
6178 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
6180 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
6182 2009-04-20 Pascal Obry <obry@adacore.com>
6184 * initialize.c (__gnat_initialize): Add braces to kill warning.
6186 * adaint.c: Minor reformatting, remove trailing spaces.
6188 2009-04-17 Arnaud Charlet <charlet@adacore.com>
6190 * gcc-interface/Make-lang.in: Update dependencies.
6192 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6194 * adaint.h (__gnat_lwp_self): Declare on Linux.
6196 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
6198 2009-04-20 Robert Dewar <dewar@adacore.com>
6200 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
6201 front-end part of -fpreserve-control-flow switch.
6203 2009-04-20 Bob Duff <duff@adacore.com>
6205 * rtsfind.adb: Minor comment fix
6207 2009-04-20 Robert Dewar <dewar@adacore.com>
6209 * exp_aggr.adb: Minor reformatting
6210 Minor code reorganization (use Nkind_In)
6212 * g-socket.adb: Minor reformatting
6214 * g-socket.ads: Minor comment fix
6216 * s-auxdec.ads: Minor comment and organization update.
6218 * s-auxdec-vms_64.ads: Minor comment and organization update.
6220 * sem_ch10.adb: Minor addition of ??? comment
6222 * sem_disp.adb: Minor reformatting
6224 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6226 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
6227 list a caller of an inlined subprogram, if the caller itself is not
6230 2009-04-20 Pascal Obry <obry@adacore.com>
6232 * adaint.c: Disable use of ACL on network drives.
6234 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6236 * gnat_ugn.texi: Add examples.
6238 2009-04-20 Thomas Quinot <quinot@adacore.com>
6240 * g-socket.ads (Abort_Selector): Clarify documentation.
6242 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6244 * opt.ads (Inspector_Mode): Update documentation of this flag.
6246 2009-04-20 Thomas Quinot <quinot@adacore.com>
6248 * g-socket.ads: Minor reformatting
6250 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
6251 consider S_resolvLib error codes since we only use the hostLib wrappers.
6253 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6255 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6256 of the Underlying_Record_View after that of the derived type.
6258 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6260 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
6263 2009-04-20 Javier Miranda <miranda@adacore.com>
6265 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
6267 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
6270 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
6273 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
6274 in internally built overriding subprograms.
6276 2009-04-20 Doug Rupp <rupp@adacore.com>
6278 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
6280 * s-auxdec.ads: Likewise
6282 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6284 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
6285 type by an interface.
6287 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
6288 minimze difference in expanded tree when compiled as spec of the main
6289 unit, or as a spec in the context of another unit.
6291 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
6293 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
6294 (localtime_tzoff): This routine no longer accepts an actual of type
6296 (UTC_Time_Offset): Remove local variable Secs_TM.
6298 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
6299 actual of type struct tm*. Add local variable of type struct tm for all
6300 targets that provide localtime_r and need to invoke it.
6302 2009-04-20 Thomas Quinot <quinot@adacore.com>
6304 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
6305 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
6306 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
6308 2009-04-20 Robert Dewar <dewar@adacore.com>
6310 * sem_ch3.adb: Minor reformatting
6312 * lib-load.adb: Minor reformatting
6314 * sem_ch4.adb: Minor reformatting
6316 2009-04-20 Robert Dewar <dewar@adacore.com>
6318 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
6319 (equal values => False).
6321 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6323 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
6324 to null procedures can be inlined unconditionally.
6326 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6328 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
6329 non-addressable parameter passed by reference, do not convert the
6330 actual if its type is already the nominal type, unless it is of
6331 self-referential size.
6333 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6335 * gnat_ugn.texi: Fix typos.
6337 2009-04-20 Robert Dewar <dewar@adacore.com>
6339 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
6340 Validate_Unchecked_Warnings to suppress warnings about size or
6341 alignment or extra bits if either type involved has pragma Warnings
6342 (Off) set for the type entity.
6344 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
6346 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
6347 a builtin type and give it a name.
6349 2009-04-17 Diego Novillo <dnovillo@google.com>
6351 * gcc-interface/misc.c (gnat_expand_expr): Remove.
6352 (LANG_HOOKS_EXPAND_EXPR): Remove.
6354 2009-04-17 Robert Dewar <dewar@adacore.com>
6356 * sem_ch3.adb: Minor reformatting
6358 2009-04-17 Pascal Obry <obry@adacore.com>
6360 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
6362 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6364 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
6365 illegal constraints on type derived from formal discrete types.
6367 2009-04-17 Thomas Quinot <quinot@adacore.com>
6371 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6372 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
6373 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
6374 g-socket.ads (GNAT.Sockets.Thin.C_Send,
6375 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
6376 Replace calls to send(2) with equivalent sendto(2) calls.
6377 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
6378 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
6379 report an error in that case. Factor code common to the two versions
6380 (datagram and stream) in common routine Stream_Write.
6382 2009-04-17 Robert Dewar <dewar@adacore.com>
6384 * exp_disp.adb: Minor reformatting
6385 Minor code reorganization (use Nkind_In)
6387 * prepcomp.adb: Minor reformatting
6389 * sem_ch3.adb: Minor reformatting
6391 * sem_res.adb: Minor comment addition
6393 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
6396 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
6397 setting Is_Referenced
6399 * types.ads: Minor reformatting
6401 2009-04-17 Arnaud Charlet <charlet@adacore.com>
6403 * gnat_ugn.texi: Initial documentation on binding generator.
6405 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6407 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
6408 type extensions whose parent is a type with unknown discriminants.
6410 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
6411 aggregate has unknown discriminants, use the Underlying_Record_View to
6412 obtain the discriminants of the ancestor part.
6414 * exp_disp.adb (Build_Dispatch_Tables): Types that are
6415 Underlying_Record_Views share the dispatching information of the
6416 original record extension.
6418 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
6419 discriminants, propagate dispach table information to the
6420 Underlying_Record_View.
6422 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
6423 discriminants and declaration is not a completion, generate
6424 Underlying_Record_View to provide proper discriminant information to
6425 the front-end and to gigi.
6427 2009-04-17 Robert Dewar <dewar@adacore.com>
6429 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
6430 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
6431 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
6432 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
6433 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
6434 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
6435 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
6436 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
6437 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
6438 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
6439 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
6440 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
6441 s-conca3.ads: Remove unneeded pragma Warnings
6443 2009-04-17 Robert Dewar <dewar@adacore.com>
6445 * g-moreex.adb: Add comments.
6447 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
6449 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
6452 * prepcomp.adb: Add ??? comment
6454 * a-tasatt.adb: Minor reformatting
6456 * g-trasym-vms-alpha.adb: Add ??? comment
6458 * g-trasym-vms-ia64.adb: Add ??? comment
6460 * xoscons.adb: Minor reformatting
6462 * s-tassta.adb: Minor reformatting
6464 * s-scaval.adb: Add ??? comment
6466 * stand.ads: Minor code clean up (remove junk with of Namet)
6468 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
6469 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
6470 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
6471 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
6472 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
6473 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
6474 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
6475 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
6476 Warnings off pragmas.
6478 2009-04-17 Pascal Obry <obry@adacore.com>
6480 * initialize.c: Fix test for reallocating the arguments array.
6482 2009-04-17 Geert Bosch <bosch@adacore.com>
6484 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
6485 conversion truncate only for decimal fixed point types.
6487 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
6489 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
6492 2009-04-17 Robert Dewar <dewar@adacore.com>
6494 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
6495 Backwards_OK if either operand has an address clause.
6497 2009-04-17 Pascal Obry <obry@adacore.com>
6499 * initialize.c: Code clean up, use realloc.
6501 2009-04-17 Pascal Obry <obry@adacore.com>
6503 * initialize.c: Do not get Unicode command line if Unicode support not
6505 Add support for wildcard expansion for Unicode parameters on Win32.
6507 * mingw32.h: Add missing macros when Unicode support not activated.
6509 2009-04-17 Javier Miranda <miranda@adacore.com>
6511 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
6512 avoid generating code that references the Current_Master
6513 when compiling without tasks.
6515 2009-04-17 Vincent Celier <celier@adacore.com>
6517 * prj-attr.adb: New project level attribute Target
6519 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6522 * prj.ads (Project_Configuration): New component Target
6524 2009-04-17 Thomas Quinot <quinot@adacore.com>
6526 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
6527 case for the case of an aggregate component, the attach call for the
6528 result is actually needed.
6530 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
6531 an array aggregate must be disabled if the component type requires
6534 * exp_ch3.adb: Minor reformatting
6536 2009-04-17 Bob Duff <duff@adacore.com>
6538 * output.ads (Indent,Outdent): New procedures for indenting the output.
6539 (Write_Char): Correct comment -- LF _is_ allowed.
6541 * output.adb (Indent,Outdent): New procedures for indenting the output.
6542 Keep track of the indentation level, and make sure it doesn't get too
6544 (Flush_Buffer): Insert spaces at the beginning of each line, if
6545 indentation level is nonzero.
6546 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
6548 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
6549 "Next_Col := 1;". Flush_Buffer does that.
6551 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
6552 controlled by the -gnatdc switch. It now occurs on entry/exit to the
6553 relevant analysis routines, and calls Indent/Outdent to make the
6554 indentation reflect the nesting level. Add "helper" routines, since
6555 otherwise lots of "return;" statements would skip the debugging output.
6557 2009-04-17 Arnaud Charlet <charlet@adacore.com>
6559 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
6560 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
6561 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
6563 2009-04-17 Thomas Quinot <quinot@adacore.com>
6565 * exp_aggr.adb: Minor code reorganization, no behaviour change.
6567 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6569 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
6570 clause in a unit that is a package body or a subunit, when the previous
6571 clause appears in a spec or a parent.
6573 2009-04-17 Thomas Quinot <quinot@adacore.com>
6575 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
6577 * exp_ch7.adb: Minor reformatting
6579 2009-04-17 Bob Duff <duff@adacore.com>
6581 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
6582 allocator, check that the expression of the qualified expression obeys
6583 the constraints of the subtype of the qualified expression.
6585 2009-04-17 Thomas Quinot <quinot@adacore.com>
6587 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
6589 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6591 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
6592 aggregate, using context imposed by subtype mark in allocator.
6594 2009-04-17 Pascal Obry <obry@adacore.com>
6596 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
6598 2009-04-17 Nicolas Roche <roche@adacore.com>
6600 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
6603 2009-04-17 Gary Dismukes <dismukes@adacore.com>
6605 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
6606 cover both calls and attribute references ("call" => "reference").
6608 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6610 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
6611 type for which Storage_Size is set to 0 is legal in a pure unit.
6613 2009-04-17 Thomas Quinot <quinot@adacore.com>
6615 * exp_ch7.adb: Minor reformatting
6617 2009-04-17 Robert Dewar <dewar@adacore.com>
6619 * restrict.adb (Check_Restriction_No_Dependence): Don't check
6620 restriction if outside main extended source unit.
6622 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
6623 for parents of child units as well as the child unit itself.
6625 2009-04-17 Bob Duff <duff@adacore.com>
6627 * checks.ads: Minor comment fix
6629 * exp_aggr.ads: Minor comment fix
6631 2009-04-17 Nicolas Roche <roche@adacore.com>
6633 * adaint.c: Improve cross compiler detection and handling.
6635 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
6637 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
6639 2009-04-17 Pascal Obry <obry@adacore.com>
6641 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
6644 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
6645 value when no encoding form paramter is set on Text_IO services.
6647 * adaint.c: CurrentCodePage new variable on Windows.
6648 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
6651 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
6654 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
6655 environment variable value. Default is UTF-8.
6657 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
6658 fopen and freopen encoding parameter is now set to Unspecified.
6659 The default value is in this case UTF-8 (as it was before) but
6660 use the new macros that convert to/from the code page set
6661 at runtime (CurrentCodePage).
6663 * s-fileio.adb: When no encoding specified use Unspecified value.
6665 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6667 * atree.adb, atree.ads: Remove dead code.
6669 2009-04-17 Arnaud Charlet <charlet@adacore.com>
6671 * gcc-interface/Make-lang.in: Update dependencies.
6673 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6675 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
6676 illegal uses of incomplete types in formal parts and return types.
6678 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
6679 access to subprograms.
6681 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
6682 Taft-amendment types as the return type of an access_to_function type.
6684 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
6685 type for access_to_subprograms. The check is performed on package exit.
6687 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6689 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
6691 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
6693 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
6695 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
6696 semantic units, because the handling of itypes in the copied tree
6697 requires semantic information that does not belong in atree.
6699 2009-04-17 Robert Dewar <dewar@adacore.com>
6701 * par-ch6.adb: Minor reformatting
6703 * prj.adb: Minor reformatting
6705 2009-04-17 Gary Dismukes <dismukes@adacore.com>
6707 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
6708 on protected subprogram bodies, so exclude the case where Pf_Flags is
6709 Pf_Decl_Pbod from the error check.
6711 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
6712 indicators on subprograms in protected bodies, and proceed with parsing
6715 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
6716 subprograms from the check for primitiveness on subprograms with
6717 overriding indicators.
6718 (Check_Overriding_Indicator): Include protected subprograms in the
6719 style check for missing overriding indicators.
6721 2009-04-17 Tristan Gingold <gingold@adacore.com>
6723 * init.c: Fix stack checking for x86 Darwin.
6725 2009-04-17 Vincent Celier <celier@adacore.com>
6727 * prj-attr.adb: New project level attribute Object_File_Suffix
6730 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
6732 (Process_Compiler): Process attribute Object_File_Suffix
6734 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
6735 platform suffix, when specified.
6737 * prj.ads (Language_Config): New component Object_File_Suffix,
6738 defaulted to No_Name.
6739 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
6741 * snames.ads-tmpl: New standard name Object_File_Suffix
6743 2009-04-17 Robert Dewar <dewar@adacore.com>
6745 * gnat_rm.texi: Add documentation about No_Streams restriction
6747 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
6748 attributes when checking No_Streams restriction.
6750 2009-04-17 Thomas Quinot <quinot@adacore.com>
6752 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
6754 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
6755 missing calls to RE_Request_Destroy to deallocate request objects after
6758 2009-04-17 Nicolas Setton <setton@adacore.com>
6760 * link.c: Fix support for passing a response file under Darwin.
6762 2009-04-17 Emmanuel Briot <briot@adacore.com>
6764 * prj.adb (Free): new subprogram.
6766 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6768 * sem_ch3.adb: additional initialization on incomplete subtypes.
6770 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
6771 part and one of the formals is an incomplete tagged type, attach to
6772 list of private dependends of the type for later validation.
6774 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
6775 primitive operations of a Taft-amendmment type.
6777 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
6778 type. The check is performed on package exit, possibly after the
6779 subprogram is frozen.
6781 2009-04-17 Vincent Celier <celier@adacore.com>
6783 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
6784 before looking for source directories, but make sure that there are nil
6785 if they are not explicitely declared and there is explicitely no
6786 sources in the project.
6788 2009-04-17 Pascal Obry <obry@adacore.com>
6790 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
6792 * init.c: Fix minor typo and style fix.
6794 2009-04-17 Robert Dewar <dewar@adacore.com>
6796 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
6798 * sem_attr.adb (Analyze_Attribute, case Address): Use
6799 PE_Address_Of_Intrinsic.
6801 * types.ads: Add PE_Address_Of_Intrinsic
6803 * types.h: Add PE_Address_Of_Intrinsic
6805 2009-04-17 Nicolas Setton <setton@adacore.com>
6807 * gcc-interface/Makefile.in: Under darwin, build shared libraries
6808 with install_name starting with "@rpath/".
6810 2009-04-17 Nicolas Setton <setton@adacore.com>
6812 * link.c: Add darwin section
6814 2009-04-16 Robert Dewar <dewar@adacore.com>
6816 * g-pehage.adb: Minor reformatting
6818 * sem_ch12.adb: Minor reformatting
6820 * exp_dist.adb: Minor reformatting
6822 * bindgen.adb: Minor style fixes.
6824 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6826 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
6827 indexed components to the case where the prefix is a static string
6830 2009-04-16 Javier Miranda <miranda@adacore.com>
6832 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
6833 objects avoid any further expansion of the expression initializing the
6836 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6838 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
6839 that hides an outer homograph, make that homograph invisible when
6840 analyzing the actuals, to to prevent illegal direct visibility on it.
6842 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6844 * g-pehage.adb (Initialize): Fix off-by-one error.
6846 2009-04-16 Tristan Gingold <gingold@adacore.com>
6848 * init.c: Detect real stack overflow on Darwin.
6850 * system-darwin-x86.ads: Use stack probing on darwin x86.
6852 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6854 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
6855 take the address of an intrinsic subprogram.
6857 2009-04-16 Arnaud Charlet <charlet@adacore.com>
6859 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
6860 for the targets where GNAT.Traceback.Symbolic is not supported.
6862 2009-04-16 Vincent Celier <celier@adacore.com>
6864 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
6866 * g-trasym.ads: Update comments.
6868 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
6870 * tracebak.c (STOP_FRAME): Verify validity of the current address
6871 before dereferencing.
6873 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6875 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
6876 the original location of the index expressions and the index subtypes,
6877 to prevent spurious out-of-scope references in gigi.
6879 2009-04-16 Tristan Gingold <gingold@adacore.com>
6881 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
6882 Add support for stack checking on darwin.
6884 2009-04-16 Vincent Celier <celier@adacore.com>
6886 * prj-attr.adb: New attribute Runtime_Source_Dir
6888 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
6889 attribute Runtime_Source_Dir.
6890 (Check_Naming_Schemes): Give default values to out parameters to avoid
6893 * prj.ads (Language_Config): New component Runtime_Source_Dir
6895 * snames.ads-tmpl: New standard name Runtime_Source_Dir
6897 2009-04-16 Pascal Obry <obry@adacore.com>
6899 * adaint.h, adaint.c (__gnat_rmdir): New routine.
6900 Simple wrapper routines used to convert to proper encoding on
6903 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
6905 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
6908 2009-04-16 Pascal Obry <obry@adacore.com>
6910 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
6912 2009-04-16 Thomas Quinot <quinot@adacore.com>
6914 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
6915 integrated preprocessor.
6917 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
6918 (Initialize): Split into two subprograms, Initialize (to be called
6919 prior to compiler command line processing) and Setup_Hooks (to be called
6920 later on when the first source file is loaded).
6922 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
6923 Add call to Prep.Initialize.
6925 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
6926 to Prep.Setup_Hooks.
6928 2009-04-16 Pascal Obry <obry@adacore.com>
6930 * adaint.h, adaint.c (__gnat_chdir): New routine.
6931 Simple wrapper routines used to convert to proper encoding on
6934 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
6936 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
6938 2009-04-16 Quentin Ochem <ochem@adacore.com>
6940 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
6943 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6945 * a-convec.ads (Is_Empty): Mark inline.
6947 2009-04-16 Nicolas Roche <roche@adacore.com>
6949 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
6951 2009-04-16 Thomas Quinot <quinot@adacore.com>
6953 * prepcomp.adb: Minor reformatting
6955 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6957 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
6958 Access_Subprogram types can also be imported.
6959 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
6962 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6964 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6965 preserve homonym chain when the declaration is rewritten into a
6966 renaming declaration, in order to preserve visibility structure.
6968 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6970 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
6971 taken into account for VM targets.
6973 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6975 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
6977 (Year_Week_In_Year): New routine which contains the original code from
6978 Week_In_Year. Add the missing special case for January 1st falling on
6981 2009-04-16 Thomas Quinot <quinot@adacore.com>
6983 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
6984 actual type, use the base type to build the To_Any function.
6985 (Build_From_Any_Function): Remove junk, useless subtype conversion.
6987 2009-04-16 Thomas Quinot <quinot@adacore.com>
6989 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
6990 restrict.adb: Minor code reorganization (use
6991 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
6993 2009-04-16 Bob Duff <duff@adacore.com>
6995 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
6998 2009-04-16 Thomas Quinot <quinot@adacore.com>
7000 * sem_ch4.adb: Minor reformatting
7002 * adaint.c: Remove junk duplicated code.
7004 * sem_ch3.adb: Minor reformatting
7006 * exp_dist.adb: Minor comment rewording
7008 2009-04-16 Robert Dewar <dewar@adacore.com>
7010 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
7013 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7015 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
7016 usable before calling Add_One_Interp, to resolve spurious ambiguities.
7018 2009-04-16 Robert Dewar <dewar@adacore.com>
7020 * Make-lang.in: Add entries for s-conca?.o
7022 * Makefile.rtl: Add entries for s-conca?
7024 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
7025 of concatenation expansion
7027 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
7028 string cases instead of expanding assignments inline.
7030 * opt.ads (Optimize_Size): New flag
7032 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
7033 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
7034 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
7035 s-conca9.adb, s-conca9.ads: New file.
7037 2009-04-16 Robert Dewar <dewar@adacore.com>
7039 * exp_ch6.adb: Add comments
7041 * rtsfind.ads: Add entries for s-conca? routines
7043 2009-04-16 Arnaud Charlet <charlet@adacore.com>
7045 * gcc-interface/Make-lang.in: Update dependencies.
7047 * gcc-interface/Makefile.in: Update translation for vms.
7049 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7051 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
7052 and made global, to be used when installing parents of a child
7053 instance, to provide mappings for entities declared in formal packages
7054 of ancestor units. Now called from Install_Formal_Packages.
7056 2009-04-16 Doug Rupp <rupp@adacore.com>
7058 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
7059 notation for clarity.
7061 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7062 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
7063 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
7064 (Initialize): Initialize Known_Tasks with Environment task.
7066 * s-taskin.ads (Task_States): Move new states to end for the sake of
7069 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
7071 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7073 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
7074 operation has an inline pragma, propagate the flag to the internal
7075 unprotected subprogram.
7077 2009-04-16 Doug Rupp <rupp@adacore.com>
7079 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
7080 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
7081 s-taprop-hpux-dce.adb, s-taprop-posix.adb
7082 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
7084 * s-taprop-vms.adb (Enter_Task): Likewise.
7085 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
7087 * s-tassta.adb (Activate_Tasks): After task creation set state to
7088 Activating, vice Runnable. Initialize Known_Tasks, moved here from
7089 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
7090 Set state to Runnable after above.
7091 (Task_Wrapper): Set Debug_Event_Run. In exception block set
7092 Debug_Event_Terminated.
7094 * s-taskin.ads (Task_States): Add new states Activiting and
7095 Activator_Delay_Sleep.
7096 (Bit_Array, Debug_Event_Array): New types.
7097 (Global_Task_Debug_Event_Set: New flag.
7098 (Common_ATCB): New field Debug_Events.
7100 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
7102 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
7105 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
7106 Activating and when Acceptor_Delay_Sleep.
7108 * s-tasdeb.ads: Add constants for Debug_Events.
7109 (Debug_Event_Kind_Type): New subtype.
7110 (Signal_Debug_Event): New subprogram.
7112 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
7114 2009-04-16 Thomas Quinot <quinot@adacore.com>
7116 * sem_elim.adb: Minor reformatting
7118 * freeze.adb: Minor reformatting
7120 * exp_ch4.adb: Minor reformatting
7122 2009-04-16 Emmanuel Briot <briot@adacore.com>
7124 * prj-nmsc.adb (Path_Name_Of): fix memory leak
7126 2009-04-16 Robert Dewar <dewar@adacore.com>
7128 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
7130 2009-04-16 Vincent Celier <celier@adacore.com>
7132 * fmap.adb (Initialize): Show the current line when the mapping file
7133 is detected as "incorrectly formatted".
7135 2009-04-16 Robert Dewar <dewar@adacore.com>
7137 * sem_ch12.adb: Minor reformatting
7139 * sem_ch5.adb: Minor comment addition
7141 * sem_util.adb: Minor reformatting
7143 * sinput-p.adb: Minor reformatting
7144 Add missing pragma Warnings (On)
7146 2009-04-16 Ed Falis <falis@adacore.com>
7148 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
7150 2009-04-16 Vincent Celier <celier@adacore.com>
7152 * ali-util.adb: Minor comment spelling error fix
7154 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
7156 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
7157 generate an assignment loop in case of overlap.
7159 2009-04-16 Olivier Hainque <hainque@adacore.com>
7161 * gnat_ugn.texi (gnatmem description): Make it explicit that
7162 gnatmem is designed to work in association with static runtime
7165 2009-04-16 Thomas Quinot <quinot@adacore.com>
7167 * sem_type.adb: Minor reformatting
7169 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
7171 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
7172 concerning return codes of gettimeofday and return value check.
7174 2009-04-16 Ed Falis <falis@adacore.com>
7176 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
7177 body can be renaming of imported routines.
7179 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
7181 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
7184 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7186 * exp_ch9.adb: Comment improvements.
7187 (Build_Entry_Family_Name): Add parentheses around the index of a entry
7190 2009-04-15 Bob Duff <duff@adacore.com>
7192 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
7193 "while X /= null loop" where X is unchanged inside the loop. We were
7194 not warning in this case, because of the pointers -- we feared that the
7195 loop variable could be updated via a pointer, if there are any pointers
7196 around the place. But that is impossible in this case.
7198 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
7199 the case of dereferences. In X.all, X cannot be an l-value. We now
7200 catch that case (and implicit dereferences, too).
7202 2009-04-15 Vincent Celier <celier@adacore.com>
7204 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
7206 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7208 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
7210 (Analyze_Package_Instantiation): If generic unit in child instance is
7211 the same as generic unit in parent instance, look for an outer homonym
7212 to locate the desired generic.
7214 2009-04-15 Bob Duff <duff@adacore.com>
7216 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
7217 warnings unless the loop comes from source, because checking generated
7218 loops is a waste of time, and makes it harder to debug
7219 Check_Infinite_Loop_Warning.
7221 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
7222 tested in the while loop is a renaming, do not warn. Otherwise, we get
7223 false alarms, because it's usually renaming something that we can't
7224 deal with (an indexed component, a global variable, ...).
7226 * gnat_rm.texi: Fix typo
7228 2009-04-15 Thomas Quinot <quinot@adacore.com>
7230 * sem_ch6.adb: Minor reformatting
7232 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7234 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
7235 immediate parent of the controlled function call is a component
7238 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7240 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
7241 corresponding class-wide type is also in use.
7243 2009-04-15 Thomas Quinot <quinot@adacore.com>
7245 * frontend.adb: Minor comment fix
7247 2009-04-15 Robert Dewar <dewar@adacore.com>
7249 * gnatchop.adb (BOM_Length): New global variable
7250 (Write_Unit): Add new parameter Write_BOM
7251 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
7254 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
7256 2009-04-15 Geert Bosch <bosch@adacore.com>
7258 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
7259 (Backend_Overflow_Checks): Set to True.
7261 2009-04-15 Gary Dismukes <dismukes@adacore.com>
7263 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
7264 keyword is given in a record extension.
7266 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7268 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
7269 of a controlled function call in the context of a record aggregate.
7270 This does not apply to array aggregates since the call will be expanded
7273 2009-04-15 Ed Falis <falis@adacore.com>
7275 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
7276 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
7277 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
7278 s-osinte-vxworks* and s-vxwext*.
7280 2009-04-15 Arnaud Charlet <charlet@adacore.com>
7282 * gcc-interface/Make-lang.in: Update dependencies.
7284 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
7287 2009-04-15 Robert Dewar <dewar@adacore.com>
7289 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
7290 of node for location for warning messages.
7292 * gnatchop.adb: Minor reformatting
7294 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7296 * exp_ch6.adb: additional guard for renaming declarations for in
7297 parameters of an array type.
7299 2009-04-15 Robert Dewar <dewar@adacore.com>
7301 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
7302 in case they were rewritten by expander (Force_Evaluation).
7304 * targparm.adb (Get_Target_Parameters): Correct check for
7305 Suppress_Exception_Locations.
7307 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7309 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
7310 inlined is of an array type that is not bit-packed, use a renaming
7311 declaration to capture its value, rather than a constant declaration.
7313 2009-04-15 Robert Dewar <dewar@adacore.com>
7315 * rtsfind.adb: Minor reformatting.
7317 2009-04-15 Emmanuel Briot <briot@adacore.com>
7319 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
7320 Restore, and free the saved context.
7322 2009-04-15 Gary Dismukes <dismukes@adacore.com>
7324 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
7325 for illegal private extension from a synchronized interface parent in
7326 front of check for illegal limited extension so that limited extension
7327 from a synchronized interface will be rejected.
7328 (Check_Ifaces): Check that a private extension that has a synchronized
7329 interface as a progenitor must be explicitly declared synchronized.
7330 Also check that a record extension cannot derive from a synchronized
7333 2009-04-15 Pascal Obry <obry@adacore.com>
7335 * adaint.h (__gnat_unlink): Add spec.
7336 (__gnat_rename): Likewise.
7338 2009-04-15 Vincent Celier <celier@adacore.com>
7340 * prj-nmsc.adb: Minor spelling error corrections in error messages
7342 2009-04-15 Robert Dewar <dewar@adacore.com>
7344 * sinfo.ads: Minor comment update
7346 * opt.ads: Minor comment updates
7348 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
7351 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7353 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
7354 that generates the code needed to update a dispatch table when a
7355 primitive operation is declared with a subprogram body without previous
7356 spec. Insertion of the generated code is responsibility of the caller.
7357 (Make_DT): When building static tables, append the code created by
7358 Register_Primitive to update a secondary table after it has been
7361 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
7363 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
7364 on an overriding operation that implements an interface operation only
7365 if not building static dispatch tables.
7367 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7369 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
7370 does not cause overflow when converted to Duration. Use the safe value
7371 as the maximum allowable time delay..
7373 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
7375 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
7376 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
7377 translated to "-j 2".
7379 2009-04-15 Bob Duff <duff@adacore.com>
7381 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
7382 with_clauses, to avoid code duplication. Change this processing so we
7383 always add a with_clause on the main unit if needed.
7385 2009-04-15 Pascal Obry <obry@adacore.com>
7387 Add support for Win32 native encoding for delete/rename routines.
7389 * adaint.c (__gnat_unlink): New routine.
7390 (__gnat_rename): New routine.
7391 Simple wrapper routines used to convert to proper encoding on
7394 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
7395 call to the C library.
7397 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
7399 2009-04-15 Robert Dewar <dewar@adacore.com>
7401 * s-tassta.adb: Minor reformatting
7403 2009-04-15 Robert Dewar <dewar@adacore.com>
7405 * frontend.adb (Frontend): Set proper default for
7406 Warn_On_Non_Local_Exception.
7408 * opt.ads (Exception_Handler_Encountered): New flag
7409 (No_Warn_On_Non_Local_Exception): New flag
7411 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
7413 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
7414 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
7416 2009-04-15 Cyrille Comar <comar@adacore.com>
7418 * s-tassta.adb, a-exextr.adb, a-elchha.adb
7419 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
7420 message when exception traces are active since it would generate
7421 redundant information.
7422 (Exception_Traces.Notify_Exception): put message output by a critical
7423 section to avoid unsynchronized output.
7424 (Trace_Unhandled_Exception_In_Task): put message output by a critical
7425 section to avoid unsynchronized output.
7427 2009-04-15 Emmanuel Briot <briot@adacore.com>
7429 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
7430 (Free): New subprogram.
7432 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7434 * a-calend.adb: Add new constant Nanos_In_Four_Years.
7435 (Formatting_Operations.Time_Of): Change the way four year chunks of
7436 nanoseconds are added to the intermediate result.
7438 2009-04-15 Nicolas Setton <setton@adacore.com>
7440 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
7441 does not need to wait for a carriage return.
7443 2009-04-15 Tristan Gingold <gingold@adacore.com>
7445 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
7448 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7450 * freeze.adb (Freeze_Entity): improve error message for improper use of
7452 Diagnose additional illegal uses of incomplete types in formal parts.
7453 appearing in formal parts.
7455 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
7457 2009-04-15 Robert Dewar <dewar@adacore.com>
7459 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
7461 2009-04-15 Nicolas Roche <roche@adacore.com>
7463 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
7466 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
7468 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
7470 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7472 * sem_ch4.adb: improve error message on exponentiation.
7474 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7476 * a-calend.adb: Move constant Epoch_Offset from package
7477 Conversion_Operations to top level.
7478 (Delay_Operations.To_Duration): Define a constant which represents
7479 "end of time" and use it as a guard against very distant delay dates.
7480 Protect the code against overflow when performing the origin shift to
7483 2009-04-15 Robert Dewar <dewar@adacore.com>
7485 * sem_prag.adb: Minor reformatting.
7487 * sem_type.adb: Minor reformatting
7489 2009-04-15 Javier Miranda <miranda@adacore.com>
7491 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
7492 support to check eliminated subprograms.
7494 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
7496 * sem_elim.adb (Set_Eliminated): Add support for elimination of
7497 dispatching subprograms.
7499 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
7500 operations. Initialize with "null" the slots of eliminated dispaching
7502 (Write_DT): Add output for eliminated primitives.
7504 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
7506 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7508 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
7509 the second is redundant, regardless of scopes.
7511 2009-04-15 Vincent Celier <celier@adacore.com>
7513 * prj-nmsc.adb (Get_Directories): Check for sources before checking
7514 the object directory as when there are no sources, they may not be any
7517 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
7518 directory, when there are no exec directory.
7520 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7522 * sem_type.adb (Remove_Conversions): In order to resolve spurious
7523 ambiguities, refine removal of universal interpretations from complex
7524 expressions with literal arguments, when some numeric operators have
7525 been declared abstract.
7527 2009-04-15 Ed Falis <falis@adacore.com>
7529 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
7530 and backward compatibility for targets using probing for stack overflow
7532 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7534 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
7535 after any declaration, including renaming declarations.
7537 2009-04-15 Arnaud Charlet <charlet@adacore.com>
7539 * gcc-interface/Make-lang.in: Update dependencies.
7541 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
7542 Update xenomai target pairs.
7544 2009-04-15 Javier Miranda <miranda@adacore.com>
7546 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7548 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
7549 functions returning anonymous access to class-wide limited types. Mark
7550 also the containing scope as a task master.
7552 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
7553 limited-withed packages. Required to restore their visibility after
7554 processing packages associated with implicit with-clauses.
7556 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
7557 associated with return statements because this work is now done by
7558 Check_Anonymous_Return.
7559 (Build_Master): Code cleanup.
7561 2009-04-15 Thomas Quinot <quinot@adacore.com>
7563 * sem_warn.ads: Minor reformatting
7565 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7567 * sem_ch3.adb: better error message for illegal interfaces
7569 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
7570 formal is an incomplete type from a limited_with clause.
7572 2009-04-15 Vincent Celier <celier@adacore.com>
7574 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
7575 Externally_Built indicating if the project is externally built. If it
7576 is, and --subdirs is specified, but the subdir does not exist, look
7577 for the specified directory, without the subdir.
7579 2009-04-15 Gary Dismukes <dismukes@adacore.com>
7581 * a-tasatt.adb: Fix typo, plus minor reformatting
7583 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
7585 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
7587 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7589 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
7590 private extension whose parent is a synchronized interface carries an
7591 explicit synchronized keyword.
7593 2009-04-15 Thomas Quinot <quinot@adacore.com>
7595 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
7596 instantiate generic shared object package with the corresponding
7599 2009-04-15 Arnaud Charlet <charlet@adacore.com>
7601 * system-linux-sparc.ads: Remove obsolete entries.
7603 2009-04-15 Thomas Quinot <quinot@adacore.com>
7605 * s-tasuti.ads: Add ??? comment
7607 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7609 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
7610 type even if the designated type comes from a limited_with clause, to
7611 ensure that the symbol for the finalization list of the access type is
7614 2009-04-10 Robert Dewar <dewar@adacore.com>
7616 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
7617 for warning suppression.
7619 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7621 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
7622 identical, there is no redudancy to check.
7624 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7626 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
7627 calls initializing SS_Allocator (which is initialized in following
7629 (Expand_Simple_Function_Return): Add comment about False value for
7630 Comes_From_Source on secondary-stack allocator.
7632 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
7633 (Build_Entry_Name): Add comment.
7635 2009-04-10 Robert Dewar <dewar@adacore.com>
7637 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
7639 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
7640 bound tested, since this is now done more generally in Sem_Res.
7642 * sem_res.adb (Resolve_Comparison_Op): Add call to
7643 Check_Lower_Bound_Tested.
7644 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
7646 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
7647 (Low_Bound_Tested): New name for Low_Bound_Known flag
7649 * exp_ch5.adb: Minor reformatting
7652 Add comments on copying the Comes_From_Source flag for allocators
7655 Add comments on copying the Comes_From_Source flag for allocators
7657 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
7658 Comes_From_Source flag from old allocator to new one.
7660 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7662 * sem_ch6.ads: Address missing documentation query
7664 2009-04-10 Vincent Celier <celier@adacore.com>
7667 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
7668 and Response_File_Switches.
7670 * prj-nmsc.adb (Process_Linker): Process new attributes
7671 Max_Command_Line_Length, Response_File_Format and
7672 Response_File_Switches.
7674 * prj.ads (Response_File_Format): New enumeration type
7675 (Project_Configuration): New componants Max_Command_Line_Length,
7676 Resp_File_Format and Resp_File_Options.
7678 * snames.ads-tmpl: Add new standard names for linking response files
7679 for gprbuild: GNU, None, Object_List, Option_List,
7680 Max_Command_Line_Length, Response_File_Format and
7681 Response_File_Switches.
7683 2009-04-10 Geert Bosch <bosch@adacore.com>
7685 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
7686 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
7687 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
7688 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
7689 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
7690 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
7691 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
7692 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
7693 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
7694 system-vxworks-arm.ads, system-vxworks-m68k.ads,
7695 system-vxworks-mips.ads, system-vxworks-ppc.ads,
7696 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
7697 (Backend_Overflow_Checks): Set to True.
7699 2009-04-10 Thomas Quinot <quinot@adacore.com>
7701 * exp_attr.adb: Minor reformatting
7703 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7705 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
7706 analyze the expression for a postcondition, even if the compiler mode
7709 2009-04-10 Robert Dewar <dewar@adacore.com>
7711 * sem_aux.adb: Minor reformatting
7713 2009-04-10 Ed Falis <falis@adacore.com>
7715 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
7717 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
7719 2009-04-10 Thomas Quinot <quinot@adacore.com>
7721 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
7722 undocumented formal.
7725 * a-direio.ads: Fix typo in comment
7727 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
7728 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
7729 Use uniform phrasing for comment at start of subprogram body.
7731 * xsnamest.adb: Add note to explain why we use specific names for the
7732 newly generated files instead of generating snames.{ads,adb,h} directly
7734 2009-04-10 Sergey Rybin <rybin@adacore.com>
7737 Add qualifier for new gnatstub option '--no-exception'
7740 Add the description of the new gnatstub option '--no-exception'
7742 2009-04-10 Robert Dewar <dewar@adacore.com>
7744 * rtsfind.adb: Minor reformatting
7746 2009-04-10 Thomas Quinot <quinot@adacore.com>
7748 * sem_disp.adb: Minor reformatting.
7749 Add comment pointing to RM clause for the case of warning against a
7750 (failed) attempt at declaring a primitive operation elsewhere than in a
7753 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7755 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
7756 an actual for a previous formal package of the current instance.
7758 2009-04-10 Bob Duff <duff@adacore.com>
7760 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
7761 them first, rather than on the extended main unit.
7763 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7765 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
7766 specification of full view carries a null exclusion indicator, create
7767 an itype for it, to check for conformance with partial view.
7769 2009-04-10 Bob Duff <duff@adacore.com>
7771 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
7773 * rtsfind.adb: Minor comment changes, and remove useless code.
7775 * sinfo.ads: Add ??? comment.
7777 2009-04-10 Vincent Celier <celier@adacore.com>
7779 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
7781 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7783 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
7784 type is a synchronized type, retrieve tag information from the
7785 corresponding record, which has the dispatch table link.
7787 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
7789 * g-comlin.adb (Group_Analysis): Take care of switches that might be
7790 decomposed afterwards, but are present as-is in the command line
7791 configuration, and thus should be kept as-is.
7793 2009-04-10 Robert Dewar <dewar@adacore.com>
7795 * gnat_rm.texi: Document that postconditions are tested on implicit
7798 * sem_aux.adb: Minor reformatting
7800 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7802 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
7805 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
7806 Null_Exclusion_In_Return_Present when an access-to-function type has a
7807 result type with an explicit not null.
7809 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
7810 given on the result type, then create a null-excluding itype for the
7813 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
7814 the case where a null exclusion is imposed on a named access type.
7815 (Analyze_Subprogram_Specification): Push and pop the scope of the
7816 function around the call to Analyze_Return_Type in the case of no
7817 formals, for consistency with handling when formals are present
7818 (Process_Formals does this). Ensures that any itype created for the
7819 return type will be associated with the proper scope.
7821 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
7822 exclusion is given on a generic function's result type, then create a
7823 null-excluding itype for the generic function.
7824 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
7825 for an actual for a formal in object according to the setting on the
7826 formal. Ensures null exclusion checks are done when the association is
7829 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
7830 N_Access_Function_Definition.
7832 * sinfo.adb: Add Get_ and Set_ operations for
7833 Null_Exclusion_In_Return_Present.
7835 2009-04-10 Bob Duff <duff@adacore.com>
7837 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
7838 call to the _Postconditions procedure in the case of implicit returns
7839 from analysis to expansion. This eliminates some duplicated code. Use
7840 the Postcondition_Proc to find the identity of this procedure during
7843 2009-04-10 Robert Dewar <dewar@adacore.com>
7845 * sem_ch6.adb: Minor code clean up.
7847 * einfo.ads, sem_attr.adb: Minor comment fixes.
7849 2009-04-10 Robert Dewar <dewar@adacore.com>
7851 * sem_ch8.adb: Minor reformatting
7853 2009-04-10 Robert Dewar <dewar@adacore.com>
7855 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
7858 * sem_ch6.adb: Minor code clean up.
7860 2009-04-10 Robert Dewar <dewar@adacore.com>
7862 * mlib-tgt-specific-xi.adb: Minor reformatting
7864 2009-04-10 Bob Duff <duff@adacore.com>
7866 * einfo.ads: Minor comment fixes
7868 2009-04-10 Vincent Celier <celier@adacore.com>
7870 * snames.ads-tmpl: Remove names that are no longer used in the
7872 Mark specifically those that are used only in gprbuild
7874 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
7876 * init.c: Adjust EH support code on Alpha/Tru64.
7878 2009-04-10 Bob Duff <duff@adacore.com>
7880 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
7881 procedure on every path that could return implicitly (not via a return
7882 statement) from a procedure.
7884 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7886 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
7887 valid scope for a task declarations and therefore for a master id.
7889 2009-04-10 Robert Dewar <dewar@adacore.com>
7891 * sem_aux.adb: Minor reformatting
7893 2009-04-10 Vincent Celier <celier@adacore.com>
7895 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
7897 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
7898 (Set_Obsolescent_Check): New procedure to change the value of
7899 Obsolescent_Check_Flag.
7901 * scn.ads (Set_Obsolescent_Check): New procedure to control
7904 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
7905 obsolescent features while preprocessing.
7907 2009-04-10 Thomas Quinot <quinot@adacore.com>
7909 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
7910 generated files on all platforms.
7912 2009-04-10 Robert Dewar <dewar@adacore.com>
7914 * sem_aux.adb: Minor reformatting
7916 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7918 * sem_ch3.adb (Access_Definition): Handle properly the case of a
7919 protected function with formals that returns an anonymous access type.
7921 2009-04-10 Thomas Quinot <quinot@adacore.com>
7923 * sem_disp.adb: Minor reformatting
7925 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
7927 * seh_init.c: Do not use the 32-bit specific implementation of
7928 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
7931 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7933 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
7934 a '/' at the end so we better use the complete target name to determine
7935 whether it is a PowerPC 55xx target.
7937 2009-04-10 Thomas Quinot <quinot@adacore.com>
7939 * sem_eval.adb: Minor reformatting
7941 2009-04-10 Thomas Quinot <quinot@adacore.com>
7943 * snames.h, snames.ads, snames.adb: Remove files, now generated from
7946 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
7949 * xsnamest.adb: New file.
7951 * gcc-interface/Make-lang.in: New target for automated generation of
7952 snames.ads, snames.adb and snames.h
7954 2009-04-10 Tristan Gingold <gingold@adacore.com>
7956 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
7957 avoid compile time warnings.
7958 Do not add gcc/config in include search list while compiling the RTS.
7959 Pragma Thread_Local_Storage is available on any target.
7961 2009-04-10 Bob Duff <duff@adacore.com>
7963 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
7965 2009-04-10 Tristan Gingold <gingold@adacore.com>
7967 * init.c: Install signal handler on Darwin.
7969 2009-04-10 Robert Dewar <dewar@adacore.com>
7971 * sem_prag.adb: Minor reformatting
7973 * exp_util.adb (Make_Non_Empty_Check): New function
7974 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
7975 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
7977 2009-04-10 Arnaud Charlet <charlet@adacore.com>
7979 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
7981 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7983 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
7984 tool prefix for AVR and PowerPC 55xx targets.
7986 2009-04-10 Robert Dewar <dewar@adacore.com>
7988 * sem_warn.adb (Within_Postcondition): New function
7989 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
7991 2009-04-10 Robert Dewar <dewar@adacore.com>
7993 * sem_warn.adb: Minor reformatting
7995 * make.adb: Minor reformatting.
7997 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7999 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
8000 entity and the scope is a subprogram, retrieve the Sloc of the
8001 subprogram's body rather than using the sloc of the spec, for better
8002 line-stepping behavior in gdb.
8003 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
8004 controller, use the Sloc of the first declaration of the containing list
8005 rather than that of the node that triggered creation of the list
8008 2009-04-10 Vincent Celier <celier@adacore.com>
8010 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
8011 to avoid gcc warning.
8013 2009-04-10 Robert Dewar <dewar@adacore.com>
8015 * g-comlin.adb: Add ??? comment
8017 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8019 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
8020 unreferenced entities for a package with no visible declarations.
8022 2009-04-10 Robert Dewar <dewar@adacore.com>
8024 * exp_ch9.adb: Minor reformatting
8026 2009-04-10 Thomas Quinot <quinot@adacore.com>
8028 * sem_prag.adb: Minor reformatting
8030 2009-04-10 Vincent Celier <celier@adacore.com>
8033 (Check_Library_Attributes): For a project qualified as a library project
8034 that is not a library project, indicate in the error message which
8035 attributes are missing (Library_Dir and/or Library_Name).
8037 2009-04-10 Bob Duff <duff@adacore.com>
8039 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
8040 generated nodes, because it might confuse various circuits in the FE.
8042 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8044 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
8045 of pragma. It will be recopied and analyzed when used in call to
8048 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
8049 initialization operations and recognize use of it in procedure calls
8052 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
8053 argument, because it may have side-effects.
8055 * exp_ch2.adb: Remove obsolete comments on default functions
8057 2009-04-10 Jose Ruiz <ruiz@adacore.com>
8059 * adaint.c (RTX section): Do for RTX the same thing as we do for
8060 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
8062 2009-04-10 Robert Dewar <dewar@adacore.com>
8064 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
8066 * sem_res.adb (Resolve_Call): Fix test for
8067 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
8068 a non-dynamic scope).
8070 2009-04-10 Robert Dewar <dewar@adacore.com>
8072 * make.adb: Add comment.
8075 2009-04-10 Nicolas Setton <setton@adacore.com>
8077 * s-osprim-darwin.adb: New file.
8079 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
8081 2009-04-10 Thomas Quinot <quinot@adacore.com>
8083 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
8085 2009-04-09 Nick Clifton <nickc@redhat.com>
8087 * adadecode.h: Change copyright header to refer to version
8088 3 of the GNU General Public License with version 3.1 of the
8089 GCC Runtime Library Exception and to point readers at the
8090 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
8092 * 9drpc.adb: Likewise.
8093 * a-assert.adb: Likewise.
8094 * a-astaco.adb: Likewise.
8095 * a-calari.adb: Likewise.
8096 * a-calcon.adb: Likewise.
8097 * a-calcon.ads: Likewise.
8098 * a-caldel.ads: Likewise.
8099 * a-calend-vms.adb: Likewise.
8100 * a-calend-vms.ads: Likewise.
8101 * a-calend.adb: Likewise.
8102 * a-calend.ads: Likewise.
8103 * a-calfor.adb: Likewise.
8104 * a-catizo.adb: Likewise.
8105 * a-cdlili.adb: Likewise.
8106 * a-cdlili.ads: Likewise.
8107 * a-cgaaso.adb: Likewise.
8108 * a-cgaaso.ads: Likewise.
8109 * a-cgarso.adb: Likewise.
8110 * a-cgcaso.adb: Likewise.
8111 * a-chacon.adb: Likewise.
8112 * a-chacon.ads: Likewise.
8113 * a-chahan.adb: Likewise.
8114 * a-chahan.ads: Likewise.
8115 * a-chlat9.ads: Likewise.
8116 * a-chtgke.adb: Likewise.
8117 * a-chtgke.ads: Likewise.
8118 * a-chtgop.adb: Likewise.
8119 * a-chtgop.ads: Likewise.
8120 * a-chzla1.ads: Likewise.
8121 * a-chzla9.ads: Likewise.
8122 * a-cidlli.adb: Likewise.
8123 * a-cidlli.ads: Likewise.
8124 * a-cihama.adb: Likewise.
8125 * a-cihama.ads: Likewise.
8126 * a-cihase.adb: Likewise.
8127 * a-cihase.ads: Likewise.
8128 * a-ciorma.adb: Likewise.
8129 * a-ciorma.ads: Likewise.
8130 * a-ciormu.adb: Likewise.
8131 * a-ciormu.ads: Likewise.
8132 * a-ciorse.adb: Likewise.
8133 * a-ciorse.ads: Likewise.
8134 * a-clrefi.adb: Likewise.
8135 * a-clrefi.ads: Likewise.
8136 * a-cohama.adb: Likewise.
8137 * a-cohama.ads: Likewise.
8138 * a-cohase.adb: Likewise.
8139 * a-cohase.ads: Likewise.
8140 * a-cohata.ads: Likewise.
8141 * a-coinve.adb: Likewise.
8142 * a-coinve.ads: Likewise.
8143 * a-colien.adb: Likewise.
8144 * a-colien.ads: Likewise.
8145 * a-colire.adb: Likewise.
8146 * a-colire.ads: Likewise.
8147 * a-comlin.adb: Likewise.
8148 * a-comlin.ads: Likewise.
8149 * a-convec.adb: Likewise.
8150 * a-convec.ads: Likewise.
8151 * a-coorma.adb: Likewise.
8152 * a-coorma.ads: Likewise.
8153 * a-coormu.adb: Likewise.
8154 * a-coormu.ads: Likewise.
8155 * a-coorse.adb: Likewise.
8156 * a-coorse.ads: Likewise.
8157 * a-coprnu.adb: Likewise.
8158 * a-coprnu.ads: Likewise.
8159 * a-crbltr.ads: Likewise.
8160 * a-crbtgk.adb: Likewise.
8161 * a-crbtgk.ads: Likewise.
8162 * a-crbtgo.adb: Likewise.
8163 * a-crbtgo.ads: Likewise.
8164 * a-crdlli.adb: Likewise.
8165 * a-crdlli.ads: Likewise.
8166 * a-cwila1.ads: Likewise.
8167 * a-cwila9.ads: Likewise.
8168 * a-decima.adb: Likewise.
8169 * a-decima.ads: Likewise.
8170 * a-diocst.adb: Likewise.
8171 * a-diocst.ads: Likewise.
8172 * a-direct.adb: Likewise.
8173 * a-direct.ads: Likewise.
8174 * a-direio.adb: Likewise.
8175 * a-direio.ads: Likewise.
8176 * a-dirval-mingw.adb: Likewise.
8177 * a-dirval-vms.adb: Likewise.
8178 * a-dirval.adb: Likewise.
8179 * a-dirval.ads: Likewise.
8180 * a-dynpri.adb: Likewise.
8181 * a-einuoc.adb: Likewise.
8182 * a-einuoc.ads: Likewise.
8183 * a-elchha.adb: Likewise.
8184 * a-elchha.ads: Likewise.
8185 * a-envvar.adb: Likewise.
8186 * a-excach.adb: Likewise.
8187 * a-except-2005.adb: Likewise.
8188 * a-except-2005.ads: Likewise.
8189 * a-except.adb: Likewise.
8190 * a-except.ads: Likewise.
8191 * a-excpol-abort.adb: Likewise.
8192 * a-excpol.adb: Likewise.
8193 * a-exctra.adb: Likewise.
8194 * a-exctra.ads: Likewise.
8195 * a-exetim-mingw.adb: Likewise.
8196 * a-exetim-mingw.ads: Likewise.
8197 * a-exexda.adb: Likewise.
8198 * a-exexpr-gcc.adb: Likewise.
8199 * a-exexpr.adb: Likewise.
8200 * a-exextr.adb: Likewise.
8201 * a-exstat.adb: Likewise.
8202 * a-filico.adb: Likewise.
8203 * a-filico.ads: Likewise.
8204 * a-finali.adb: Likewise.
8205 * a-finali.ads: Likewise.
8206 * a-interr.ads: Likewise.
8207 * a-intnam-aix.ads: Likewise.
8208 * a-intnam-darwin.ads: Likewise.
8209 * a-intnam-dummy.ads: Likewise.
8210 * a-intnam-freebsd.ads: Likewise.
8211 * a-intnam-hpux.ads: Likewise.
8212 * a-intnam-irix.ads: Likewise.
8213 * a-intnam-linux.ads: Likewise.
8214 * a-intnam-lynxos.ads: Likewise.
8215 * a-intnam-mingw.ads: Likewise.
8216 * a-intnam-rtems.ads: Likewise.
8217 * a-intnam-solaris.ads: Likewise.
8218 * a-intnam-tru64.ads: Likewise.
8219 * a-intnam-vms.ads: Likewise.
8220 * a-intnam-vxworks.ads: Likewise.
8221 * a-intsig.adb: Likewise.
8222 * a-intsig.ads: Likewise.
8223 * a-ngcefu.adb: Likewise.
8224 * a-ngcoar.adb: Likewise.
8225 * a-ngcoty.adb: Likewise.
8226 * a-ngcoty.ads: Likewise.
8227 * a-ngelfu.adb: Likewise.
8228 * a-ngrear.adb: Likewise.
8229 * a-ngrear.ads: Likewise.
8230 * a-nudira.adb: Likewise.
8231 * a-nudira.ads: Likewise.
8232 * a-nuflra.adb: Likewise.
8233 * a-nuflra.ads: Likewise.
8234 * a-numaux-darwin.adb: Likewise.
8235 * a-numaux-darwin.ads: Likewise.
8236 * a-numaux-libc-x86.ads: Likewise.
8237 * a-numaux-vxworks.ads: Likewise.
8238 * a-numaux-x86.adb: Likewise.
8239 * a-numaux-x86.ads: Likewise.
8240 * a-numaux.ads: Likewise.
8241 * a-rbtgso.adb: Likewise.
8242 * a-rbtgso.ads: Likewise.
8243 * a-reatim.ads: Likewise.
8244 * a-retide.adb: Likewise.
8245 * a-retide.ads: Likewise.
8246 * a-rttiev.adb: Likewise.
8247 * a-rttiev.ads: Likewise.
8248 * a-secain.adb: Likewise.
8249 * a-secain.ads: Likewise.
8250 * a-sequio.adb: Likewise.
8251 * a-sequio.ads: Likewise.
8252 * a-shcain.adb: Likewise.
8253 * a-shcain.ads: Likewise.
8254 * a-siocst.adb: Likewise.
8255 * a-siocst.ads: Likewise.
8256 * a-slcain.adb: Likewise.
8257 * a-slcain.ads: Likewise.
8258 * a-ssicst.adb: Likewise.
8259 * a-ssicst.ads: Likewise.
8260 * a-stboha.adb: Likewise.
8261 * a-stmaco.ads: Likewise.
8262 * a-storio.adb: Likewise.
8263 * a-strbou.adb: Likewise.
8264 * a-strbou.ads: Likewise.
8265 * a-stream.ads: Likewise.
8266 * a-strfix.adb: Likewise.
8267 * a-strhas.adb: Likewise.
8268 * a-strmap.adb: Likewise.
8269 * a-strmap.ads: Likewise.
8270 * a-strsea.adb: Likewise.
8271 * a-strsea.ads: Likewise.
8272 * a-strsup.adb: Likewise.
8273 * a-strsup.ads: Likewise.
8274 * a-strunb.adb: Likewise.
8275 * a-strunb.ads: Likewise.
8276 * a-ststio.adb: Likewise.
8277 * a-ststio.ads: Likewise.
8278 * a-stunau.adb: Likewise.
8279 * a-stunau.ads: Likewise.
8280 * a-stunha.adb: Likewise.
8281 * a-stwibo.adb: Likewise.
8282 * a-stwibo.ads: Likewise.
8283 * a-stwifi.adb: Likewise.
8284 * a-stwiha.adb: Likewise.
8285 * a-stwima.adb: Likewise.
8286 * a-stwima.ads: Likewise.
8287 * a-stwise.adb: Likewise.
8288 * a-stwise.ads: Likewise.
8289 * a-stwisu.adb: Likewise.
8290 * a-stwisu.ads: Likewise.
8291 * a-stwiun.adb: Likewise.
8292 * a-stwiun.ads: Likewise.
8293 * a-stzbou.adb: Likewise.
8294 * a-stzbou.ads: Likewise.
8295 * a-stzfix.adb: Likewise.
8296 * a-stzhas.adb: Likewise.
8297 * a-stzmap.adb: Likewise.
8298 * a-stzmap.ads: Likewise.
8299 * a-stzsea.adb: Likewise.
8300 * a-stzsea.ads: Likewise.
8301 * a-stzsup.adb: Likewise.
8302 * a-stzsup.ads: Likewise.
8303 * a-stzunb.adb: Likewise.
8304 * a-stzunb.ads: Likewise.
8305 * a-suteio.adb: Likewise.
8306 * a-suteio.ads: Likewise.
8307 * a-swbwha.adb: Likewise.
8308 * a-swmwco.ads: Likewise.
8309 * a-swunau.adb: Likewise.
8310 * a-swunau.ads: Likewise.
8311 * a-swuwha.adb: Likewise.
8312 * a-swuwti.adb: Likewise.
8313 * a-swuwti.ads: Likewise.
8314 * a-sytaco.adb: Likewise.
8315 * a-sytaco.ads: Likewise.
8316 * a-szbzha.adb: Likewise.
8317 * a-szmzco.ads: Likewise.
8318 * a-szunau.adb: Likewise.
8319 * a-szunau.ads: Likewise.
8320 * a-szuzha.adb: Likewise.
8321 * a-szuzti.adb: Likewise.
8322 * a-szuzti.ads: Likewise.
8323 * a-tags.adb: Likewise.
8324 * a-tags.ads: Likewise.
8325 * a-tasatt.ads: Likewise.
8326 * a-taside.adb: Likewise.
8327 * a-taside.ads: Likewise.
8328 * a-taster.adb: Likewise.
8329 * a-teioed.adb: Likewise.
8330 * a-teioed.ads: Likewise.
8331 * a-textio.adb: Likewise.
8332 * a-textio.ads: Likewise.
8333 * a-tiboio.adb: Likewise.
8334 * a-ticoau.adb: Likewise.
8335 * a-ticoau.ads: Likewise.
8336 * a-ticoio.adb: Likewise.
8337 * a-ticoio.ads: Likewise.
8338 * a-tideau.adb: Likewise.
8339 * a-tideau.ads: Likewise.
8340 * a-tideio.adb: Likewise.
8341 * a-tideio.ads: Likewise.
8342 * a-tienau.adb: Likewise.
8343 * a-tienau.ads: Likewise.
8344 * a-tienio.adb: Likewise.
8345 * a-tienio.ads: Likewise.
8346 * a-tifiio.adb: Likewise.
8347 * a-tifiio.ads: Likewise.
8348 * a-tiflau.adb: Likewise.
8349 * a-tiflau.ads: Likewise.
8350 * a-tiflio.adb: Likewise.
8351 * a-tiflio.ads: Likewise.
8352 * a-tigeau.adb: Likewise.
8353 * a-tigeau.ads: Likewise.
8354 * a-tiinau.adb: Likewise.
8355 * a-tiinau.ads: Likewise.
8356 * a-tiinio.adb: Likewise.
8357 * a-tiinio.ads: Likewise.
8358 * a-timoau.adb: Likewise.
8359 * a-timoau.ads: Likewise.
8360 * a-timoio.adb: Likewise.
8361 * a-timoio.ads: Likewise.
8362 * a-tiocst.adb: Likewise.
8363 * a-tiocst.ads: Likewise.
8364 * a-titest.adb: Likewise.
8365 * a-wichun.adb: Likewise.
8366 * a-wichun.ads: Likewise.
8367 * a-witeio.adb: Likewise.
8368 * a-witeio.ads: Likewise.
8369 * a-wtcoau.adb: Likewise.
8370 * a-wtcoau.ads: Likewise.
8371 * a-wtcoio.adb: Likewise.
8372 * a-wtcstr.adb: Likewise.
8373 * a-wtcstr.ads: Likewise.
8374 * a-wtdeau.adb: Likewise.
8375 * a-wtdeau.ads: Likewise.
8376 * a-wtdeio.adb: Likewise.
8377 * a-wtdeio.ads: Likewise.
8378 * a-wtedit.adb: Likewise.
8379 * a-wtedit.ads: Likewise.
8380 * a-wtenau.adb: Likewise.
8381 * a-wtenau.ads: Likewise.
8382 * a-wtenio.adb: Likewise.
8383 * a-wtenio.ads: Likewise.
8384 * a-wtfiio.adb: Likewise.
8385 * a-wtfiio.ads: Likewise.
8386 * a-wtflau.adb: Likewise.
8387 * a-wtflau.ads: Likewise.
8388 * a-wtflio.adb: Likewise.
8389 * a-wtflio.ads: Likewise.
8390 * a-wtgeau.adb: Likewise.
8391 * a-wtgeau.ads: Likewise.
8392 * a-wtinau.adb: Likewise.
8393 * a-wtinau.ads: Likewise.
8394 * a-wtinio.adb: Likewise.
8395 * a-wtmoau.adb: Likewise.
8396 * a-wtmoau.ads: Likewise.
8397 * a-wtmoio.adb: Likewise.
8398 * a-wtmoio.ads: Likewise.
8399 * a-wttest.adb: Likewise.
8400 * a-wwboio.adb: Likewise.
8401 * a-zchuni.adb: Likewise.
8402 * a-zchuni.ads: Likewise.
8403 * a-ztcoau.adb: Likewise.
8404 * a-ztcoau.ads: Likewise.
8405 * a-ztcoio.adb: Likewise.
8406 * a-ztcstr.adb: Likewise.
8407 * a-ztcstr.ads: Likewise.
8408 * a-ztdeau.adb: Likewise.
8409 * a-ztdeau.ads: Likewise.
8410 * a-ztdeio.adb: Likewise.
8411 * a-ztdeio.ads: Likewise.
8412 * a-ztedit.adb: Likewise.
8413 * a-ztedit.ads: Likewise.
8414 * a-ztenau.adb: Likewise.
8415 * a-ztenau.ads: Likewise.
8416 * a-ztenio.adb: Likewise.
8417 * a-ztenio.ads: Likewise.
8418 * a-ztexio.adb: Likewise.
8419 * a-ztexio.ads: Likewise.
8420 * a-ztfiio.adb: Likewise.
8421 * a-ztfiio.ads: Likewise.
8422 * a-ztflau.adb: Likewise.
8423 * a-ztflau.ads: Likewise.
8424 * a-ztflio.adb: Likewise.
8425 * a-ztflio.ads: Likewise.
8426 * a-ztgeau.adb: Likewise.
8427 * a-ztgeau.ads: Likewise.
8428 * a-ztinau.adb: Likewise.
8429 * a-ztinau.ads: Likewise.
8430 * a-ztinio.adb: Likewise.
8431 * a-ztmoau.adb: Likewise.
8432 * a-ztmoau.ads: Likewise.
8433 * a-ztmoio.adb: Likewise.
8434 * a-ztmoio.ads: Likewise.
8435 * a-zttest.adb: Likewise.
8436 * a-zzboio.adb: Likewise.
8437 * adadecode.c: Likewise.
8438 * adaint.c: Likewise.
8439 * adaint.h: Likewise.
8440 * alloc.ads: Likewise.
8442 * arit64.c: Likewise.
8443 * atree.adb: Likewise.
8444 * atree.ads: Likewise.
8445 * aux-io.c: Likewise.
8447 * casing.adb: Likewise.
8448 * casing.ads: Likewise.
8450 * csets.adb: Likewise.
8451 * csets.ads: Likewise.
8452 * cstreams.c: Likewise.
8453 * ctrl_c.c: Likewise.
8454 * debug.adb: Likewise.
8455 * debug.ads: Likewise.
8456 * dec.ads: Likewise.
8457 * einfo.adb: Likewise.
8458 * einfo.ads: Likewise.
8459 * elists.adb: Likewise.
8460 * elists.ads: Likewise.
8463 * errno.c: Likewise.
8466 * final.c: Likewise.
8467 * fname.adb: Likewise.
8468 * fname.ads: Likewise.
8469 * g-allein.ads: Likewise.
8470 * g-alleve.adb: Likewise.
8471 * g-alleve.ads: Likewise.
8472 * g-altcon.adb: Likewise.
8473 * g-altcon.ads: Likewise.
8474 * g-altive.ads: Likewise.
8475 * g-alveop.adb: Likewise.
8476 * g-alveop.ads: Likewise.
8477 * g-alvety.ads: Likewise.
8478 * g-alvevi.ads: Likewise.
8479 * g-arrspl.adb: Likewise.
8480 * g-arrspl.ads: Likewise.
8481 * g-calend.ads: Likewise.
8482 * g-comlin.adb: Likewise.
8483 * g-debpoo.adb: Likewise.
8484 * g-debpoo.ads: Likewise.
8485 * g-eacodu-vms.adb: Likewise.
8486 * g-eacodu.adb: Likewise.
8487 * g-excact.adb: Likewise.
8488 * g-excact.ads: Likewise.
8489 * g-locfil.adb: Likewise.
8490 * g-os_lib.ads: Likewise.
8491 * g-rannum.adb: Likewise.
8492 * g-rannum.ads: Likewise.
8493 * g-regist.adb: Likewise.
8494 * g-regist.ads: Likewise.
8495 * g-signal.adb: Likewise.
8496 * g-signal.ads: Likewise.
8497 * g-soccon.ads: Likewise.
8498 * g-string.adb: Likewise.
8499 * g-string.ads: Likewise.
8500 * g-strspl.ads: Likewise.
8501 * g-timsta.adb: Likewise.
8502 * g-timsta.ads: Likewise.
8503 * g-trasym-vms-alpha.adb: Likewise.
8504 * g-trasym-vms-ia64.adb: Likewise.
8505 * g-utf_32.adb: Likewise.
8506 * g-utf_32.ads: Likewise.
8507 * g-wistsp.ads: Likewise.
8508 * g-zstspl.ads: Likewise.
8510 * gnatvsn.adb: Likewise.
8511 * gnatvsn.ads: Likewise.
8512 * gsocket.h: Likewise.
8513 * hostparm.ads: Likewise.
8514 * i-c.adb: Likewise.
8515 * i-cexten.ads: Likewise.
8516 * i-cobol.adb: Likewise.
8517 * i-cobol.ads: Likewise.
8518 * i-cpoint.adb: Likewise.
8519 * i-cpoint.ads: Likewise.
8520 * i-cpp.adb: Likewise.
8521 * i-cpp.ads: Likewise.
8522 * i-cstrea-vms.adb: Likewise.
8523 * i-cstrea.adb: Likewise.
8524 * i-cstrea.ads: Likewise.
8525 * i-cstrin.adb: Likewise.
8526 * i-cstrin.ads: Likewise.
8527 * i-forbla-darwin.adb: Likewise.
8528 * i-forbla-unimplemented.ads: Likewise.
8529 * i-forbla.adb: Likewise.
8530 * i-forbla.ads: Likewise.
8531 * i-forlap.ads: Likewise.
8532 * i-fortra.adb: Likewise.
8533 * i-pacdec.adb: Likewise.
8534 * i-pacdec.ads: Likewise.
8535 * i-vxwoio.adb: Likewise.
8536 * i-vxwoio.ads: Likewise.
8537 * indepsw-aix.adb: Likewise.
8538 * indepsw-gnu.adb: Likewise.
8539 * indepsw-mingw.adb: Likewise.
8540 * indepsw.adb: Likewise.
8541 * indepsw.ads: Likewise.
8543 * initialize.c: Likewise.
8544 * interfac.ads: Likewise.
8545 * krunch.adb: Likewise.
8546 * krunch.ads: Likewise.
8547 * lib-list.adb: Likewise.
8548 * lib-sort.adb: Likewise.
8549 * lib.adb: Likewise.
8550 * lib.ads: Likewise.
8552 * math_lib.adb: Likewise.
8553 * memtrack.adb: Likewise.
8554 * mingw32.h: Likewise.
8555 * mkdir.c: Likewise.
8556 * namet-sp.adb: Likewise.
8557 * namet-sp.ads: Likewise.
8558 * namet.adb: Likewise.
8559 * namet.ads: Likewise.
8560 * nlists.adb: Likewise.
8561 * nlists.ads: Likewise.
8562 * opt.adb: Likewise.
8563 * opt.ads: Likewise.
8564 * output.adb: Likewise.
8565 * output.ads: Likewise.
8566 * raise-gcc.c: Likewise.
8567 * raise.c: Likewise.
8568 * raise.h: Likewise.
8569 * repinfo.adb: Likewise.
8570 * repinfo.ads: Likewise.
8571 * repinfo.h: Likewise.
8572 * rident.ads: Likewise.
8573 * s-addima.adb: Likewise.
8574 * s-addima.ads: Likewise.
8575 * s-addope.adb: Likewise.
8576 * s-addope.ads: Likewise.
8577 * s-arit64.adb: Likewise.
8578 * s-arit64.ads: Likewise.
8579 * s-assert.adb: Likewise.
8580 * s-assert.ads: Likewise.
8581 * s-asthan-vms-alpha.adb: Likewise.
8582 * s-asthan.adb: Likewise.
8583 * s-asthan.ads: Likewise.
8584 * s-atacco.adb: Likewise.
8585 * s-atacco.ads: Likewise.
8586 * s-auxdec-empty.adb: Likewise.
8587 * s-auxdec-empty.ads: Likewise.
8588 * s-auxdec-vms_64.ads: Likewise.
8589 * s-auxdec.adb: Likewise.
8590 * s-auxdec.ads: Likewise.
8591 * s-bitops.adb: Likewise.
8592 * s-bitops.ads: Likewise.
8593 * s-boarop.ads: Likewise.
8594 * s-carsi8.adb: Likewise.
8595 * s-carsi8.ads: Likewise.
8596 * s-carun8.adb: Likewise.
8597 * s-carun8.ads: Likewise.
8598 * s-casi16.adb: Likewise.
8599 * s-casi16.ads: Likewise.
8600 * s-casi32.adb: Likewise.
8601 * s-casi32.ads: Likewise.
8602 * s-casi64.adb: Likewise.
8603 * s-casi64.ads: Likewise.
8604 * s-casuti.ads: Likewise.
8605 * s-caun16.adb: Likewise.
8606 * s-caun16.ads: Likewise.
8607 * s-caun32.adb: Likewise.
8608 * s-caun32.ads: Likewise.
8609 * s-caun64.adb: Likewise.
8610 * s-caun64.ads: Likewise.
8611 * s-chepoo.ads: Likewise.
8612 * s-crc32.adb: Likewise.
8613 * s-crc32.ads: Likewise.
8614 * s-crtl.ads: Likewise.
8615 * s-direio.adb: Likewise.
8616 * s-direio.ads: Likewise.
8617 * s-dsaser.ads: Likewise.
8618 * s-except.adb: Likewise.
8619 * s-except.ads: Likewise.
8620 * s-exctab.adb: Likewise.
8621 * s-exctab.ads: Likewise.
8622 * s-exnint.adb: Likewise.
8623 * s-exnint.ads: Likewise.
8624 * s-exnllf.adb: Likewise.
8625 * s-exnllf.ads: Likewise.
8626 * s-exnlli.adb: Likewise.
8627 * s-exnlli.ads: Likewise.
8628 * s-expint.adb: Likewise.
8629 * s-expint.ads: Likewise.
8630 * s-explli.adb: Likewise.
8631 * s-explli.ads: Likewise.
8632 * s-expllu.adb: Likewise.
8633 * s-expllu.ads: Likewise.
8634 * s-expmod.adb: Likewise.
8635 * s-expmod.ads: Likewise.
8636 * s-expuns.adb: Likewise.
8637 * s-expuns.ads: Likewise.
8638 * s-fatflt.ads: Likewise.
8639 * s-fatgen.adb: Likewise.
8640 * s-fatgen.ads: Likewise.
8641 * s-fatlfl.ads: Likewise.
8642 * s-fatllf.ads: Likewise.
8643 * s-fatsfl.ads: Likewise.
8644 * s-ficobl.ads: Likewise.
8645 * s-fileio.adb: Likewise.
8646 * s-fileio.ads: Likewise.
8647 * s-filofl.ads: Likewise.
8648 * s-finimp.adb: Likewise.
8649 * s-finimp.ads: Likewise.
8650 * s-finroo.adb: Likewise.
8651 * s-finroo.ads: Likewise.
8652 * s-fishfl.ads: Likewise.
8653 * s-fore.adb: Likewise.
8654 * s-fore.ads: Likewise.
8655 * s-fvadfl.ads: Likewise.
8656 * s-fvaffl.ads: Likewise.
8657 * s-fvagfl.ads: Likewise.
8658 * s-gearop.adb: Likewise.
8659 * s-gearop.ads: Likewise.
8660 * s-gecobl.adb: Likewise.
8661 * s-gecobl.ads: Likewise.
8662 * s-gecola.adb: Likewise.
8663 * s-gecola.ads: Likewise.
8664 * s-gerebl.adb: Likewise.
8665 * s-gerebl.ads: Likewise.
8666 * s-gerela.adb: Likewise.
8667 * s-gerela.ads: Likewise.
8668 * s-geveop.adb: Likewise.
8669 * s-geveop.ads: Likewise.
8670 * s-gloloc.adb: Likewise.
8671 * s-gloloc.ads: Likewise.
8672 * s-hibaen.ads: Likewise.
8673 * s-imenne.adb: Likewise.
8674 * s-imenne.ads: Likewise.
8675 * s-imgbiu.adb: Likewise.
8676 * s-imgbiu.ads: Likewise.
8677 * s-imgboo.adb: Likewise.
8678 * s-imgboo.ads: Likewise.
8679 * s-imgcha.adb: Likewise.
8680 * s-imgcha.ads: Likewise.
8681 * s-imgdec.adb: Likewise.
8682 * s-imgdec.ads: Likewise.
8683 * s-imgenu.adb: Likewise.
8684 * s-imgenu.ads: Likewise.
8685 * s-imgint.adb: Likewise.
8686 * s-imgint.ads: Likewise.
8687 * s-imgllb.adb: Likewise.
8688 * s-imgllb.ads: Likewise.
8689 * s-imglld.adb: Likewise.
8690 * s-imglld.ads: Likewise.
8691 * s-imglli.adb: Likewise.
8692 * s-imglli.ads: Likewise.
8693 * s-imgllu.adb: Likewise.
8694 * s-imgllu.ads: Likewise.
8695 * s-imgllw.adb: Likewise.
8696 * s-imgllw.ads: Likewise.
8697 * s-imgrea.adb: Likewise.
8698 * s-imgrea.ads: Likewise.
8699 * s-imguns.adb: Likewise.
8700 * s-imguns.ads: Likewise.
8701 * s-imgwch.adb: Likewise.
8702 * s-imgwch.ads: Likewise.
8703 * s-imgwiu.adb: Likewise.
8704 * s-imgwiu.ads: Likewise.
8705 * s-inmaop-dummy.adb: Likewise.
8706 * s-inmaop-vms.adb: Likewise.
8707 * s-inmaop.ads: Likewise.
8708 * s-interr-hwint.adb: Likewise.
8709 * s-interr-sigaction.adb: Likewise.
8710 * s-interr-vms.adb: Likewise.
8711 * s-interr.adb: Likewise.
8712 * s-interr.ads: Likewise.
8713 * s-intman-dummy.adb: Likewise.
8714 * s-intman-mingw.adb: Likewise.
8715 * s-intman-posix.adb: Likewise.
8716 * s-intman-solaris.adb: Likewise.
8717 * s-intman-vms.adb: Likewise.
8718 * s-intman-vms.ads: Likewise.
8719 * s-intman-vxworks.adb: Likewise.
8720 * s-intman-vxworks.ads: Likewise.
8721 * s-intman.ads: Likewise.
8722 * s-io.adb: Likewise.
8723 * s-io.ads: Likewise.
8724 * s-linux-alpha.ads: Likewise.
8725 * s-linux-hppa.ads: Likewise.
8726 * s-linux.ads: Likewise.
8727 * s-maccod.ads: Likewise.
8728 * s-mantis.adb: Likewise.
8729 * s-mantis.ads: Likewise.
8730 * s-mastop-irix.adb: Likewise.
8731 * s-mastop.adb: Likewise.
8732 * s-mastop.ads: Likewise.
8733 * s-memcop.ads: Likewise.
8734 * s-memory-mingw.adb: Likewise.
8735 * s-memory.adb: Likewise.
8736 * s-memory.ads: Likewise.
8737 * s-os_lib.ads: Likewise.
8738 * s-oscons-tmplt.c: Likewise.
8739 * s-osinte-aix.adb: Likewise.
8740 * s-osinte-darwin.adb: Likewise.
8741 * s-osinte-freebsd.adb: Likewise.
8742 * s-osinte-irix.adb: Likewise.
8743 * s-osinte-lynxos-3.adb: Likewise.
8744 * s-osinte-rtems.ads: Likewise.
8745 * s-osinte-tru64.adb: Likewise.
8746 * s-osinte-vxworks-kernel.adb: Likewise.
8747 * s-osinte-vxworks.adb: Likewise.
8748 * s-osprim-mingw.adb: Likewise.
8749 * s-osprim-posix.adb: Likewise.
8750 * s-osprim-solaris.adb: Likewise.
8751 * s-osprim-unix.adb: Likewise.
8752 * s-osprim-vms.adb: Likewise.
8753 * s-osprim-vms.ads: Likewise.
8754 * s-osprim-vxworks.adb: Likewise.
8755 * s-osprim.ads: Likewise.
8756 * s-pack03.adb: Likewise.
8757 * s-pack03.ads: Likewise.
8758 * s-pack05.adb: Likewise.
8759 * s-pack05.ads: Likewise.
8760 * s-pack06.adb: Likewise.
8761 * s-pack06.ads: Likewise.
8762 * s-pack07.adb: Likewise.
8763 * s-pack07.ads: Likewise.
8764 * s-pack09.adb: Likewise.
8765 * s-pack09.ads: Likewise.
8766 * s-pack10.adb: Likewise.
8767 * s-pack10.ads: Likewise.
8768 * s-pack11.adb: Likewise.
8769 * s-pack11.ads: Likewise.
8770 * s-pack12.adb: Likewise.
8771 * s-pack12.ads: Likewise.
8772 * s-pack13.adb: Likewise.
8773 * s-pack13.ads: Likewise.
8774 * s-pack14.adb: Likewise.
8775 * s-pack14.ads: Likewise.
8776 * s-pack15.adb: Likewise.
8777 * s-pack15.ads: Likewise.
8778 * s-pack17.adb: Likewise.
8779 * s-pack17.ads: Likewise.
8780 * s-pack18.adb: Likewise.
8781 * s-pack18.ads: Likewise.
8782 * s-pack19.adb: Likewise.
8783 * s-pack19.ads: Likewise.
8784 * s-pack20.adb: Likewise.
8785 * s-pack20.ads: Likewise.
8786 * s-pack21.adb: Likewise.
8787 * s-pack21.ads: Likewise.
8788 * s-pack22.adb: Likewise.
8789 * s-pack22.ads: Likewise.
8790 * s-pack23.adb: Likewise.
8791 * s-pack23.ads: Likewise.
8792 * s-pack24.adb: Likewise.
8793 * s-pack24.ads: Likewise.
8794 * s-pack25.adb: Likewise.
8795 * s-pack25.ads: Likewise.
8796 * s-pack26.adb: Likewise.
8797 * s-pack26.ads: Likewise.
8798 * s-pack27.adb: Likewise.
8799 * s-pack27.ads: Likewise.
8800 * s-pack28.adb: Likewise.
8801 * s-pack28.ads: Likewise.
8802 * s-pack29.adb: Likewise.
8803 * s-pack29.ads: Likewise.
8804 * s-pack30.adb: Likewise.
8805 * s-pack30.ads: Likewise.
8806 * s-pack31.adb: Likewise.
8807 * s-pack31.ads: Likewise.
8808 * s-pack33.adb: Likewise.
8809 * s-pack33.ads: Likewise.
8810 * s-pack34.adb: Likewise.
8811 * s-pack34.ads: Likewise.
8812 * s-pack35.adb: Likewise.
8813 * s-pack35.ads: Likewise.
8814 * s-pack36.adb: Likewise.
8815 * s-pack36.ads: Likewise.
8816 * s-pack37.adb: Likewise.
8817 * s-pack37.ads: Likewise.
8818 * s-pack38.adb: Likewise.
8819 * s-pack38.ads: Likewise.
8820 * s-pack39.adb: Likewise.
8821 * s-pack39.ads: Likewise.
8822 * s-pack40.adb: Likewise.
8823 * s-pack40.ads: Likewise.
8824 * s-pack41.adb: Likewise.
8825 * s-pack41.ads: Likewise.
8826 * s-pack42.adb: Likewise.
8827 * s-pack42.ads: Likewise.
8828 * s-pack43.adb: Likewise.
8829 * s-pack43.ads: Likewise.
8830 * s-pack44.adb: Likewise.
8831 * s-pack44.ads: Likewise.
8832 * s-pack45.adb: Likewise.
8833 * s-pack45.ads: Likewise.
8834 * s-pack46.adb: Likewise.
8835 * s-pack46.ads: Likewise.
8836 * s-pack47.adb: Likewise.
8837 * s-pack47.ads: Likewise.
8838 * s-pack48.adb: Likewise.
8839 * s-pack48.ads: Likewise.
8840 * s-pack49.adb: Likewise.
8841 * s-pack49.ads: Likewise.
8842 * s-pack50.adb: Likewise.
8843 * s-pack50.ads: Likewise.
8844 * s-pack51.adb: Likewise.
8845 * s-pack51.ads: Likewise.
8846 * s-pack52.adb: Likewise.
8847 * s-pack52.ads: Likewise.
8848 * s-pack53.adb: Likewise.
8849 * s-pack53.ads: Likewise.
8850 * s-pack54.adb: Likewise.
8851 * s-pack54.ads: Likewise.
8852 * s-pack55.adb: Likewise.
8853 * s-pack55.ads: Likewise.
8854 * s-pack56.adb: Likewise.
8855 * s-pack56.ads: Likewise.
8856 * s-pack57.adb: Likewise.
8857 * s-pack57.ads: Likewise.
8858 * s-pack58.adb: Likewise.
8859 * s-pack58.ads: Likewise.
8860 * s-pack59.adb: Likewise.
8861 * s-pack59.ads: Likewise.
8862 * s-pack60.adb: Likewise.
8863 * s-pack60.ads: Likewise.
8864 * s-pack61.adb: Likewise.
8865 * s-pack61.ads: Likewise.
8866 * s-pack62.adb: Likewise.
8867 * s-pack62.ads: Likewise.
8868 * s-pack63.adb: Likewise.
8869 * s-pack63.ads: Likewise.
8870 * s-parame-ae653.ads: Likewise.
8871 * s-parame-hpux.ads: Likewise.
8872 * s-parame-rtems.adb: Likewise.
8873 * s-parame-vms-alpha.ads: Likewise.
8874 * s-parame-vms-ia64.ads: Likewise.
8875 * s-parame-vms-restrict.ads: Likewise.
8876 * s-parame-vxworks.adb: Likewise.
8877 * s-parame-vxworks.ads: Likewise.
8878 * s-parame.adb: Likewise.
8879 * s-parame.ads: Likewise.
8880 * s-parint.adb: Likewise.
8881 * s-parint.ads: Likewise.
8882 * s-pooglo.adb: Likewise.
8883 * s-pooglo.ads: Likewise.
8884 * s-pooloc.adb: Likewise.
8885 * s-pooloc.ads: Likewise.
8886 * s-poosiz.adb: Likewise.
8887 * s-poosiz.ads: Likewise.
8888 * s-powtab.ads: Likewise.
8889 * s-proinf-irix-athread.adb: Likewise.
8890 * s-proinf-irix-athread.ads: Likewise.
8891 * s-proinf.adb: Likewise.
8892 * s-proinf.ads: Likewise.
8893 * s-purexc.ads: Likewise.
8894 * s-rannum.adb: Likewise.
8895 * s-rannum.ads: Likewise.
8896 * s-restri.adb: Likewise.
8897 * s-restri.ads: Likewise.
8898 * s-rident.ads: Likewise.
8899 * s-rpc.adb: Likewise.
8900 * s-rpc.ads: Likewise.
8901 * s-scaval.adb: Likewise.
8902 * s-scaval.ads: Likewise.
8903 * s-secsta.adb: Likewise.
8904 * s-secsta.ads: Likewise.
8905 * s-sequio.adb: Likewise.
8906 * s-sequio.ads: Likewise.
8907 * s-shasto.adb: Likewise.
8908 * s-shasto.ads: Likewise.
8909 * s-soflin.adb: Likewise.
8910 * s-soflin.ads: Likewise.
8911 * s-solita.adb: Likewise.
8912 * s-solita.ads: Likewise.
8913 * s-sopco3.adb: Likewise.
8914 * s-sopco3.ads: Likewise.
8915 * s-sopco4.adb: Likewise.
8916 * s-sopco4.ads: Likewise.
8917 * s-sopco5.adb: Likewise.
8918 * s-sopco5.ads: Likewise.
8919 * s-stache.adb: Likewise.
8920 * s-stache.ads: Likewise.
8921 * s-stalib.adb: Likewise.
8922 * s-stalib.ads: Likewise.
8923 * s-stausa.adb: Likewise.
8924 * s-stausa.ads: Likewise.
8925 * s-stchop-limit.ads: Likewise.
8926 * s-stchop-rtems.adb: Likewise.
8927 * s-stchop-vxworks.adb: Likewise.
8928 * s-stchop.adb: Likewise.
8929 * s-stchop.ads: Likewise.
8930 * s-stoele.adb: Likewise.
8931 * s-stoele.ads: Likewise.
8932 * s-stopoo.adb: Likewise.
8933 * s-stopoo.ads: Likewise.
8934 * s-stratt.adb: Likewise.
8935 * s-stratt.ads: Likewise.
8936 * s-strcom.adb: Likewise.
8937 * s-strcom.ads: Likewise.
8938 * s-string.adb: Likewise.
8939 * s-string.ads: Likewise.
8940 * s-strops.adb: Likewise.
8941 * s-strops.ads: Likewise.
8942 * s-strxdr.adb: Likewise.
8943 * s-ststop.adb: Likewise.
8944 * s-ststop.ads: Likewise.
8945 * s-taasde.adb: Likewise.
8946 * s-taasde.ads: Likewise.
8947 * s-tadeca.adb: Likewise.
8948 * s-tadeca.ads: Likewise.
8949 * s-tadert.adb: Likewise.
8950 * s-tadert.ads: Likewise.
8951 * s-taenca.adb: Likewise.
8952 * s-taenca.ads: Likewise.
8953 * s-taprob.ads: Likewise.
8954 * s-taprop-dummy.adb: Likewise.
8955 * s-taprop-hpux-dce.adb: Likewise.
8956 * s-taprop-irix.adb: Likewise.
8957 * s-taprop-linux.adb: Likewise.
8958 * s-taprop-lynxos.adb: Likewise.
8959 * s-taprop-mingw.adb: Likewise.
8960 * s-taprop-posix.adb: Likewise.
8961 * s-taprop-solaris.adb: Likewise.
8962 * s-taprop-tru64.adb: Likewise.
8963 * s-taprop-vms.adb: Likewise.
8964 * s-taprop-vxworks.adb: Likewise.
8965 * s-taprop.ads: Likewise.
8966 * s-tarest.adb: Likewise.
8967 * s-tarest.ads: Likewise.
8968 * s-tasdeb.adb: Likewise.
8969 * s-tasdeb.ads: Likewise.
8970 * s-tasinf-irix.ads: Likewise.
8971 * s-tasinf-linux.adb: Likewise.
8972 * s-tasinf-linux.ads: Likewise.
8973 * s-tasinf-mingw.adb: Likewise.
8974 * s-tasinf-mingw.ads: Likewise.
8975 * s-tasinf-solaris.adb: Likewise.
8976 * s-tasinf-solaris.ads: Likewise.
8977 * s-tasinf-tru64.ads: Likewise.
8978 * s-tasinf.adb: Likewise.
8979 * s-tasinf.ads: Likewise.
8980 * s-tasini.adb: Likewise.
8981 * s-tasini.ads: Likewise.
8982 * s-taskin.adb: Likewise.
8983 * s-taskin.ads: Likewise.
8984 * s-taspri-dummy.ads: Likewise.
8985 * s-taspri-hpux-dce.ads: Likewise.
8986 * s-taspri-mingw.ads: Likewise.
8987 * s-taspri-solaris.ads: Likewise.
8988 * s-taspri-tru64.ads: Likewise.
8989 * s-taspri-vms.ads: Likewise.
8990 * s-taspri-vxworks.ads: Likewise.
8991 * s-tasque.adb: Likewise.
8992 * s-tasque.ads: Likewise.
8993 * s-tasren.adb: Likewise.
8994 * s-tasren.ads: Likewise.
8995 * s-tasres.ads: Likewise.
8996 * s-tassta.adb: Likewise.
8997 * s-tassta.ads: Likewise.
8998 * s-tasuti.adb: Likewise.
8999 * s-tasuti.ads: Likewise.
9000 * s-tfsetr-default.adb: Likewise.
9001 * s-tfsetr-vxworks.adb: Likewise.
9002 * s-tpinop.adb: Likewise.
9003 * s-tpinop.ads: Likewise.
9004 * s-tpoben.adb: Likewise.
9005 * s-tpoben.ads: Likewise.
9006 * s-tpobop.adb: Likewise.
9007 * s-tpobop.ads: Likewise.
9008 * s-tpopde-vms.adb: Likewise.
9009 * s-tpopde-vms.ads: Likewise.
9010 * s-tpopsp-lynxos.adb: Likewise.
9011 * s-tpopsp-posix-foreign.adb: Likewise.
9012 * s-tpopsp-posix.adb: Likewise.
9013 * s-tpopsp-solaris.adb: Likewise.
9014 * s-tpopsp-vxworks.adb: Likewise.
9015 * s-tporft.adb: Likewise.
9016 * s-tposen.adb: Likewise.
9017 * s-tposen.ads: Likewise.
9018 * s-traceb.adb: Likewise.
9019 * s-traceb.ads: Likewise.
9020 * s-traces-default.adb: Likewise.
9021 * s-traces.adb: Likewise.
9022 * s-traces.ads: Likewise.
9023 * s-traent-vms.adb: Likewise.
9024 * s-traent-vms.ads: Likewise.
9025 * s-traent.adb: Likewise.
9026 * s-traent.ads: Likewise.
9027 * s-trafor-default.adb: Likewise.
9028 * s-trafor-default.ads: Likewise.
9029 * s-tratas-default.adb: Likewise.
9030 * s-tratas.adb: Likewise.
9031 * s-tratas.ads: Likewise.
9032 * s-unstyp.ads: Likewise.
9033 * s-utf_32.adb: Likewise.
9034 * s-utf_32.ads: Likewise.
9035 * s-vaflop-vms-alpha.adb: Likewise.
9036 * s-vaflop.adb: Likewise.
9037 * s-vaflop.ads: Likewise.
9038 * s-valboo.adb: Likewise.
9039 * s-valboo.ads: Likewise.
9040 * s-valcha.adb: Likewise.
9041 * s-valcha.ads: Likewise.
9042 * s-valdec.adb: Likewise.
9043 * s-valdec.ads: Likewise.
9044 * s-valenu.adb: Likewise.
9045 * s-valenu.ads: Likewise.
9046 * s-valint.adb: Likewise.
9047 * s-valint.ads: Likewise.
9048 * s-vallld.adb: Likewise.
9049 * s-vallld.ads: Likewise.
9050 * s-vallli.adb: Likewise.
9051 * s-vallli.ads: Likewise.
9052 * s-valllu.adb: Likewise.
9053 * s-valllu.ads: Likewise.
9054 * s-valrea.adb: Likewise.
9055 * s-valrea.ads: Likewise.
9056 * s-valuns.adb: Likewise.
9057 * s-valuns.ads: Likewise.
9058 * s-valuti.adb: Likewise.
9059 * s-valuti.ads: Likewise.
9060 * s-valwch.adb: Likewise.
9061 * s-valwch.ads: Likewise.
9062 * s-veboop.adb: Likewise.
9063 * s-veboop.ads: Likewise.
9064 * s-vector.ads: Likewise.
9065 * s-vercon.adb: Likewise.
9066 * s-vercon.ads: Likewise.
9067 * s-vmexta.adb: Likewise.
9068 * s-vmexta.ads: Likewise.
9069 * s-vxwext-kernel.ads: Likewise.
9070 * s-vxwext-rtp.adb: Likewise.
9071 * s-vxwext-rtp.ads: Likewise.
9072 * s-vxwext.ads: Likewise.
9073 * s-vxwork-arm.ads: Likewise.
9074 * s-vxwork-m68k.ads: Likewise.
9075 * s-vxwork-mips.ads: Likewise.
9076 * s-vxwork-ppc.ads: Likewise.
9077 * s-vxwork-sparcv9.ads: Likewise.
9078 * s-vxwork-x86.ads: Likewise.
9079 * s-wchcnv.adb: Likewise.
9080 * s-wchcnv.ads: Likewise.
9081 * s-wchcon.adb: Likewise.
9082 * s-wchcon.ads: Likewise.
9083 * s-wchjis.adb: Likewise.
9084 * s-wchjis.ads: Likewise.
9085 * s-wchstw.adb: Likewise.
9086 * s-wchstw.ads: Likewise.
9087 * s-wchwts.adb: Likewise.
9088 * s-wchwts.ads: Likewise.
9089 * s-widboo.adb: Likewise.
9090 * s-widboo.ads: Likewise.
9091 * s-widcha.adb: Likewise.
9092 * s-widcha.ads: Likewise.
9093 * s-widenu.adb: Likewise.
9094 * s-widenu.ads: Likewise.
9095 * s-widlli.adb: Likewise.
9096 * s-widlli.ads: Likewise.
9097 * s-widllu.adb: Likewise.
9098 * s-widllu.ads: Likewise.
9099 * s-widwch.adb: Likewise.
9100 * s-widwch.ads: Likewise.
9101 * s-win32.ads: Likewise.
9102 * s-winext.ads: Likewise.
9103 * s-wwdcha.adb: Likewise.
9104 * s-wwdcha.ads: Likewise.
9105 * s-wwdenu.adb: Likewise.
9106 * s-wwdenu.ads: Likewise.
9107 * s-wwdwch.adb: Likewise.
9108 * s-wwdwch.ads: Likewise.
9109 * scans.adb: Likewise.
9110 * scans.ads: Likewise.
9111 * seh_init.c: Likewise.
9112 * sfn_scan.adb: Likewise.
9113 * sinfo.adb: Likewise.
9114 * sinfo.ads: Likewise.
9115 * sinput.adb: Likewise.
9116 * sinput.ads: Likewise.
9117 * snames.adb: Likewise.
9118 * snames.ads: Likewise.
9119 * socket.c: Likewise.
9120 * stand.adb: Likewise.
9121 * stand.ads: Likewise.
9122 * stringt.adb: Likewise.
9123 * stringt.ads: Likewise.
9124 * sysdep.c: Likewise.
9125 * system-aix.ads: Likewise.
9126 * system-darwin-ppc.ads: Likewise.
9127 * system-darwin-x86.ads: Likewise.
9128 * system-darwin-x86_64.ads: Likewise.
9129 * system-freebsd-x86.ads: Likewise.
9130 * system-hpux-ia64.ads: Likewise.
9131 * system-hpux.ads: Likewise.
9132 * system-irix-n32.ads: Likewise.
9133 * system-irix-n64.ads: Likewise.
9134 * system-irix-o32.ads: Likewise.
9135 * system-linux-alpha.ads: Likewise.
9136 * system-linux-hppa.ads: Likewise.
9137 * system-linux-ia64.ads: Likewise.
9138 * system-linux-mips.ads: Likewise.
9139 * system-linux-mipsel.ads: Likewise.
9140 * system-linux-ppc.ads: Likewise.
9141 * system-linux-ppc64.ads: Likewise.
9142 * system-linux-s390.ads: Likewise.
9143 * system-linux-s390x.ads: Likewise.
9144 * system-linux-sh4.ads: Likewise.
9145 * system-linux-sparc.ads: Likewise.
9146 * system-linux-sparcv9.ads: Likewise.
9147 * system-linux-x86.ads: Likewise.
9148 * system-linux-x86_64.ads: Likewise.
9149 * system-lynxos-ppc.ads: Likewise.
9150 * system-lynxos-x86.ads: Likewise.
9151 * system-mingw-x86_64.ads: Likewise.
9152 * system-mingw.ads: Likewise.
9153 * system-rtems.ads: Likewise.
9154 * system-solaris-sparc.ads: Likewise.
9155 * system-solaris-sparcv9.ads: Likewise.
9156 * system-solaris-x86.ads: Likewise.
9157 * system-solaris-x86_64.ads: Likewise.
9158 * system-tru64.ads: Likewise.
9159 * system-vms-ia64.ads: Likewise.
9160 * system-vms-zcx.ads: Likewise.
9161 * system-vms.ads: Likewise.
9162 * system-vms_64.ads: Likewise.
9163 * system-vxworks-arm.ads: Likewise.
9164 * system-vxworks-m68k.ads: Likewise.
9165 * system-vxworks-mips.ads: Likewise.
9166 * system-vxworks-ppc.ads: Likewise.
9167 * system-vxworks-sparcv9.ads: Likewise.
9168 * system-vxworks-x86.ads: Likewise.
9169 * system.ads: Likewise.
9170 * table.adb: Likewise.
9171 * table.ads: Likewise.
9172 * targext.c: Likewise.
9173 * targparm.ads: Likewise.
9174 * tree_in.adb: Likewise.
9175 * tree_in.ads: Likewise.
9176 * tree_io.adb: Likewise.
9177 * tree_io.ads: Likewise.
9178 * types.adb: Likewise.
9179 * types.ads: Likewise.
9180 * uintp.adb: Likewise.
9181 * uintp.ads: Likewise.
9182 * uname.adb: Likewise.
9183 * uname.ads: Likewise.
9184 * urealp.adb: Likewise.
9185 * urealp.ads: Likewise.
9186 * vx_stack_info.c: Likewise.
9187 * widechar.adb: Likewise.
9188 * widechar.ads: Likewise.
9189 * exp_attr.adb: Change copyright header to refer to version
9190 3 of the GNU General Public License and to point readers at the
9191 COPYING3 file and the FSF's license web page.
9192 * sem.adb: Likewise.
9193 * sem_attr.ads: Likewise.
9194 * freeze.adb: Likewise.
9195 * freeze.ads: Likewise.
9196 * errout.ads: Likewise.
9197 * erroutc.adb: Likewise.
9198 * exp_ch11.ads: Likewise.
9200 2009-04-09 Jakub Jelinek <jakub@redhat.com>
9202 * config-lang.in: Change copyright header to refer to version
9203 3 of the GNU General Public License and to point readers at the
9204 COPYING3 file and the FSF's license web page.
9205 * gcc-interface/trans.c: Likewise.
9206 * gnathtml.pl: Likewise.
9207 * gcc-interface/ada.h: Likewise. Remove runtime exception.
9208 * gcc-interface/gigi.h: Likewise.
9209 * gcc-interface/misc.c: Likewise.
9210 * gcc-interface/targtyps.c: Likewise.
9212 2009-04-09 Nicolas Setton <setton@adacore.com>
9214 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
9216 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
9219 2009-04-09 Bob Duff <duff@adacore.com>
9221 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
9222 internally-generated nodes related to select statements to avoid
9223 confusing the debugger.
9225 2009-04-09 Pascal Obry <obry@adacore.com>
9227 * make.adb: Ensure that all linker arguments are duplicated.
9229 2009-04-09 Robert Dewar <dewar@adacore.com>
9231 * sem_ch5.adb: Minor reformatting
9233 2009-04-09 Vincent Celier <celier@adacore.com>
9236 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
9237 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
9238 New qualifier /LXDEBUG=nnn for -gnatDnnn
9242 Update documentation for VMS qualifiers equivalent to -gnatGnn and
9245 2009-04-09 Nicolas Setton <setton@adacore.com>
9247 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
9248 to match layout of siginfo_t in sys/signal.h.
9250 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
9252 2009-04-09 Thomas Quinot <quinot@adacore.com>
9254 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
9256 2009-04-09 Nicolas Setton <setton@adacore.com>
9258 * s-oscons-tmplt.c: Allow long lines in the generated spec.
9259 Add generation of Darwin-specific constants needed when binding to the
9262 2009-04-09 Robert Dewar <dewar@adacore.com>
9265 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
9266 when no invalid values exist, Avoid duplicate read of atomic variable.
9268 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
9269 (Standard_Unsigned): Set Is_Known_Valid
9271 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
9272 subtype declaration if no constraint.
9273 (Set_Modular_Size): Set Is_Known_Valid if appropriate
9274 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
9276 2009-04-09 Robert Dewar <dewar@adacore.com>
9278 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
9279 switch.ads: for numeric switches, an optional equal sign is always
9282 2009-04-09 Vincent Celier <celier@adacore.com>
9284 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
9285 the case of file names is not significant.
9287 2009-04-09 Vincent Celier <celier@adacore.com>
9289 * errout.adb: Remove dependency on package Style
9291 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
9294 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
9297 * errutil.adb, par.adb: Import Stylesw
9299 2009-04-09 Arnaud Charlet <charlet@adacore.com>
9301 * opt.ads: Fix typos.
9303 2009-04-09 Robert Dewar <dewar@adacore.com>
9305 * einfo.adb: Minor reformatting
9307 2009-04-09 Robert Dewar <dewar@adacore.com>
9309 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
9312 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
9314 2009-04-09 Robert Dewar <dewar@adacore.com>
9316 * g-comver.adb: Minor reformatting.
9318 2009-04-09 Thomas Quinot <quinot@adacore.com>
9320 * lib-load.ads (Load_Unit): Update documentation.
9322 2009-04-09 Ed Schonberg <schonberg@adacore.com>
9324 * lib-load.adb (Load_Unit): When loading the parent of a child unit
9325 named in a with_clause, retain the with_clause to preserve a
9326 limited_with indication.
9328 2009-04-09 Robert Dewar <dewar@adacore.com>
9330 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
9331 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
9332 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
9333 possible to replace an OR of two separate tests.
9335 2009-04-09 Robert Dewar <dewar@adacore.com>
9337 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
9340 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
9341 warning status as well.
9343 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
9345 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
9348 * bindusg.adb, usage.adb: Update line for -gnatm switch
9350 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
9353 2009-04-09 Robert Dewar <dewar@adacore.com>
9355 * sem_ch10.adb: Minor reformatting.
9357 2009-04-09 Bob Duff <duff@adacore.com>
9359 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
9360 Set Sloc of generated nodes for calls to Undefer_Aborts and
9361 Save_Occurrence to No_Location, so the debugger ignores them and
9362 therefore does not jump back and forth when single stepping.
9364 2009-04-09 Robert Dewar <dewar@adacore.com>
9366 * switch-b.adb: Minor reformatting.
9368 2009-04-09 Robert Dewar <dewar@adacore.com>
9370 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
9371 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
9372 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
9373 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
9374 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
9375 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
9376 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
9377 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
9378 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
9379 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
9380 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
9382 2009-04-09 Robert Dewar <dewar@adacore.com>
9384 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
9386 * atree.h: Add Elist26
9388 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
9391 2009-04-09 Javier Miranda <miranda@adacore.com>
9393 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
9394 retrieve from the Dispatch_Table_Wrappers list the external name.
9395 Addition of documentation.
9396 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
9397 used to export secondary dispatch tables (in the previous version of
9398 the frontend only primary dispatch tables were exported). Addition of
9400 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
9401 dispatch table of a given tagged type.
9402 (Make_Tags): Modified to import secondary dispatch tables.
9404 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
9405 (Constant_Redeclaration): Code cleanup.
9407 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
9408 Dispatch_Table_Wrappers. Update documentation.
9410 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
9411 Renamed to Dispatch_Table_Wrappers.
9413 * sem_util.adb (Collect_Interface_Components): Improve handling of
9416 * atree.ads (Elist26, Set_Elist26): New subprograms
9418 * atree.adb (Elist26, Set_Elist26): New subprograms
9420 2009-04-09 Javier Miranda <miranda@adacore.com>
9422 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
9423 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
9426 2009-04-09 Robert Dewar <dewar@adacore.com>
9428 * s-direio.adb: Minor reformatting
9430 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
9432 2009-04-09 Robert Dewar <dewar@adacore.com>
9434 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
9436 2009-04-09 Pascal Obry <obry@adacore.com>
9438 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
9439 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
9440 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
9441 a-filico.ads: Add some missing overriding keywords.
9443 2009-04-09 Pascal Obry <obry@adacore.com>
9445 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
9446 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
9447 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
9450 2009-04-09 Ed Schonberg <schonberg@adacore.com>
9452 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
9453 missing overriding indicator if the new declaration is not seen as
9456 2009-04-09 Thomas Quinot <quinot@adacore.com>
9458 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
9459 overflows in computation of bounds.
9461 2009-04-09 Pascal Obry <obry@adacore.com>
9463 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
9466 2009-04-09 Robert Dewar <dewar@adacore.com>
9468 * sem_attr.adb (Check_Stream_Attribute): Check violation of
9469 restriction No_Streams
9471 * gnat_rm.texi: Clarify No_Streams restriction
9473 * g-socket.adb: Minor reformatting.
9475 2009-04-09 Thomas Quinot <quinot@adacore.com>
9477 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
9479 2009-04-09 Geert Bosch <bosch@adacore.com>
9481 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
9482 (Set_Result): Likewise.
9483 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
9484 conversion, as required by RM 4.6(31).
9486 2009-04-08 Robert Dewar <dewar@adacore.com>
9488 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
9491 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
9494 2009-04-08 Robert Dewar <dewar@adacore.com>
9496 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
9497 No_Local_Allocators restriction preventing local instantiation.
9499 2009-04-08 Thomas Quinot <quinot@adacore.com>
9501 * sem_eval.adb: Minor comment fix
9503 2009-04-08 Thomas Quinot <quinot@adacore.com>
9505 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
9506 New limited controlled type used to automate the initialization and
9507 finalization of the sockets implementation.
9508 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
9510 2009-04-08 Vincent Celier <celier@adacore.com>
9512 * prj-attr.adb: New read-only project-level attribute Project_Dir
9514 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
9515 read-only attribute of the same name.
9516 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
9517 (Recursive_Process): Ditto
9519 * snames.adb: Add new standard name Project_Dir
9521 * snames.ads: Add new standard name Project_Dir
9523 2009-04-08 Thomas Quinot <quinot@adacore.com>
9525 * checks.adb: Minor reformatting
9527 2009-04-08 Vincent Celier <celier@adacore.com>
9529 * vms_data.ads: Add documentation for new style keyword
9530 OVERRIDING_INDICATORS
9532 2009-04-08 Robert Dewar <dewar@adacore.com>
9534 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
9535 spec is in the current unit.
9537 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9539 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
9542 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
9544 2009-04-08 Vincent Celier <celier@adacore.com>
9546 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
9548 2009-04-08 Thomas Quinot <quinot@adacore.com>
9550 * checks.ads: Minor reformatting
9552 2009-04-08 Robert Dewar <dewar@adacore.com>
9554 * gnat_rm.texi: Update documentation of pragma Obsolescent
9556 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
9557 be omitted, and allow Entity parameter to be omitted.
9559 2009-04-08 Thomas Quinot <quinot@adacore.com>
9561 * exp_util.adb: Minor comment fix
9563 2009-04-08 Robert Dewar <dewar@adacore.com>
9565 * g-socket.ads: Fix bad syntax in pragma Obsolescent
9567 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
9568 argument with no identifier following one that has an identifier. Was
9569 missed in some cases.
9571 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
9573 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
9575 * snames.adb: Add Name_Policy
9577 * snames.ads: Add Name_Policy
9579 2009-04-08 Robert Dewar <dewar@adacore.com>
9581 * gnat_rm.texi: Minor reformatting
9583 * par-ch2.adb: Minor reformatting
9585 2009-04-08 Robert Dewar <dewar@adacore.com>
9587 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
9589 2009-04-08 Robert Dewar <dewar@adacore.com>
9591 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
9592 properly in the presence of Remote_Types or Remote_Call_Interface.
9594 * sem_util.adb: Add comment.
9596 2009-04-08 Robert Dewar <dewar@adacore.com>
9598 * ug_words: Add /ASSUME_VALID for -gnatB
9600 * vms_data.ads: Add /ASSUME_VALID for -gnatB
9602 * sem_cat.adb: Add clarifying commment
9604 * a-direio.ads (Bytes): Make sure value is non-zero
9606 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9608 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
9609 that does not come from source, check for a rewritten function call in
9610 prefixed notation before other forms of rewriting.
9612 2009-04-08 Robert Dewar <dewar@adacore.com>
9614 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
9615 these are now obsolescent units used only for bootrapping with an
9618 2009-04-08 Robert Dewar <dewar@adacore.com>
9620 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
9622 * sem_ch3.adb: Minor comment updates
9624 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9626 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
9627 that come from source.
9629 2009-04-08 Tristan Gingold <gingold@adacore.com>
9631 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
9632 * gcc-interface/decl.c (prepend_attributes): New case
9633 Pragma_Thread_Local_Storage.
9634 * gcc-interface/utils.c (process_attributes): New case
9635 ATTR_THREAD_LOCAL_STORAGE.
9637 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9639 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
9640 by the back-end if it contains a call to a subprogram without a
9641 previous spec that is declared in the same unit.
9643 * errout.ads: Update comments on uses of dirs
9645 2009-04-08 Robert Dewar <dewar@adacore.com>
9647 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
9649 2009-04-08 Tristan Gingold <gingold@adacore.com>
9651 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
9653 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
9655 2009-04-08 Vincent Celier <celier@adacore.com>
9658 (Add_Source): Add the mapping of the unit name to source file name in
9659 the Unit_Sources_HT hash table, if the unit name is not null.
9661 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
9663 * prj.ads (Unit_Sources_Htable): New hash table instantiation
9664 (Project_Tree_Data): New component Unit_Sources_HT
9666 2009-04-08 Thomas Quinot <quinot@adacore.com>
9668 * sem_ch8.adb: Minor reformatting.
9669 Minor code reorganization.
9671 2009-04-08 Robert Dewar <dewar@adacore.com>
9673 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
9674 snames.ads, freeze.adb, par-prag.adb: Add implementation of
9675 pragma Thread_Local_Storage, setting new flag
9676 Has_Pragma_Thread_Local_Storage in corresponding entities.
9678 2009-04-08 Emmanuel Briot <briot@adacore.com>
9680 * prj.ads: Update comment on switches file
9682 * prj-nmsc.adb: Code clean up. Use renaming clauses.
9684 2009-04-08 Robert Dewar <dewar@adacore.com>
9686 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
9688 2009-04-08 Thomas Quinot <quinot@adacore.com>
9690 * ali-util.adb: Minor comment fix
9692 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9694 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
9695 appears in a context clause, and the enclosing package is mentioned in
9696 a limited_with_clause.
9697 (Use_One_Type): Reject clause if type is still incomplete.
9699 2009-04-08 Emmanuel Briot <briot@adacore.com>
9701 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
9702 avoid copies of Source_Data variables when possible, since these
9703 involve calls to memcpy() which are done too many times.
9705 2009-04-08 Robert Dewar <dewar@adacore.com>
9707 * exp_ch4.adb (Expand_Concatenate): Clean up code
9709 2009-04-07 Thomas Quinot <quinot@adacore.com>
9711 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
9712 type for the case of concatenating a constrained array indexed by an
9715 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9717 * sem_ch6.adb (Check_Conformance): when checking conformance of an
9718 operation that overrides an abstract operation inherited from an
9719 interface, return False if only one of the controlling formals is an
9722 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9724 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
9725 mandated by AI05-105.
9727 2009-04-07 Vincent Celier <celier@adacore.com>
9729 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
9731 2009-04-07 Thomas Quinot <quinot@adacore.com>
9733 * usage.adb: Minor fix in usage message.
9735 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
9736 match declaration; the correct subtype is Node_Id, not Entity_Id,
9737 because the expected node kind is an identifier, not a defining
9740 * switch-c.adb: Minor reformatting.
9742 * uintp.adb: Minor reformatting.
9744 2009-04-07 Robert Dewar <dewar@adacore.com>
9746 * exp_ch13.adb: Minor reformatting
9748 2009-04-07 Robert Dewar <dewar@adacore.com>
9750 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
9751 against missing parent.
9753 2009-04-07 Thomas Quinot <quinot@adacore.com>
9755 * xoscons.adb: Minor reformatting
9757 2009-04-07 Robert Dewar <dewar@adacore.com>
9759 * rtsfind.ads: Remove obsolete string concatenation entries
9761 2009-04-07 Robert Dewar <dewar@adacore.com>
9763 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
9765 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9767 * sem_ch10.adb (Check_Body_Required): Handle properly imported
9770 2009-04-07 Gary Dismukes <dismukes@adacore.com>
9772 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
9773 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
9774 is of a scalar or string type then suppress the setting of the
9775 expression to Empty.
9777 * freeze.adb (Warn_Overlay): Also emit the warnings about default
9778 initialization for the cases of scalar and string objects when
9779 Init_Or_Norm_Scalars is True.
9781 2009-04-07 Bob Duff <duff@adacore.com>
9783 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
9785 2009-04-07 Bob Duff <duff@adacore.com>
9787 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
9788 Form parameter of Text_Translation=No allows binary mode for Text_IO
9791 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
9793 2009-04-07 Javier Miranda <miranda@adacore.com>
9795 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
9796 processing the bounds for bit packed arrays or VM target machines.
9798 2009-04-07 Thomas Quinot <quinot@adacore.com>
9800 * g-sothco.ads (Int_Access): Remove extraneous access type (use
9801 anonymous access instead).
9802 (Get_Socket_From_Set): Fix incorrectly reverted formals
9803 Last and Socket to match the underlying C routine.
9805 * g-socket.adb, g-socket.ads
9806 (Get): Use named parameter associations instead of positional ones in
9807 call go Get_Socket_From_Set, since this routine has two formals of the
9809 (Image): New procedure.
9811 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9812 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
9813 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
9814 for type of Arg formal.
9816 * sem_warn.adb: Minor reformatting
9818 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9820 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
9821 over record components.
9823 2009-04-07 Nicolas Roche <roche@adacore.com>
9826 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
9827 has disappeared between VxWorks 6.4 and VxWorks 6.5
9828 In RTP mode use time.h instead of times.h
9830 2009-04-07 Robert Dewar <dewar@adacore.com>
9832 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
9834 2009-04-07 Kevin Pouget <pouget@adacore.com>
9836 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
9837 expanded code for constrained types.
9839 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9841 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
9842 AI05-105: in an object renaming declaration, anonymousness is a name
9845 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
9847 2009-04-07 Arnaud Charlet <charlet@adacore.com>
9849 * g-comlin.adb (Expansion): Fix old regression: also return directory
9850 names when matching.
9852 2009-04-07 Robert Dewar <dewar@adacore.com>
9855 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
9856 (Expand_Concatenate): New name for Expand_Concatenate_String which has
9857 been rewritten to handle all types.
9858 (Expand_Concatenate_Other): Remove
9860 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9862 * lib-xref.adb (Generate_Reference): A default subprogram in an
9863 instance appears within the tree for the instance, but generates an
9864 implicit reference in the ALI.
9866 2009-04-07 Javier Miranda <miranda@adacore.com>
9868 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
9869 derived type that has discriminants, propagate the list of interfaces
9870 to the corresponding new base type. In addition, propagate also
9871 attribute Limited_Present (found working in this patch).
9873 2009-04-07 Robert Dewar <dewar@adacore.com>
9875 * exp_ch4.adb: Rewrite concatenation expansion.
9877 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9879 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
9880 relevant to packages.
9882 2009-04-07 Robert Dewar <dewar@adacore.com>
9884 * sem_attr.adb: Minor reformatting
9886 * sem_ch6.adb: Minor reformatting
9888 2009-04-07 Tristan Gingold <gingold@adacore.com>
9890 * socket.c: Add more protections against S_resolvLib_ macros.
9892 2009-04-07 Thomas Quinot <quinot@adacore.com>
9894 * sem_attr.adb: Minor reformatting
9896 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9898 * sem_ch6.adb (New_Overloaded_Entity): New predicate
9899 Is_Overriding_Alias to handle properly types that inherit two homonym
9900 operations that have distinct dispatch table entries.
9902 2009-04-07 Emmanuel Briot <briot@adacore.com>
9904 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
9905 looking for the end of a parenthesis group
9907 2009-04-07 Tristan Gingold <gingold@adacore.com>
9909 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
9911 * socket.c Don't use resolvLib_ macros if not defined.
9913 2009-04-07 Robert Dewar <dewar@adacore.com>
9915 * g-socket.adb: Minor reformatting.
9917 * g-socthi-mingw.adb: Minor reformatting
9919 * g-sothco.ads: Minor reformatting
9922 (Expand_Concatenate_String): Complete rewrite to generate efficient code
9923 inline instead of relying on external library routines.
9925 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
9926 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
9929 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9932 (Eval_Attribute): for attributes of array objects that are not strings,
9933 attributes are not static if nominal subtype of object is unconstrained.
9935 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9937 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
9938 operations for a type T in an instance do not override each other,
9939 when T is derived from a formal private type, the corresponding
9940 operations inherited by a type derived from T outside
9941 of the instance do not override each other either.
9943 2009-04-07 Robert Dewar <dewar@adacore.com>
9945 (Osint.Fail): Change calling sequence to have one string arg
9946 (Make.Make_Failed): Same change
9947 All callers are adjusted to use concatenation
9949 2009-04-07 Robert Dewar <dewar@adacore.com>
9951 * exp_ch4.adb: Fix documentation typo
9953 2009-04-07 Robert Dewar <dewar@adacore.com>
9955 * tbuild.ads: Minor reformatting
9957 2009-04-07 Javier Miranda <miranda@adacore.com>
9959 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
9960 when compiling under ZFP runtime.
9962 2009-04-07 Robert Dewar <dewar@adacore.com>
9964 * g-comlin.adb: Minor reformatting
9966 2009-04-07 Thomas Quinot <quinot@adacore.com>
9968 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9969 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
9970 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
9971 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
9973 2009-04-07 Robert Dewar <dewar@adacore.com>
9975 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
9977 * opt.ads (Sprint_Line_Limit): New parameter
9979 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
9981 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
9983 * usage.adb: Output information for -gnatGnn -gnatDnn
9985 2009-04-07 Robert Dewar <dewar@adacore.com>
9987 * make.adb: Minor reformatting
9989 2009-04-07 Robert Dewar <dewar@adacore.com>
9991 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
9993 2009-04-07 Robert Dewar <dewar@adacore.com>
9995 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
9997 2009-04-07 Robert Dewar <dewar@adacore.com>
10000 Remove Assume_Valid parameter from In_Subrange_Of calls
10003 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
10004 (Is_In_Range): Remove incorrect use of Assume_Valid
10005 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
10008 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
10009 (Is_In_Range): Documentation cleanup
10010 (Is_Out_Of_Range): Documentation cleanup
10013 Add documentation for Assume_No_Invalid_Values pragma
10015 * sem_ch12.adb: Minor reformatting
10017 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
10019 * sem_prag.adb: Improve error message.
10021 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
10022 LF/CR no longer recognized as line terminator
10024 * switch.ads: Minor documentation improvement
10026 * vms_data.ads: Minor reformatting
10028 2009-04-07 Robert Dewar <dewar@adacore.com>
10030 * checks.adb (Determine_Range): Add Assume_Valid parameter
10032 * checks.ads (Determine_Range): Add Assume_Valid parameter
10034 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
10035 Is_Null_Loop to suppress warnings in a loop body.
10038 (Rewrite_Comparison): Major rewrite to accomodate invalid values
10041 (Expand_N_Loop_Statement): Delete loop known not to execute
10044 (Assume_No_Invalid_Values): Now set to False, and as documented, this
10045 fully enables the proper handling of invalid values.
10048 New calling sequence for Is_In_Range
10051 (Analyze_Iteration_Scheme): Accomodate possible invalid values
10052 in determining if a loop range is null.
10055 (Is_In_Range): Add Assume_Valid parameter
10056 (Is_Out_Of_Range): Add Assume_Valid_Parameter
10057 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
10058 also to do more accurate and complete range analysis, catching more
10062 (Is_In_Range): Add Assume_Valid parameter
10063 (Is_Out_Of_Range): Add Assume_Valid_Parameter
10066 New calling sequence for Is_In_Range
10069 (Suppress_Loop_Warnings): New flag
10072 (Is_Null_Loop): Update documentation
10073 (Suppress_Loop_Warnings): New flag
10075 * gnat_ugn.texi: Document -gnatB switch
10077 2009-04-07 Arnaud Charlet <charlet@adacore.com>
10079 * gnatvsn.ads: Bump version number.
10081 2009-04-07 Thomas Quinot <quinot@adacore.com>
10083 * exp_ch3.adb: Minor rewording (comments)
10085 2009-04-07 Robert Dewar <dewar@adacore.com>
10087 * exp_disp.adb: Minor reformatting
10089 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10091 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
10093 * gcc-interface/trans.c (lvalue_required_p): Likewise.
10095 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10097 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
10098 Do not convert the result. Remove obsolete comment.
10100 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10102 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
10104 (Subprogram_Body_to_gnu): Fix pasto.
10106 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10108 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
10109 (void_type_decl_node): Remove.
10110 (init_gigi_decls): Likewise.
10111 (gnat_install_builtins): Declare.
10112 (record_builtin_type): Likewise.
10113 (create_type_stub_decl): Likewise.
10114 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
10115 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
10117 <E_Array_Subtype>: Use the index types, not only their name, in the
10118 record giving the names of the bounds, if any.
10119 For a packed array type, make it artificial only if the base type
10120 was artificial as well. Remove redundant statement.
10121 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
10123 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
10124 (rest_of_type_decl_compilation_no_defer): Likewise.
10125 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
10126 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
10127 and use create_type_stub_decl to build it.
10128 (gnat_pushdecl): Rewrite condition.
10129 (gnat_install_builtins): Remove bogus declaration.
10130 (record_builtin_type): New function.
10131 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
10133 (create_type_stub_decl): New function.
10134 (create_type_decl): Assert that the type is not dummy. If the type
10135 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
10136 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
10137 (build_vms_descriptor): Likewise.
10138 (init_gigi_decls): Delete and move bulk of code to...
10139 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
10140 (emit_range_check): Add gnat_node parameter.
10141 (emit_index_check): Likewise.
10142 (emit_check): Likewise.
10143 (build_unary_op_trapv): Likewise.
10144 (build_binary_op_trapv): Likewise.
10145 (convert_with_check): Likewise.
10146 (Attribute_to_gnu): Adjust calls for above changes.
10147 (call_to_gnu): Likewise.
10148 (gnat_to_gnu): Likewise.
10149 (assoc_to_constructor): Likewise.
10150 (pos_to_constructor): Likewise.
10151 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
10152 (process_type): Do not create TYPE_DECL for dummy types.
10154 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10156 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
10157 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
10158 * gcc-interface/utils.c: Fix comments.
10160 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10162 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
10164 (gnat_to_gnu_type): Move around.
10165 (get_unpadded_type): Likewise.
10166 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
10169 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10171 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
10172 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
10173 (call_to_gnu): Invoke it instead of manually checking.
10175 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
10177 * gcc-interface/utils.c (finish_record_type): Force structural equality
10178 checks if the record type is discriminated.
10180 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
10182 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
10183 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
10184 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
10185 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
10186 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
10187 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
10188 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
10190 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
10192 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
10193 of TREE_CONSTANT_OVERFLOW.
10195 2009-03-30 Joseph Myers <joseph@codesourcery.com>
10197 PR rtl-optimization/323
10198 * gcc-interface/misc.c (gnat_post_options): Set
10199 flag_excess_precision_cmdline. Give an error for
10200 -fexcess-precision=standard for processors where the option is
10203 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
10206 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
10209 2009-03-11 Olivier Hainque <hainque@adacore.com>
10211 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
10212 checks processing, remove unintended TREE_TYPE walk on index type.
10214 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
10217 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
10218 call make_packable_type on fat pointer types.
10219 <E_Array_Subtype>: Likewise.
10220 <E_Record_Subtype>: Call make_packable_type on all record types
10221 except for fat pointer types.
10222 (make_packable_type): Likewise.
10223 (gnat_to_gnu_field): Likewise.
10225 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
10227 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
10228 EH_MECHANISM change made on 2007-12-06.
10230 2009-02-26 Andreas Schwab <schwab@suse.de>
10233 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
10234 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
10235 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
10237 (target_cpu_default): Substitute.
10239 2009-02-25 Laurent GUERBY <laurent@guerby.net>
10242 * a-teioed.adb (Expand): Fix Result overflow.
10244 2009-02-25 Laurent GUERBY <laurent@guerby.net>
10246 * gcc-interface/Makefile.in: Fix multilib handling for
10249 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10251 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
10253 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
10255 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
10257 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
10259 * gcc-interface/deftarg.c: Remove.
10261 2009-02-10 Olivier Hainque <hainque@adacore.com>
10262 Eric Botcazou <ebotcazou@adacore.com>
10264 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
10265 (copy_alias_set): Rename into...
10266 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
10267 underlying array of unconstrained arrays for the new type as well.
10268 If the old and new alias sets don't conflict, make one a subset of
10269 the other as per the OP parameter.
10270 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
10271 <E_Record_Type>: Do not copy the alias set for derived types.
10272 For all types, make the alias set of derived types a superset of
10273 that of their parent type.
10274 (make_aligning_type): Adjust calls to copy_alias_set.
10275 (make_packable_type): Likewise.
10276 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
10277 Check for alias set conflict instead of strict equality to issue the
10280 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
10282 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
10283 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
10284 (copy_alias_set): Assert that arrays have the same aliasing settings.
10285 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
10287 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
10289 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
10290 Set TYPE_NONALIASED_COMPONENT on the array type.
10292 2009-01-31 Laurent GUERBY <laurent@guerby.net>
10294 * gcc-interface/Makefile.in: Fix mipsel linux handling.
10296 2009-01-16 Jakub Jelinek <jakub@redhat.com>
10298 * gcc-interface/Makefile.in: Fix multilib handling for
10301 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
10303 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
10304 only useless conversions around renamed objects.
10306 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
10308 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
10309 the _Tag field before any discriminants in the field list.
10310 (components_to_record): Remove obsolete comment.
10314 Copyright (C) 2009 Free Software Foundation, Inc.
10316 Copying and distribution of this file, with or without modification,
10317 are permitted in any medium without royalty provided the copyright
10318 notice and this notice are preserved.